1syntax = "proto2";
2
3import "nanopb.proto";
4
5message SubMessage3 {
6    required uint32 foo = 1;
7}
8
9message SubMessage2 {
10    oneof oneof {
11        SubMessage3 submsg = 1 [(nanopb).submsg_callback = true];
12    }
13}
14
15message SubMessage1 {
16    repeated SubMessage2 msgs = 1 [(nanopb).max_count = 16];
17}
18
19message MainMessage {
20    required SubMessage1 msg = 1;
21    required uint32 foo = 2;
22}
23
24