mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
374 B
22 lines
374 B
5 years ago
|
syntax = "proto3";
|
||
|
|
||
|
message SimpleMessage {
|
||
|
string msg = 1;
|
||
|
oneof personal_or_business {
|
||
|
bool personal = 2;
|
||
|
bool business = 3;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
message SimpleMessageRequest {
|
||
|
SimpleMessage simple_msg = 1;
|
||
|
};
|
||
|
|
||
|
message SimpleMessageResponse {
|
||
|
bool understood = 1;
|
||
|
};
|
||
|
|
||
|
service SimpleMessageService {
|
||
|
rpc Tell(SimpleMessageRequest) returns (SimpleMessageResponse);
|
||
|
};
|