17 lines
No EOL
365 B
Protocol Buffer
17 lines
No EOL
365 B
Protocol Buffer
syntax = "proto3";
|
|
package helloworld;
|
|
|
|
service Greeter {
|
|
// Our SayHello rpc accepts HelloRequests and returns HelloReplies
|
|
rpc SayHello (HelloRequest) returns (HelloReply);
|
|
}
|
|
|
|
message HelloRequest {
|
|
// Request message contains the name to be greeted
|
|
string name = 1;
|
|
}
|
|
|
|
message HelloReply {
|
|
// Reply contains the greeting message
|
|
string message = 1;
|
|
} |