1syntax = "proto2";
2
3import 'nanopb.proto';
4
5message SubMsg1 {
6    optional float number1 = 1 [default = 1];
7}
8
9message SubMsg2 {
10    repeated uint32 number2 = 1;
11}
12
13message SubMsgCB {
14    option (nanopb_msgopt).submsg_callback = true;
15    repeated SubMsg1 field1 = 1;
16    oneof data {
17        uint32 uint = 2;
18        sint32 sint = 3 [default = 3];
19        SubMsg2 vuint = 4;
20    }
21}
22
23