17 lines
268 B
Protocol Buffer
17 lines
268 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package echo;
|
|
|
|
service EchoService {
|
|
rpc UnaryEcho(EchoRequest) returns (EchoResponse);
|
|
rpc ServerEcho(EchoRequest) returns (stream EchoResponse);
|
|
}
|
|
|
|
message EchoRequest {
|
|
string message = 1;
|
|
}
|
|
|
|
message EchoResponse {
|
|
string message = 1;
|
|
}
|