1syntax = "proto2"; 2 3option java_outer_classname = "Extensions"; 4option java_package = "com.google.protobuf.nano.testext"; 5 6message ExtendableMessage { 7 optional int32 field = 1; 8 extensions 10 to max; 9} 10 11enum AnEnum { 12 FIRST_VALUE = 1; 13 SECOND_VALUE = 2; 14} 15 16message AnotherMessage { 17 optional string string = 1; 18 optional bool value = 2; 19} 20 21message ContainerMessage { 22 extend ExtendableMessage { 23 optional bool another_thing = 100; 24 } 25} 26 27// For testNanoOptionalGroupWithUnknownFieldsEnabled; 28// not part of the extensions tests. 29message MessageWithGroup { 30 optional group Group = 1 { 31 optional int32 a = 2; 32 } 33} 34