1syntax = "proto3"; 2 3package descriptors; 4 5message TestDescriptorsMessage { 6 int32 optional_int32 = 1; 7 TestDescriptorsEnum optional_enum = 16; 8 Sub optional_message = 17; 9 10 // Repeated 11 repeated int32 repeated_int32 = 31; 12 repeated Sub repeated_message = 47; 13 14 oneof my_oneof { 15 int32 oneof_int32 = 51; 16 } 17 18 map<int32, EnumSub> map_int32_enum = 71; 19 20 message Sub { 21 int32 a = 1; 22 repeated int32 b = 2; 23 } 24 25 enum EnumSub { 26 ZERO = 0; 27 ONE = 1; 28 } 29} 30 31enum TestDescriptorsEnum { 32 ZERO = 0; 33 ONE = 1; 34} 35 36