Skip to main content

buffa_descriptor/generated/
google.protobuf.mod.rs

1// @generated by buffa-codegen. DO NOT EDIT.
2
3include!("google.protobuf.descriptor.rs");
4#[allow(
5    non_camel_case_types,
6    dead_code,
7    unused_imports,
8    unused_qualifications,
9    clippy::derivable_impls,
10    clippy::match_single_binding,
11    clippy::uninlined_format_args,
12    clippy::doc_lazy_continuation,
13    clippy::module_inception
14)]
15pub mod __buffa {
16    #[allow(unused_imports)]
17    use super::*;
18    #[cfg(feature = "views")]
19    pub mod view {
20        #[allow(unused_imports)]
21        use super::*;
22        include!("google.protobuf.descriptor.__view.rs");
23    }
24    #[cfg(any(feature = "json", feature = "text"))]
25    /// Register this package's `Any` type entries and extension entries.
26    #[allow(unused_variables)]
27    pub fn register_types(reg: &mut ::buffa::type_registry::TypeRegistry) {
28        #[cfg(feature = "json")]
29        reg.register_json_any(super::__FILE_DESCRIPTOR_SET_JSON_ANY);
30        #[cfg(feature = "json")]
31        reg.register_json_any(super::__FILE_DESCRIPTOR_PROTO_JSON_ANY);
32        #[cfg(feature = "json")]
33        reg.register_json_any(super::__DESCRIPTOR_PROTO_JSON_ANY);
34        #[cfg(feature = "json")]
35        reg.register_json_any(super::descriptor_proto::__EXTENSION_RANGE_JSON_ANY);
36        #[cfg(feature = "json")]
37        reg.register_json_any(super::descriptor_proto::__RESERVED_RANGE_JSON_ANY);
38        #[cfg(feature = "json")]
39        reg.register_json_any(super::__EXTENSION_RANGE_OPTIONS_JSON_ANY);
40        #[cfg(feature = "json")]
41        reg.register_json_any(super::extension_range_options::__DECLARATION_JSON_ANY);
42        #[cfg(feature = "json")]
43        reg.register_json_any(super::__FIELD_DESCRIPTOR_PROTO_JSON_ANY);
44        #[cfg(feature = "json")]
45        reg.register_json_any(super::__ONEOF_DESCRIPTOR_PROTO_JSON_ANY);
46        #[cfg(feature = "json")]
47        reg.register_json_any(super::__ENUM_DESCRIPTOR_PROTO_JSON_ANY);
48        #[cfg(feature = "json")]
49        reg.register_json_any(
50            super::enum_descriptor_proto::__ENUM_RESERVED_RANGE_JSON_ANY,
51        );
52        #[cfg(feature = "json")]
53        reg.register_json_any(super::__ENUM_VALUE_DESCRIPTOR_PROTO_JSON_ANY);
54        #[cfg(feature = "json")]
55        reg.register_json_any(super::__SERVICE_DESCRIPTOR_PROTO_JSON_ANY);
56        #[cfg(feature = "json")]
57        reg.register_json_any(super::__METHOD_DESCRIPTOR_PROTO_JSON_ANY);
58        #[cfg(feature = "json")] reg.register_json_any(super::__FILE_OPTIONS_JSON_ANY);
59        #[cfg(feature = "json")]
60        reg.register_json_any(super::__MESSAGE_OPTIONS_JSON_ANY);
61        #[cfg(feature = "json")] reg.register_json_any(super::__FIELD_OPTIONS_JSON_ANY);
62        #[cfg(feature = "json")]
63        reg.register_json_any(super::field_options::__EDITION_DEFAULT_JSON_ANY);
64        #[cfg(feature = "json")]
65        reg.register_json_any(super::field_options::__FEATURE_SUPPORT_JSON_ANY);
66        #[cfg(feature = "json")] reg.register_json_any(super::__ONEOF_OPTIONS_JSON_ANY);
67        #[cfg(feature = "json")] reg.register_json_any(super::__ENUM_OPTIONS_JSON_ANY);
68        #[cfg(feature = "json")]
69        reg.register_json_any(super::__ENUM_VALUE_OPTIONS_JSON_ANY);
70        #[cfg(feature = "json")]
71        reg.register_json_any(super::__SERVICE_OPTIONS_JSON_ANY);
72        #[cfg(feature = "json")] reg.register_json_any(super::__METHOD_OPTIONS_JSON_ANY);
73        #[cfg(feature = "json")]
74        reg.register_json_any(super::__UNINTERPRETED_OPTION_JSON_ANY);
75        #[cfg(feature = "json")]
76        reg.register_json_any(super::uninterpreted_option::__NAME_PART_JSON_ANY);
77        #[cfg(feature = "json")] reg.register_json_any(super::__FEATURE_SET_JSON_ANY);
78        #[cfg(feature = "json")]
79        reg.register_json_any(super::feature_set::__VISIBILITY_FEATURE_JSON_ANY);
80        #[cfg(feature = "json")]
81        reg.register_json_any(super::__FEATURE_SET_DEFAULTS_JSON_ANY);
82        #[cfg(feature = "json")]
83        reg.register_json_any(
84            super::feature_set_defaults::__FEATURE_SET_EDITION_DEFAULT_JSON_ANY,
85        );
86        #[cfg(feature = "json")]
87        reg.register_json_any(super::__SOURCE_CODE_INFO_JSON_ANY);
88        #[cfg(feature = "json")]
89        reg.register_json_any(super::source_code_info::__LOCATION_JSON_ANY);
90        #[cfg(feature = "json")]
91        reg.register_json_any(super::__GENERATED_CODE_INFO_JSON_ANY);
92        #[cfg(feature = "json")]
93        reg.register_json_any(super::generated_code_info::__ANNOTATION_JSON_ANY);
94        #[cfg(feature = "text")]
95        reg.register_text_any(super::__FILE_DESCRIPTOR_SET_TEXT_ANY);
96        #[cfg(feature = "text")]
97        reg.register_text_any(super::__FILE_DESCRIPTOR_PROTO_TEXT_ANY);
98        #[cfg(feature = "text")]
99        reg.register_text_any(super::__DESCRIPTOR_PROTO_TEXT_ANY);
100        #[cfg(feature = "text")]
101        reg.register_text_any(super::descriptor_proto::__EXTENSION_RANGE_TEXT_ANY);
102        #[cfg(feature = "text")]
103        reg.register_text_any(super::descriptor_proto::__RESERVED_RANGE_TEXT_ANY);
104        #[cfg(feature = "text")]
105        reg.register_text_any(super::__EXTENSION_RANGE_OPTIONS_TEXT_ANY);
106        #[cfg(feature = "text")]
107        reg.register_text_any(super::extension_range_options::__DECLARATION_TEXT_ANY);
108        #[cfg(feature = "text")]
109        reg.register_text_any(super::__FIELD_DESCRIPTOR_PROTO_TEXT_ANY);
110        #[cfg(feature = "text")]
111        reg.register_text_any(super::__ONEOF_DESCRIPTOR_PROTO_TEXT_ANY);
112        #[cfg(feature = "text")]
113        reg.register_text_any(super::__ENUM_DESCRIPTOR_PROTO_TEXT_ANY);
114        #[cfg(feature = "text")]
115        reg.register_text_any(
116            super::enum_descriptor_proto::__ENUM_RESERVED_RANGE_TEXT_ANY,
117        );
118        #[cfg(feature = "text")]
119        reg.register_text_any(super::__ENUM_VALUE_DESCRIPTOR_PROTO_TEXT_ANY);
120        #[cfg(feature = "text")]
121        reg.register_text_any(super::__SERVICE_DESCRIPTOR_PROTO_TEXT_ANY);
122        #[cfg(feature = "text")]
123        reg.register_text_any(super::__METHOD_DESCRIPTOR_PROTO_TEXT_ANY);
124        #[cfg(feature = "text")] reg.register_text_any(super::__FILE_OPTIONS_TEXT_ANY);
125        #[cfg(feature = "text")]
126        reg.register_text_any(super::__MESSAGE_OPTIONS_TEXT_ANY);
127        #[cfg(feature = "text")] reg.register_text_any(super::__FIELD_OPTIONS_TEXT_ANY);
128        #[cfg(feature = "text")]
129        reg.register_text_any(super::field_options::__EDITION_DEFAULT_TEXT_ANY);
130        #[cfg(feature = "text")]
131        reg.register_text_any(super::field_options::__FEATURE_SUPPORT_TEXT_ANY);
132        #[cfg(feature = "text")] reg.register_text_any(super::__ONEOF_OPTIONS_TEXT_ANY);
133        #[cfg(feature = "text")] reg.register_text_any(super::__ENUM_OPTIONS_TEXT_ANY);
134        #[cfg(feature = "text")]
135        reg.register_text_any(super::__ENUM_VALUE_OPTIONS_TEXT_ANY);
136        #[cfg(feature = "text")]
137        reg.register_text_any(super::__SERVICE_OPTIONS_TEXT_ANY);
138        #[cfg(feature = "text")] reg.register_text_any(super::__METHOD_OPTIONS_TEXT_ANY);
139        #[cfg(feature = "text")]
140        reg.register_text_any(super::__UNINTERPRETED_OPTION_TEXT_ANY);
141        #[cfg(feature = "text")]
142        reg.register_text_any(super::uninterpreted_option::__NAME_PART_TEXT_ANY);
143        #[cfg(feature = "text")] reg.register_text_any(super::__FEATURE_SET_TEXT_ANY);
144        #[cfg(feature = "text")]
145        reg.register_text_any(super::feature_set::__VISIBILITY_FEATURE_TEXT_ANY);
146        #[cfg(feature = "text")]
147        reg.register_text_any(super::__FEATURE_SET_DEFAULTS_TEXT_ANY);
148        #[cfg(feature = "text")]
149        reg.register_text_any(
150            super::feature_set_defaults::__FEATURE_SET_EDITION_DEFAULT_TEXT_ANY,
151        );
152        #[cfg(feature = "text")]
153        reg.register_text_any(super::__SOURCE_CODE_INFO_TEXT_ANY);
154        #[cfg(feature = "text")]
155        reg.register_text_any(super::source_code_info::__LOCATION_TEXT_ANY);
156        #[cfg(feature = "text")]
157        reg.register_text_any(super::__GENERATED_CODE_INFO_TEXT_ANY);
158        #[cfg(feature = "text")]
159        reg.register_text_any(super::generated_code_info::__ANNOTATION_TEXT_ANY);
160    }
161}
162#[cfg(feature = "views")]
163#[doc(inline)]
164pub use self::__buffa::view::FileDescriptorSetView;
165#[cfg(feature = "views")]
166#[doc(inline)]
167pub use self::__buffa::view::FileDescriptorSetOwnedView;
168#[cfg(feature = "views")]
169#[doc(inline)]
170pub use self::__buffa::view::FileDescriptorProtoView;
171#[cfg(feature = "views")]
172#[doc(inline)]
173pub use self::__buffa::view::FileDescriptorProtoOwnedView;
174#[cfg(feature = "views")]
175#[doc(inline)]
176pub use self::__buffa::view::DescriptorProtoView;
177#[cfg(feature = "views")]
178#[doc(inline)]
179pub use self::__buffa::view::DescriptorProtoOwnedView;
180#[cfg(feature = "views")]
181#[doc(inline)]
182pub use self::__buffa::view::ExtensionRangeOptionsView;
183#[cfg(feature = "views")]
184#[doc(inline)]
185pub use self::__buffa::view::ExtensionRangeOptionsOwnedView;
186#[cfg(feature = "views")]
187#[doc(inline)]
188pub use self::__buffa::view::FieldDescriptorProtoView;
189#[cfg(feature = "views")]
190#[doc(inline)]
191pub use self::__buffa::view::FieldDescriptorProtoOwnedView;
192#[cfg(feature = "views")]
193#[doc(inline)]
194pub use self::__buffa::view::OneofDescriptorProtoView;
195#[cfg(feature = "views")]
196#[doc(inline)]
197pub use self::__buffa::view::OneofDescriptorProtoOwnedView;
198#[cfg(feature = "views")]
199#[doc(inline)]
200pub use self::__buffa::view::EnumDescriptorProtoView;
201#[cfg(feature = "views")]
202#[doc(inline)]
203pub use self::__buffa::view::EnumDescriptorProtoOwnedView;
204#[cfg(feature = "views")]
205#[doc(inline)]
206pub use self::__buffa::view::EnumValueDescriptorProtoView;
207#[cfg(feature = "views")]
208#[doc(inline)]
209pub use self::__buffa::view::EnumValueDescriptorProtoOwnedView;
210#[cfg(feature = "views")]
211#[doc(inline)]
212pub use self::__buffa::view::ServiceDescriptorProtoView;
213#[cfg(feature = "views")]
214#[doc(inline)]
215pub use self::__buffa::view::ServiceDescriptorProtoOwnedView;
216#[cfg(feature = "views")]
217#[doc(inline)]
218pub use self::__buffa::view::MethodDescriptorProtoView;
219#[cfg(feature = "views")]
220#[doc(inline)]
221pub use self::__buffa::view::MethodDescriptorProtoOwnedView;
222#[cfg(feature = "views")]
223#[doc(inline)]
224pub use self::__buffa::view::FileOptionsView;
225#[cfg(feature = "views")]
226#[doc(inline)]
227pub use self::__buffa::view::FileOptionsOwnedView;
228#[cfg(feature = "views")]
229#[doc(inline)]
230pub use self::__buffa::view::MessageOptionsView;
231#[cfg(feature = "views")]
232#[doc(inline)]
233pub use self::__buffa::view::MessageOptionsOwnedView;
234#[cfg(feature = "views")]
235#[doc(inline)]
236pub use self::__buffa::view::FieldOptionsView;
237#[cfg(feature = "views")]
238#[doc(inline)]
239pub use self::__buffa::view::FieldOptionsOwnedView;
240#[cfg(feature = "views")]
241#[doc(inline)]
242pub use self::__buffa::view::OneofOptionsView;
243#[cfg(feature = "views")]
244#[doc(inline)]
245pub use self::__buffa::view::OneofOptionsOwnedView;
246#[cfg(feature = "views")]
247#[doc(inline)]
248pub use self::__buffa::view::EnumOptionsView;
249#[cfg(feature = "views")]
250#[doc(inline)]
251pub use self::__buffa::view::EnumOptionsOwnedView;
252#[cfg(feature = "views")]
253#[doc(inline)]
254pub use self::__buffa::view::EnumValueOptionsView;
255#[cfg(feature = "views")]
256#[doc(inline)]
257pub use self::__buffa::view::EnumValueOptionsOwnedView;
258#[cfg(feature = "views")]
259#[doc(inline)]
260pub use self::__buffa::view::ServiceOptionsView;
261#[cfg(feature = "views")]
262#[doc(inline)]
263pub use self::__buffa::view::ServiceOptionsOwnedView;
264#[cfg(feature = "views")]
265#[doc(inline)]
266pub use self::__buffa::view::MethodOptionsView;
267#[cfg(feature = "views")]
268#[doc(inline)]
269pub use self::__buffa::view::MethodOptionsOwnedView;
270#[cfg(feature = "views")]
271#[doc(inline)]
272pub use self::__buffa::view::UninterpretedOptionView;
273#[cfg(feature = "views")]
274#[doc(inline)]
275pub use self::__buffa::view::UninterpretedOptionOwnedView;
276#[cfg(feature = "views")]
277#[doc(inline)]
278pub use self::__buffa::view::FeatureSetView;
279#[cfg(feature = "views")]
280#[doc(inline)]
281pub use self::__buffa::view::FeatureSetOwnedView;
282#[cfg(feature = "views")]
283#[doc(inline)]
284pub use self::__buffa::view::FeatureSetDefaultsView;
285#[cfg(feature = "views")]
286#[doc(inline)]
287pub use self::__buffa::view::FeatureSetDefaultsOwnedView;
288#[cfg(feature = "views")]
289#[doc(inline)]
290pub use self::__buffa::view::SourceCodeInfoView;
291#[cfg(feature = "views")]
292#[doc(inline)]
293pub use self::__buffa::view::SourceCodeInfoOwnedView;
294#[cfg(feature = "views")]
295#[doc(inline)]
296pub use self::__buffa::view::GeneratedCodeInfoView;
297#[cfg(feature = "views")]
298#[doc(inline)]
299pub use self::__buffa::view::GeneratedCodeInfoOwnedView;
300#[cfg(any(feature = "json", feature = "text"))]
301#[doc(inline)]
302pub use self::__buffa::register_types;