c8a39dd698fc51608a8a0a38bc88a4c80f46398c
[apps/agl-service-can-low-level.git] / tests / unittestproto.proto
1 import 'nanopb.proto';
2
3 message IntegerArray {
4     repeated int32 data = 1 [(nanopb).max_count = 10];
5 }
6
7 message FloatArray {
8     repeated float data = 1 [(nanopb).max_count = 10];
9 }
10
11 message CallbackArray {
12     // We cheat a bit and use this message for testing other types, too.
13     // Nanopb does not care about the actual defined data type for callback
14     // fields.
15     repeated int32 data = 1;
16 }
17
18 message IntegerContainer {
19     required IntegerArray submsg = 1;
20 }
21
22 message CallbackContainer {
23     required CallbackArray submsg = 1;
24 }
25
26 message CallbackContainerContainer {
27     required CallbackContainer submsg = 1;
28 }