xref: /aosp_15_r20/external/protobuf/php/tests/proto/test_descriptors.proto (revision 1b3f573f81763fcece89efc2b6a5209149e44ab8)
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  optional int32 proto3_optional_int32 = 52;
18
19  map<int32, EnumSub> map_int32_enum = 71;
20
21  message Sub {
22    int32 a = 1;
23    repeated int32 b = 2;
24  }
25
26  enum EnumSub {
27    ZERO = 0;
28    ONE = 1;
29  }
30}
31
32enum TestDescriptorsEnum {
33  ZERO = 0;
34  ONE  = 1;
35}
36
37