gRPC-haskell/tests/simple.proto

24 lines
669 B
Protocol Buffer
Raw Permalink Normal View History

2016-07-26 01:37:06 +02:00
syntax = "proto3";
package simple;
service SimpleService {
rpc normalCall (SimpleServiceRequest) returns (SimpleServiceResponse) {}
rpc clientStreamingCall (stream SimpleServiceRequest) returns (SimpleServiceResponse) {}
rpc serverStreamingCall (SimpleServiceRequest) returns (stream SimpleServiceResponse) {}
rpc biDiStreamingCall (stream SimpleServiceRequest) returns (stream SimpleServiceResponse) {}
rpc done (SimpleServiceDone) returns (SimpleServiceDone) {}
}
message SimpleServiceDone {
}
message SimpleServiceRequest {
string request = 1;
repeated fixed32 num = 2;
}
message SimpleServiceResponse {
string response = 1;
fixed32 num = 2;
}