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.
30 lines
464 B
30 lines
464 B
8 years ago
|
syntax = "proto2";
|
||
|
|
||
|
message MessageOne
|
||
|
{
|
||
|
required uint32 one = 1;
|
||
|
required uint32 two = 2;
|
||
|
required uint32 three = 3;
|
||
|
required int32 four = 4;
|
||
|
}
|
||
|
|
||
|
enum EnumTwo
|
||
|
{
|
||
|
SOME_ENUM_1 = 1;
|
||
|
SOME_ENUM_2 = 5;
|
||
|
SOME_ENUM_3 = 6;
|
||
|
SOME_ENUM_4 = 9;
|
||
|
SOME_ENUM_5 = 10;
|
||
|
SOME_ENUM_6 = 12;
|
||
|
SOME_ENUM_7 = 39;
|
||
|
SOME_ENUM_8 = 401;
|
||
|
}
|
||
|
|
||
|
message OneofMessage
|
||
|
{
|
||
|
oneof payload {
|
||
|
MessageOne message = 1;
|
||
|
EnumTwo enum = 2;
|
||
|
}
|
||
|
}
|