16 lines
189 B
Protocol Buffer
16 lines
189 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package example;
|
||
|
|
||
|
service Sum {
|
||
|
rpc Sum(SumRequest) returns (SumReply) {};
|
||
|
}
|
||
|
|
||
|
message SumRequest {
|
||
|
int32 a = 1;
|
||
|
int32 b = 2;
|
||
|
}
|
||
|
|
||
|
message SumReply {
|
||
|
int32 c = 1;
|
||
|
}
|