16 lines
251 B
Protocol Buffer
16 lines
251 B
Protocol Buffer
service Greeter {
|
|
rpc SayHello (HelloRequest) returns (HelloReply) {}
|
|
}
|
|
message HelloRequest {
|
|
string name = 1;
|
|
}
|
|
|
|
message HelloReply {
|
|
string message = 1;
|
|
}
|
|
|
|
message Ticket {
|
|
string name = 1;
|
|
int32 id = 2;
|
|
bool is_valid = 3;
|
|
} |