mirror of
https://github.com/google/pebble.git
synced 2025-12-01 11:42:23 -05:00
Import of the watch repository from Pebble
This commit is contained in:
22
third_party/nanopb/tests/regression/issue_631/submsg_callback.proto
vendored
Normal file
22
third_party/nanopb/tests/regression/issue_631/submsg_callback.proto
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
syntax = "proto2";
|
||||
|
||||
import 'nanopb.proto';
|
||||
|
||||
message SubMsg1 {
|
||||
optional float number1 = 1 [default = 1];
|
||||
}
|
||||
|
||||
message SubMsg2 {
|
||||
repeated uint32 number2 = 1;
|
||||
}
|
||||
|
||||
message SubMsgCB {
|
||||
option (nanopb_msgopt).submsg_callback = true;
|
||||
repeated SubMsg1 field1 = 1;
|
||||
oneof data {
|
||||
uint32 uint = 2;
|
||||
sint32 sint = 3 [default = 3];
|
||||
SubMsg2 vuint = 4;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user