27 lines
472 B
Protocol Buffer
27 lines
472 B
Protocol Buffer
|
|
syntax = "proto3";
|
||
|
|
package interop;
|
||
|
|
|
||
|
|
service InteropService {
|
||
|
|
// Expected to succeed
|
||
|
|
rpc UnaryCall (UnaryRequest) returns (UnaryResponse);
|
||
|
|
|
||
|
|
// Expected to fail (roto does not support streaming)
|
||
|
|
rpc StreamingCall (StreamingRequest) returns (stream StreamingResponse);
|
||
|
|
}
|
||
|
|
|
||
|
|
message UnaryRequest {
|
||
|
|
string message = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
message UnaryResponse {
|
||
|
|
string reply = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
message StreamingRequest {
|
||
|
|
string query = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
message StreamingResponse {
|
||
|
|
string item = 1;
|
||
|
|
}
|