mirror of
https://github.com/google/pebble.git
synced 2025-11-30 11:12:22 -05:00
Import of the watch repository from Pebble
This commit is contained in:
41
third_party/nanopb/tests/regression/issue_617/oneof.proto
vendored
Normal file
41
third_party/nanopb/tests/regression/issue_617/oneof.proto
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
syntax = "proto3";
|
||||
|
||||
message DecodesOK
|
||||
{
|
||||
uint32 a = 1;
|
||||
uint32 b = 2;
|
||||
}
|
||||
|
||||
message NoDecode
|
||||
{
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message TestMessage
|
||||
{
|
||||
enum MessageType
|
||||
{
|
||||
A = 0;
|
||||
B = 1;
|
||||
C = 2;
|
||||
}
|
||||
|
||||
MessageType messageType = 1;
|
||||
uint32 x = 2;
|
||||
uint32 y = 3;
|
||||
uint32 ip1 = 4;
|
||||
|
||||
oneof payload
|
||||
{
|
||||
DecodesOK pla5 = 5;
|
||||
DecodesOK pla6 = 6;
|
||||
DecodesOK pla7 = 7;
|
||||
DecodesOK pla8 = 8;
|
||||
DecodesOK pla9 = 9;
|
||||
DecodesOK pla10 = 10;
|
||||
NoDecode plb11 = 12;
|
||||
}
|
||||
|
||||
uint32 ip2 = 11;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user