mirror of
https://github.com/google/pebble.git
synced 2025-03-22 11:42:19 +00:00
22 lines
385 B
Protocol Buffer
22 lines
385 B
Protocol Buffer
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;
|
|
}
|
|
}
|
|
|