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  repeated int32 integers = 3;
20}
21
22message ContainerMessage {
23  extend ExtendableMessage {
24    optional bool another_thing = 100;
25    // The largest permitted field number, per
26    // https://developers.google.com/protocol-buffers/docs/proto#simple
27    optional bool large_field_number = 536870911;
28  }
29}
30
31// For testNanoOptionalGroupWithUnknownFieldsEnabled;
32// not part of the extensions tests.
33message MessageWithGroup {
34  optional group Group = 1 {
35    optional int32 a = 2;
36  }
37}
38