prost_reflect/descriptor/
tag.rs

1#![allow(dead_code)]
2
3pub(crate) const UNINTERPRETED_OPTION: i32 = 999;
4
5pub(crate) mod file_descriptor_set {
6    pub(crate) const FILE: i32 = 1;
7}
8
9pub(crate) mod file {
10    pub(crate) const PACKAGE: i32 = 2;
11    pub(crate) const DEPENDENCY: i32 = 3;
12    pub(crate) const PUBLIC_DEPENDENCY: i32 = 10;
13    pub(crate) const WEAK_DEPENDENCY: i32 = 11;
14    pub(crate) const MESSAGE_TYPE: i32 = 4;
15    pub(crate) const ENUM_TYPE: i32 = 5;
16    pub(crate) const SERVICE: i32 = 6;
17    pub(crate) const EXTENSION: i32 = 7;
18    pub(crate) const OPTIONS: i32 = 8;
19    pub(crate) const SYNTAX: i32 = 12;
20
21    pub(crate) mod options {
22        pub(crate) const JAVA_PACKAGE: i32 = 1;
23        pub(crate) const JAVA_OUTER_CLASSNAME: i32 = 8;
24        pub(crate) const JAVA_MULTIPLE_FILES: i32 = 10;
25        pub(crate) const JAVA_GENERATE_EQUALS_AND_HASH: i32 = 20;
26        pub(crate) const JAVA_STRING_CHECK_UTF8: i32 = 27;
27        pub(crate) const OPTIMIZE_FOR: i32 = 9;
28        pub(crate) const GO_PACKAGE: i32 = 11;
29        pub(crate) const CC_GENERIC_SERVICES: i32 = 16;
30        pub(crate) const JAVA_GENERIC_SERVICES: i32 = 17;
31        pub(crate) const PY_GENERIC_SERVICES: i32 = 18;
32        pub(crate) const PHP_GENERIC_SERVICES: i32 = 42;
33        pub(crate) const DEPRECATED: i32 = 23;
34        pub(crate) const CC_ENABLE_ARENAS: i32 = 31;
35        pub(crate) const OBJC_CLASS_PREFIX: i32 = 36;
36        pub(crate) const CSHARP_NAMESPACE: i32 = 37;
37        pub(crate) const SWIFT_PREFIX: i32 = 39;
38        pub(crate) const PHP_CLASS_PREFIX: i32 = 40;
39        pub(crate) const PHP_NAMESPACE: i32 = 41;
40        pub(crate) const PHP_METADATA_NAMESPACE: i32 = 44;
41        pub(crate) const RUBY_PACKAGE: i32 = 45;
42        pub(crate) const FILE_UNINTERPRETED_OPTION: i32 = 999;
43    }
44}
45
46pub(crate) mod message {
47    pub(crate) const NAME: i32 = 1;
48    pub(crate) const FIELD: i32 = 2;
49    pub(crate) const EXTENSION: i32 = 6;
50    pub(crate) const NESTED_TYPE: i32 = 3;
51    pub(crate) const ENUM_TYPE: i32 = 4;
52    pub(crate) const EXTENSION_RANGE: i32 = 5;
53    pub(crate) const OPTIONS: i32 = 7;
54    pub(crate) const ONEOF_DECL: i32 = 8;
55    pub(crate) const RESERVED_RANGE: i32 = 9;
56    pub(crate) const RESERVED_NAME: i32 = 10;
57
58    pub(crate) mod extension_range {
59        pub(crate) const START: i32 = 1;
60        pub(crate) const END: i32 = 2;
61        pub(crate) const OPTIONS: i32 = 3;
62    }
63
64    pub(crate) mod reserved_range {
65        pub(crate) const START: i32 = 1;
66        pub(crate) const END: i32 = 2;
67    }
68
69    pub(crate) mod options {
70        pub(crate) const MESSAGE_SET_WIRE_FORMAT: i32 = 1;
71        pub(crate) const NO_STANDARD_DESCRIPTOR_ACCESSOR: i32 = 2;
72        pub(crate) const DEPRECATED: i32 = 3;
73        pub(crate) const MAP_ENTRY: i32 = 7;
74        pub(crate) const UNINTERPRETED_OPTION: i32 = 999;
75    }
76}
77
78pub(crate) mod field {
79    pub(crate) const NAME: i32 = 1;
80    pub(crate) const EXTENDEE: i32 = 2;
81    pub(crate) const NUMBER: i32 = 3;
82    pub(crate) const LABEL: i32 = 4;
83    pub(crate) const TYPE: i32 = 5;
84    pub(crate) const TYPE_NAME: i32 = 6;
85    pub(crate) const DEFAULT_VALUE: i32 = 7;
86    pub(crate) const JSON_NAME: i32 = 10;
87    pub(crate) const OPTIONS: i32 = 8;
88
89    pub(crate) mod options {
90        pub(crate) const CTYPE: i32 = 1;
91        pub(crate) const PACKED: i32 = 2;
92        pub(crate) const JSTYPE: i32 = 6;
93        pub(crate) const LAZY: i32 = 5;
94        pub(crate) const DEPRECATED: i32 = 3;
95        pub(crate) const WEAK: i32 = 10;
96        pub(crate) const UNINTERPRETED_OPTION: i32 = 999;
97    }
98}
99
100pub(crate) mod oneof {
101    pub(crate) const NAME: i32 = 1;
102    pub(crate) const OPTIONS: i32 = 2;
103}
104
105pub(crate) mod enum_ {
106    pub(crate) const NAME: i32 = 1;
107    pub(crate) const VALUE: i32 = 2;
108    pub(crate) const OPTIONS: i32 = 3;
109    pub(crate) const RESERVED_RANGE: i32 = 4;
110    pub(crate) const RESERVED_NAME: i32 = 5;
111
112    pub(crate) mod reserved_range {
113        pub(crate) const START: i32 = 1;
114        pub(crate) const END: i32 = 2;
115    }
116
117    pub(crate) mod options {
118        pub(crate) const ALLOW_ALIAS: i32 = 2;
119        pub(crate) const DEPRECATED: i32 = 3;
120        pub(crate) const UNINTERPRETED_OPTION: i32 = 999;
121    }
122}
123
124pub(crate) mod enum_value {
125    pub(crate) const NAME: i32 = 1;
126    pub(crate) const NUMBER: i32 = 2;
127    pub(crate) const OPTIONS: i32 = 3;
128
129    pub(crate) mod options {
130        pub(crate) const DEPRECATED: i32 = 1;
131        pub(crate) const UNINTERPRETED_OPTION: i32 = 999;
132    }
133}
134
135pub(crate) mod service {
136    pub(crate) const NAME: i32 = 1;
137    pub(crate) const METHOD: i32 = 2;
138    pub(crate) const OPTIONS: i32 = 3;
139
140    pub(crate) mod options {
141        pub(crate) const DEPRECATED: i32 = 33;
142        pub(crate) const UNINTERPRETED_OPTION: i32 = 999;
143    }
144}
145
146pub(crate) mod method {
147    pub(crate) const NAME: i32 = 1;
148    pub(crate) const INPUT_TYPE: i32 = 2;
149    pub(crate) const OUTPUT_TYPE: i32 = 3;
150    pub(crate) const OPTIONS: i32 = 4;
151    pub(crate) const CLIENT_STREAMING: i32 = 5;
152    pub(crate) const SERVER_STREAMING: i32 = 6;
153
154    pub(crate) mod options {
155        pub(crate) const DEPRECATED: i32 = 33;
156        pub(crate) const IDEMPOTENCY_LEVEL: i32 = 34;
157        pub(crate) const UNINTERPRETED_OPTION: i32 = 999;
158    }
159}