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