1pub(crate) const UNINTERPRETED_OPTION: i32 = 999;
2
3pub(crate) mod file {
4 pub(crate) const PACKAGE: i32 = 2;
5 pub(crate) const DEPENDENCY: i32 = 3;
6 pub(crate) const PUBLIC_DEPENDENCY: i32 = 10;
7 pub(crate) const WEAK_DEPENDENCY: i32 = 11;
8 pub(crate) const MESSAGE_TYPE: i32 = 4;
9 pub(crate) const ENUM_TYPE: i32 = 5;
10 pub(crate) const SERVICE: i32 = 6;
11 pub(crate) const EXTENSION: i32 = 7;
12 pub(crate) const OPTIONS: i32 = 8;
13 pub(crate) const SYNTAX: i32 = 12;
14}
15
16pub(crate) mod message {
17 pub(crate) const NAME: i32 = 1;
18 pub(crate) const FIELD: i32 = 2;
19 pub(crate) const EXTENSION: i32 = 6;
20 pub(crate) const NESTED_TYPE: i32 = 3;
21 pub(crate) const ENUM_TYPE: i32 = 4;
22 pub(crate) const EXTENSION_RANGE: i32 = 5;
23 pub(crate) const OPTIONS: i32 = 7;
24 pub(crate) const ONEOF_DECL: i32 = 8;
25 pub(crate) const RESERVED_RANGE: i32 = 9;
26 pub(crate) const RESERVED_NAME: i32 = 10;
27
28 pub(crate) mod extension_range {
29 pub(crate) const START: i32 = 1;
30 pub(crate) const END: i32 = 2;
31 pub(crate) const OPTIONS: i32 = 3;
32 }
33
34 pub(crate) mod reserved_range {
35 pub(crate) const START: i32 = 1;
36 pub(crate) const END: i32 = 2;
37 }
38}
39
40pub(crate) mod field {
41 pub(crate) const NAME: i32 = 1;
42 pub(crate) const EXTENDEE: i32 = 2;
43 pub(crate) const NUMBER: i32 = 3;
44 pub(crate) const LABEL: i32 = 4;
45 pub(crate) const TYPE: i32 = 5;
46 pub(crate) const TYPE_NAME: i32 = 6;
47 pub(crate) const DEFAULT_VALUE: i32 = 7;
48 pub(crate) const JSON_NAME: i32 = 10;
49 pub(crate) const OPTIONS: i32 = 8;
50}
51
52pub(crate) mod oneof {
53 pub(crate) const NAME: i32 = 1;
54 pub(crate) const OPTIONS: i32 = 2;
55}
56
57pub(crate) mod enum_ {
58 pub(crate) const NAME: i32 = 1;
59 pub(crate) const VALUE: i32 = 2;
60 pub(crate) const OPTIONS: i32 = 3;
61 pub(crate) const RESERVED_RANGE: i32 = 4;
62 pub(crate) const RESERVED_NAME: i32 = 5;
63
64 pub(crate) mod reserved_range {
65 pub(crate) const START: i32 = 1;
66 pub(crate) const END: i32 = 2;
67 }
68}
69
70pub(crate) mod enum_value {
71 pub(crate) const NAME: i32 = 1;
72 pub(crate) const NUMBER: i32 = 2;
73 pub(crate) const OPTIONS: i32 = 3;
74}
75
76pub(crate) mod service {
77 pub(crate) const NAME: i32 = 1;
78 pub(crate) const METHOD: i32 = 2;
79 pub(crate) const OPTIONS: i32 = 3;
80}
81
82pub(crate) mod method {
83 pub(crate) const NAME: i32 = 1;
84 pub(crate) const INPUT_TYPE: i32 = 2;
85 pub(crate) const OUTPUT_TYPE: i32 = 3;
86 pub(crate) const OPTIONS: i32 = 4;
87 pub(crate) const CLIENT_STREAMING: i32 = 5;
88 pub(crate) const SERVER_STREAMING: i32 = 6;
89}