28 lines
492 B
Protocol Buffer
28 lines
492 B
Protocol Buffer
syntax = "proto3";
|
|
package dummy;
|
|
|
|
message Empty {
|
|
}
|
|
|
|
message SomeRequest {
|
|
string what_client_sends = 1;
|
|
}
|
|
|
|
message SomeResponse {
|
|
string what_server_sends = 1;
|
|
}
|
|
|
|
message StreamRequest {
|
|
string what_client_sends = 1;
|
|
}
|
|
|
|
message StreamResponse {
|
|
string what_server_sends = 1;
|
|
}
|
|
|
|
service TestService {
|
|
rpc GetSomething (SomeRequest) returns (SomeResponse);
|
|
rpc ClientMessages (stream StreamRequest) returns (Empty);
|
|
rpc ServerMessages (Empty) returns (stream StreamResponse);
|
|
}
|