aboutsummaryrefslogtreecommitdiffstats
path: root/src/google/protobuf/unittest_extension_nano.proto
blob: 2a678a8075a09ec97aebf3e304c25425554968f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
syntax = "proto2";

option java_outer_classname = "Extensions";
option java_package = "com.google.protobuf.nano.testext";

message ExtendableMessage {
  optional int32 field = 1;
  extensions 10 to max;
}

enum AnEnum {
  FIRST_VALUE = 1;
  SECOND_VALUE = 2;
}

message AnotherMessage {
  optional string string = 1;
  optional bool value = 2;
}

message ContainerMessage {
  extend ExtendableMessage {
    optional bool another_thing = 100;
  }
}

// For testNanoOptionalGroupWithUnknownFieldsEnabled;
// not part of the extensions tests.
message MessageWithGroup {
  optional group Group = 1 {
    optional int32 a = 2;
  }
}