Home | History | Annotate | Download | only in common
      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 StringMessage {
     12     required string data = 1 [(nanopb).max_size = 10];
     13 }
     14 
     15 message BytesMessage {
     16     required bytes data = 1 [(nanopb).max_size = 16];
     17 }
     18 
     19 message CallbackArray {
     20     // We cheat a bit and use this message for testing other types, too.
     21     // Nanopb does not care about the actual defined data type for callback
     22     // fields.
     23     repeated int32 data = 1;
     24 }
     25 
     26 message IntegerContainer {
     27     required IntegerArray submsg = 1;
     28 }
     29 
     30 message CallbackContainer {
     31     required CallbackArray submsg = 1;
     32 }
     33 
     34 message CallbackContainerContainer {
     35     required CallbackContainer submsg = 1;
     36 }
     37