• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1syntax = "proto3";
2
3package foo;
4option php_namespace = "Php\\Test";
5option php_metadata_namespace = "Metadata\\Php\\Test";
6
7message TestNamespace {
8  int32 a = 1;
9
10  // Test nested messages, enums, and reserved names
11  NestedMessage nested_message = 2;
12  NestedEnum nested_enum = 3;
13  Empty reserved_name = 4;
14  message NestedMessage {
15    int32 a = 1;
16  }
17  enum NestedEnum {
18      ZERO = 0;
19  };
20  // Test reserved name
21  message Empty {
22    NestedMessage nested_message = 1;
23    NestedEnum nested_enum = 2;
24    message NestedMessage {
25      int32 a = 1;
26    }
27    enum NestedEnum {
28      ZERO = 0;
29    };
30  }
31}
32