17 lines
400 B
Protocol Buffer
17 lines
400 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
service Greeter {
|
|
rpc SayHello (HelloRequest) returns (HelloReply) {}
|
|
rpc SayHelloGoodbye (HelloRequest) returns (stream HelloReply) {}
|
|
rpc SayHelloToMany (stream HelloRequest) returns (stream HelloReply) {}
|
|
rpc SayHelloToManyAtOnce (stream HelloRequest) returns (HelloReply) {}
|
|
}
|
|
|
|
message HelloRequest {
|
|
string name = 1;
|
|
}
|
|
|
|
message HelloReply {
|
|
string message = 1;
|
|
}
|