mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-27 22:01:02 +08:00
21 lines
313 B
Protocol Buffer
21 lines
313 B
Protocol Buffer
message TopLevel {
|
|
oneof submessages {
|
|
MessageType1 type1 = 1;
|
|
MessageType2 type2 = 2;
|
|
}
|
|
}
|
|
|
|
message MessageType1 {
|
|
enum Flag {
|
|
OK = 1;
|
|
}
|
|
optional Flag flag = 1;
|
|
}
|
|
|
|
message MessageType2 {
|
|
enum AnotherFlag {
|
|
OK = 1;
|
|
}
|
|
optional AnotherFlag flag = 1;
|
|
}
|