1import 'nanopb.proto'; 2 3message IntegerArray { 4 repeated int32 data = 1 [(nanopb).max_count = 10]; 5} 6 7message FloatArray { 8 repeated float data = 1 [(nanopb).max_count = 10]; 9} 10 11message StringMessage { 12 required string data = 1 [(nanopb).max_size = 10]; 13} 14 15message BytesMessage { 16 required bytes data = 1 [(nanopb).max_size = 16]; 17} 18 19message 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 26message IntegerContainer { 27 required IntegerArray submsg = 1; 28} 29 30message CallbackContainer { 31 required CallbackArray submsg = 1; 32} 33 34message CallbackContainerContainer { 35 required CallbackContainer submsg = 1; 36} 37