xref: /third_party/protobuf/php/tests/proto/test_descriptors.proto
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/protobuf/php/tests/proto/
1ffe3c632Sopenharmony_cisyntax = "proto3";
2ffe3c632Sopenharmony_ci
3ffe3c632Sopenharmony_cipackage descriptors;
4ffe3c632Sopenharmony_ci
5ffe3c632Sopenharmony_cimessage TestDescriptorsMessage {
6ffe3c632Sopenharmony_ci  int32 optional_int32 = 1;
7ffe3c632Sopenharmony_ci  TestDescriptorsEnum optional_enum = 16;
8ffe3c632Sopenharmony_ci  Sub optional_message = 17;
9ffe3c632Sopenharmony_ci
10ffe3c632Sopenharmony_ci  // Repeated
11ffe3c632Sopenharmony_ci  repeated int32 repeated_int32 = 31;
12ffe3c632Sopenharmony_ci  repeated Sub repeated_message = 47;
13ffe3c632Sopenharmony_ci
14ffe3c632Sopenharmony_ci  oneof my_oneof {
15ffe3c632Sopenharmony_ci    int32 oneof_int32    = 51;
16ffe3c632Sopenharmony_ci  }
17ffe3c632Sopenharmony_ci
18ffe3c632Sopenharmony_ci  map<int32, EnumSub> map_int32_enum = 71;
19ffe3c632Sopenharmony_ci
20ffe3c632Sopenharmony_ci  message Sub {
21ffe3c632Sopenharmony_ci    int32 a = 1;
22ffe3c632Sopenharmony_ci    repeated int32 b = 2;
23ffe3c632Sopenharmony_ci  }
24ffe3c632Sopenharmony_ci
25ffe3c632Sopenharmony_ci  enum EnumSub {
26ffe3c632Sopenharmony_ci    ZERO = 0;
27ffe3c632Sopenharmony_ci    ONE = 1;
28ffe3c632Sopenharmony_ci  }
29ffe3c632Sopenharmony_ci}
30ffe3c632Sopenharmony_ci
31ffe3c632Sopenharmony_cienum TestDescriptorsEnum {
32ffe3c632Sopenharmony_ci  ZERO = 0;
33ffe3c632Sopenharmony_ci  ONE  = 1;
34ffe3c632Sopenharmony_ci}
35ffe3c632Sopenharmony_ci
36

Indexes created Thu Nov 07 10:32:03 CST 2024