17 lines
313 B
Protocol Buffer
17 lines
313 B
Protocol Buffer
syntax = "proto3";
|
|
package helloworld;
|
|
|
|
service Greeter {
|
|
rpc SayHello (HelloRequest) returns (HelloResponse);
|
|
}
|
|
|
|
message HelloRequest {
|
|
// Request message contains the name to be greeted
|
|
string name = 1;
|
|
}
|
|
|
|
message HelloResponse {
|
|
// Reply contains the greeting message
|
|
string message = 1;
|
|
}
|