/rust/registry/src/index.crates.io-1949cf8c6b5b557f/protobuf-3.2.0/src/descriptor.rs
Line | Count | Source |
1 | | // This file is generated by rust-protobuf 3.0.0-pre. Do not edit |
2 | | // .proto file is parsed by protoc --rust-out=... |
3 | | // @generated |
4 | | |
5 | | // https://github.com/rust-lang/rust-clippy/issues/702 |
6 | | #![allow(unknown_lints)] |
7 | | #![allow(clippy::all)] |
8 | | |
9 | | #![allow(unused_attributes)] |
10 | | #![cfg_attr(rustfmt, rustfmt::skip)] |
11 | | |
12 | | #![allow(box_pointers)] |
13 | | #![allow(dead_code)] |
14 | | #![allow(missing_docs)] |
15 | | #![allow(non_camel_case_types)] |
16 | | #![allow(non_snake_case)] |
17 | | #![allow(non_upper_case_globals)] |
18 | | #![allow(trivial_casts)] |
19 | | #![allow(unused_results)] |
20 | | #![allow(unused_mut)] |
21 | | |
22 | | //! Generated file from `google/protobuf/descriptor.proto` |
23 | | |
24 | | /// The protocol compiler can output a FileDescriptorSet containing the .proto |
25 | | /// files it parses. |
26 | | #[derive(PartialEq,Clone,Default,Debug)] |
27 | | // @@protoc_insertion_point(message:google.protobuf.FileDescriptorSet) |
28 | | pub struct FileDescriptorSet { |
29 | | // message fields |
30 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorSet.file) |
31 | | pub file: ::std::vec::Vec<FileDescriptorProto>, |
32 | | // special fields |
33 | | // @@protoc_insertion_point(special_field:google.protobuf.FileDescriptorSet.special_fields) |
34 | | pub special_fields: crate::SpecialFields, |
35 | | } |
36 | | |
37 | | impl<'a> ::std::default::Default for &'a FileDescriptorSet { |
38 | 0 | fn default() -> &'a FileDescriptorSet { |
39 | 0 | <FileDescriptorSet as crate::Message>::default_instance() |
40 | 0 | } |
41 | | } |
42 | | |
43 | | impl FileDescriptorSet { |
44 | 0 | pub fn new() -> FileDescriptorSet { |
45 | 0 | ::std::default::Default::default() |
46 | 0 | } |
47 | | |
48 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
49 | 0 | let mut fields = ::std::vec::Vec::with_capacity(1); |
50 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
51 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
52 | | "file", |
53 | 0 | |m: &FileDescriptorSet| { &m.file }, |
54 | 0 | |m: &mut FileDescriptorSet| { &mut m.file }, |
55 | | )); |
56 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<FileDescriptorSet>( |
57 | | "FileDescriptorSet", |
58 | 0 | fields, |
59 | 0 | oneofs, |
60 | | ) |
61 | 0 | } |
62 | | } |
63 | | |
64 | | impl crate::Message for FileDescriptorSet { |
65 | | const NAME: &'static str = "FileDescriptorSet"; |
66 | | |
67 | 0 | fn is_initialized(&self) -> bool { |
68 | 0 | for v in &self.file { |
69 | 0 | if !v.is_initialized() { |
70 | 0 | return false; |
71 | 0 | } |
72 | | }; |
73 | 0 | true |
74 | 0 | } |
75 | | |
76 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
77 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
78 | 0 | match tag { |
79 | | 10 => { |
80 | 0 | self.file.push(is.read_message()?); |
81 | | }, |
82 | 0 | tag => { |
83 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
84 | | }, |
85 | | }; |
86 | | } |
87 | 0 | ::std::result::Result::Ok(()) |
88 | 0 | } |
89 | | |
90 | | // Compute sizes of nested messages |
91 | | #[allow(unused_variables)] |
92 | 0 | fn compute_size(&self) -> u64 { |
93 | 0 | let mut my_size = 0; |
94 | 0 | for value in &self.file { |
95 | 0 | let len = value.compute_size(); |
96 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
97 | 0 | }; |
98 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
99 | 0 | self.special_fields.cached_size().set(my_size as u32); |
100 | 0 | my_size |
101 | 0 | } |
102 | | |
103 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
104 | 0 | for v in &self.file { |
105 | 0 | crate::rt::write_message_field_with_cached_size(1, v, os)?; |
106 | | }; |
107 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
108 | 0 | ::std::result::Result::Ok(()) |
109 | 0 | } |
110 | | |
111 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
112 | 0 | &self.special_fields |
113 | 0 | } |
114 | | |
115 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
116 | 0 | &mut self.special_fields |
117 | 0 | } |
118 | | |
119 | 0 | fn new() -> FileDescriptorSet { |
120 | 0 | FileDescriptorSet::new() |
121 | 0 | } |
122 | | |
123 | 0 | fn clear(&mut self) { |
124 | 0 | self.file.clear(); |
125 | 0 | self.special_fields.clear(); |
126 | 0 | } |
127 | | |
128 | 0 | fn default_instance() -> &'static FileDescriptorSet { |
129 | | static instance: FileDescriptorSet = FileDescriptorSet { |
130 | | file: ::std::vec::Vec::new(), |
131 | | special_fields: crate::SpecialFields::new(), |
132 | | }; |
133 | 0 | &instance |
134 | 0 | } |
135 | | } |
136 | | |
137 | | impl crate::MessageFull for FileDescriptorSet { |
138 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
139 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
140 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("FileDescriptorSet").unwrap()).clone() |
141 | 0 | } |
142 | | } |
143 | | |
144 | | impl ::std::fmt::Display for FileDescriptorSet { |
145 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
146 | 0 | crate::text_format::fmt(self, f) |
147 | 0 | } |
148 | | } |
149 | | |
150 | | impl crate::reflect::ProtobufValue for FileDescriptorSet { |
151 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
152 | | } |
153 | | |
154 | | /// Describes a complete .proto file. |
155 | | #[derive(PartialEq,Clone,Default,Debug)] |
156 | | // @@protoc_insertion_point(message:google.protobuf.FileDescriptorProto) |
157 | | pub struct FileDescriptorProto { |
158 | | // message fields |
159 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.name) |
160 | | pub name: ::std::option::Option<::std::string::String>, |
161 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.package) |
162 | | pub package: ::std::option::Option<::std::string::String>, |
163 | | /// Names of files imported by this file. |
164 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.dependency) |
165 | | pub dependency: ::std::vec::Vec<::std::string::String>, |
166 | | /// Indexes of the public imported files in the dependency list above. |
167 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.public_dependency) |
168 | | pub public_dependency: ::std::vec::Vec<i32>, |
169 | | /// Indexes of the weak imported files in the dependency list. |
170 | | /// For Google-internal migration only. Do not use. |
171 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.weak_dependency) |
172 | | pub weak_dependency: ::std::vec::Vec<i32>, |
173 | | /// All top-level definitions in this file. |
174 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.message_type) |
175 | | pub message_type: ::std::vec::Vec<DescriptorProto>, |
176 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.enum_type) |
177 | | pub enum_type: ::std::vec::Vec<EnumDescriptorProto>, |
178 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.service) |
179 | | pub service: ::std::vec::Vec<ServiceDescriptorProto>, |
180 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.extension) |
181 | | pub extension: ::std::vec::Vec<FieldDescriptorProto>, |
182 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.options) |
183 | | pub options: crate::MessageField<FileOptions>, |
184 | | /// This field contains optional information about the original source code. |
185 | | /// You may safely remove this entire field without harming runtime |
186 | | /// functionality of the descriptors -- the information is needed only by |
187 | | /// development tools. |
188 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.source_code_info) |
189 | | pub source_code_info: crate::MessageField<SourceCodeInfo>, |
190 | | /// The syntax of the proto file. |
191 | | /// The supported values are "proto2" and "proto3". |
192 | | // @@protoc_insertion_point(field:google.protobuf.FileDescriptorProto.syntax) |
193 | | pub syntax: ::std::option::Option<::std::string::String>, |
194 | | // special fields |
195 | | // @@protoc_insertion_point(special_field:google.protobuf.FileDescriptorProto.special_fields) |
196 | | pub special_fields: crate::SpecialFields, |
197 | | } |
198 | | |
199 | | impl<'a> ::std::default::Default for &'a FileDescriptorProto { |
200 | 0 | fn default() -> &'a FileDescriptorProto { |
201 | 0 | <FileDescriptorProto as crate::Message>::default_instance() |
202 | 0 | } |
203 | | } |
204 | | |
205 | | impl FileDescriptorProto { |
206 | 0 | pub fn new() -> FileDescriptorProto { |
207 | 0 | ::std::default::Default::default() |
208 | 0 | } |
209 | | |
210 | | // optional string name = 1; |
211 | | |
212 | 0 | pub fn name(&self) -> &str { |
213 | 0 | match self.name.as_ref() { |
214 | 0 | Some(v) => v, |
215 | 0 | None => "", |
216 | | } |
217 | 0 | } |
218 | | |
219 | 0 | pub fn clear_name(&mut self) { |
220 | 0 | self.name = ::std::option::Option::None; |
221 | 0 | } |
222 | | |
223 | 0 | pub fn has_name(&self) -> bool { |
224 | 0 | self.name.is_some() |
225 | 0 | } |
226 | | |
227 | | // Param is passed by value, moved |
228 | 0 | pub fn set_name(&mut self, v: ::std::string::String) { |
229 | 0 | self.name = ::std::option::Option::Some(v); |
230 | 0 | } |
231 | | |
232 | | // Mutable pointer to the field. |
233 | | // If field is not initialized, it is initialized with default value first. |
234 | 0 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
235 | 0 | if self.name.is_none() { |
236 | 0 | self.name = ::std::option::Option::Some(::std::string::String::new()); |
237 | 0 | } |
238 | 0 | self.name.as_mut().unwrap() |
239 | 0 | } |
240 | | |
241 | | // Take field |
242 | 0 | pub fn take_name(&mut self) -> ::std::string::String { |
243 | 0 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
244 | 0 | } |
245 | | |
246 | | // optional string package = 2; |
247 | | |
248 | 0 | pub fn package(&self) -> &str { |
249 | 0 | match self.package.as_ref() { |
250 | 0 | Some(v) => v, |
251 | 0 | None => "", |
252 | | } |
253 | 0 | } |
254 | | |
255 | 0 | pub fn clear_package(&mut self) { |
256 | 0 | self.package = ::std::option::Option::None; |
257 | 0 | } |
258 | | |
259 | 0 | pub fn has_package(&self) -> bool { |
260 | 0 | self.package.is_some() |
261 | 0 | } |
262 | | |
263 | | // Param is passed by value, moved |
264 | 0 | pub fn set_package(&mut self, v: ::std::string::String) { |
265 | 0 | self.package = ::std::option::Option::Some(v); |
266 | 0 | } |
267 | | |
268 | | // Mutable pointer to the field. |
269 | | // If field is not initialized, it is initialized with default value first. |
270 | 0 | pub fn mut_package(&mut self) -> &mut ::std::string::String { |
271 | 0 | if self.package.is_none() { |
272 | 0 | self.package = ::std::option::Option::Some(::std::string::String::new()); |
273 | 0 | } |
274 | 0 | self.package.as_mut().unwrap() |
275 | 0 | } |
276 | | |
277 | | // Take field |
278 | 0 | pub fn take_package(&mut self) -> ::std::string::String { |
279 | 0 | self.package.take().unwrap_or_else(|| ::std::string::String::new()) |
280 | 0 | } |
281 | | |
282 | | // optional string syntax = 12; |
283 | | |
284 | 0 | pub fn syntax(&self) -> &str { |
285 | 0 | match self.syntax.as_ref() { |
286 | 0 | Some(v) => v, |
287 | 0 | None => "", |
288 | | } |
289 | 0 | } |
290 | | |
291 | 0 | pub fn clear_syntax(&mut self) { |
292 | 0 | self.syntax = ::std::option::Option::None; |
293 | 0 | } |
294 | | |
295 | 0 | pub fn has_syntax(&self) -> bool { |
296 | 0 | self.syntax.is_some() |
297 | 0 | } |
298 | | |
299 | | // Param is passed by value, moved |
300 | 0 | pub fn set_syntax(&mut self, v: ::std::string::String) { |
301 | 0 | self.syntax = ::std::option::Option::Some(v); |
302 | 0 | } |
303 | | |
304 | | // Mutable pointer to the field. |
305 | | // If field is not initialized, it is initialized with default value first. |
306 | 0 | pub fn mut_syntax(&mut self) -> &mut ::std::string::String { |
307 | 0 | if self.syntax.is_none() { |
308 | 0 | self.syntax = ::std::option::Option::Some(::std::string::String::new()); |
309 | 0 | } |
310 | 0 | self.syntax.as_mut().unwrap() |
311 | 0 | } |
312 | | |
313 | | // Take field |
314 | 0 | pub fn take_syntax(&mut self) -> ::std::string::String { |
315 | 0 | self.syntax.take().unwrap_or_else(|| ::std::string::String::new()) |
316 | 0 | } |
317 | | |
318 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
319 | 0 | let mut fields = ::std::vec::Vec::with_capacity(12); |
320 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
321 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
322 | | "name", |
323 | 0 | |m: &FileDescriptorProto| { &m.name }, |
324 | 0 | |m: &mut FileDescriptorProto| { &mut m.name }, |
325 | | )); |
326 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
327 | | "package", |
328 | 0 | |m: &FileDescriptorProto| { &m.package }, |
329 | 0 | |m: &mut FileDescriptorProto| { &mut m.package }, |
330 | | )); |
331 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
332 | | "dependency", |
333 | 0 | |m: &FileDescriptorProto| { &m.dependency }, |
334 | 0 | |m: &mut FileDescriptorProto| { &mut m.dependency }, |
335 | | )); |
336 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
337 | | "public_dependency", |
338 | 0 | |m: &FileDescriptorProto| { &m.public_dependency }, |
339 | 0 | |m: &mut FileDescriptorProto| { &mut m.public_dependency }, |
340 | | )); |
341 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
342 | | "weak_dependency", |
343 | 0 | |m: &FileDescriptorProto| { &m.weak_dependency }, |
344 | 0 | |m: &mut FileDescriptorProto| { &mut m.weak_dependency }, |
345 | | )); |
346 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
347 | | "message_type", |
348 | 0 | |m: &FileDescriptorProto| { &m.message_type }, |
349 | 0 | |m: &mut FileDescriptorProto| { &mut m.message_type }, |
350 | | )); |
351 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
352 | | "enum_type", |
353 | 0 | |m: &FileDescriptorProto| { &m.enum_type }, |
354 | 0 | |m: &mut FileDescriptorProto| { &mut m.enum_type }, |
355 | | )); |
356 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
357 | | "service", |
358 | 0 | |m: &FileDescriptorProto| { &m.service }, |
359 | 0 | |m: &mut FileDescriptorProto| { &mut m.service }, |
360 | | )); |
361 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
362 | | "extension", |
363 | 0 | |m: &FileDescriptorProto| { &m.extension }, |
364 | 0 | |m: &mut FileDescriptorProto| { &mut m.extension }, |
365 | | )); |
366 | 0 | fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, FileOptions>( |
367 | | "options", |
368 | 0 | |m: &FileDescriptorProto| { &m.options }, |
369 | 0 | |m: &mut FileDescriptorProto| { &mut m.options }, |
370 | | )); |
371 | 0 | fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, SourceCodeInfo>( |
372 | | "source_code_info", |
373 | 0 | |m: &FileDescriptorProto| { &m.source_code_info }, |
374 | 0 | |m: &mut FileDescriptorProto| { &mut m.source_code_info }, |
375 | | )); |
376 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
377 | | "syntax", |
378 | 0 | |m: &FileDescriptorProto| { &m.syntax }, |
379 | 0 | |m: &mut FileDescriptorProto| { &mut m.syntax }, |
380 | | )); |
381 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<FileDescriptorProto>( |
382 | | "FileDescriptorProto", |
383 | 0 | fields, |
384 | 0 | oneofs, |
385 | | ) |
386 | 0 | } |
387 | | } |
388 | | |
389 | | impl crate::Message for FileDescriptorProto { |
390 | | const NAME: &'static str = "FileDescriptorProto"; |
391 | | |
392 | 0 | fn is_initialized(&self) -> bool { |
393 | 0 | for v in &self.message_type { |
394 | 0 | if !v.is_initialized() { |
395 | 0 | return false; |
396 | 0 | } |
397 | | }; |
398 | 0 | for v in &self.enum_type { |
399 | 0 | if !v.is_initialized() { |
400 | 0 | return false; |
401 | 0 | } |
402 | | }; |
403 | 0 | for v in &self.service { |
404 | 0 | if !v.is_initialized() { |
405 | 0 | return false; |
406 | 0 | } |
407 | | }; |
408 | 0 | for v in &self.extension { |
409 | 0 | if !v.is_initialized() { |
410 | 0 | return false; |
411 | 0 | } |
412 | | }; |
413 | 0 | for v in &self.options { |
414 | 0 | if !v.is_initialized() { |
415 | 0 | return false; |
416 | 0 | } |
417 | | }; |
418 | 0 | for v in &self.source_code_info { |
419 | 0 | if !v.is_initialized() { |
420 | 0 | return false; |
421 | 0 | } |
422 | | }; |
423 | 0 | true |
424 | 0 | } |
425 | | |
426 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
427 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
428 | 0 | match tag { |
429 | | 10 => { |
430 | 0 | self.name = ::std::option::Option::Some(is.read_string()?); |
431 | | }, |
432 | | 18 => { |
433 | 0 | self.package = ::std::option::Option::Some(is.read_string()?); |
434 | | }, |
435 | | 26 => { |
436 | 0 | self.dependency.push(is.read_string()?); |
437 | | }, |
438 | | 82 => { |
439 | 0 | is.read_repeated_packed_int32_into(&mut self.public_dependency)?; |
440 | | }, |
441 | | 80 => { |
442 | 0 | self.public_dependency.push(is.read_int32()?); |
443 | | }, |
444 | | 90 => { |
445 | 0 | is.read_repeated_packed_int32_into(&mut self.weak_dependency)?; |
446 | | }, |
447 | | 88 => { |
448 | 0 | self.weak_dependency.push(is.read_int32()?); |
449 | | }, |
450 | | 34 => { |
451 | 0 | self.message_type.push(is.read_message()?); |
452 | | }, |
453 | | 42 => { |
454 | 0 | self.enum_type.push(is.read_message()?); |
455 | | }, |
456 | | 50 => { |
457 | 0 | self.service.push(is.read_message()?); |
458 | | }, |
459 | | 58 => { |
460 | 0 | self.extension.push(is.read_message()?); |
461 | | }, |
462 | | 66 => { |
463 | 0 | crate::rt::read_singular_message_into_field(is, &mut self.options)?; |
464 | | }, |
465 | | 74 => { |
466 | 0 | crate::rt::read_singular_message_into_field(is, &mut self.source_code_info)?; |
467 | | }, |
468 | | 98 => { |
469 | 0 | self.syntax = ::std::option::Option::Some(is.read_string()?); |
470 | | }, |
471 | 0 | tag => { |
472 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
473 | | }, |
474 | | }; |
475 | | } |
476 | 0 | ::std::result::Result::Ok(()) |
477 | 0 | } |
478 | | |
479 | | // Compute sizes of nested messages |
480 | | #[allow(unused_variables)] |
481 | 0 | fn compute_size(&self) -> u64 { |
482 | 0 | let mut my_size = 0; |
483 | 0 | if let Some(v) = self.name.as_ref() { |
484 | 0 | my_size += crate::rt::string_size(1, &v); |
485 | 0 | } |
486 | 0 | if let Some(v) = self.package.as_ref() { |
487 | 0 | my_size += crate::rt::string_size(2, &v); |
488 | 0 | } |
489 | 0 | for value in &self.dependency { |
490 | 0 | my_size += crate::rt::string_size(3, &value); |
491 | 0 | }; |
492 | 0 | for value in &self.public_dependency { |
493 | 0 | my_size += crate::rt::int32_size(10, *value); |
494 | 0 | }; |
495 | 0 | for value in &self.weak_dependency { |
496 | 0 | my_size += crate::rt::int32_size(11, *value); |
497 | 0 | }; |
498 | 0 | for value in &self.message_type { |
499 | 0 | let len = value.compute_size(); |
500 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
501 | 0 | }; |
502 | 0 | for value in &self.enum_type { |
503 | 0 | let len = value.compute_size(); |
504 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
505 | 0 | }; |
506 | 0 | for value in &self.service { |
507 | 0 | let len = value.compute_size(); |
508 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
509 | 0 | }; |
510 | 0 | for value in &self.extension { |
511 | 0 | let len = value.compute_size(); |
512 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
513 | 0 | }; |
514 | 0 | if let Some(v) = self.options.as_ref() { |
515 | 0 | let len = v.compute_size(); |
516 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
517 | 0 | } |
518 | 0 | if let Some(v) = self.source_code_info.as_ref() { |
519 | 0 | let len = v.compute_size(); |
520 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
521 | 0 | } |
522 | 0 | if let Some(v) = self.syntax.as_ref() { |
523 | 0 | my_size += crate::rt::string_size(12, &v); |
524 | 0 | } |
525 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
526 | 0 | self.special_fields.cached_size().set(my_size as u32); |
527 | 0 | my_size |
528 | 0 | } |
529 | | |
530 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
531 | 0 | if let Some(v) = self.name.as_ref() { |
532 | 0 | os.write_string(1, v)?; |
533 | 0 | } |
534 | 0 | if let Some(v) = self.package.as_ref() { |
535 | 0 | os.write_string(2, v)?; |
536 | 0 | } |
537 | 0 | for v in &self.dependency { |
538 | 0 | os.write_string(3, &v)?; |
539 | | }; |
540 | 0 | for v in &self.public_dependency { |
541 | 0 | os.write_int32(10, *v)?; |
542 | | }; |
543 | 0 | for v in &self.weak_dependency { |
544 | 0 | os.write_int32(11, *v)?; |
545 | | }; |
546 | 0 | for v in &self.message_type { |
547 | 0 | crate::rt::write_message_field_with_cached_size(4, v, os)?; |
548 | | }; |
549 | 0 | for v in &self.enum_type { |
550 | 0 | crate::rt::write_message_field_with_cached_size(5, v, os)?; |
551 | | }; |
552 | 0 | for v in &self.service { |
553 | 0 | crate::rt::write_message_field_with_cached_size(6, v, os)?; |
554 | | }; |
555 | 0 | for v in &self.extension { |
556 | 0 | crate::rt::write_message_field_with_cached_size(7, v, os)?; |
557 | | }; |
558 | 0 | if let Some(v) = self.options.as_ref() { |
559 | 0 | crate::rt::write_message_field_with_cached_size(8, v, os)?; |
560 | 0 | } |
561 | 0 | if let Some(v) = self.source_code_info.as_ref() { |
562 | 0 | crate::rt::write_message_field_with_cached_size(9, v, os)?; |
563 | 0 | } |
564 | 0 | if let Some(v) = self.syntax.as_ref() { |
565 | 0 | os.write_string(12, v)?; |
566 | 0 | } |
567 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
568 | 0 | ::std::result::Result::Ok(()) |
569 | 0 | } |
570 | | |
571 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
572 | 0 | &self.special_fields |
573 | 0 | } |
574 | | |
575 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
576 | 0 | &mut self.special_fields |
577 | 0 | } |
578 | | |
579 | 0 | fn new() -> FileDescriptorProto { |
580 | 0 | FileDescriptorProto::new() |
581 | 0 | } |
582 | | |
583 | 0 | fn clear(&mut self) { |
584 | 0 | self.name = ::std::option::Option::None; |
585 | 0 | self.package = ::std::option::Option::None; |
586 | 0 | self.dependency.clear(); |
587 | 0 | self.public_dependency.clear(); |
588 | 0 | self.weak_dependency.clear(); |
589 | 0 | self.message_type.clear(); |
590 | 0 | self.enum_type.clear(); |
591 | 0 | self.service.clear(); |
592 | 0 | self.extension.clear(); |
593 | 0 | self.options.clear(); |
594 | 0 | self.source_code_info.clear(); |
595 | 0 | self.syntax = ::std::option::Option::None; |
596 | 0 | self.special_fields.clear(); |
597 | 0 | } |
598 | | |
599 | 0 | fn default_instance() -> &'static FileDescriptorProto { |
600 | | static instance: FileDescriptorProto = FileDescriptorProto { |
601 | | name: ::std::option::Option::None, |
602 | | package: ::std::option::Option::None, |
603 | | dependency: ::std::vec::Vec::new(), |
604 | | public_dependency: ::std::vec::Vec::new(), |
605 | | weak_dependency: ::std::vec::Vec::new(), |
606 | | message_type: ::std::vec::Vec::new(), |
607 | | enum_type: ::std::vec::Vec::new(), |
608 | | service: ::std::vec::Vec::new(), |
609 | | extension: ::std::vec::Vec::new(), |
610 | | options: crate::MessageField::none(), |
611 | | source_code_info: crate::MessageField::none(), |
612 | | syntax: ::std::option::Option::None, |
613 | | special_fields: crate::SpecialFields::new(), |
614 | | }; |
615 | 0 | &instance |
616 | 0 | } |
617 | | } |
618 | | |
619 | | impl crate::MessageFull for FileDescriptorProto { |
620 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
621 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
622 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("FileDescriptorProto").unwrap()).clone() |
623 | 0 | } |
624 | | } |
625 | | |
626 | | impl ::std::fmt::Display for FileDescriptorProto { |
627 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
628 | 0 | crate::text_format::fmt(self, f) |
629 | 0 | } |
630 | | } |
631 | | |
632 | | impl crate::reflect::ProtobufValue for FileDescriptorProto { |
633 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
634 | | } |
635 | | |
636 | | /// Describes a message type. |
637 | | #[derive(PartialEq,Clone,Default,Debug)] |
638 | | // @@protoc_insertion_point(message:google.protobuf.DescriptorProto) |
639 | | pub struct DescriptorProto { |
640 | | // message fields |
641 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.name) |
642 | | pub name: ::std::option::Option<::std::string::String>, |
643 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.field) |
644 | | pub field: ::std::vec::Vec<FieldDescriptorProto>, |
645 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.extension) |
646 | | pub extension: ::std::vec::Vec<FieldDescriptorProto>, |
647 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.nested_type) |
648 | | pub nested_type: ::std::vec::Vec<DescriptorProto>, |
649 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.enum_type) |
650 | | pub enum_type: ::std::vec::Vec<EnumDescriptorProto>, |
651 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.extension_range) |
652 | | pub extension_range: ::std::vec::Vec<descriptor_proto::ExtensionRange>, |
653 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.oneof_decl) |
654 | | pub oneof_decl: ::std::vec::Vec<OneofDescriptorProto>, |
655 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.options) |
656 | | pub options: crate::MessageField<MessageOptions>, |
657 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.reserved_range) |
658 | | pub reserved_range: ::std::vec::Vec<descriptor_proto::ReservedRange>, |
659 | | /// Reserved field names, which may not be used by fields in the same message. |
660 | | /// A given name may only be reserved once. |
661 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.reserved_name) |
662 | | pub reserved_name: ::std::vec::Vec<::std::string::String>, |
663 | | // special fields |
664 | | // @@protoc_insertion_point(special_field:google.protobuf.DescriptorProto.special_fields) |
665 | | pub special_fields: crate::SpecialFields, |
666 | | } |
667 | | |
668 | | impl<'a> ::std::default::Default for &'a DescriptorProto { |
669 | 0 | fn default() -> &'a DescriptorProto { |
670 | 0 | <DescriptorProto as crate::Message>::default_instance() |
671 | 0 | } |
672 | | } |
673 | | |
674 | | impl DescriptorProto { |
675 | 0 | pub fn new() -> DescriptorProto { |
676 | 0 | ::std::default::Default::default() |
677 | 0 | } |
678 | | |
679 | | // optional string name = 1; |
680 | | |
681 | 0 | pub fn name(&self) -> &str { |
682 | 0 | match self.name.as_ref() { |
683 | 0 | Some(v) => v, |
684 | 0 | None => "", |
685 | | } |
686 | 0 | } |
687 | | |
688 | 0 | pub fn clear_name(&mut self) { |
689 | 0 | self.name = ::std::option::Option::None; |
690 | 0 | } |
691 | | |
692 | 0 | pub fn has_name(&self) -> bool { |
693 | 0 | self.name.is_some() |
694 | 0 | } |
695 | | |
696 | | // Param is passed by value, moved |
697 | 0 | pub fn set_name(&mut self, v: ::std::string::String) { |
698 | 0 | self.name = ::std::option::Option::Some(v); |
699 | 0 | } |
700 | | |
701 | | // Mutable pointer to the field. |
702 | | // If field is not initialized, it is initialized with default value first. |
703 | 0 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
704 | 0 | if self.name.is_none() { |
705 | 0 | self.name = ::std::option::Option::Some(::std::string::String::new()); |
706 | 0 | } |
707 | 0 | self.name.as_mut().unwrap() |
708 | 0 | } |
709 | | |
710 | | // Take field |
711 | 0 | pub fn take_name(&mut self) -> ::std::string::String { |
712 | 0 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
713 | 0 | } |
714 | | |
715 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
716 | 0 | let mut fields = ::std::vec::Vec::with_capacity(10); |
717 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
718 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
719 | | "name", |
720 | 0 | |m: &DescriptorProto| { &m.name }, |
721 | 0 | |m: &mut DescriptorProto| { &mut m.name }, |
722 | | )); |
723 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
724 | | "field", |
725 | 0 | |m: &DescriptorProto| { &m.field }, |
726 | 0 | |m: &mut DescriptorProto| { &mut m.field }, |
727 | | )); |
728 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
729 | | "extension", |
730 | 0 | |m: &DescriptorProto| { &m.extension }, |
731 | 0 | |m: &mut DescriptorProto| { &mut m.extension }, |
732 | | )); |
733 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
734 | | "nested_type", |
735 | 0 | |m: &DescriptorProto| { &m.nested_type }, |
736 | 0 | |m: &mut DescriptorProto| { &mut m.nested_type }, |
737 | | )); |
738 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
739 | | "enum_type", |
740 | 0 | |m: &DescriptorProto| { &m.enum_type }, |
741 | 0 | |m: &mut DescriptorProto| { &mut m.enum_type }, |
742 | | )); |
743 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
744 | | "extension_range", |
745 | 0 | |m: &DescriptorProto| { &m.extension_range }, |
746 | 0 | |m: &mut DescriptorProto| { &mut m.extension_range }, |
747 | | )); |
748 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
749 | | "oneof_decl", |
750 | 0 | |m: &DescriptorProto| { &m.oneof_decl }, |
751 | 0 | |m: &mut DescriptorProto| { &mut m.oneof_decl }, |
752 | | )); |
753 | 0 | fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, MessageOptions>( |
754 | | "options", |
755 | 0 | |m: &DescriptorProto| { &m.options }, |
756 | 0 | |m: &mut DescriptorProto| { &mut m.options }, |
757 | | )); |
758 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
759 | | "reserved_range", |
760 | 0 | |m: &DescriptorProto| { &m.reserved_range }, |
761 | 0 | |m: &mut DescriptorProto| { &mut m.reserved_range }, |
762 | | )); |
763 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
764 | | "reserved_name", |
765 | 0 | |m: &DescriptorProto| { &m.reserved_name }, |
766 | 0 | |m: &mut DescriptorProto| { &mut m.reserved_name }, |
767 | | )); |
768 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<DescriptorProto>( |
769 | | "DescriptorProto", |
770 | 0 | fields, |
771 | 0 | oneofs, |
772 | | ) |
773 | 0 | } |
774 | | } |
775 | | |
776 | | impl crate::Message for DescriptorProto { |
777 | | const NAME: &'static str = "DescriptorProto"; |
778 | | |
779 | 0 | fn is_initialized(&self) -> bool { |
780 | 0 | for v in &self.field { |
781 | 0 | if !v.is_initialized() { |
782 | 0 | return false; |
783 | 0 | } |
784 | | }; |
785 | 0 | for v in &self.extension { |
786 | 0 | if !v.is_initialized() { |
787 | 0 | return false; |
788 | 0 | } |
789 | | }; |
790 | 0 | for v in &self.nested_type { |
791 | 0 | if !v.is_initialized() { |
792 | 0 | return false; |
793 | 0 | } |
794 | | }; |
795 | 0 | for v in &self.enum_type { |
796 | 0 | if !v.is_initialized() { |
797 | 0 | return false; |
798 | 0 | } |
799 | | }; |
800 | 0 | for v in &self.extension_range { |
801 | 0 | if !v.is_initialized() { |
802 | 0 | return false; |
803 | 0 | } |
804 | | }; |
805 | 0 | for v in &self.oneof_decl { |
806 | 0 | if !v.is_initialized() { |
807 | 0 | return false; |
808 | 0 | } |
809 | | }; |
810 | 0 | for v in &self.options { |
811 | 0 | if !v.is_initialized() { |
812 | 0 | return false; |
813 | 0 | } |
814 | | }; |
815 | 0 | for v in &self.reserved_range { |
816 | 0 | if !v.is_initialized() { |
817 | 0 | return false; |
818 | 0 | } |
819 | | }; |
820 | 0 | true |
821 | 0 | } |
822 | | |
823 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
824 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
825 | 0 | match tag { |
826 | | 10 => { |
827 | 0 | self.name = ::std::option::Option::Some(is.read_string()?); |
828 | | }, |
829 | | 18 => { |
830 | 0 | self.field.push(is.read_message()?); |
831 | | }, |
832 | | 50 => { |
833 | 0 | self.extension.push(is.read_message()?); |
834 | | }, |
835 | | 26 => { |
836 | 0 | self.nested_type.push(is.read_message()?); |
837 | | }, |
838 | | 34 => { |
839 | 0 | self.enum_type.push(is.read_message()?); |
840 | | }, |
841 | | 42 => { |
842 | 0 | self.extension_range.push(is.read_message()?); |
843 | | }, |
844 | | 66 => { |
845 | 0 | self.oneof_decl.push(is.read_message()?); |
846 | | }, |
847 | | 58 => { |
848 | 0 | crate::rt::read_singular_message_into_field(is, &mut self.options)?; |
849 | | }, |
850 | | 74 => { |
851 | 0 | self.reserved_range.push(is.read_message()?); |
852 | | }, |
853 | | 82 => { |
854 | 0 | self.reserved_name.push(is.read_string()?); |
855 | | }, |
856 | 0 | tag => { |
857 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
858 | | }, |
859 | | }; |
860 | | } |
861 | 0 | ::std::result::Result::Ok(()) |
862 | 0 | } |
863 | | |
864 | | // Compute sizes of nested messages |
865 | | #[allow(unused_variables)] |
866 | 0 | fn compute_size(&self) -> u64 { |
867 | 0 | let mut my_size = 0; |
868 | 0 | if let Some(v) = self.name.as_ref() { |
869 | 0 | my_size += crate::rt::string_size(1, &v); |
870 | 0 | } |
871 | 0 | for value in &self.field { |
872 | 0 | let len = value.compute_size(); |
873 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
874 | 0 | }; |
875 | 0 | for value in &self.extension { |
876 | 0 | let len = value.compute_size(); |
877 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
878 | 0 | }; |
879 | 0 | for value in &self.nested_type { |
880 | 0 | let len = value.compute_size(); |
881 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
882 | 0 | }; |
883 | 0 | for value in &self.enum_type { |
884 | 0 | let len = value.compute_size(); |
885 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
886 | 0 | }; |
887 | 0 | for value in &self.extension_range { |
888 | 0 | let len = value.compute_size(); |
889 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
890 | 0 | }; |
891 | 0 | for value in &self.oneof_decl { |
892 | 0 | let len = value.compute_size(); |
893 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
894 | 0 | }; |
895 | 0 | if let Some(v) = self.options.as_ref() { |
896 | 0 | let len = v.compute_size(); |
897 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
898 | 0 | } |
899 | 0 | for value in &self.reserved_range { |
900 | 0 | let len = value.compute_size(); |
901 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
902 | 0 | }; |
903 | 0 | for value in &self.reserved_name { |
904 | 0 | my_size += crate::rt::string_size(10, &value); |
905 | 0 | }; |
906 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
907 | 0 | self.special_fields.cached_size().set(my_size as u32); |
908 | 0 | my_size |
909 | 0 | } |
910 | | |
911 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
912 | 0 | if let Some(v) = self.name.as_ref() { |
913 | 0 | os.write_string(1, v)?; |
914 | 0 | } |
915 | 0 | for v in &self.field { |
916 | 0 | crate::rt::write_message_field_with_cached_size(2, v, os)?; |
917 | | }; |
918 | 0 | for v in &self.extension { |
919 | 0 | crate::rt::write_message_field_with_cached_size(6, v, os)?; |
920 | | }; |
921 | 0 | for v in &self.nested_type { |
922 | 0 | crate::rt::write_message_field_with_cached_size(3, v, os)?; |
923 | | }; |
924 | 0 | for v in &self.enum_type { |
925 | 0 | crate::rt::write_message_field_with_cached_size(4, v, os)?; |
926 | | }; |
927 | 0 | for v in &self.extension_range { |
928 | 0 | crate::rt::write_message_field_with_cached_size(5, v, os)?; |
929 | | }; |
930 | 0 | for v in &self.oneof_decl { |
931 | 0 | crate::rt::write_message_field_with_cached_size(8, v, os)?; |
932 | | }; |
933 | 0 | if let Some(v) = self.options.as_ref() { |
934 | 0 | crate::rt::write_message_field_with_cached_size(7, v, os)?; |
935 | 0 | } |
936 | 0 | for v in &self.reserved_range { |
937 | 0 | crate::rt::write_message_field_with_cached_size(9, v, os)?; |
938 | | }; |
939 | 0 | for v in &self.reserved_name { |
940 | 0 | os.write_string(10, &v)?; |
941 | | }; |
942 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
943 | 0 | ::std::result::Result::Ok(()) |
944 | 0 | } |
945 | | |
946 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
947 | 0 | &self.special_fields |
948 | 0 | } |
949 | | |
950 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
951 | 0 | &mut self.special_fields |
952 | 0 | } |
953 | | |
954 | 0 | fn new() -> DescriptorProto { |
955 | 0 | DescriptorProto::new() |
956 | 0 | } |
957 | | |
958 | 0 | fn clear(&mut self) { |
959 | 0 | self.name = ::std::option::Option::None; |
960 | 0 | self.field.clear(); |
961 | 0 | self.extension.clear(); |
962 | 0 | self.nested_type.clear(); |
963 | 0 | self.enum_type.clear(); |
964 | 0 | self.extension_range.clear(); |
965 | 0 | self.oneof_decl.clear(); |
966 | 0 | self.options.clear(); |
967 | 0 | self.reserved_range.clear(); |
968 | 0 | self.reserved_name.clear(); |
969 | 0 | self.special_fields.clear(); |
970 | 0 | } |
971 | | |
972 | 0 | fn default_instance() -> &'static DescriptorProto { |
973 | | static instance: DescriptorProto = DescriptorProto { |
974 | | name: ::std::option::Option::None, |
975 | | field: ::std::vec::Vec::new(), |
976 | | extension: ::std::vec::Vec::new(), |
977 | | nested_type: ::std::vec::Vec::new(), |
978 | | enum_type: ::std::vec::Vec::new(), |
979 | | extension_range: ::std::vec::Vec::new(), |
980 | | oneof_decl: ::std::vec::Vec::new(), |
981 | | options: crate::MessageField::none(), |
982 | | reserved_range: ::std::vec::Vec::new(), |
983 | | reserved_name: ::std::vec::Vec::new(), |
984 | | special_fields: crate::SpecialFields::new(), |
985 | | }; |
986 | 0 | &instance |
987 | 0 | } |
988 | | } |
989 | | |
990 | | impl crate::MessageFull for DescriptorProto { |
991 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
992 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
993 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("DescriptorProto").unwrap()).clone() |
994 | 0 | } |
995 | | } |
996 | | |
997 | | impl ::std::fmt::Display for DescriptorProto { |
998 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
999 | 0 | crate::text_format::fmt(self, f) |
1000 | 0 | } |
1001 | | } |
1002 | | |
1003 | | impl crate::reflect::ProtobufValue for DescriptorProto { |
1004 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
1005 | | } |
1006 | | |
1007 | | /// Nested message and enums of message `DescriptorProto` |
1008 | | pub mod descriptor_proto { |
1009 | | #[derive(PartialEq,Clone,Default,Debug)] |
1010 | | // @@protoc_insertion_point(message:google.protobuf.DescriptorProto.ExtensionRange) |
1011 | | pub struct ExtensionRange { |
1012 | | // message fields |
1013 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.ExtensionRange.start) |
1014 | | pub start: ::std::option::Option<i32>, |
1015 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.ExtensionRange.end) |
1016 | | pub end: ::std::option::Option<i32>, |
1017 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.ExtensionRange.options) |
1018 | | pub options: crate::MessageField<super::ExtensionRangeOptions>, |
1019 | | // special fields |
1020 | | // @@protoc_insertion_point(special_field:google.protobuf.DescriptorProto.ExtensionRange.special_fields) |
1021 | | pub special_fields: crate::SpecialFields, |
1022 | | } |
1023 | | |
1024 | | impl<'a> ::std::default::Default for &'a ExtensionRange { |
1025 | 0 | fn default() -> &'a ExtensionRange { |
1026 | 0 | <ExtensionRange as crate::Message>::default_instance() |
1027 | 0 | } |
1028 | | } |
1029 | | |
1030 | | impl ExtensionRange { |
1031 | 0 | pub fn new() -> ExtensionRange { |
1032 | 0 | ::std::default::Default::default() |
1033 | 0 | } |
1034 | | |
1035 | | // optional int32 start = 1; |
1036 | | |
1037 | 0 | pub fn start(&self) -> i32 { |
1038 | 0 | self.start.unwrap_or(0) |
1039 | 0 | } |
1040 | | |
1041 | 0 | pub fn clear_start(&mut self) { |
1042 | 0 | self.start = ::std::option::Option::None; |
1043 | 0 | } |
1044 | | |
1045 | 0 | pub fn has_start(&self) -> bool { |
1046 | 0 | self.start.is_some() |
1047 | 0 | } |
1048 | | |
1049 | | // Param is passed by value, moved |
1050 | 0 | pub fn set_start(&mut self, v: i32) { |
1051 | 0 | self.start = ::std::option::Option::Some(v); |
1052 | 0 | } |
1053 | | |
1054 | | // optional int32 end = 2; |
1055 | | |
1056 | 0 | pub fn end(&self) -> i32 { |
1057 | 0 | self.end.unwrap_or(0) |
1058 | 0 | } |
1059 | | |
1060 | 0 | pub fn clear_end(&mut self) { |
1061 | 0 | self.end = ::std::option::Option::None; |
1062 | 0 | } |
1063 | | |
1064 | 0 | pub fn has_end(&self) -> bool { |
1065 | 0 | self.end.is_some() |
1066 | 0 | } |
1067 | | |
1068 | | // Param is passed by value, moved |
1069 | 0 | pub fn set_end(&mut self, v: i32) { |
1070 | 0 | self.end = ::std::option::Option::Some(v); |
1071 | 0 | } |
1072 | | |
1073 | 0 | pub(in super) fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
1074 | 0 | let mut fields = ::std::vec::Vec::with_capacity(3); |
1075 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
1076 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1077 | | "start", |
1078 | 0 | |m: &ExtensionRange| { &m.start }, |
1079 | 0 | |m: &mut ExtensionRange| { &mut m.start }, |
1080 | | )); |
1081 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1082 | | "end", |
1083 | 0 | |m: &ExtensionRange| { &m.end }, |
1084 | 0 | |m: &mut ExtensionRange| { &mut m.end }, |
1085 | | )); |
1086 | 0 | fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, super::ExtensionRangeOptions>( |
1087 | | "options", |
1088 | 0 | |m: &ExtensionRange| { &m.options }, |
1089 | 0 | |m: &mut ExtensionRange| { &mut m.options }, |
1090 | | )); |
1091 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<ExtensionRange>( |
1092 | | "DescriptorProto.ExtensionRange", |
1093 | 0 | fields, |
1094 | 0 | oneofs, |
1095 | | ) |
1096 | 0 | } |
1097 | | } |
1098 | | |
1099 | | impl crate::Message for ExtensionRange { |
1100 | | const NAME: &'static str = "ExtensionRange"; |
1101 | | |
1102 | 0 | fn is_initialized(&self) -> bool { |
1103 | 0 | for v in &self.options { |
1104 | 0 | if !v.is_initialized() { |
1105 | 0 | return false; |
1106 | 0 | } |
1107 | | }; |
1108 | 0 | true |
1109 | 0 | } |
1110 | | |
1111 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
1112 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
1113 | 0 | match tag { |
1114 | | 8 => { |
1115 | 0 | self.start = ::std::option::Option::Some(is.read_int32()?); |
1116 | | }, |
1117 | | 16 => { |
1118 | 0 | self.end = ::std::option::Option::Some(is.read_int32()?); |
1119 | | }, |
1120 | | 26 => { |
1121 | 0 | crate::rt::read_singular_message_into_field(is, &mut self.options)?; |
1122 | | }, |
1123 | 0 | tag => { |
1124 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
1125 | | }, |
1126 | | }; |
1127 | | } |
1128 | 0 | ::std::result::Result::Ok(()) |
1129 | 0 | } |
1130 | | |
1131 | | // Compute sizes of nested messages |
1132 | | #[allow(unused_variables)] |
1133 | 0 | fn compute_size(&self) -> u64 { |
1134 | 0 | let mut my_size = 0; |
1135 | 0 | if let Some(v) = self.start { |
1136 | 0 | my_size += crate::rt::int32_size(1, v); |
1137 | 0 | } |
1138 | 0 | if let Some(v) = self.end { |
1139 | 0 | my_size += crate::rt::int32_size(2, v); |
1140 | 0 | } |
1141 | 0 | if let Some(v) = self.options.as_ref() { |
1142 | 0 | let len = v.compute_size(); |
1143 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
1144 | 0 | } |
1145 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
1146 | 0 | self.special_fields.cached_size().set(my_size as u32); |
1147 | 0 | my_size |
1148 | 0 | } |
1149 | | |
1150 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
1151 | 0 | if let Some(v) = self.start { |
1152 | 0 | os.write_int32(1, v)?; |
1153 | 0 | } |
1154 | 0 | if let Some(v) = self.end { |
1155 | 0 | os.write_int32(2, v)?; |
1156 | 0 | } |
1157 | 0 | if let Some(v) = self.options.as_ref() { |
1158 | 0 | crate::rt::write_message_field_with_cached_size(3, v, os)?; |
1159 | 0 | } |
1160 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
1161 | 0 | ::std::result::Result::Ok(()) |
1162 | 0 | } |
1163 | | |
1164 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
1165 | 0 | &self.special_fields |
1166 | 0 | } |
1167 | | |
1168 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
1169 | 0 | &mut self.special_fields |
1170 | 0 | } |
1171 | | |
1172 | 0 | fn new() -> ExtensionRange { |
1173 | 0 | ExtensionRange::new() |
1174 | 0 | } |
1175 | | |
1176 | 0 | fn clear(&mut self) { |
1177 | 0 | self.start = ::std::option::Option::None; |
1178 | 0 | self.end = ::std::option::Option::None; |
1179 | 0 | self.options.clear(); |
1180 | 0 | self.special_fields.clear(); |
1181 | 0 | } |
1182 | | |
1183 | 0 | fn default_instance() -> &'static ExtensionRange { |
1184 | | static instance: ExtensionRange = ExtensionRange { |
1185 | | start: ::std::option::Option::None, |
1186 | | end: ::std::option::Option::None, |
1187 | | options: crate::MessageField::none(), |
1188 | | special_fields: crate::SpecialFields::new(), |
1189 | | }; |
1190 | 0 | &instance |
1191 | 0 | } |
1192 | | } |
1193 | | |
1194 | | impl crate::MessageFull for ExtensionRange { |
1195 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
1196 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
1197 | 0 | descriptor.get(|| super::file_descriptor().message_by_package_relative_name("DescriptorProto.ExtensionRange").unwrap()).clone() |
1198 | 0 | } |
1199 | | } |
1200 | | |
1201 | | impl ::std::fmt::Display for ExtensionRange { |
1202 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
1203 | 0 | crate::text_format::fmt(self, f) |
1204 | 0 | } |
1205 | | } |
1206 | | |
1207 | | impl crate::reflect::ProtobufValue for ExtensionRange { |
1208 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
1209 | | } |
1210 | | |
1211 | | /// Range of reserved tag numbers. Reserved tag numbers may not be used by |
1212 | | /// fields or extension ranges in the same message. Reserved ranges may |
1213 | | /// not overlap. |
1214 | | #[derive(PartialEq,Clone,Default,Debug)] |
1215 | | // @@protoc_insertion_point(message:google.protobuf.DescriptorProto.ReservedRange) |
1216 | | pub struct ReservedRange { |
1217 | | // message fields |
1218 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.ReservedRange.start) |
1219 | | pub start: ::std::option::Option<i32>, |
1220 | | // @@protoc_insertion_point(field:google.protobuf.DescriptorProto.ReservedRange.end) |
1221 | | pub end: ::std::option::Option<i32>, |
1222 | | // special fields |
1223 | | // @@protoc_insertion_point(special_field:google.protobuf.DescriptorProto.ReservedRange.special_fields) |
1224 | | pub special_fields: crate::SpecialFields, |
1225 | | } |
1226 | | |
1227 | | impl<'a> ::std::default::Default for &'a ReservedRange { |
1228 | 0 | fn default() -> &'a ReservedRange { |
1229 | 0 | <ReservedRange as crate::Message>::default_instance() |
1230 | 0 | } |
1231 | | } |
1232 | | |
1233 | | impl ReservedRange { |
1234 | 0 | pub fn new() -> ReservedRange { |
1235 | 0 | ::std::default::Default::default() |
1236 | 0 | } |
1237 | | |
1238 | | // optional int32 start = 1; |
1239 | | |
1240 | 0 | pub fn start(&self) -> i32 { |
1241 | 0 | self.start.unwrap_or(0) |
1242 | 0 | } |
1243 | | |
1244 | 0 | pub fn clear_start(&mut self) { |
1245 | 0 | self.start = ::std::option::Option::None; |
1246 | 0 | } |
1247 | | |
1248 | 0 | pub fn has_start(&self) -> bool { |
1249 | 0 | self.start.is_some() |
1250 | 0 | } |
1251 | | |
1252 | | // Param is passed by value, moved |
1253 | 0 | pub fn set_start(&mut self, v: i32) { |
1254 | 0 | self.start = ::std::option::Option::Some(v); |
1255 | 0 | } |
1256 | | |
1257 | | // optional int32 end = 2; |
1258 | | |
1259 | 0 | pub fn end(&self) -> i32 { |
1260 | 0 | self.end.unwrap_or(0) |
1261 | 0 | } |
1262 | | |
1263 | 0 | pub fn clear_end(&mut self) { |
1264 | 0 | self.end = ::std::option::Option::None; |
1265 | 0 | } |
1266 | | |
1267 | 0 | pub fn has_end(&self) -> bool { |
1268 | 0 | self.end.is_some() |
1269 | 0 | } |
1270 | | |
1271 | | // Param is passed by value, moved |
1272 | 0 | pub fn set_end(&mut self, v: i32) { |
1273 | 0 | self.end = ::std::option::Option::Some(v); |
1274 | 0 | } |
1275 | | |
1276 | 0 | pub(in super) fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
1277 | 0 | let mut fields = ::std::vec::Vec::with_capacity(2); |
1278 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
1279 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1280 | | "start", |
1281 | 0 | |m: &ReservedRange| { &m.start }, |
1282 | 0 | |m: &mut ReservedRange| { &mut m.start }, |
1283 | | )); |
1284 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1285 | | "end", |
1286 | 0 | |m: &ReservedRange| { &m.end }, |
1287 | 0 | |m: &mut ReservedRange| { &mut m.end }, |
1288 | | )); |
1289 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<ReservedRange>( |
1290 | | "DescriptorProto.ReservedRange", |
1291 | 0 | fields, |
1292 | 0 | oneofs, |
1293 | | ) |
1294 | 0 | } |
1295 | | } |
1296 | | |
1297 | | impl crate::Message for ReservedRange { |
1298 | | const NAME: &'static str = "ReservedRange"; |
1299 | | |
1300 | 0 | fn is_initialized(&self) -> bool { |
1301 | 0 | true |
1302 | 0 | } |
1303 | | |
1304 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
1305 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
1306 | 0 | match tag { |
1307 | | 8 => { |
1308 | 0 | self.start = ::std::option::Option::Some(is.read_int32()?); |
1309 | | }, |
1310 | | 16 => { |
1311 | 0 | self.end = ::std::option::Option::Some(is.read_int32()?); |
1312 | | }, |
1313 | 0 | tag => { |
1314 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
1315 | | }, |
1316 | | }; |
1317 | | } |
1318 | 0 | ::std::result::Result::Ok(()) |
1319 | 0 | } |
1320 | | |
1321 | | // Compute sizes of nested messages |
1322 | | #[allow(unused_variables)] |
1323 | 0 | fn compute_size(&self) -> u64 { |
1324 | 0 | let mut my_size = 0; |
1325 | 0 | if let Some(v) = self.start { |
1326 | 0 | my_size += crate::rt::int32_size(1, v); |
1327 | 0 | } |
1328 | 0 | if let Some(v) = self.end { |
1329 | 0 | my_size += crate::rt::int32_size(2, v); |
1330 | 0 | } |
1331 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
1332 | 0 | self.special_fields.cached_size().set(my_size as u32); |
1333 | 0 | my_size |
1334 | 0 | } |
1335 | | |
1336 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
1337 | 0 | if let Some(v) = self.start { |
1338 | 0 | os.write_int32(1, v)?; |
1339 | 0 | } |
1340 | 0 | if let Some(v) = self.end { |
1341 | 0 | os.write_int32(2, v)?; |
1342 | 0 | } |
1343 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
1344 | 0 | ::std::result::Result::Ok(()) |
1345 | 0 | } |
1346 | | |
1347 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
1348 | 0 | &self.special_fields |
1349 | 0 | } |
1350 | | |
1351 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
1352 | 0 | &mut self.special_fields |
1353 | 0 | } |
1354 | | |
1355 | 0 | fn new() -> ReservedRange { |
1356 | 0 | ReservedRange::new() |
1357 | 0 | } |
1358 | | |
1359 | 0 | fn clear(&mut self) { |
1360 | 0 | self.start = ::std::option::Option::None; |
1361 | 0 | self.end = ::std::option::Option::None; |
1362 | 0 | self.special_fields.clear(); |
1363 | 0 | } |
1364 | | |
1365 | 0 | fn default_instance() -> &'static ReservedRange { |
1366 | | static instance: ReservedRange = ReservedRange { |
1367 | | start: ::std::option::Option::None, |
1368 | | end: ::std::option::Option::None, |
1369 | | special_fields: crate::SpecialFields::new(), |
1370 | | }; |
1371 | 0 | &instance |
1372 | 0 | } |
1373 | | } |
1374 | | |
1375 | | impl crate::MessageFull for ReservedRange { |
1376 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
1377 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
1378 | 0 | descriptor.get(|| super::file_descriptor().message_by_package_relative_name("DescriptorProto.ReservedRange").unwrap()).clone() |
1379 | 0 | } |
1380 | | } |
1381 | | |
1382 | | impl ::std::fmt::Display for ReservedRange { |
1383 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
1384 | 0 | crate::text_format::fmt(self, f) |
1385 | 0 | } |
1386 | | } |
1387 | | |
1388 | | impl crate::reflect::ProtobufValue for ReservedRange { |
1389 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
1390 | | } |
1391 | | } |
1392 | | |
1393 | | #[derive(PartialEq,Clone,Default,Debug)] |
1394 | | // @@protoc_insertion_point(message:google.protobuf.ExtensionRangeOptions) |
1395 | | pub struct ExtensionRangeOptions { |
1396 | | // message fields |
1397 | | /// The parser stores options it doesn't recognize here. See above. |
1398 | | // @@protoc_insertion_point(field:google.protobuf.ExtensionRangeOptions.uninterpreted_option) |
1399 | | pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>, |
1400 | | // special fields |
1401 | | // @@protoc_insertion_point(special_field:google.protobuf.ExtensionRangeOptions.special_fields) |
1402 | | pub special_fields: crate::SpecialFields, |
1403 | | } |
1404 | | |
1405 | | impl<'a> ::std::default::Default for &'a ExtensionRangeOptions { |
1406 | 0 | fn default() -> &'a ExtensionRangeOptions { |
1407 | 0 | <ExtensionRangeOptions as crate::Message>::default_instance() |
1408 | 0 | } |
1409 | | } |
1410 | | |
1411 | | impl ExtensionRangeOptions { |
1412 | 0 | pub fn new() -> ExtensionRangeOptions { |
1413 | 0 | ::std::default::Default::default() |
1414 | 0 | } |
1415 | | |
1416 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
1417 | 0 | let mut fields = ::std::vec::Vec::with_capacity(1); |
1418 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
1419 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
1420 | | "uninterpreted_option", |
1421 | 0 | |m: &ExtensionRangeOptions| { &m.uninterpreted_option }, |
1422 | 0 | |m: &mut ExtensionRangeOptions| { &mut m.uninterpreted_option }, |
1423 | | )); |
1424 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<ExtensionRangeOptions>( |
1425 | | "ExtensionRangeOptions", |
1426 | 0 | fields, |
1427 | 0 | oneofs, |
1428 | | ) |
1429 | 0 | } |
1430 | | } |
1431 | | |
1432 | | impl crate::Message for ExtensionRangeOptions { |
1433 | | const NAME: &'static str = "ExtensionRangeOptions"; |
1434 | | |
1435 | 0 | fn is_initialized(&self) -> bool { |
1436 | 0 | for v in &self.uninterpreted_option { |
1437 | 0 | if !v.is_initialized() { |
1438 | 0 | return false; |
1439 | 0 | } |
1440 | | }; |
1441 | 0 | true |
1442 | 0 | } |
1443 | | |
1444 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
1445 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
1446 | 0 | match tag { |
1447 | | 7994 => { |
1448 | 0 | self.uninterpreted_option.push(is.read_message()?); |
1449 | | }, |
1450 | 0 | tag => { |
1451 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
1452 | | }, |
1453 | | }; |
1454 | | } |
1455 | 0 | ::std::result::Result::Ok(()) |
1456 | 0 | } |
1457 | | |
1458 | | // Compute sizes of nested messages |
1459 | | #[allow(unused_variables)] |
1460 | 0 | fn compute_size(&self) -> u64 { |
1461 | 0 | let mut my_size = 0; |
1462 | 0 | for value in &self.uninterpreted_option { |
1463 | 0 | let len = value.compute_size(); |
1464 | 0 | my_size += 2 + crate::rt::compute_raw_varint64_size(len) + len; |
1465 | 0 | }; |
1466 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
1467 | 0 | self.special_fields.cached_size().set(my_size as u32); |
1468 | 0 | my_size |
1469 | 0 | } |
1470 | | |
1471 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
1472 | 0 | for v in &self.uninterpreted_option { |
1473 | 0 | crate::rt::write_message_field_with_cached_size(999, v, os)?; |
1474 | | }; |
1475 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
1476 | 0 | ::std::result::Result::Ok(()) |
1477 | 0 | } |
1478 | | |
1479 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
1480 | 0 | &self.special_fields |
1481 | 0 | } |
1482 | | |
1483 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
1484 | 0 | &mut self.special_fields |
1485 | 0 | } |
1486 | | |
1487 | 0 | fn new() -> ExtensionRangeOptions { |
1488 | 0 | ExtensionRangeOptions::new() |
1489 | 0 | } |
1490 | | |
1491 | 0 | fn clear(&mut self) { |
1492 | 0 | self.uninterpreted_option.clear(); |
1493 | 0 | self.special_fields.clear(); |
1494 | 0 | } |
1495 | | |
1496 | 0 | fn default_instance() -> &'static ExtensionRangeOptions { |
1497 | | static instance: ExtensionRangeOptions = ExtensionRangeOptions { |
1498 | | uninterpreted_option: ::std::vec::Vec::new(), |
1499 | | special_fields: crate::SpecialFields::new(), |
1500 | | }; |
1501 | 0 | &instance |
1502 | 0 | } |
1503 | | } |
1504 | | |
1505 | | impl crate::MessageFull for ExtensionRangeOptions { |
1506 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
1507 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
1508 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("ExtensionRangeOptions").unwrap()).clone() |
1509 | 0 | } |
1510 | | } |
1511 | | |
1512 | | impl ::std::fmt::Display for ExtensionRangeOptions { |
1513 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
1514 | 0 | crate::text_format::fmt(self, f) |
1515 | 0 | } |
1516 | | } |
1517 | | |
1518 | | impl crate::reflect::ProtobufValue for ExtensionRangeOptions { |
1519 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
1520 | | } |
1521 | | |
1522 | | /// Describes a field within a message. |
1523 | | #[derive(PartialEq,Clone,Default,Debug)] |
1524 | | // @@protoc_insertion_point(message:google.protobuf.FieldDescriptorProto) |
1525 | | pub struct FieldDescriptorProto { |
1526 | | // message fields |
1527 | | // @@protoc_insertion_point(field:google.protobuf.FieldDescriptorProto.name) |
1528 | | pub name: ::std::option::Option<::std::string::String>, |
1529 | | // @@protoc_insertion_point(field:google.protobuf.FieldDescriptorProto.number) |
1530 | | pub number: ::std::option::Option<i32>, |
1531 | | // @@protoc_insertion_point(field:google.protobuf.FieldDescriptorProto.label) |
1532 | | pub label: ::std::option::Option<crate::EnumOrUnknown<field_descriptor_proto::Label>>, |
1533 | | /// If type_name is set, this need not be set. If both this and type_name |
1534 | | /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. |
1535 | | // @@protoc_insertion_point(field:google.protobuf.FieldDescriptorProto.type) |
1536 | | pub type_: ::std::option::Option<crate::EnumOrUnknown<field_descriptor_proto::Type>>, |
1537 | | /// For message and enum types, this is the name of the type. If the name |
1538 | | /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping |
1539 | | /// rules are used to find the type (i.e. first the nested types within this |
1540 | | /// message are searched, then within the parent, on up to the root |
1541 | | /// namespace). |
1542 | | // @@protoc_insertion_point(field:google.protobuf.FieldDescriptorProto.type_name) |
1543 | | pub type_name: ::std::option::Option<::std::string::String>, |
1544 | | /// For extensions, this is the name of the type being extended. It is |
1545 | | /// resolved in the same manner as type_name. |
1546 | | // @@protoc_insertion_point(field:google.protobuf.FieldDescriptorProto.extendee) |
1547 | | pub extendee: ::std::option::Option<::std::string::String>, |
1548 | | /// For numeric types, contains the original text representation of the value. |
1549 | | /// For booleans, "true" or "false". |
1550 | | /// For strings, contains the default text contents (not escaped in any way). |
1551 | | /// For bytes, contains the C escaped value. All bytes >= 128 are escaped. |
1552 | | /// TODO(kenton): Base-64 encode? |
1553 | | // @@protoc_insertion_point(field:google.protobuf.FieldDescriptorProto.default_value) |
1554 | | pub default_value: ::std::option::Option<::std::string::String>, |
1555 | | /// If set, gives the index of a oneof in the containing type's oneof_decl |
1556 | | /// list. This field is a member of that oneof. |
1557 | | // @@protoc_insertion_point(field:google.protobuf.FieldDescriptorProto.oneof_index) |
1558 | | pub oneof_index: ::std::option::Option<i32>, |
1559 | | /// JSON name of this field. The value is set by protocol compiler. If the |
1560 | | /// user has set a "json_name" option on this field, that option's value |
1561 | | /// will be used. Otherwise, it's deduced from the field's name by converting |
1562 | | /// it to camelCase. |
1563 | | // @@protoc_insertion_point(field:google.protobuf.FieldDescriptorProto.json_name) |
1564 | | pub json_name: ::std::option::Option<::std::string::String>, |
1565 | | // @@protoc_insertion_point(field:google.protobuf.FieldDescriptorProto.options) |
1566 | | pub options: crate::MessageField<FieldOptions>, |
1567 | | /// If true, this is a proto3 "optional". When a proto3 field is optional, it |
1568 | | /// tracks presence regardless of field type. |
1569 | | /// |
1570 | | /// When proto3_optional is true, this field must be belong to a oneof to |
1571 | | /// signal to old proto3 clients that presence is tracked for this field. This |
1572 | | /// oneof is known as a "synthetic" oneof, and this field must be its sole |
1573 | | /// member (each proto3 optional field gets its own synthetic oneof). Synthetic |
1574 | | /// oneofs exist in the descriptor only, and do not generate any API. Synthetic |
1575 | | /// oneofs must be ordered after all "real" oneofs. |
1576 | | /// |
1577 | | /// For message fields, proto3_optional doesn't create any semantic change, |
1578 | | /// since non-repeated message fields always track presence. However it still |
1579 | | /// indicates the semantic detail of whether the user wrote "optional" or not. |
1580 | | /// This can be useful for round-tripping the .proto file. For consistency we |
1581 | | /// give message fields a synthetic oneof also, even though it is not required |
1582 | | /// to track presence. This is especially important because the parser can't |
1583 | | /// tell if a field is a message or an enum, so it must always create a |
1584 | | /// synthetic oneof. |
1585 | | /// |
1586 | | /// Proto2 optional fields do not set this flag, because they already indicate |
1587 | | /// optional with `LABEL_OPTIONAL`. |
1588 | | // @@protoc_insertion_point(field:google.protobuf.FieldDescriptorProto.proto3_optional) |
1589 | | pub proto3_optional: ::std::option::Option<bool>, |
1590 | | // special fields |
1591 | | // @@protoc_insertion_point(special_field:google.protobuf.FieldDescriptorProto.special_fields) |
1592 | | pub special_fields: crate::SpecialFields, |
1593 | | } |
1594 | | |
1595 | | impl<'a> ::std::default::Default for &'a FieldDescriptorProto { |
1596 | 0 | fn default() -> &'a FieldDescriptorProto { |
1597 | 0 | <FieldDescriptorProto as crate::Message>::default_instance() |
1598 | 0 | } |
1599 | | } |
1600 | | |
1601 | | impl FieldDescriptorProto { |
1602 | 0 | pub fn new() -> FieldDescriptorProto { |
1603 | 0 | ::std::default::Default::default() |
1604 | 0 | } |
1605 | | |
1606 | | // optional string name = 1; |
1607 | | |
1608 | 0 | pub fn name(&self) -> &str { |
1609 | 0 | match self.name.as_ref() { |
1610 | 0 | Some(v) => v, |
1611 | 0 | None => "", |
1612 | | } |
1613 | 0 | } |
1614 | | |
1615 | 0 | pub fn clear_name(&mut self) { |
1616 | 0 | self.name = ::std::option::Option::None; |
1617 | 0 | } |
1618 | | |
1619 | 0 | pub fn has_name(&self) -> bool { |
1620 | 0 | self.name.is_some() |
1621 | 0 | } |
1622 | | |
1623 | | // Param is passed by value, moved |
1624 | 0 | pub fn set_name(&mut self, v: ::std::string::String) { |
1625 | 0 | self.name = ::std::option::Option::Some(v); |
1626 | 0 | } |
1627 | | |
1628 | | // Mutable pointer to the field. |
1629 | | // If field is not initialized, it is initialized with default value first. |
1630 | 0 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
1631 | 0 | if self.name.is_none() { |
1632 | 0 | self.name = ::std::option::Option::Some(::std::string::String::new()); |
1633 | 0 | } |
1634 | 0 | self.name.as_mut().unwrap() |
1635 | 0 | } |
1636 | | |
1637 | | // Take field |
1638 | 0 | pub fn take_name(&mut self) -> ::std::string::String { |
1639 | 0 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
1640 | 0 | } |
1641 | | |
1642 | | // optional int32 number = 3; |
1643 | | |
1644 | 0 | pub fn number(&self) -> i32 { |
1645 | 0 | self.number.unwrap_or(0) |
1646 | 0 | } |
1647 | | |
1648 | 0 | pub fn clear_number(&mut self) { |
1649 | 0 | self.number = ::std::option::Option::None; |
1650 | 0 | } |
1651 | | |
1652 | 0 | pub fn has_number(&self) -> bool { |
1653 | 0 | self.number.is_some() |
1654 | 0 | } |
1655 | | |
1656 | | // Param is passed by value, moved |
1657 | 0 | pub fn set_number(&mut self, v: i32) { |
1658 | 0 | self.number = ::std::option::Option::Some(v); |
1659 | 0 | } |
1660 | | |
1661 | | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
1662 | | |
1663 | 0 | pub fn label(&self) -> field_descriptor_proto::Label { |
1664 | 0 | match self.label { |
1665 | 0 | Some(e) => e.enum_value_or(field_descriptor_proto::Label::LABEL_OPTIONAL), |
1666 | 0 | None => field_descriptor_proto::Label::LABEL_OPTIONAL, |
1667 | | } |
1668 | 0 | } |
1669 | | |
1670 | 0 | pub fn clear_label(&mut self) { |
1671 | 0 | self.label = ::std::option::Option::None; |
1672 | 0 | } |
1673 | | |
1674 | 0 | pub fn has_label(&self) -> bool { |
1675 | 0 | self.label.is_some() |
1676 | 0 | } |
1677 | | |
1678 | | // Param is passed by value, moved |
1679 | 0 | pub fn set_label(&mut self, v: field_descriptor_proto::Label) { |
1680 | 0 | self.label = ::std::option::Option::Some(crate::EnumOrUnknown::new(v)); |
1681 | 0 | } |
1682 | | |
1683 | | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
1684 | | |
1685 | 0 | pub fn type_(&self) -> field_descriptor_proto::Type { |
1686 | 0 | match self.type_ { |
1687 | 0 | Some(e) => e.enum_value_or(field_descriptor_proto::Type::TYPE_DOUBLE), |
1688 | 0 | None => field_descriptor_proto::Type::TYPE_DOUBLE, |
1689 | | } |
1690 | 0 | } |
1691 | | |
1692 | 0 | pub fn clear_type_(&mut self) { |
1693 | 0 | self.type_ = ::std::option::Option::None; |
1694 | 0 | } |
1695 | | |
1696 | 0 | pub fn has_type(&self) -> bool { |
1697 | 0 | self.type_.is_some() |
1698 | 0 | } |
1699 | | |
1700 | | // Param is passed by value, moved |
1701 | 0 | pub fn set_type(&mut self, v: field_descriptor_proto::Type) { |
1702 | 0 | self.type_ = ::std::option::Option::Some(crate::EnumOrUnknown::new(v)); |
1703 | 0 | } |
1704 | | |
1705 | | // optional string type_name = 6; |
1706 | | |
1707 | 0 | pub fn type_name(&self) -> &str { |
1708 | 0 | match self.type_name.as_ref() { |
1709 | 0 | Some(v) => v, |
1710 | 0 | None => "", |
1711 | | } |
1712 | 0 | } |
1713 | | |
1714 | 0 | pub fn clear_type_name(&mut self) { |
1715 | 0 | self.type_name = ::std::option::Option::None; |
1716 | 0 | } |
1717 | | |
1718 | 0 | pub fn has_type_name(&self) -> bool { |
1719 | 0 | self.type_name.is_some() |
1720 | 0 | } |
1721 | | |
1722 | | // Param is passed by value, moved |
1723 | 0 | pub fn set_type_name(&mut self, v: ::std::string::String) { |
1724 | 0 | self.type_name = ::std::option::Option::Some(v); |
1725 | 0 | } |
1726 | | |
1727 | | // Mutable pointer to the field. |
1728 | | // If field is not initialized, it is initialized with default value first. |
1729 | 0 | pub fn mut_type_name(&mut self) -> &mut ::std::string::String { |
1730 | 0 | if self.type_name.is_none() { |
1731 | 0 | self.type_name = ::std::option::Option::Some(::std::string::String::new()); |
1732 | 0 | } |
1733 | 0 | self.type_name.as_mut().unwrap() |
1734 | 0 | } |
1735 | | |
1736 | | // Take field |
1737 | 0 | pub fn take_type_name(&mut self) -> ::std::string::String { |
1738 | 0 | self.type_name.take().unwrap_or_else(|| ::std::string::String::new()) |
1739 | 0 | } |
1740 | | |
1741 | | // optional string extendee = 2; |
1742 | | |
1743 | 0 | pub fn extendee(&self) -> &str { |
1744 | 0 | match self.extendee.as_ref() { |
1745 | 0 | Some(v) => v, |
1746 | 0 | None => "", |
1747 | | } |
1748 | 0 | } |
1749 | | |
1750 | 0 | pub fn clear_extendee(&mut self) { |
1751 | 0 | self.extendee = ::std::option::Option::None; |
1752 | 0 | } |
1753 | | |
1754 | 0 | pub fn has_extendee(&self) -> bool { |
1755 | 0 | self.extendee.is_some() |
1756 | 0 | } |
1757 | | |
1758 | | // Param is passed by value, moved |
1759 | 0 | pub fn set_extendee(&mut self, v: ::std::string::String) { |
1760 | 0 | self.extendee = ::std::option::Option::Some(v); |
1761 | 0 | } |
1762 | | |
1763 | | // Mutable pointer to the field. |
1764 | | // If field is not initialized, it is initialized with default value first. |
1765 | 0 | pub fn mut_extendee(&mut self) -> &mut ::std::string::String { |
1766 | 0 | if self.extendee.is_none() { |
1767 | 0 | self.extendee = ::std::option::Option::Some(::std::string::String::new()); |
1768 | 0 | } |
1769 | 0 | self.extendee.as_mut().unwrap() |
1770 | 0 | } |
1771 | | |
1772 | | // Take field |
1773 | 0 | pub fn take_extendee(&mut self) -> ::std::string::String { |
1774 | 0 | self.extendee.take().unwrap_or_else(|| ::std::string::String::new()) |
1775 | 0 | } |
1776 | | |
1777 | | // optional string default_value = 7; |
1778 | | |
1779 | 0 | pub fn default_value(&self) -> &str { |
1780 | 0 | match self.default_value.as_ref() { |
1781 | 0 | Some(v) => v, |
1782 | 0 | None => "", |
1783 | | } |
1784 | 0 | } |
1785 | | |
1786 | 0 | pub fn clear_default_value(&mut self) { |
1787 | 0 | self.default_value = ::std::option::Option::None; |
1788 | 0 | } |
1789 | | |
1790 | 0 | pub fn has_default_value(&self) -> bool { |
1791 | 0 | self.default_value.is_some() |
1792 | 0 | } |
1793 | | |
1794 | | // Param is passed by value, moved |
1795 | 0 | pub fn set_default_value(&mut self, v: ::std::string::String) { |
1796 | 0 | self.default_value = ::std::option::Option::Some(v); |
1797 | 0 | } |
1798 | | |
1799 | | // Mutable pointer to the field. |
1800 | | // If field is not initialized, it is initialized with default value first. |
1801 | 0 | pub fn mut_default_value(&mut self) -> &mut ::std::string::String { |
1802 | 0 | if self.default_value.is_none() { |
1803 | 0 | self.default_value = ::std::option::Option::Some(::std::string::String::new()); |
1804 | 0 | } |
1805 | 0 | self.default_value.as_mut().unwrap() |
1806 | 0 | } |
1807 | | |
1808 | | // Take field |
1809 | 0 | pub fn take_default_value(&mut self) -> ::std::string::String { |
1810 | 0 | self.default_value.take().unwrap_or_else(|| ::std::string::String::new()) |
1811 | 0 | } |
1812 | | |
1813 | | // optional int32 oneof_index = 9; |
1814 | | |
1815 | 0 | pub fn oneof_index(&self) -> i32 { |
1816 | 0 | self.oneof_index.unwrap_or(0) |
1817 | 0 | } |
1818 | | |
1819 | 0 | pub fn clear_oneof_index(&mut self) { |
1820 | 0 | self.oneof_index = ::std::option::Option::None; |
1821 | 0 | } |
1822 | | |
1823 | 0 | pub fn has_oneof_index(&self) -> bool { |
1824 | 0 | self.oneof_index.is_some() |
1825 | 0 | } |
1826 | | |
1827 | | // Param is passed by value, moved |
1828 | 0 | pub fn set_oneof_index(&mut self, v: i32) { |
1829 | 0 | self.oneof_index = ::std::option::Option::Some(v); |
1830 | 0 | } |
1831 | | |
1832 | | // optional string json_name = 10; |
1833 | | |
1834 | 0 | pub fn json_name(&self) -> &str { |
1835 | 0 | match self.json_name.as_ref() { |
1836 | 0 | Some(v) => v, |
1837 | 0 | None => "", |
1838 | | } |
1839 | 0 | } |
1840 | | |
1841 | 0 | pub fn clear_json_name(&mut self) { |
1842 | 0 | self.json_name = ::std::option::Option::None; |
1843 | 0 | } |
1844 | | |
1845 | 0 | pub fn has_json_name(&self) -> bool { |
1846 | 0 | self.json_name.is_some() |
1847 | 0 | } |
1848 | | |
1849 | | // Param is passed by value, moved |
1850 | 0 | pub fn set_json_name(&mut self, v: ::std::string::String) { |
1851 | 0 | self.json_name = ::std::option::Option::Some(v); |
1852 | 0 | } |
1853 | | |
1854 | | // Mutable pointer to the field. |
1855 | | // If field is not initialized, it is initialized with default value first. |
1856 | 0 | pub fn mut_json_name(&mut self) -> &mut ::std::string::String { |
1857 | 0 | if self.json_name.is_none() { |
1858 | 0 | self.json_name = ::std::option::Option::Some(::std::string::String::new()); |
1859 | 0 | } |
1860 | 0 | self.json_name.as_mut().unwrap() |
1861 | 0 | } |
1862 | | |
1863 | | // Take field |
1864 | 0 | pub fn take_json_name(&mut self) -> ::std::string::String { |
1865 | 0 | self.json_name.take().unwrap_or_else(|| ::std::string::String::new()) |
1866 | 0 | } |
1867 | | |
1868 | | // optional bool proto3_optional = 17; |
1869 | | |
1870 | 0 | pub fn proto3_optional(&self) -> bool { |
1871 | 0 | self.proto3_optional.unwrap_or(false) |
1872 | 0 | } |
1873 | | |
1874 | 0 | pub fn clear_proto3_optional(&mut self) { |
1875 | 0 | self.proto3_optional = ::std::option::Option::None; |
1876 | 0 | } |
1877 | | |
1878 | 0 | pub fn has_proto3_optional(&self) -> bool { |
1879 | 0 | self.proto3_optional.is_some() |
1880 | 0 | } |
1881 | | |
1882 | | // Param is passed by value, moved |
1883 | 0 | pub fn set_proto3_optional(&mut self, v: bool) { |
1884 | 0 | self.proto3_optional = ::std::option::Option::Some(v); |
1885 | 0 | } |
1886 | | |
1887 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
1888 | 0 | let mut fields = ::std::vec::Vec::with_capacity(11); |
1889 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
1890 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1891 | | "name", |
1892 | 0 | |m: &FieldDescriptorProto| { &m.name }, |
1893 | 0 | |m: &mut FieldDescriptorProto| { &mut m.name }, |
1894 | | )); |
1895 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1896 | | "number", |
1897 | 0 | |m: &FieldDescriptorProto| { &m.number }, |
1898 | 0 | |m: &mut FieldDescriptorProto| { &mut m.number }, |
1899 | | )); |
1900 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1901 | | "label", |
1902 | 0 | |m: &FieldDescriptorProto| { &m.label }, |
1903 | 0 | |m: &mut FieldDescriptorProto| { &mut m.label }, |
1904 | | )); |
1905 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1906 | | "type", |
1907 | 0 | |m: &FieldDescriptorProto| { &m.type_ }, |
1908 | 0 | |m: &mut FieldDescriptorProto| { &mut m.type_ }, |
1909 | | )); |
1910 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1911 | | "type_name", |
1912 | 0 | |m: &FieldDescriptorProto| { &m.type_name }, |
1913 | 0 | |m: &mut FieldDescriptorProto| { &mut m.type_name }, |
1914 | | )); |
1915 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1916 | | "extendee", |
1917 | 0 | |m: &FieldDescriptorProto| { &m.extendee }, |
1918 | 0 | |m: &mut FieldDescriptorProto| { &mut m.extendee }, |
1919 | | )); |
1920 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1921 | | "default_value", |
1922 | 0 | |m: &FieldDescriptorProto| { &m.default_value }, |
1923 | 0 | |m: &mut FieldDescriptorProto| { &mut m.default_value }, |
1924 | | )); |
1925 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1926 | | "oneof_index", |
1927 | 0 | |m: &FieldDescriptorProto| { &m.oneof_index }, |
1928 | 0 | |m: &mut FieldDescriptorProto| { &mut m.oneof_index }, |
1929 | | )); |
1930 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1931 | | "json_name", |
1932 | 0 | |m: &FieldDescriptorProto| { &m.json_name }, |
1933 | 0 | |m: &mut FieldDescriptorProto| { &mut m.json_name }, |
1934 | | )); |
1935 | 0 | fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, FieldOptions>( |
1936 | | "options", |
1937 | 0 | |m: &FieldDescriptorProto| { &m.options }, |
1938 | 0 | |m: &mut FieldDescriptorProto| { &mut m.options }, |
1939 | | )); |
1940 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
1941 | | "proto3_optional", |
1942 | 0 | |m: &FieldDescriptorProto| { &m.proto3_optional }, |
1943 | 0 | |m: &mut FieldDescriptorProto| { &mut m.proto3_optional }, |
1944 | | )); |
1945 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<FieldDescriptorProto>( |
1946 | | "FieldDescriptorProto", |
1947 | 0 | fields, |
1948 | 0 | oneofs, |
1949 | | ) |
1950 | 0 | } |
1951 | | } |
1952 | | |
1953 | | impl crate::Message for FieldDescriptorProto { |
1954 | | const NAME: &'static str = "FieldDescriptorProto"; |
1955 | | |
1956 | 0 | fn is_initialized(&self) -> bool { |
1957 | 0 | for v in &self.options { |
1958 | 0 | if !v.is_initialized() { |
1959 | 0 | return false; |
1960 | 0 | } |
1961 | | }; |
1962 | 0 | true |
1963 | 0 | } |
1964 | | |
1965 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
1966 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
1967 | 0 | match tag { |
1968 | | 10 => { |
1969 | 0 | self.name = ::std::option::Option::Some(is.read_string()?); |
1970 | | }, |
1971 | | 24 => { |
1972 | 0 | self.number = ::std::option::Option::Some(is.read_int32()?); |
1973 | | }, |
1974 | | 32 => { |
1975 | 0 | self.label = ::std::option::Option::Some(is.read_enum_or_unknown()?); |
1976 | | }, |
1977 | | 40 => { |
1978 | 0 | self.type_ = ::std::option::Option::Some(is.read_enum_or_unknown()?); |
1979 | | }, |
1980 | | 50 => { |
1981 | 0 | self.type_name = ::std::option::Option::Some(is.read_string()?); |
1982 | | }, |
1983 | | 18 => { |
1984 | 0 | self.extendee = ::std::option::Option::Some(is.read_string()?); |
1985 | | }, |
1986 | | 58 => { |
1987 | 0 | self.default_value = ::std::option::Option::Some(is.read_string()?); |
1988 | | }, |
1989 | | 72 => { |
1990 | 0 | self.oneof_index = ::std::option::Option::Some(is.read_int32()?); |
1991 | | }, |
1992 | | 82 => { |
1993 | 0 | self.json_name = ::std::option::Option::Some(is.read_string()?); |
1994 | | }, |
1995 | | 66 => { |
1996 | 0 | crate::rt::read_singular_message_into_field(is, &mut self.options)?; |
1997 | | }, |
1998 | | 136 => { |
1999 | 0 | self.proto3_optional = ::std::option::Option::Some(is.read_bool()?); |
2000 | | }, |
2001 | 0 | tag => { |
2002 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
2003 | | }, |
2004 | | }; |
2005 | | } |
2006 | 0 | ::std::result::Result::Ok(()) |
2007 | 0 | } |
2008 | | |
2009 | | // Compute sizes of nested messages |
2010 | | #[allow(unused_variables)] |
2011 | 0 | fn compute_size(&self) -> u64 { |
2012 | 0 | let mut my_size = 0; |
2013 | 0 | if let Some(v) = self.name.as_ref() { |
2014 | 0 | my_size += crate::rt::string_size(1, &v); |
2015 | 0 | } |
2016 | 0 | if let Some(v) = self.number { |
2017 | 0 | my_size += crate::rt::int32_size(3, v); |
2018 | 0 | } |
2019 | 0 | if let Some(v) = self.label { |
2020 | 0 | my_size += crate::rt::int32_size(4, v.value()); |
2021 | 0 | } |
2022 | 0 | if let Some(v) = self.type_ { |
2023 | 0 | my_size += crate::rt::int32_size(5, v.value()); |
2024 | 0 | } |
2025 | 0 | if let Some(v) = self.type_name.as_ref() { |
2026 | 0 | my_size += crate::rt::string_size(6, &v); |
2027 | 0 | } |
2028 | 0 | if let Some(v) = self.extendee.as_ref() { |
2029 | 0 | my_size += crate::rt::string_size(2, &v); |
2030 | 0 | } |
2031 | 0 | if let Some(v) = self.default_value.as_ref() { |
2032 | 0 | my_size += crate::rt::string_size(7, &v); |
2033 | 0 | } |
2034 | 0 | if let Some(v) = self.oneof_index { |
2035 | 0 | my_size += crate::rt::int32_size(9, v); |
2036 | 0 | } |
2037 | 0 | if let Some(v) = self.json_name.as_ref() { |
2038 | 0 | my_size += crate::rt::string_size(10, &v); |
2039 | 0 | } |
2040 | 0 | if let Some(v) = self.options.as_ref() { |
2041 | 0 | let len = v.compute_size(); |
2042 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
2043 | 0 | } |
2044 | 0 | if let Some(v) = self.proto3_optional { |
2045 | 0 | my_size += 2 + 1; |
2046 | 0 | } |
2047 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
2048 | 0 | self.special_fields.cached_size().set(my_size as u32); |
2049 | 0 | my_size |
2050 | 0 | } |
2051 | | |
2052 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
2053 | 0 | if let Some(v) = self.name.as_ref() { |
2054 | 0 | os.write_string(1, v)?; |
2055 | 0 | } |
2056 | 0 | if let Some(v) = self.number { |
2057 | 0 | os.write_int32(3, v)?; |
2058 | 0 | } |
2059 | 0 | if let Some(v) = self.label { |
2060 | 0 | os.write_enum(4, crate::EnumOrUnknown::value(&v))?; |
2061 | 0 | } |
2062 | 0 | if let Some(v) = self.type_ { |
2063 | 0 | os.write_enum(5, crate::EnumOrUnknown::value(&v))?; |
2064 | 0 | } |
2065 | 0 | if let Some(v) = self.type_name.as_ref() { |
2066 | 0 | os.write_string(6, v)?; |
2067 | 0 | } |
2068 | 0 | if let Some(v) = self.extendee.as_ref() { |
2069 | 0 | os.write_string(2, v)?; |
2070 | 0 | } |
2071 | 0 | if let Some(v) = self.default_value.as_ref() { |
2072 | 0 | os.write_string(7, v)?; |
2073 | 0 | } |
2074 | 0 | if let Some(v) = self.oneof_index { |
2075 | 0 | os.write_int32(9, v)?; |
2076 | 0 | } |
2077 | 0 | if let Some(v) = self.json_name.as_ref() { |
2078 | 0 | os.write_string(10, v)?; |
2079 | 0 | } |
2080 | 0 | if let Some(v) = self.options.as_ref() { |
2081 | 0 | crate::rt::write_message_field_with_cached_size(8, v, os)?; |
2082 | 0 | } |
2083 | 0 | if let Some(v) = self.proto3_optional { |
2084 | 0 | os.write_bool(17, v)?; |
2085 | 0 | } |
2086 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
2087 | 0 | ::std::result::Result::Ok(()) |
2088 | 0 | } |
2089 | | |
2090 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
2091 | 0 | &self.special_fields |
2092 | 0 | } |
2093 | | |
2094 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
2095 | 0 | &mut self.special_fields |
2096 | 0 | } |
2097 | | |
2098 | 0 | fn new() -> FieldDescriptorProto { |
2099 | 0 | FieldDescriptorProto::new() |
2100 | 0 | } |
2101 | | |
2102 | 0 | fn clear(&mut self) { |
2103 | 0 | self.name = ::std::option::Option::None; |
2104 | 0 | self.number = ::std::option::Option::None; |
2105 | 0 | self.label = ::std::option::Option::None; |
2106 | 0 | self.type_ = ::std::option::Option::None; |
2107 | 0 | self.type_name = ::std::option::Option::None; |
2108 | 0 | self.extendee = ::std::option::Option::None; |
2109 | 0 | self.default_value = ::std::option::Option::None; |
2110 | 0 | self.oneof_index = ::std::option::Option::None; |
2111 | 0 | self.json_name = ::std::option::Option::None; |
2112 | 0 | self.options.clear(); |
2113 | 0 | self.proto3_optional = ::std::option::Option::None; |
2114 | 0 | self.special_fields.clear(); |
2115 | 0 | } |
2116 | | |
2117 | 0 | fn default_instance() -> &'static FieldDescriptorProto { |
2118 | | static instance: FieldDescriptorProto = FieldDescriptorProto { |
2119 | | name: ::std::option::Option::None, |
2120 | | number: ::std::option::Option::None, |
2121 | | label: ::std::option::Option::None, |
2122 | | type_: ::std::option::Option::None, |
2123 | | type_name: ::std::option::Option::None, |
2124 | | extendee: ::std::option::Option::None, |
2125 | | default_value: ::std::option::Option::None, |
2126 | | oneof_index: ::std::option::Option::None, |
2127 | | json_name: ::std::option::Option::None, |
2128 | | options: crate::MessageField::none(), |
2129 | | proto3_optional: ::std::option::Option::None, |
2130 | | special_fields: crate::SpecialFields::new(), |
2131 | | }; |
2132 | 0 | &instance |
2133 | 0 | } |
2134 | | } |
2135 | | |
2136 | | impl crate::MessageFull for FieldDescriptorProto { |
2137 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
2138 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
2139 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("FieldDescriptorProto").unwrap()).clone() |
2140 | 0 | } |
2141 | | } |
2142 | | |
2143 | | impl ::std::fmt::Display for FieldDescriptorProto { |
2144 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
2145 | 0 | crate::text_format::fmt(self, f) |
2146 | 0 | } |
2147 | | } |
2148 | | |
2149 | | impl crate::reflect::ProtobufValue for FieldDescriptorProto { |
2150 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
2151 | | } |
2152 | | |
2153 | | /// Nested message and enums of message `FieldDescriptorProto` |
2154 | | pub mod field_descriptor_proto { |
2155 | | #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] |
2156 | | // @@protoc_insertion_point(enum:google.protobuf.FieldDescriptorProto.Type) |
2157 | | pub enum Type { |
2158 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_DOUBLE) |
2159 | | TYPE_DOUBLE = 1, |
2160 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_FLOAT) |
2161 | | TYPE_FLOAT = 2, |
2162 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_INT64) |
2163 | | TYPE_INT64 = 3, |
2164 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_UINT64) |
2165 | | TYPE_UINT64 = 4, |
2166 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_INT32) |
2167 | | TYPE_INT32 = 5, |
2168 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_FIXED64) |
2169 | | TYPE_FIXED64 = 6, |
2170 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_FIXED32) |
2171 | | TYPE_FIXED32 = 7, |
2172 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_BOOL) |
2173 | | TYPE_BOOL = 8, |
2174 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_STRING) |
2175 | | TYPE_STRING = 9, |
2176 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_GROUP) |
2177 | | TYPE_GROUP = 10, |
2178 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_MESSAGE) |
2179 | | TYPE_MESSAGE = 11, |
2180 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_BYTES) |
2181 | | TYPE_BYTES = 12, |
2182 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_UINT32) |
2183 | | TYPE_UINT32 = 13, |
2184 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_ENUM) |
2185 | | TYPE_ENUM = 14, |
2186 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_SFIXED32) |
2187 | | TYPE_SFIXED32 = 15, |
2188 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_SFIXED64) |
2189 | | TYPE_SFIXED64 = 16, |
2190 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_SINT32) |
2191 | | TYPE_SINT32 = 17, |
2192 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Type.TYPE_SINT64) |
2193 | | TYPE_SINT64 = 18, |
2194 | | } |
2195 | | |
2196 | | impl crate::Enum for Type { |
2197 | | const NAME: &'static str = "Type"; |
2198 | | |
2199 | 0 | fn value(&self) -> i32 { |
2200 | 0 | *self as i32 |
2201 | 0 | } |
2202 | | |
2203 | 0 | fn from_i32(value: i32) -> ::std::option::Option<Type> { |
2204 | 0 | match value { |
2205 | 0 | 1 => ::std::option::Option::Some(Type::TYPE_DOUBLE), |
2206 | 0 | 2 => ::std::option::Option::Some(Type::TYPE_FLOAT), |
2207 | 0 | 3 => ::std::option::Option::Some(Type::TYPE_INT64), |
2208 | 0 | 4 => ::std::option::Option::Some(Type::TYPE_UINT64), |
2209 | 0 | 5 => ::std::option::Option::Some(Type::TYPE_INT32), |
2210 | 0 | 6 => ::std::option::Option::Some(Type::TYPE_FIXED64), |
2211 | 0 | 7 => ::std::option::Option::Some(Type::TYPE_FIXED32), |
2212 | 0 | 8 => ::std::option::Option::Some(Type::TYPE_BOOL), |
2213 | 0 | 9 => ::std::option::Option::Some(Type::TYPE_STRING), |
2214 | 0 | 10 => ::std::option::Option::Some(Type::TYPE_GROUP), |
2215 | 0 | 11 => ::std::option::Option::Some(Type::TYPE_MESSAGE), |
2216 | 0 | 12 => ::std::option::Option::Some(Type::TYPE_BYTES), |
2217 | 0 | 13 => ::std::option::Option::Some(Type::TYPE_UINT32), |
2218 | 0 | 14 => ::std::option::Option::Some(Type::TYPE_ENUM), |
2219 | 0 | 15 => ::std::option::Option::Some(Type::TYPE_SFIXED32), |
2220 | 0 | 16 => ::std::option::Option::Some(Type::TYPE_SFIXED64), |
2221 | 0 | 17 => ::std::option::Option::Some(Type::TYPE_SINT32), |
2222 | 0 | 18 => ::std::option::Option::Some(Type::TYPE_SINT64), |
2223 | 0 | _ => ::std::option::Option::None |
2224 | | } |
2225 | 0 | } |
2226 | | |
2227 | | const VALUES: &'static [Type] = &[ |
2228 | | Type::TYPE_DOUBLE, |
2229 | | Type::TYPE_FLOAT, |
2230 | | Type::TYPE_INT64, |
2231 | | Type::TYPE_UINT64, |
2232 | | Type::TYPE_INT32, |
2233 | | Type::TYPE_FIXED64, |
2234 | | Type::TYPE_FIXED32, |
2235 | | Type::TYPE_BOOL, |
2236 | | Type::TYPE_STRING, |
2237 | | Type::TYPE_GROUP, |
2238 | | Type::TYPE_MESSAGE, |
2239 | | Type::TYPE_BYTES, |
2240 | | Type::TYPE_UINT32, |
2241 | | Type::TYPE_ENUM, |
2242 | | Type::TYPE_SFIXED32, |
2243 | | Type::TYPE_SFIXED64, |
2244 | | Type::TYPE_SINT32, |
2245 | | Type::TYPE_SINT64, |
2246 | | ]; |
2247 | | } |
2248 | | |
2249 | | impl crate::EnumFull for Type { |
2250 | 0 | fn enum_descriptor() -> crate::reflect::EnumDescriptor { |
2251 | | static descriptor: crate::rt::Lazy<crate::reflect::EnumDescriptor> = crate::rt::Lazy::new(); |
2252 | 0 | descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("FieldDescriptorProto.Type").unwrap()).clone() |
2253 | 0 | } |
2254 | | |
2255 | 0 | fn descriptor(&self) -> crate::reflect::EnumValueDescriptor { |
2256 | 0 | let index = match self { |
2257 | 0 | Type::TYPE_DOUBLE => 0, |
2258 | 0 | Type::TYPE_FLOAT => 1, |
2259 | 0 | Type::TYPE_INT64 => 2, |
2260 | 0 | Type::TYPE_UINT64 => 3, |
2261 | 0 | Type::TYPE_INT32 => 4, |
2262 | 0 | Type::TYPE_FIXED64 => 5, |
2263 | 0 | Type::TYPE_FIXED32 => 6, |
2264 | 0 | Type::TYPE_BOOL => 7, |
2265 | 0 | Type::TYPE_STRING => 8, |
2266 | 0 | Type::TYPE_GROUP => 9, |
2267 | 0 | Type::TYPE_MESSAGE => 10, |
2268 | 0 | Type::TYPE_BYTES => 11, |
2269 | 0 | Type::TYPE_UINT32 => 12, |
2270 | 0 | Type::TYPE_ENUM => 13, |
2271 | 0 | Type::TYPE_SFIXED32 => 14, |
2272 | 0 | Type::TYPE_SFIXED64 => 15, |
2273 | 0 | Type::TYPE_SINT32 => 16, |
2274 | 0 | Type::TYPE_SINT64 => 17, |
2275 | | }; |
2276 | 0 | Self::enum_descriptor().value_by_index(index) |
2277 | 0 | } |
2278 | | } |
2279 | | |
2280 | | // Note, `Default` is implemented although default value is not 0 |
2281 | | impl ::std::default::Default for Type { |
2282 | 0 | fn default() -> Self { |
2283 | 0 | Type::TYPE_DOUBLE |
2284 | 0 | } |
2285 | | } |
2286 | | |
2287 | | impl Type { |
2288 | 0 | pub(in super) fn generated_enum_descriptor_data() -> crate::reflect::GeneratedEnumDescriptorData { |
2289 | 0 | crate::reflect::GeneratedEnumDescriptorData::new::<Type>("FieldDescriptorProto.Type") |
2290 | 0 | } |
2291 | | } |
2292 | | |
2293 | | #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] |
2294 | | // @@protoc_insertion_point(enum:google.protobuf.FieldDescriptorProto.Label) |
2295 | | pub enum Label { |
2296 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Label.LABEL_OPTIONAL) |
2297 | | LABEL_OPTIONAL = 1, |
2298 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Label.LABEL_REQUIRED) |
2299 | | LABEL_REQUIRED = 2, |
2300 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldDescriptorProto.Label.LABEL_REPEATED) |
2301 | | LABEL_REPEATED = 3, |
2302 | | } |
2303 | | |
2304 | | impl crate::Enum for Label { |
2305 | | const NAME: &'static str = "Label"; |
2306 | | |
2307 | 0 | fn value(&self) -> i32 { |
2308 | 0 | *self as i32 |
2309 | 0 | } |
2310 | | |
2311 | 0 | fn from_i32(value: i32) -> ::std::option::Option<Label> { |
2312 | 0 | match value { |
2313 | 0 | 1 => ::std::option::Option::Some(Label::LABEL_OPTIONAL), |
2314 | 0 | 2 => ::std::option::Option::Some(Label::LABEL_REQUIRED), |
2315 | 0 | 3 => ::std::option::Option::Some(Label::LABEL_REPEATED), |
2316 | 0 | _ => ::std::option::Option::None |
2317 | | } |
2318 | 0 | } |
2319 | | |
2320 | | const VALUES: &'static [Label] = &[ |
2321 | | Label::LABEL_OPTIONAL, |
2322 | | Label::LABEL_REQUIRED, |
2323 | | Label::LABEL_REPEATED, |
2324 | | ]; |
2325 | | } |
2326 | | |
2327 | | impl crate::EnumFull for Label { |
2328 | 0 | fn enum_descriptor() -> crate::reflect::EnumDescriptor { |
2329 | | static descriptor: crate::rt::Lazy<crate::reflect::EnumDescriptor> = crate::rt::Lazy::new(); |
2330 | 0 | descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("FieldDescriptorProto.Label").unwrap()).clone() |
2331 | 0 | } |
2332 | | |
2333 | 0 | fn descriptor(&self) -> crate::reflect::EnumValueDescriptor { |
2334 | 0 | let index = match self { |
2335 | 0 | Label::LABEL_OPTIONAL => 0, |
2336 | 0 | Label::LABEL_REQUIRED => 1, |
2337 | 0 | Label::LABEL_REPEATED => 2, |
2338 | | }; |
2339 | 0 | Self::enum_descriptor().value_by_index(index) |
2340 | 0 | } |
2341 | | } |
2342 | | |
2343 | | // Note, `Default` is implemented although default value is not 0 |
2344 | | impl ::std::default::Default for Label { |
2345 | 0 | fn default() -> Self { |
2346 | 0 | Label::LABEL_OPTIONAL |
2347 | 0 | } |
2348 | | } |
2349 | | |
2350 | | impl Label { |
2351 | 0 | pub(in super) fn generated_enum_descriptor_data() -> crate::reflect::GeneratedEnumDescriptorData { |
2352 | 0 | crate::reflect::GeneratedEnumDescriptorData::new::<Label>("FieldDescriptorProto.Label") |
2353 | 0 | } |
2354 | | } |
2355 | | } |
2356 | | |
2357 | | /// Describes a oneof. |
2358 | | #[derive(PartialEq,Clone,Default,Debug)] |
2359 | | // @@protoc_insertion_point(message:google.protobuf.OneofDescriptorProto) |
2360 | | pub struct OneofDescriptorProto { |
2361 | | // message fields |
2362 | | // @@protoc_insertion_point(field:google.protobuf.OneofDescriptorProto.name) |
2363 | | pub name: ::std::option::Option<::std::string::String>, |
2364 | | // @@protoc_insertion_point(field:google.protobuf.OneofDescriptorProto.options) |
2365 | | pub options: crate::MessageField<OneofOptions>, |
2366 | | // special fields |
2367 | | // @@protoc_insertion_point(special_field:google.protobuf.OneofDescriptorProto.special_fields) |
2368 | | pub special_fields: crate::SpecialFields, |
2369 | | } |
2370 | | |
2371 | | impl<'a> ::std::default::Default for &'a OneofDescriptorProto { |
2372 | 0 | fn default() -> &'a OneofDescriptorProto { |
2373 | 0 | <OneofDescriptorProto as crate::Message>::default_instance() |
2374 | 0 | } |
2375 | | } |
2376 | | |
2377 | | impl OneofDescriptorProto { |
2378 | 0 | pub fn new() -> OneofDescriptorProto { |
2379 | 0 | ::std::default::Default::default() |
2380 | 0 | } |
2381 | | |
2382 | | // optional string name = 1; |
2383 | | |
2384 | 0 | pub fn name(&self) -> &str { |
2385 | 0 | match self.name.as_ref() { |
2386 | 0 | Some(v) => v, |
2387 | 0 | None => "", |
2388 | | } |
2389 | 0 | } |
2390 | | |
2391 | 0 | pub fn clear_name(&mut self) { |
2392 | 0 | self.name = ::std::option::Option::None; |
2393 | 0 | } |
2394 | | |
2395 | 0 | pub fn has_name(&self) -> bool { |
2396 | 0 | self.name.is_some() |
2397 | 0 | } |
2398 | | |
2399 | | // Param is passed by value, moved |
2400 | 0 | pub fn set_name(&mut self, v: ::std::string::String) { |
2401 | 0 | self.name = ::std::option::Option::Some(v); |
2402 | 0 | } |
2403 | | |
2404 | | // Mutable pointer to the field. |
2405 | | // If field is not initialized, it is initialized with default value first. |
2406 | 0 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
2407 | 0 | if self.name.is_none() { |
2408 | 0 | self.name = ::std::option::Option::Some(::std::string::String::new()); |
2409 | 0 | } |
2410 | 0 | self.name.as_mut().unwrap() |
2411 | 0 | } |
2412 | | |
2413 | | // Take field |
2414 | 0 | pub fn take_name(&mut self) -> ::std::string::String { |
2415 | 0 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
2416 | 0 | } |
2417 | | |
2418 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
2419 | 0 | let mut fields = ::std::vec::Vec::with_capacity(2); |
2420 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
2421 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
2422 | | "name", |
2423 | 0 | |m: &OneofDescriptorProto| { &m.name }, |
2424 | 0 | |m: &mut OneofDescriptorProto| { &mut m.name }, |
2425 | | )); |
2426 | 0 | fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, OneofOptions>( |
2427 | | "options", |
2428 | 0 | |m: &OneofDescriptorProto| { &m.options }, |
2429 | 0 | |m: &mut OneofDescriptorProto| { &mut m.options }, |
2430 | | )); |
2431 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<OneofDescriptorProto>( |
2432 | | "OneofDescriptorProto", |
2433 | 0 | fields, |
2434 | 0 | oneofs, |
2435 | | ) |
2436 | 0 | } |
2437 | | } |
2438 | | |
2439 | | impl crate::Message for OneofDescriptorProto { |
2440 | | const NAME: &'static str = "OneofDescriptorProto"; |
2441 | | |
2442 | 0 | fn is_initialized(&self) -> bool { |
2443 | 0 | for v in &self.options { |
2444 | 0 | if !v.is_initialized() { |
2445 | 0 | return false; |
2446 | 0 | } |
2447 | | }; |
2448 | 0 | true |
2449 | 0 | } |
2450 | | |
2451 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
2452 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
2453 | 0 | match tag { |
2454 | | 10 => { |
2455 | 0 | self.name = ::std::option::Option::Some(is.read_string()?); |
2456 | | }, |
2457 | | 18 => { |
2458 | 0 | crate::rt::read_singular_message_into_field(is, &mut self.options)?; |
2459 | | }, |
2460 | 0 | tag => { |
2461 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
2462 | | }, |
2463 | | }; |
2464 | | } |
2465 | 0 | ::std::result::Result::Ok(()) |
2466 | 0 | } |
2467 | | |
2468 | | // Compute sizes of nested messages |
2469 | | #[allow(unused_variables)] |
2470 | 0 | fn compute_size(&self) -> u64 { |
2471 | 0 | let mut my_size = 0; |
2472 | 0 | if let Some(v) = self.name.as_ref() { |
2473 | 0 | my_size += crate::rt::string_size(1, &v); |
2474 | 0 | } |
2475 | 0 | if let Some(v) = self.options.as_ref() { |
2476 | 0 | let len = v.compute_size(); |
2477 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
2478 | 0 | } |
2479 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
2480 | 0 | self.special_fields.cached_size().set(my_size as u32); |
2481 | 0 | my_size |
2482 | 0 | } |
2483 | | |
2484 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
2485 | 0 | if let Some(v) = self.name.as_ref() { |
2486 | 0 | os.write_string(1, v)?; |
2487 | 0 | } |
2488 | 0 | if let Some(v) = self.options.as_ref() { |
2489 | 0 | crate::rt::write_message_field_with_cached_size(2, v, os)?; |
2490 | 0 | } |
2491 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
2492 | 0 | ::std::result::Result::Ok(()) |
2493 | 0 | } |
2494 | | |
2495 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
2496 | 0 | &self.special_fields |
2497 | 0 | } |
2498 | | |
2499 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
2500 | 0 | &mut self.special_fields |
2501 | 0 | } |
2502 | | |
2503 | 0 | fn new() -> OneofDescriptorProto { |
2504 | 0 | OneofDescriptorProto::new() |
2505 | 0 | } |
2506 | | |
2507 | 0 | fn clear(&mut self) { |
2508 | 0 | self.name = ::std::option::Option::None; |
2509 | 0 | self.options.clear(); |
2510 | 0 | self.special_fields.clear(); |
2511 | 0 | } |
2512 | | |
2513 | 0 | fn default_instance() -> &'static OneofDescriptorProto { |
2514 | | static instance: OneofDescriptorProto = OneofDescriptorProto { |
2515 | | name: ::std::option::Option::None, |
2516 | | options: crate::MessageField::none(), |
2517 | | special_fields: crate::SpecialFields::new(), |
2518 | | }; |
2519 | 0 | &instance |
2520 | 0 | } |
2521 | | } |
2522 | | |
2523 | | impl crate::MessageFull for OneofDescriptorProto { |
2524 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
2525 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
2526 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("OneofDescriptorProto").unwrap()).clone() |
2527 | 0 | } |
2528 | | } |
2529 | | |
2530 | | impl ::std::fmt::Display for OneofDescriptorProto { |
2531 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
2532 | 0 | crate::text_format::fmt(self, f) |
2533 | 0 | } |
2534 | | } |
2535 | | |
2536 | | impl crate::reflect::ProtobufValue for OneofDescriptorProto { |
2537 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
2538 | | } |
2539 | | |
2540 | | /// Describes an enum type. |
2541 | | #[derive(PartialEq,Clone,Default,Debug)] |
2542 | | // @@protoc_insertion_point(message:google.protobuf.EnumDescriptorProto) |
2543 | | pub struct EnumDescriptorProto { |
2544 | | // message fields |
2545 | | // @@protoc_insertion_point(field:google.protobuf.EnumDescriptorProto.name) |
2546 | | pub name: ::std::option::Option<::std::string::String>, |
2547 | | // @@protoc_insertion_point(field:google.protobuf.EnumDescriptorProto.value) |
2548 | | pub value: ::std::vec::Vec<EnumValueDescriptorProto>, |
2549 | | // @@protoc_insertion_point(field:google.protobuf.EnumDescriptorProto.options) |
2550 | | pub options: crate::MessageField<EnumOptions>, |
2551 | | /// Range of reserved numeric values. Reserved numeric values may not be used |
2552 | | /// by enum values in the same enum declaration. Reserved ranges may not |
2553 | | /// overlap. |
2554 | | // @@protoc_insertion_point(field:google.protobuf.EnumDescriptorProto.reserved_range) |
2555 | | pub reserved_range: ::std::vec::Vec<enum_descriptor_proto::EnumReservedRange>, |
2556 | | /// Reserved enum value names, which may not be reused. A given name may only |
2557 | | /// be reserved once. |
2558 | | // @@protoc_insertion_point(field:google.protobuf.EnumDescriptorProto.reserved_name) |
2559 | | pub reserved_name: ::std::vec::Vec<::std::string::String>, |
2560 | | // special fields |
2561 | | // @@protoc_insertion_point(special_field:google.protobuf.EnumDescriptorProto.special_fields) |
2562 | | pub special_fields: crate::SpecialFields, |
2563 | | } |
2564 | | |
2565 | | impl<'a> ::std::default::Default for &'a EnumDescriptorProto { |
2566 | 0 | fn default() -> &'a EnumDescriptorProto { |
2567 | 0 | <EnumDescriptorProto as crate::Message>::default_instance() |
2568 | 0 | } |
2569 | | } |
2570 | | |
2571 | | impl EnumDescriptorProto { |
2572 | 0 | pub fn new() -> EnumDescriptorProto { |
2573 | 0 | ::std::default::Default::default() |
2574 | 0 | } |
2575 | | |
2576 | | // optional string name = 1; |
2577 | | |
2578 | 0 | pub fn name(&self) -> &str { |
2579 | 0 | match self.name.as_ref() { |
2580 | 0 | Some(v) => v, |
2581 | 0 | None => "", |
2582 | | } |
2583 | 0 | } |
2584 | | |
2585 | 0 | pub fn clear_name(&mut self) { |
2586 | 0 | self.name = ::std::option::Option::None; |
2587 | 0 | } |
2588 | | |
2589 | 0 | pub fn has_name(&self) -> bool { |
2590 | 0 | self.name.is_some() |
2591 | 0 | } |
2592 | | |
2593 | | // Param is passed by value, moved |
2594 | 0 | pub fn set_name(&mut self, v: ::std::string::String) { |
2595 | 0 | self.name = ::std::option::Option::Some(v); |
2596 | 0 | } |
2597 | | |
2598 | | // Mutable pointer to the field. |
2599 | | // If field is not initialized, it is initialized with default value first. |
2600 | 0 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
2601 | 0 | if self.name.is_none() { |
2602 | 0 | self.name = ::std::option::Option::Some(::std::string::String::new()); |
2603 | 0 | } |
2604 | 0 | self.name.as_mut().unwrap() |
2605 | 0 | } |
2606 | | |
2607 | | // Take field |
2608 | 0 | pub fn take_name(&mut self) -> ::std::string::String { |
2609 | 0 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
2610 | 0 | } |
2611 | | |
2612 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
2613 | 0 | let mut fields = ::std::vec::Vec::with_capacity(5); |
2614 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
2615 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
2616 | | "name", |
2617 | 0 | |m: &EnumDescriptorProto| { &m.name }, |
2618 | 0 | |m: &mut EnumDescriptorProto| { &mut m.name }, |
2619 | | )); |
2620 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
2621 | | "value", |
2622 | 0 | |m: &EnumDescriptorProto| { &m.value }, |
2623 | 0 | |m: &mut EnumDescriptorProto| { &mut m.value }, |
2624 | | )); |
2625 | 0 | fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, EnumOptions>( |
2626 | | "options", |
2627 | 0 | |m: &EnumDescriptorProto| { &m.options }, |
2628 | 0 | |m: &mut EnumDescriptorProto| { &mut m.options }, |
2629 | | )); |
2630 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
2631 | | "reserved_range", |
2632 | 0 | |m: &EnumDescriptorProto| { &m.reserved_range }, |
2633 | 0 | |m: &mut EnumDescriptorProto| { &mut m.reserved_range }, |
2634 | | )); |
2635 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
2636 | | "reserved_name", |
2637 | 0 | |m: &EnumDescriptorProto| { &m.reserved_name }, |
2638 | 0 | |m: &mut EnumDescriptorProto| { &mut m.reserved_name }, |
2639 | | )); |
2640 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<EnumDescriptorProto>( |
2641 | | "EnumDescriptorProto", |
2642 | 0 | fields, |
2643 | 0 | oneofs, |
2644 | | ) |
2645 | 0 | } |
2646 | | } |
2647 | | |
2648 | | impl crate::Message for EnumDescriptorProto { |
2649 | | const NAME: &'static str = "EnumDescriptorProto"; |
2650 | | |
2651 | 0 | fn is_initialized(&self) -> bool { |
2652 | 0 | for v in &self.value { |
2653 | 0 | if !v.is_initialized() { |
2654 | 0 | return false; |
2655 | 0 | } |
2656 | | }; |
2657 | 0 | for v in &self.options { |
2658 | 0 | if !v.is_initialized() { |
2659 | 0 | return false; |
2660 | 0 | } |
2661 | | }; |
2662 | 0 | for v in &self.reserved_range { |
2663 | 0 | if !v.is_initialized() { |
2664 | 0 | return false; |
2665 | 0 | } |
2666 | | }; |
2667 | 0 | true |
2668 | 0 | } |
2669 | | |
2670 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
2671 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
2672 | 0 | match tag { |
2673 | | 10 => { |
2674 | 0 | self.name = ::std::option::Option::Some(is.read_string()?); |
2675 | | }, |
2676 | | 18 => { |
2677 | 0 | self.value.push(is.read_message()?); |
2678 | | }, |
2679 | | 26 => { |
2680 | 0 | crate::rt::read_singular_message_into_field(is, &mut self.options)?; |
2681 | | }, |
2682 | | 34 => { |
2683 | 0 | self.reserved_range.push(is.read_message()?); |
2684 | | }, |
2685 | | 42 => { |
2686 | 0 | self.reserved_name.push(is.read_string()?); |
2687 | | }, |
2688 | 0 | tag => { |
2689 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
2690 | | }, |
2691 | | }; |
2692 | | } |
2693 | 0 | ::std::result::Result::Ok(()) |
2694 | 0 | } |
2695 | | |
2696 | | // Compute sizes of nested messages |
2697 | | #[allow(unused_variables)] |
2698 | 0 | fn compute_size(&self) -> u64 { |
2699 | 0 | let mut my_size = 0; |
2700 | 0 | if let Some(v) = self.name.as_ref() { |
2701 | 0 | my_size += crate::rt::string_size(1, &v); |
2702 | 0 | } |
2703 | 0 | for value in &self.value { |
2704 | 0 | let len = value.compute_size(); |
2705 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
2706 | 0 | }; |
2707 | 0 | if let Some(v) = self.options.as_ref() { |
2708 | 0 | let len = v.compute_size(); |
2709 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
2710 | 0 | } |
2711 | 0 | for value in &self.reserved_range { |
2712 | 0 | let len = value.compute_size(); |
2713 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
2714 | 0 | }; |
2715 | 0 | for value in &self.reserved_name { |
2716 | 0 | my_size += crate::rt::string_size(5, &value); |
2717 | 0 | }; |
2718 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
2719 | 0 | self.special_fields.cached_size().set(my_size as u32); |
2720 | 0 | my_size |
2721 | 0 | } |
2722 | | |
2723 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
2724 | 0 | if let Some(v) = self.name.as_ref() { |
2725 | 0 | os.write_string(1, v)?; |
2726 | 0 | } |
2727 | 0 | for v in &self.value { |
2728 | 0 | crate::rt::write_message_field_with_cached_size(2, v, os)?; |
2729 | | }; |
2730 | 0 | if let Some(v) = self.options.as_ref() { |
2731 | 0 | crate::rt::write_message_field_with_cached_size(3, v, os)?; |
2732 | 0 | } |
2733 | 0 | for v in &self.reserved_range { |
2734 | 0 | crate::rt::write_message_field_with_cached_size(4, v, os)?; |
2735 | | }; |
2736 | 0 | for v in &self.reserved_name { |
2737 | 0 | os.write_string(5, &v)?; |
2738 | | }; |
2739 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
2740 | 0 | ::std::result::Result::Ok(()) |
2741 | 0 | } |
2742 | | |
2743 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
2744 | 0 | &self.special_fields |
2745 | 0 | } |
2746 | | |
2747 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
2748 | 0 | &mut self.special_fields |
2749 | 0 | } |
2750 | | |
2751 | 0 | fn new() -> EnumDescriptorProto { |
2752 | 0 | EnumDescriptorProto::new() |
2753 | 0 | } |
2754 | | |
2755 | 0 | fn clear(&mut self) { |
2756 | 0 | self.name = ::std::option::Option::None; |
2757 | 0 | self.value.clear(); |
2758 | 0 | self.options.clear(); |
2759 | 0 | self.reserved_range.clear(); |
2760 | 0 | self.reserved_name.clear(); |
2761 | 0 | self.special_fields.clear(); |
2762 | 0 | } |
2763 | | |
2764 | 0 | fn default_instance() -> &'static EnumDescriptorProto { |
2765 | | static instance: EnumDescriptorProto = EnumDescriptorProto { |
2766 | | name: ::std::option::Option::None, |
2767 | | value: ::std::vec::Vec::new(), |
2768 | | options: crate::MessageField::none(), |
2769 | | reserved_range: ::std::vec::Vec::new(), |
2770 | | reserved_name: ::std::vec::Vec::new(), |
2771 | | special_fields: crate::SpecialFields::new(), |
2772 | | }; |
2773 | 0 | &instance |
2774 | 0 | } |
2775 | | } |
2776 | | |
2777 | | impl crate::MessageFull for EnumDescriptorProto { |
2778 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
2779 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
2780 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("EnumDescriptorProto").unwrap()).clone() |
2781 | 0 | } |
2782 | | } |
2783 | | |
2784 | | impl ::std::fmt::Display for EnumDescriptorProto { |
2785 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
2786 | 0 | crate::text_format::fmt(self, f) |
2787 | 0 | } |
2788 | | } |
2789 | | |
2790 | | impl crate::reflect::ProtobufValue for EnumDescriptorProto { |
2791 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
2792 | | } |
2793 | | |
2794 | | /// Nested message and enums of message `EnumDescriptorProto` |
2795 | | pub mod enum_descriptor_proto { |
2796 | | /// Range of reserved numeric values. Reserved values may not be used by |
2797 | | /// entries in the same enum. Reserved ranges may not overlap. |
2798 | | /// |
2799 | | /// Note that this is distinct from DescriptorProto.ReservedRange in that it |
2800 | | /// is inclusive such that it can appropriately represent the entire int32 |
2801 | | /// domain. |
2802 | | #[derive(PartialEq,Clone,Default,Debug)] |
2803 | | // @@protoc_insertion_point(message:google.protobuf.EnumDescriptorProto.EnumReservedRange) |
2804 | | pub struct EnumReservedRange { |
2805 | | // message fields |
2806 | | // @@protoc_insertion_point(field:google.protobuf.EnumDescriptorProto.EnumReservedRange.start) |
2807 | | pub start: ::std::option::Option<i32>, |
2808 | | // @@protoc_insertion_point(field:google.protobuf.EnumDescriptorProto.EnumReservedRange.end) |
2809 | | pub end: ::std::option::Option<i32>, |
2810 | | // special fields |
2811 | | // @@protoc_insertion_point(special_field:google.protobuf.EnumDescriptorProto.EnumReservedRange.special_fields) |
2812 | | pub special_fields: crate::SpecialFields, |
2813 | | } |
2814 | | |
2815 | | impl<'a> ::std::default::Default for &'a EnumReservedRange { |
2816 | 0 | fn default() -> &'a EnumReservedRange { |
2817 | 0 | <EnumReservedRange as crate::Message>::default_instance() |
2818 | 0 | } |
2819 | | } |
2820 | | |
2821 | | impl EnumReservedRange { |
2822 | 0 | pub fn new() -> EnumReservedRange { |
2823 | 0 | ::std::default::Default::default() |
2824 | 0 | } |
2825 | | |
2826 | | // optional int32 start = 1; |
2827 | | |
2828 | 0 | pub fn start(&self) -> i32 { |
2829 | 0 | self.start.unwrap_or(0) |
2830 | 0 | } |
2831 | | |
2832 | 0 | pub fn clear_start(&mut self) { |
2833 | 0 | self.start = ::std::option::Option::None; |
2834 | 0 | } |
2835 | | |
2836 | 0 | pub fn has_start(&self) -> bool { |
2837 | 0 | self.start.is_some() |
2838 | 0 | } |
2839 | | |
2840 | | // Param is passed by value, moved |
2841 | 0 | pub fn set_start(&mut self, v: i32) { |
2842 | 0 | self.start = ::std::option::Option::Some(v); |
2843 | 0 | } |
2844 | | |
2845 | | // optional int32 end = 2; |
2846 | | |
2847 | 0 | pub fn end(&self) -> i32 { |
2848 | 0 | self.end.unwrap_or(0) |
2849 | 0 | } |
2850 | | |
2851 | 0 | pub fn clear_end(&mut self) { |
2852 | 0 | self.end = ::std::option::Option::None; |
2853 | 0 | } |
2854 | | |
2855 | 0 | pub fn has_end(&self) -> bool { |
2856 | 0 | self.end.is_some() |
2857 | 0 | } |
2858 | | |
2859 | | // Param is passed by value, moved |
2860 | 0 | pub fn set_end(&mut self, v: i32) { |
2861 | 0 | self.end = ::std::option::Option::Some(v); |
2862 | 0 | } |
2863 | | |
2864 | 0 | pub(in super) fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
2865 | 0 | let mut fields = ::std::vec::Vec::with_capacity(2); |
2866 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
2867 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
2868 | | "start", |
2869 | 0 | |m: &EnumReservedRange| { &m.start }, |
2870 | 0 | |m: &mut EnumReservedRange| { &mut m.start }, |
2871 | | )); |
2872 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
2873 | | "end", |
2874 | 0 | |m: &EnumReservedRange| { &m.end }, |
2875 | 0 | |m: &mut EnumReservedRange| { &mut m.end }, |
2876 | | )); |
2877 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<EnumReservedRange>( |
2878 | | "EnumDescriptorProto.EnumReservedRange", |
2879 | 0 | fields, |
2880 | 0 | oneofs, |
2881 | | ) |
2882 | 0 | } |
2883 | | } |
2884 | | |
2885 | | impl crate::Message for EnumReservedRange { |
2886 | | const NAME: &'static str = "EnumReservedRange"; |
2887 | | |
2888 | 0 | fn is_initialized(&self) -> bool { |
2889 | 0 | true |
2890 | 0 | } |
2891 | | |
2892 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
2893 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
2894 | 0 | match tag { |
2895 | | 8 => { |
2896 | 0 | self.start = ::std::option::Option::Some(is.read_int32()?); |
2897 | | }, |
2898 | | 16 => { |
2899 | 0 | self.end = ::std::option::Option::Some(is.read_int32()?); |
2900 | | }, |
2901 | 0 | tag => { |
2902 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
2903 | | }, |
2904 | | }; |
2905 | | } |
2906 | 0 | ::std::result::Result::Ok(()) |
2907 | 0 | } |
2908 | | |
2909 | | // Compute sizes of nested messages |
2910 | | #[allow(unused_variables)] |
2911 | 0 | fn compute_size(&self) -> u64 { |
2912 | 0 | let mut my_size = 0; |
2913 | 0 | if let Some(v) = self.start { |
2914 | 0 | my_size += crate::rt::int32_size(1, v); |
2915 | 0 | } |
2916 | 0 | if let Some(v) = self.end { |
2917 | 0 | my_size += crate::rt::int32_size(2, v); |
2918 | 0 | } |
2919 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
2920 | 0 | self.special_fields.cached_size().set(my_size as u32); |
2921 | 0 | my_size |
2922 | 0 | } |
2923 | | |
2924 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
2925 | 0 | if let Some(v) = self.start { |
2926 | 0 | os.write_int32(1, v)?; |
2927 | 0 | } |
2928 | 0 | if let Some(v) = self.end { |
2929 | 0 | os.write_int32(2, v)?; |
2930 | 0 | } |
2931 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
2932 | 0 | ::std::result::Result::Ok(()) |
2933 | 0 | } |
2934 | | |
2935 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
2936 | 0 | &self.special_fields |
2937 | 0 | } |
2938 | | |
2939 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
2940 | 0 | &mut self.special_fields |
2941 | 0 | } |
2942 | | |
2943 | 0 | fn new() -> EnumReservedRange { |
2944 | 0 | EnumReservedRange::new() |
2945 | 0 | } |
2946 | | |
2947 | 0 | fn clear(&mut self) { |
2948 | 0 | self.start = ::std::option::Option::None; |
2949 | 0 | self.end = ::std::option::Option::None; |
2950 | 0 | self.special_fields.clear(); |
2951 | 0 | } |
2952 | | |
2953 | 0 | fn default_instance() -> &'static EnumReservedRange { |
2954 | | static instance: EnumReservedRange = EnumReservedRange { |
2955 | | start: ::std::option::Option::None, |
2956 | | end: ::std::option::Option::None, |
2957 | | special_fields: crate::SpecialFields::new(), |
2958 | | }; |
2959 | 0 | &instance |
2960 | 0 | } |
2961 | | } |
2962 | | |
2963 | | impl crate::MessageFull for EnumReservedRange { |
2964 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
2965 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
2966 | 0 | descriptor.get(|| super::file_descriptor().message_by_package_relative_name("EnumDescriptorProto.EnumReservedRange").unwrap()).clone() |
2967 | 0 | } |
2968 | | } |
2969 | | |
2970 | | impl ::std::fmt::Display for EnumReservedRange { |
2971 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
2972 | 0 | crate::text_format::fmt(self, f) |
2973 | 0 | } |
2974 | | } |
2975 | | |
2976 | | impl crate::reflect::ProtobufValue for EnumReservedRange { |
2977 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
2978 | | } |
2979 | | } |
2980 | | |
2981 | | /// Describes a value within an enum. |
2982 | | #[derive(PartialEq,Clone,Default,Debug)] |
2983 | | // @@protoc_insertion_point(message:google.protobuf.EnumValueDescriptorProto) |
2984 | | pub struct EnumValueDescriptorProto { |
2985 | | // message fields |
2986 | | // @@protoc_insertion_point(field:google.protobuf.EnumValueDescriptorProto.name) |
2987 | | pub name: ::std::option::Option<::std::string::String>, |
2988 | | // @@protoc_insertion_point(field:google.protobuf.EnumValueDescriptorProto.number) |
2989 | | pub number: ::std::option::Option<i32>, |
2990 | | // @@protoc_insertion_point(field:google.protobuf.EnumValueDescriptorProto.options) |
2991 | | pub options: crate::MessageField<EnumValueOptions>, |
2992 | | // special fields |
2993 | | // @@protoc_insertion_point(special_field:google.protobuf.EnumValueDescriptorProto.special_fields) |
2994 | | pub special_fields: crate::SpecialFields, |
2995 | | } |
2996 | | |
2997 | | impl<'a> ::std::default::Default for &'a EnumValueDescriptorProto { |
2998 | 0 | fn default() -> &'a EnumValueDescriptorProto { |
2999 | 0 | <EnumValueDescriptorProto as crate::Message>::default_instance() |
3000 | 0 | } |
3001 | | } |
3002 | | |
3003 | | impl EnumValueDescriptorProto { |
3004 | 0 | pub fn new() -> EnumValueDescriptorProto { |
3005 | 0 | ::std::default::Default::default() |
3006 | 0 | } |
3007 | | |
3008 | | // optional string name = 1; |
3009 | | |
3010 | 0 | pub fn name(&self) -> &str { |
3011 | 0 | match self.name.as_ref() { |
3012 | 0 | Some(v) => v, |
3013 | 0 | None => "", |
3014 | | } |
3015 | 0 | } |
3016 | | |
3017 | 0 | pub fn clear_name(&mut self) { |
3018 | 0 | self.name = ::std::option::Option::None; |
3019 | 0 | } |
3020 | | |
3021 | 0 | pub fn has_name(&self) -> bool { |
3022 | 0 | self.name.is_some() |
3023 | 0 | } |
3024 | | |
3025 | | // Param is passed by value, moved |
3026 | 0 | pub fn set_name(&mut self, v: ::std::string::String) { |
3027 | 0 | self.name = ::std::option::Option::Some(v); |
3028 | 0 | } |
3029 | | |
3030 | | // Mutable pointer to the field. |
3031 | | // If field is not initialized, it is initialized with default value first. |
3032 | 0 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
3033 | 0 | if self.name.is_none() { |
3034 | 0 | self.name = ::std::option::Option::Some(::std::string::String::new()); |
3035 | 0 | } |
3036 | 0 | self.name.as_mut().unwrap() |
3037 | 0 | } |
3038 | | |
3039 | | // Take field |
3040 | 0 | pub fn take_name(&mut self) -> ::std::string::String { |
3041 | 0 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
3042 | 0 | } |
3043 | | |
3044 | | // optional int32 number = 2; |
3045 | | |
3046 | 0 | pub fn number(&self) -> i32 { |
3047 | 0 | self.number.unwrap_or(0) |
3048 | 0 | } |
3049 | | |
3050 | 0 | pub fn clear_number(&mut self) { |
3051 | 0 | self.number = ::std::option::Option::None; |
3052 | 0 | } |
3053 | | |
3054 | 0 | pub fn has_number(&self) -> bool { |
3055 | 0 | self.number.is_some() |
3056 | 0 | } |
3057 | | |
3058 | | // Param is passed by value, moved |
3059 | 0 | pub fn set_number(&mut self, v: i32) { |
3060 | 0 | self.number = ::std::option::Option::Some(v); |
3061 | 0 | } |
3062 | | |
3063 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
3064 | 0 | let mut fields = ::std::vec::Vec::with_capacity(3); |
3065 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
3066 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
3067 | | "name", |
3068 | 0 | |m: &EnumValueDescriptorProto| { &m.name }, |
3069 | 0 | |m: &mut EnumValueDescriptorProto| { &mut m.name }, |
3070 | | )); |
3071 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
3072 | | "number", |
3073 | 0 | |m: &EnumValueDescriptorProto| { &m.number }, |
3074 | 0 | |m: &mut EnumValueDescriptorProto| { &mut m.number }, |
3075 | | )); |
3076 | 0 | fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, EnumValueOptions>( |
3077 | | "options", |
3078 | 0 | |m: &EnumValueDescriptorProto| { &m.options }, |
3079 | 0 | |m: &mut EnumValueDescriptorProto| { &mut m.options }, |
3080 | | )); |
3081 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<EnumValueDescriptorProto>( |
3082 | | "EnumValueDescriptorProto", |
3083 | 0 | fields, |
3084 | 0 | oneofs, |
3085 | | ) |
3086 | 0 | } |
3087 | | } |
3088 | | |
3089 | | impl crate::Message for EnumValueDescriptorProto { |
3090 | | const NAME: &'static str = "EnumValueDescriptorProto"; |
3091 | | |
3092 | 0 | fn is_initialized(&self) -> bool { |
3093 | 0 | for v in &self.options { |
3094 | 0 | if !v.is_initialized() { |
3095 | 0 | return false; |
3096 | 0 | } |
3097 | | }; |
3098 | 0 | true |
3099 | 0 | } |
3100 | | |
3101 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
3102 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
3103 | 0 | match tag { |
3104 | | 10 => { |
3105 | 0 | self.name = ::std::option::Option::Some(is.read_string()?); |
3106 | | }, |
3107 | | 16 => { |
3108 | 0 | self.number = ::std::option::Option::Some(is.read_int32()?); |
3109 | | }, |
3110 | | 26 => { |
3111 | 0 | crate::rt::read_singular_message_into_field(is, &mut self.options)?; |
3112 | | }, |
3113 | 0 | tag => { |
3114 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
3115 | | }, |
3116 | | }; |
3117 | | } |
3118 | 0 | ::std::result::Result::Ok(()) |
3119 | 0 | } |
3120 | | |
3121 | | // Compute sizes of nested messages |
3122 | | #[allow(unused_variables)] |
3123 | 0 | fn compute_size(&self) -> u64 { |
3124 | 0 | let mut my_size = 0; |
3125 | 0 | if let Some(v) = self.name.as_ref() { |
3126 | 0 | my_size += crate::rt::string_size(1, &v); |
3127 | 0 | } |
3128 | 0 | if let Some(v) = self.number { |
3129 | 0 | my_size += crate::rt::int32_size(2, v); |
3130 | 0 | } |
3131 | 0 | if let Some(v) = self.options.as_ref() { |
3132 | 0 | let len = v.compute_size(); |
3133 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
3134 | 0 | } |
3135 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
3136 | 0 | self.special_fields.cached_size().set(my_size as u32); |
3137 | 0 | my_size |
3138 | 0 | } |
3139 | | |
3140 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
3141 | 0 | if let Some(v) = self.name.as_ref() { |
3142 | 0 | os.write_string(1, v)?; |
3143 | 0 | } |
3144 | 0 | if let Some(v) = self.number { |
3145 | 0 | os.write_int32(2, v)?; |
3146 | 0 | } |
3147 | 0 | if let Some(v) = self.options.as_ref() { |
3148 | 0 | crate::rt::write_message_field_with_cached_size(3, v, os)?; |
3149 | 0 | } |
3150 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
3151 | 0 | ::std::result::Result::Ok(()) |
3152 | 0 | } |
3153 | | |
3154 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
3155 | 0 | &self.special_fields |
3156 | 0 | } |
3157 | | |
3158 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
3159 | 0 | &mut self.special_fields |
3160 | 0 | } |
3161 | | |
3162 | 0 | fn new() -> EnumValueDescriptorProto { |
3163 | 0 | EnumValueDescriptorProto::new() |
3164 | 0 | } |
3165 | | |
3166 | 0 | fn clear(&mut self) { |
3167 | 0 | self.name = ::std::option::Option::None; |
3168 | 0 | self.number = ::std::option::Option::None; |
3169 | 0 | self.options.clear(); |
3170 | 0 | self.special_fields.clear(); |
3171 | 0 | } |
3172 | | |
3173 | 0 | fn default_instance() -> &'static EnumValueDescriptorProto { |
3174 | | static instance: EnumValueDescriptorProto = EnumValueDescriptorProto { |
3175 | | name: ::std::option::Option::None, |
3176 | | number: ::std::option::Option::None, |
3177 | | options: crate::MessageField::none(), |
3178 | | special_fields: crate::SpecialFields::new(), |
3179 | | }; |
3180 | 0 | &instance |
3181 | 0 | } |
3182 | | } |
3183 | | |
3184 | | impl crate::MessageFull for EnumValueDescriptorProto { |
3185 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
3186 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
3187 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("EnumValueDescriptorProto").unwrap()).clone() |
3188 | 0 | } |
3189 | | } |
3190 | | |
3191 | | impl ::std::fmt::Display for EnumValueDescriptorProto { |
3192 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
3193 | 0 | crate::text_format::fmt(self, f) |
3194 | 0 | } |
3195 | | } |
3196 | | |
3197 | | impl crate::reflect::ProtobufValue for EnumValueDescriptorProto { |
3198 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
3199 | | } |
3200 | | |
3201 | | /// Describes a service. |
3202 | | #[derive(PartialEq,Clone,Default,Debug)] |
3203 | | // @@protoc_insertion_point(message:google.protobuf.ServiceDescriptorProto) |
3204 | | pub struct ServiceDescriptorProto { |
3205 | | // message fields |
3206 | | // @@protoc_insertion_point(field:google.protobuf.ServiceDescriptorProto.name) |
3207 | | pub name: ::std::option::Option<::std::string::String>, |
3208 | | // @@protoc_insertion_point(field:google.protobuf.ServiceDescriptorProto.method) |
3209 | | pub method: ::std::vec::Vec<MethodDescriptorProto>, |
3210 | | // @@protoc_insertion_point(field:google.protobuf.ServiceDescriptorProto.options) |
3211 | | pub options: crate::MessageField<ServiceOptions>, |
3212 | | // special fields |
3213 | | // @@protoc_insertion_point(special_field:google.protobuf.ServiceDescriptorProto.special_fields) |
3214 | | pub special_fields: crate::SpecialFields, |
3215 | | } |
3216 | | |
3217 | | impl<'a> ::std::default::Default for &'a ServiceDescriptorProto { |
3218 | 0 | fn default() -> &'a ServiceDescriptorProto { |
3219 | 0 | <ServiceDescriptorProto as crate::Message>::default_instance() |
3220 | 0 | } |
3221 | | } |
3222 | | |
3223 | | impl ServiceDescriptorProto { |
3224 | 0 | pub fn new() -> ServiceDescriptorProto { |
3225 | 0 | ::std::default::Default::default() |
3226 | 0 | } |
3227 | | |
3228 | | // optional string name = 1; |
3229 | | |
3230 | 0 | pub fn name(&self) -> &str { |
3231 | 0 | match self.name.as_ref() { |
3232 | 0 | Some(v) => v, |
3233 | 0 | None => "", |
3234 | | } |
3235 | 0 | } |
3236 | | |
3237 | 0 | pub fn clear_name(&mut self) { |
3238 | 0 | self.name = ::std::option::Option::None; |
3239 | 0 | } |
3240 | | |
3241 | 0 | pub fn has_name(&self) -> bool { |
3242 | 0 | self.name.is_some() |
3243 | 0 | } |
3244 | | |
3245 | | // Param is passed by value, moved |
3246 | 0 | pub fn set_name(&mut self, v: ::std::string::String) { |
3247 | 0 | self.name = ::std::option::Option::Some(v); |
3248 | 0 | } |
3249 | | |
3250 | | // Mutable pointer to the field. |
3251 | | // If field is not initialized, it is initialized with default value first. |
3252 | 0 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
3253 | 0 | if self.name.is_none() { |
3254 | 0 | self.name = ::std::option::Option::Some(::std::string::String::new()); |
3255 | 0 | } |
3256 | 0 | self.name.as_mut().unwrap() |
3257 | 0 | } |
3258 | | |
3259 | | // Take field |
3260 | 0 | pub fn take_name(&mut self) -> ::std::string::String { |
3261 | 0 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
3262 | 0 | } |
3263 | | |
3264 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
3265 | 0 | let mut fields = ::std::vec::Vec::with_capacity(3); |
3266 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
3267 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
3268 | | "name", |
3269 | 0 | |m: &ServiceDescriptorProto| { &m.name }, |
3270 | 0 | |m: &mut ServiceDescriptorProto| { &mut m.name }, |
3271 | | )); |
3272 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
3273 | | "method", |
3274 | 0 | |m: &ServiceDescriptorProto| { &m.method }, |
3275 | 0 | |m: &mut ServiceDescriptorProto| { &mut m.method }, |
3276 | | )); |
3277 | 0 | fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, ServiceOptions>( |
3278 | | "options", |
3279 | 0 | |m: &ServiceDescriptorProto| { &m.options }, |
3280 | 0 | |m: &mut ServiceDescriptorProto| { &mut m.options }, |
3281 | | )); |
3282 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<ServiceDescriptorProto>( |
3283 | | "ServiceDescriptorProto", |
3284 | 0 | fields, |
3285 | 0 | oneofs, |
3286 | | ) |
3287 | 0 | } |
3288 | | } |
3289 | | |
3290 | | impl crate::Message for ServiceDescriptorProto { |
3291 | | const NAME: &'static str = "ServiceDescriptorProto"; |
3292 | | |
3293 | 0 | fn is_initialized(&self) -> bool { |
3294 | 0 | for v in &self.method { |
3295 | 0 | if !v.is_initialized() { |
3296 | 0 | return false; |
3297 | 0 | } |
3298 | | }; |
3299 | 0 | for v in &self.options { |
3300 | 0 | if !v.is_initialized() { |
3301 | 0 | return false; |
3302 | 0 | } |
3303 | | }; |
3304 | 0 | true |
3305 | 0 | } |
3306 | | |
3307 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
3308 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
3309 | 0 | match tag { |
3310 | | 10 => { |
3311 | 0 | self.name = ::std::option::Option::Some(is.read_string()?); |
3312 | | }, |
3313 | | 18 => { |
3314 | 0 | self.method.push(is.read_message()?); |
3315 | | }, |
3316 | | 26 => { |
3317 | 0 | crate::rt::read_singular_message_into_field(is, &mut self.options)?; |
3318 | | }, |
3319 | 0 | tag => { |
3320 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
3321 | | }, |
3322 | | }; |
3323 | | } |
3324 | 0 | ::std::result::Result::Ok(()) |
3325 | 0 | } |
3326 | | |
3327 | | // Compute sizes of nested messages |
3328 | | #[allow(unused_variables)] |
3329 | 0 | fn compute_size(&self) -> u64 { |
3330 | 0 | let mut my_size = 0; |
3331 | 0 | if let Some(v) = self.name.as_ref() { |
3332 | 0 | my_size += crate::rt::string_size(1, &v); |
3333 | 0 | } |
3334 | 0 | for value in &self.method { |
3335 | 0 | let len = value.compute_size(); |
3336 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
3337 | 0 | }; |
3338 | 0 | if let Some(v) = self.options.as_ref() { |
3339 | 0 | let len = v.compute_size(); |
3340 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
3341 | 0 | } |
3342 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
3343 | 0 | self.special_fields.cached_size().set(my_size as u32); |
3344 | 0 | my_size |
3345 | 0 | } |
3346 | | |
3347 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
3348 | 0 | if let Some(v) = self.name.as_ref() { |
3349 | 0 | os.write_string(1, v)?; |
3350 | 0 | } |
3351 | 0 | for v in &self.method { |
3352 | 0 | crate::rt::write_message_field_with_cached_size(2, v, os)?; |
3353 | | }; |
3354 | 0 | if let Some(v) = self.options.as_ref() { |
3355 | 0 | crate::rt::write_message_field_with_cached_size(3, v, os)?; |
3356 | 0 | } |
3357 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
3358 | 0 | ::std::result::Result::Ok(()) |
3359 | 0 | } |
3360 | | |
3361 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
3362 | 0 | &self.special_fields |
3363 | 0 | } |
3364 | | |
3365 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
3366 | 0 | &mut self.special_fields |
3367 | 0 | } |
3368 | | |
3369 | 0 | fn new() -> ServiceDescriptorProto { |
3370 | 0 | ServiceDescriptorProto::new() |
3371 | 0 | } |
3372 | | |
3373 | 0 | fn clear(&mut self) { |
3374 | 0 | self.name = ::std::option::Option::None; |
3375 | 0 | self.method.clear(); |
3376 | 0 | self.options.clear(); |
3377 | 0 | self.special_fields.clear(); |
3378 | 0 | } |
3379 | | |
3380 | 0 | fn default_instance() -> &'static ServiceDescriptorProto { |
3381 | | static instance: ServiceDescriptorProto = ServiceDescriptorProto { |
3382 | | name: ::std::option::Option::None, |
3383 | | method: ::std::vec::Vec::new(), |
3384 | | options: crate::MessageField::none(), |
3385 | | special_fields: crate::SpecialFields::new(), |
3386 | | }; |
3387 | 0 | &instance |
3388 | 0 | } |
3389 | | } |
3390 | | |
3391 | | impl crate::MessageFull for ServiceDescriptorProto { |
3392 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
3393 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
3394 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("ServiceDescriptorProto").unwrap()).clone() |
3395 | 0 | } |
3396 | | } |
3397 | | |
3398 | | impl ::std::fmt::Display for ServiceDescriptorProto { |
3399 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
3400 | 0 | crate::text_format::fmt(self, f) |
3401 | 0 | } |
3402 | | } |
3403 | | |
3404 | | impl crate::reflect::ProtobufValue for ServiceDescriptorProto { |
3405 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
3406 | | } |
3407 | | |
3408 | | /// Describes a method of a service. |
3409 | | #[derive(PartialEq,Clone,Default,Debug)] |
3410 | | // @@protoc_insertion_point(message:google.protobuf.MethodDescriptorProto) |
3411 | | pub struct MethodDescriptorProto { |
3412 | | // message fields |
3413 | | // @@protoc_insertion_point(field:google.protobuf.MethodDescriptorProto.name) |
3414 | | pub name: ::std::option::Option<::std::string::String>, |
3415 | | /// Input and output type names. These are resolved in the same way as |
3416 | | /// FieldDescriptorProto.type_name, but must refer to a message type. |
3417 | | // @@protoc_insertion_point(field:google.protobuf.MethodDescriptorProto.input_type) |
3418 | | pub input_type: ::std::option::Option<::std::string::String>, |
3419 | | // @@protoc_insertion_point(field:google.protobuf.MethodDescriptorProto.output_type) |
3420 | | pub output_type: ::std::option::Option<::std::string::String>, |
3421 | | // @@protoc_insertion_point(field:google.protobuf.MethodDescriptorProto.options) |
3422 | | pub options: crate::MessageField<MethodOptions>, |
3423 | | /// Identifies if client streams multiple client messages |
3424 | | // @@protoc_insertion_point(field:google.protobuf.MethodDescriptorProto.client_streaming) |
3425 | | pub client_streaming: ::std::option::Option<bool>, |
3426 | | /// Identifies if server streams multiple server messages |
3427 | | // @@protoc_insertion_point(field:google.protobuf.MethodDescriptorProto.server_streaming) |
3428 | | pub server_streaming: ::std::option::Option<bool>, |
3429 | | // special fields |
3430 | | // @@protoc_insertion_point(special_field:google.protobuf.MethodDescriptorProto.special_fields) |
3431 | | pub special_fields: crate::SpecialFields, |
3432 | | } |
3433 | | |
3434 | | impl<'a> ::std::default::Default for &'a MethodDescriptorProto { |
3435 | 0 | fn default() -> &'a MethodDescriptorProto { |
3436 | 0 | <MethodDescriptorProto as crate::Message>::default_instance() |
3437 | 0 | } |
3438 | | } |
3439 | | |
3440 | | impl MethodDescriptorProto { |
3441 | 0 | pub fn new() -> MethodDescriptorProto { |
3442 | 0 | ::std::default::Default::default() |
3443 | 0 | } |
3444 | | |
3445 | | // optional string name = 1; |
3446 | | |
3447 | 0 | pub fn name(&self) -> &str { |
3448 | 0 | match self.name.as_ref() { |
3449 | 0 | Some(v) => v, |
3450 | 0 | None => "", |
3451 | | } |
3452 | 0 | } |
3453 | | |
3454 | 0 | pub fn clear_name(&mut self) { |
3455 | 0 | self.name = ::std::option::Option::None; |
3456 | 0 | } |
3457 | | |
3458 | 0 | pub fn has_name(&self) -> bool { |
3459 | 0 | self.name.is_some() |
3460 | 0 | } |
3461 | | |
3462 | | // Param is passed by value, moved |
3463 | 0 | pub fn set_name(&mut self, v: ::std::string::String) { |
3464 | 0 | self.name = ::std::option::Option::Some(v); |
3465 | 0 | } |
3466 | | |
3467 | | // Mutable pointer to the field. |
3468 | | // If field is not initialized, it is initialized with default value first. |
3469 | 0 | pub fn mut_name(&mut self) -> &mut ::std::string::String { |
3470 | 0 | if self.name.is_none() { |
3471 | 0 | self.name = ::std::option::Option::Some(::std::string::String::new()); |
3472 | 0 | } |
3473 | 0 | self.name.as_mut().unwrap() |
3474 | 0 | } |
3475 | | |
3476 | | // Take field |
3477 | 0 | pub fn take_name(&mut self) -> ::std::string::String { |
3478 | 0 | self.name.take().unwrap_or_else(|| ::std::string::String::new()) |
3479 | 0 | } |
3480 | | |
3481 | | // optional string input_type = 2; |
3482 | | |
3483 | 0 | pub fn input_type(&self) -> &str { |
3484 | 0 | match self.input_type.as_ref() { |
3485 | 0 | Some(v) => v, |
3486 | 0 | None => "", |
3487 | | } |
3488 | 0 | } |
3489 | | |
3490 | 0 | pub fn clear_input_type(&mut self) { |
3491 | 0 | self.input_type = ::std::option::Option::None; |
3492 | 0 | } |
3493 | | |
3494 | 0 | pub fn has_input_type(&self) -> bool { |
3495 | 0 | self.input_type.is_some() |
3496 | 0 | } |
3497 | | |
3498 | | // Param is passed by value, moved |
3499 | 0 | pub fn set_input_type(&mut self, v: ::std::string::String) { |
3500 | 0 | self.input_type = ::std::option::Option::Some(v); |
3501 | 0 | } |
3502 | | |
3503 | | // Mutable pointer to the field. |
3504 | | // If field is not initialized, it is initialized with default value first. |
3505 | 0 | pub fn mut_input_type(&mut self) -> &mut ::std::string::String { |
3506 | 0 | if self.input_type.is_none() { |
3507 | 0 | self.input_type = ::std::option::Option::Some(::std::string::String::new()); |
3508 | 0 | } |
3509 | 0 | self.input_type.as_mut().unwrap() |
3510 | 0 | } |
3511 | | |
3512 | | // Take field |
3513 | 0 | pub fn take_input_type(&mut self) -> ::std::string::String { |
3514 | 0 | self.input_type.take().unwrap_or_else(|| ::std::string::String::new()) |
3515 | 0 | } |
3516 | | |
3517 | | // optional string output_type = 3; |
3518 | | |
3519 | 0 | pub fn output_type(&self) -> &str { |
3520 | 0 | match self.output_type.as_ref() { |
3521 | 0 | Some(v) => v, |
3522 | 0 | None => "", |
3523 | | } |
3524 | 0 | } |
3525 | | |
3526 | 0 | pub fn clear_output_type(&mut self) { |
3527 | 0 | self.output_type = ::std::option::Option::None; |
3528 | 0 | } |
3529 | | |
3530 | 0 | pub fn has_output_type(&self) -> bool { |
3531 | 0 | self.output_type.is_some() |
3532 | 0 | } |
3533 | | |
3534 | | // Param is passed by value, moved |
3535 | 0 | pub fn set_output_type(&mut self, v: ::std::string::String) { |
3536 | 0 | self.output_type = ::std::option::Option::Some(v); |
3537 | 0 | } |
3538 | | |
3539 | | // Mutable pointer to the field. |
3540 | | // If field is not initialized, it is initialized with default value first. |
3541 | 0 | pub fn mut_output_type(&mut self) -> &mut ::std::string::String { |
3542 | 0 | if self.output_type.is_none() { |
3543 | 0 | self.output_type = ::std::option::Option::Some(::std::string::String::new()); |
3544 | 0 | } |
3545 | 0 | self.output_type.as_mut().unwrap() |
3546 | 0 | } |
3547 | | |
3548 | | // Take field |
3549 | 0 | pub fn take_output_type(&mut self) -> ::std::string::String { |
3550 | 0 | self.output_type.take().unwrap_or_else(|| ::std::string::String::new()) |
3551 | 0 | } |
3552 | | |
3553 | | // optional bool client_streaming = 5; |
3554 | | |
3555 | 0 | pub fn client_streaming(&self) -> bool { |
3556 | 0 | self.client_streaming.unwrap_or(false) |
3557 | 0 | } |
3558 | | |
3559 | 0 | pub fn clear_client_streaming(&mut self) { |
3560 | 0 | self.client_streaming = ::std::option::Option::None; |
3561 | 0 | } |
3562 | | |
3563 | 0 | pub fn has_client_streaming(&self) -> bool { |
3564 | 0 | self.client_streaming.is_some() |
3565 | 0 | } |
3566 | | |
3567 | | // Param is passed by value, moved |
3568 | 0 | pub fn set_client_streaming(&mut self, v: bool) { |
3569 | 0 | self.client_streaming = ::std::option::Option::Some(v); |
3570 | 0 | } |
3571 | | |
3572 | | // optional bool server_streaming = 6; |
3573 | | |
3574 | 0 | pub fn server_streaming(&self) -> bool { |
3575 | 0 | self.server_streaming.unwrap_or(false) |
3576 | 0 | } |
3577 | | |
3578 | 0 | pub fn clear_server_streaming(&mut self) { |
3579 | 0 | self.server_streaming = ::std::option::Option::None; |
3580 | 0 | } |
3581 | | |
3582 | 0 | pub fn has_server_streaming(&self) -> bool { |
3583 | 0 | self.server_streaming.is_some() |
3584 | 0 | } |
3585 | | |
3586 | | // Param is passed by value, moved |
3587 | 0 | pub fn set_server_streaming(&mut self, v: bool) { |
3588 | 0 | self.server_streaming = ::std::option::Option::Some(v); |
3589 | 0 | } |
3590 | | |
3591 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
3592 | 0 | let mut fields = ::std::vec::Vec::with_capacity(6); |
3593 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
3594 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
3595 | | "name", |
3596 | 0 | |m: &MethodDescriptorProto| { &m.name }, |
3597 | 0 | |m: &mut MethodDescriptorProto| { &mut m.name }, |
3598 | | )); |
3599 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
3600 | | "input_type", |
3601 | 0 | |m: &MethodDescriptorProto| { &m.input_type }, |
3602 | 0 | |m: &mut MethodDescriptorProto| { &mut m.input_type }, |
3603 | | )); |
3604 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
3605 | | "output_type", |
3606 | 0 | |m: &MethodDescriptorProto| { &m.output_type }, |
3607 | 0 | |m: &mut MethodDescriptorProto| { &mut m.output_type }, |
3608 | | )); |
3609 | 0 | fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, MethodOptions>( |
3610 | | "options", |
3611 | 0 | |m: &MethodDescriptorProto| { &m.options }, |
3612 | 0 | |m: &mut MethodDescriptorProto| { &mut m.options }, |
3613 | | )); |
3614 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
3615 | | "client_streaming", |
3616 | 0 | |m: &MethodDescriptorProto| { &m.client_streaming }, |
3617 | 0 | |m: &mut MethodDescriptorProto| { &mut m.client_streaming }, |
3618 | | )); |
3619 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
3620 | | "server_streaming", |
3621 | 0 | |m: &MethodDescriptorProto| { &m.server_streaming }, |
3622 | 0 | |m: &mut MethodDescriptorProto| { &mut m.server_streaming }, |
3623 | | )); |
3624 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<MethodDescriptorProto>( |
3625 | | "MethodDescriptorProto", |
3626 | 0 | fields, |
3627 | 0 | oneofs, |
3628 | | ) |
3629 | 0 | } |
3630 | | } |
3631 | | |
3632 | | impl crate::Message for MethodDescriptorProto { |
3633 | | const NAME: &'static str = "MethodDescriptorProto"; |
3634 | | |
3635 | 0 | fn is_initialized(&self) -> bool { |
3636 | 0 | for v in &self.options { |
3637 | 0 | if !v.is_initialized() { |
3638 | 0 | return false; |
3639 | 0 | } |
3640 | | }; |
3641 | 0 | true |
3642 | 0 | } |
3643 | | |
3644 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
3645 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
3646 | 0 | match tag { |
3647 | | 10 => { |
3648 | 0 | self.name = ::std::option::Option::Some(is.read_string()?); |
3649 | | }, |
3650 | | 18 => { |
3651 | 0 | self.input_type = ::std::option::Option::Some(is.read_string()?); |
3652 | | }, |
3653 | | 26 => { |
3654 | 0 | self.output_type = ::std::option::Option::Some(is.read_string()?); |
3655 | | }, |
3656 | | 34 => { |
3657 | 0 | crate::rt::read_singular_message_into_field(is, &mut self.options)?; |
3658 | | }, |
3659 | | 40 => { |
3660 | 0 | self.client_streaming = ::std::option::Option::Some(is.read_bool()?); |
3661 | | }, |
3662 | | 48 => { |
3663 | 0 | self.server_streaming = ::std::option::Option::Some(is.read_bool()?); |
3664 | | }, |
3665 | 0 | tag => { |
3666 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
3667 | | }, |
3668 | | }; |
3669 | | } |
3670 | 0 | ::std::result::Result::Ok(()) |
3671 | 0 | } |
3672 | | |
3673 | | // Compute sizes of nested messages |
3674 | | #[allow(unused_variables)] |
3675 | 0 | fn compute_size(&self) -> u64 { |
3676 | 0 | let mut my_size = 0; |
3677 | 0 | if let Some(v) = self.name.as_ref() { |
3678 | 0 | my_size += crate::rt::string_size(1, &v); |
3679 | 0 | } |
3680 | 0 | if let Some(v) = self.input_type.as_ref() { |
3681 | 0 | my_size += crate::rt::string_size(2, &v); |
3682 | 0 | } |
3683 | 0 | if let Some(v) = self.output_type.as_ref() { |
3684 | 0 | my_size += crate::rt::string_size(3, &v); |
3685 | 0 | } |
3686 | 0 | if let Some(v) = self.options.as_ref() { |
3687 | 0 | let len = v.compute_size(); |
3688 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
3689 | 0 | } |
3690 | 0 | if let Some(v) = self.client_streaming { |
3691 | 0 | my_size += 1 + 1; |
3692 | 0 | } |
3693 | 0 | if let Some(v) = self.server_streaming { |
3694 | 0 | my_size += 1 + 1; |
3695 | 0 | } |
3696 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
3697 | 0 | self.special_fields.cached_size().set(my_size as u32); |
3698 | 0 | my_size |
3699 | 0 | } |
3700 | | |
3701 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
3702 | 0 | if let Some(v) = self.name.as_ref() { |
3703 | 0 | os.write_string(1, v)?; |
3704 | 0 | } |
3705 | 0 | if let Some(v) = self.input_type.as_ref() { |
3706 | 0 | os.write_string(2, v)?; |
3707 | 0 | } |
3708 | 0 | if let Some(v) = self.output_type.as_ref() { |
3709 | 0 | os.write_string(3, v)?; |
3710 | 0 | } |
3711 | 0 | if let Some(v) = self.options.as_ref() { |
3712 | 0 | crate::rt::write_message_field_with_cached_size(4, v, os)?; |
3713 | 0 | } |
3714 | 0 | if let Some(v) = self.client_streaming { |
3715 | 0 | os.write_bool(5, v)?; |
3716 | 0 | } |
3717 | 0 | if let Some(v) = self.server_streaming { |
3718 | 0 | os.write_bool(6, v)?; |
3719 | 0 | } |
3720 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
3721 | 0 | ::std::result::Result::Ok(()) |
3722 | 0 | } |
3723 | | |
3724 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
3725 | 0 | &self.special_fields |
3726 | 0 | } |
3727 | | |
3728 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
3729 | 0 | &mut self.special_fields |
3730 | 0 | } |
3731 | | |
3732 | 0 | fn new() -> MethodDescriptorProto { |
3733 | 0 | MethodDescriptorProto::new() |
3734 | 0 | } |
3735 | | |
3736 | 0 | fn clear(&mut self) { |
3737 | 0 | self.name = ::std::option::Option::None; |
3738 | 0 | self.input_type = ::std::option::Option::None; |
3739 | 0 | self.output_type = ::std::option::Option::None; |
3740 | 0 | self.options.clear(); |
3741 | 0 | self.client_streaming = ::std::option::Option::None; |
3742 | 0 | self.server_streaming = ::std::option::Option::None; |
3743 | 0 | self.special_fields.clear(); |
3744 | 0 | } |
3745 | | |
3746 | 0 | fn default_instance() -> &'static MethodDescriptorProto { |
3747 | | static instance: MethodDescriptorProto = MethodDescriptorProto { |
3748 | | name: ::std::option::Option::None, |
3749 | | input_type: ::std::option::Option::None, |
3750 | | output_type: ::std::option::Option::None, |
3751 | | options: crate::MessageField::none(), |
3752 | | client_streaming: ::std::option::Option::None, |
3753 | | server_streaming: ::std::option::Option::None, |
3754 | | special_fields: crate::SpecialFields::new(), |
3755 | | }; |
3756 | 0 | &instance |
3757 | 0 | } |
3758 | | } |
3759 | | |
3760 | | impl crate::MessageFull for MethodDescriptorProto { |
3761 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
3762 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
3763 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("MethodDescriptorProto").unwrap()).clone() |
3764 | 0 | } |
3765 | | } |
3766 | | |
3767 | | impl ::std::fmt::Display for MethodDescriptorProto { |
3768 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
3769 | 0 | crate::text_format::fmt(self, f) |
3770 | 0 | } |
3771 | | } |
3772 | | |
3773 | | impl crate::reflect::ProtobufValue for MethodDescriptorProto { |
3774 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
3775 | | } |
3776 | | |
3777 | | #[derive(PartialEq,Clone,Default,Debug)] |
3778 | | // @@protoc_insertion_point(message:google.protobuf.FileOptions) |
3779 | | pub struct FileOptions { |
3780 | | // message fields |
3781 | | /// Sets the Java package where classes generated from this .proto will be |
3782 | | /// placed. By default, the proto package is used, but this is often |
3783 | | /// inappropriate because proto packages do not normally start with backwards |
3784 | | /// domain names. |
3785 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.java_package) |
3786 | | pub java_package: ::std::option::Option<::std::string::String>, |
3787 | | /// Controls the name of the wrapper Java class generated for the .proto file. |
3788 | | /// That class will always contain the .proto file's getDescriptor() method as |
3789 | | /// well as any top-level extensions defined in the .proto file. |
3790 | | /// If java_multiple_files is disabled, then all the other classes from the |
3791 | | /// .proto file will be nested inside the single wrapper outer class. |
3792 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.java_outer_classname) |
3793 | | pub java_outer_classname: ::std::option::Option<::std::string::String>, |
3794 | | /// If enabled, then the Java code generator will generate a separate .java |
3795 | | /// file for each top-level message, enum, and service defined in the .proto |
3796 | | /// file. Thus, these types will *not* be nested inside the wrapper class |
3797 | | /// named by java_outer_classname. However, the wrapper class will still be |
3798 | | /// generated to contain the file's getDescriptor() method as well as any |
3799 | | /// top-level extensions defined in the file. |
3800 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.java_multiple_files) |
3801 | | pub java_multiple_files: ::std::option::Option<bool>, |
3802 | | /// This option does nothing. |
3803 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.java_generate_equals_and_hash) |
3804 | | pub java_generate_equals_and_hash: ::std::option::Option<bool>, |
3805 | | /// If set true, then the Java2 code generator will generate code that |
3806 | | /// throws an exception whenever an attempt is made to assign a non-UTF-8 |
3807 | | /// byte sequence to a string field. |
3808 | | /// Message reflection will do the same. |
3809 | | /// However, an extension field still accepts non-UTF-8 byte sequences. |
3810 | | /// This option has no effect on when used with the lite runtime. |
3811 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.java_string_check_utf8) |
3812 | | pub java_string_check_utf8: ::std::option::Option<bool>, |
3813 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.optimize_for) |
3814 | | pub optimize_for: ::std::option::Option<crate::EnumOrUnknown<file_options::OptimizeMode>>, |
3815 | | /// Sets the Go package where structs generated from this .proto will be |
3816 | | /// placed. If omitted, the Go package will be derived from the following: |
3817 | | /// - The basename of the package import path, if provided. |
3818 | | /// - Otherwise, the package statement in the .proto file, if present. |
3819 | | /// - Otherwise, the basename of the .proto file, without extension. |
3820 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.go_package) |
3821 | | pub go_package: ::std::option::Option<::std::string::String>, |
3822 | | /// Should generic services be generated in each language? "Generic" services |
3823 | | /// are not specific to any particular RPC system. They are generated by the |
3824 | | /// main code generators in each language (without additional plugins). |
3825 | | /// Generic services were the only kind of service generation supported by |
3826 | | /// early versions of google.protobuf. |
3827 | | /// |
3828 | | /// Generic services are now considered deprecated in favor of using plugins |
3829 | | /// that generate code specific to your particular RPC system. Therefore, |
3830 | | /// these default to false. Old code which depends on generic services should |
3831 | | /// explicitly set them to true. |
3832 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.cc_generic_services) |
3833 | | pub cc_generic_services: ::std::option::Option<bool>, |
3834 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.java_generic_services) |
3835 | | pub java_generic_services: ::std::option::Option<bool>, |
3836 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.py_generic_services) |
3837 | | pub py_generic_services: ::std::option::Option<bool>, |
3838 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.php_generic_services) |
3839 | | pub php_generic_services: ::std::option::Option<bool>, |
3840 | | /// Is this file deprecated? |
3841 | | /// Depending on the target platform, this can emit Deprecated annotations |
3842 | | /// for everything in the file, or it will be completely ignored; in the very |
3843 | | /// least, this is a formalization for deprecating files. |
3844 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.deprecated) |
3845 | | pub deprecated: ::std::option::Option<bool>, |
3846 | | /// Enables the use of arenas for the proto messages in this file. This applies |
3847 | | /// only to generated classes for C++. |
3848 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.cc_enable_arenas) |
3849 | | pub cc_enable_arenas: ::std::option::Option<bool>, |
3850 | | /// Sets the objective c class prefix which is prepended to all objective c |
3851 | | /// generated classes from this .proto. There is no default. |
3852 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.objc_class_prefix) |
3853 | | pub objc_class_prefix: ::std::option::Option<::std::string::String>, |
3854 | | /// Namespace for generated classes; defaults to the package. |
3855 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.csharp_namespace) |
3856 | | pub csharp_namespace: ::std::option::Option<::std::string::String>, |
3857 | | /// By default Swift generators will take the proto package and CamelCase it |
3858 | | /// replacing '.' with underscore and use that to prefix the types/symbols |
3859 | | /// defined. When this options is provided, they will use this value instead |
3860 | | /// to prefix the types/symbols defined. |
3861 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.swift_prefix) |
3862 | | pub swift_prefix: ::std::option::Option<::std::string::String>, |
3863 | | /// Sets the php class prefix which is prepended to all php generated classes |
3864 | | /// from this .proto. Default is empty. |
3865 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.php_class_prefix) |
3866 | | pub php_class_prefix: ::std::option::Option<::std::string::String>, |
3867 | | /// Use this option to change the namespace of php generated classes. Default |
3868 | | /// is empty. When this option is empty, the package name will be used for |
3869 | | /// determining the namespace. |
3870 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.php_namespace) |
3871 | | pub php_namespace: ::std::option::Option<::std::string::String>, |
3872 | | /// Use this option to change the namespace of php generated metadata classes. |
3873 | | /// Default is empty. When this option is empty, the proto file name will be |
3874 | | /// used for determining the namespace. |
3875 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.php_metadata_namespace) |
3876 | | pub php_metadata_namespace: ::std::option::Option<::std::string::String>, |
3877 | | /// Use this option to change the package of ruby generated classes. Default |
3878 | | /// is empty. When this option is not set, the package name will be used for |
3879 | | /// determining the ruby package. |
3880 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.ruby_package) |
3881 | | pub ruby_package: ::std::option::Option<::std::string::String>, |
3882 | | /// The parser stores options it doesn't recognize here. |
3883 | | /// See the documentation for the "Options" section above. |
3884 | | // @@protoc_insertion_point(field:google.protobuf.FileOptions.uninterpreted_option) |
3885 | | pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>, |
3886 | | // special fields |
3887 | | // @@protoc_insertion_point(special_field:google.protobuf.FileOptions.special_fields) |
3888 | | pub special_fields: crate::SpecialFields, |
3889 | | } |
3890 | | |
3891 | | impl<'a> ::std::default::Default for &'a FileOptions { |
3892 | 0 | fn default() -> &'a FileOptions { |
3893 | 0 | <FileOptions as crate::Message>::default_instance() |
3894 | 0 | } |
3895 | | } |
3896 | | |
3897 | | impl FileOptions { |
3898 | 0 | pub fn new() -> FileOptions { |
3899 | 0 | ::std::default::Default::default() |
3900 | 0 | } |
3901 | | |
3902 | | // optional string java_package = 1; |
3903 | | |
3904 | 0 | pub fn java_package(&self) -> &str { |
3905 | 0 | match self.java_package.as_ref() { |
3906 | 0 | Some(v) => v, |
3907 | 0 | None => "", |
3908 | | } |
3909 | 0 | } |
3910 | | |
3911 | 0 | pub fn clear_java_package(&mut self) { |
3912 | 0 | self.java_package = ::std::option::Option::None; |
3913 | 0 | } |
3914 | | |
3915 | 0 | pub fn has_java_package(&self) -> bool { |
3916 | 0 | self.java_package.is_some() |
3917 | 0 | } |
3918 | | |
3919 | | // Param is passed by value, moved |
3920 | 0 | pub fn set_java_package(&mut self, v: ::std::string::String) { |
3921 | 0 | self.java_package = ::std::option::Option::Some(v); |
3922 | 0 | } |
3923 | | |
3924 | | // Mutable pointer to the field. |
3925 | | // If field is not initialized, it is initialized with default value first. |
3926 | 0 | pub fn mut_java_package(&mut self) -> &mut ::std::string::String { |
3927 | 0 | if self.java_package.is_none() { |
3928 | 0 | self.java_package = ::std::option::Option::Some(::std::string::String::new()); |
3929 | 0 | } |
3930 | 0 | self.java_package.as_mut().unwrap() |
3931 | 0 | } |
3932 | | |
3933 | | // Take field |
3934 | 0 | pub fn take_java_package(&mut self) -> ::std::string::String { |
3935 | 0 | self.java_package.take().unwrap_or_else(|| ::std::string::String::new()) |
3936 | 0 | } |
3937 | | |
3938 | | // optional string java_outer_classname = 8; |
3939 | | |
3940 | 0 | pub fn java_outer_classname(&self) -> &str { |
3941 | 0 | match self.java_outer_classname.as_ref() { |
3942 | 0 | Some(v) => v, |
3943 | 0 | None => "", |
3944 | | } |
3945 | 0 | } |
3946 | | |
3947 | 0 | pub fn clear_java_outer_classname(&mut self) { |
3948 | 0 | self.java_outer_classname = ::std::option::Option::None; |
3949 | 0 | } |
3950 | | |
3951 | 0 | pub fn has_java_outer_classname(&self) -> bool { |
3952 | 0 | self.java_outer_classname.is_some() |
3953 | 0 | } |
3954 | | |
3955 | | // Param is passed by value, moved |
3956 | 0 | pub fn set_java_outer_classname(&mut self, v: ::std::string::String) { |
3957 | 0 | self.java_outer_classname = ::std::option::Option::Some(v); |
3958 | 0 | } |
3959 | | |
3960 | | // Mutable pointer to the field. |
3961 | | // If field is not initialized, it is initialized with default value first. |
3962 | 0 | pub fn mut_java_outer_classname(&mut self) -> &mut ::std::string::String { |
3963 | 0 | if self.java_outer_classname.is_none() { |
3964 | 0 | self.java_outer_classname = ::std::option::Option::Some(::std::string::String::new()); |
3965 | 0 | } |
3966 | 0 | self.java_outer_classname.as_mut().unwrap() |
3967 | 0 | } |
3968 | | |
3969 | | // Take field |
3970 | 0 | pub fn take_java_outer_classname(&mut self) -> ::std::string::String { |
3971 | 0 | self.java_outer_classname.take().unwrap_or_else(|| ::std::string::String::new()) |
3972 | 0 | } |
3973 | | |
3974 | | // optional bool java_multiple_files = 10; |
3975 | | |
3976 | 0 | pub fn java_multiple_files(&self) -> bool { |
3977 | 0 | self.java_multiple_files.unwrap_or(false) |
3978 | 0 | } |
3979 | | |
3980 | 0 | pub fn clear_java_multiple_files(&mut self) { |
3981 | 0 | self.java_multiple_files = ::std::option::Option::None; |
3982 | 0 | } |
3983 | | |
3984 | 0 | pub fn has_java_multiple_files(&self) -> bool { |
3985 | 0 | self.java_multiple_files.is_some() |
3986 | 0 | } |
3987 | | |
3988 | | // Param is passed by value, moved |
3989 | 0 | pub fn set_java_multiple_files(&mut self, v: bool) { |
3990 | 0 | self.java_multiple_files = ::std::option::Option::Some(v); |
3991 | 0 | } |
3992 | | |
3993 | | // optional bool java_generate_equals_and_hash = 20; |
3994 | | |
3995 | 0 | pub fn java_generate_equals_and_hash(&self) -> bool { |
3996 | 0 | self.java_generate_equals_and_hash.unwrap_or(false) |
3997 | 0 | } |
3998 | | |
3999 | 0 | pub fn clear_java_generate_equals_and_hash(&mut self) { |
4000 | 0 | self.java_generate_equals_and_hash = ::std::option::Option::None; |
4001 | 0 | } |
4002 | | |
4003 | 0 | pub fn has_java_generate_equals_and_hash(&self) -> bool { |
4004 | 0 | self.java_generate_equals_and_hash.is_some() |
4005 | 0 | } |
4006 | | |
4007 | | // Param is passed by value, moved |
4008 | 0 | pub fn set_java_generate_equals_and_hash(&mut self, v: bool) { |
4009 | 0 | self.java_generate_equals_and_hash = ::std::option::Option::Some(v); |
4010 | 0 | } |
4011 | | |
4012 | | // optional bool java_string_check_utf8 = 27; |
4013 | | |
4014 | 0 | pub fn java_string_check_utf8(&self) -> bool { |
4015 | 0 | self.java_string_check_utf8.unwrap_or(false) |
4016 | 0 | } |
4017 | | |
4018 | 0 | pub fn clear_java_string_check_utf8(&mut self) { |
4019 | 0 | self.java_string_check_utf8 = ::std::option::Option::None; |
4020 | 0 | } |
4021 | | |
4022 | 0 | pub fn has_java_string_check_utf8(&self) -> bool { |
4023 | 0 | self.java_string_check_utf8.is_some() |
4024 | 0 | } |
4025 | | |
4026 | | // Param is passed by value, moved |
4027 | 0 | pub fn set_java_string_check_utf8(&mut self, v: bool) { |
4028 | 0 | self.java_string_check_utf8 = ::std::option::Option::Some(v); |
4029 | 0 | } |
4030 | | |
4031 | | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9; |
4032 | | |
4033 | 0 | pub fn optimize_for(&self) -> file_options::OptimizeMode { |
4034 | 0 | match self.optimize_for { |
4035 | 0 | Some(e) => e.enum_value_or(file_options::OptimizeMode::SPEED), |
4036 | 0 | None => file_options::OptimizeMode::SPEED, |
4037 | | } |
4038 | 0 | } |
4039 | | |
4040 | 0 | pub fn clear_optimize_for(&mut self) { |
4041 | 0 | self.optimize_for = ::std::option::Option::None; |
4042 | 0 | } |
4043 | | |
4044 | 0 | pub fn has_optimize_for(&self) -> bool { |
4045 | 0 | self.optimize_for.is_some() |
4046 | 0 | } |
4047 | | |
4048 | | // Param is passed by value, moved |
4049 | 0 | pub fn set_optimize_for(&mut self, v: file_options::OptimizeMode) { |
4050 | 0 | self.optimize_for = ::std::option::Option::Some(crate::EnumOrUnknown::new(v)); |
4051 | 0 | } |
4052 | | |
4053 | | // optional string go_package = 11; |
4054 | | |
4055 | 0 | pub fn go_package(&self) -> &str { |
4056 | 0 | match self.go_package.as_ref() { |
4057 | 0 | Some(v) => v, |
4058 | 0 | None => "", |
4059 | | } |
4060 | 0 | } |
4061 | | |
4062 | 0 | pub fn clear_go_package(&mut self) { |
4063 | 0 | self.go_package = ::std::option::Option::None; |
4064 | 0 | } |
4065 | | |
4066 | 0 | pub fn has_go_package(&self) -> bool { |
4067 | 0 | self.go_package.is_some() |
4068 | 0 | } |
4069 | | |
4070 | | // Param is passed by value, moved |
4071 | 0 | pub fn set_go_package(&mut self, v: ::std::string::String) { |
4072 | 0 | self.go_package = ::std::option::Option::Some(v); |
4073 | 0 | } |
4074 | | |
4075 | | // Mutable pointer to the field. |
4076 | | // If field is not initialized, it is initialized with default value first. |
4077 | 0 | pub fn mut_go_package(&mut self) -> &mut ::std::string::String { |
4078 | 0 | if self.go_package.is_none() { |
4079 | 0 | self.go_package = ::std::option::Option::Some(::std::string::String::new()); |
4080 | 0 | } |
4081 | 0 | self.go_package.as_mut().unwrap() |
4082 | 0 | } |
4083 | | |
4084 | | // Take field |
4085 | 0 | pub fn take_go_package(&mut self) -> ::std::string::String { |
4086 | 0 | self.go_package.take().unwrap_or_else(|| ::std::string::String::new()) |
4087 | 0 | } |
4088 | | |
4089 | | // optional bool cc_generic_services = 16; |
4090 | | |
4091 | 0 | pub fn cc_generic_services(&self) -> bool { |
4092 | 0 | self.cc_generic_services.unwrap_or(false) |
4093 | 0 | } |
4094 | | |
4095 | 0 | pub fn clear_cc_generic_services(&mut self) { |
4096 | 0 | self.cc_generic_services = ::std::option::Option::None; |
4097 | 0 | } |
4098 | | |
4099 | 0 | pub fn has_cc_generic_services(&self) -> bool { |
4100 | 0 | self.cc_generic_services.is_some() |
4101 | 0 | } |
4102 | | |
4103 | | // Param is passed by value, moved |
4104 | 0 | pub fn set_cc_generic_services(&mut self, v: bool) { |
4105 | 0 | self.cc_generic_services = ::std::option::Option::Some(v); |
4106 | 0 | } |
4107 | | |
4108 | | // optional bool java_generic_services = 17; |
4109 | | |
4110 | 0 | pub fn java_generic_services(&self) -> bool { |
4111 | 0 | self.java_generic_services.unwrap_or(false) |
4112 | 0 | } |
4113 | | |
4114 | 0 | pub fn clear_java_generic_services(&mut self) { |
4115 | 0 | self.java_generic_services = ::std::option::Option::None; |
4116 | 0 | } |
4117 | | |
4118 | 0 | pub fn has_java_generic_services(&self) -> bool { |
4119 | 0 | self.java_generic_services.is_some() |
4120 | 0 | } |
4121 | | |
4122 | | // Param is passed by value, moved |
4123 | 0 | pub fn set_java_generic_services(&mut self, v: bool) { |
4124 | 0 | self.java_generic_services = ::std::option::Option::Some(v); |
4125 | 0 | } |
4126 | | |
4127 | | // optional bool py_generic_services = 18; |
4128 | | |
4129 | 0 | pub fn py_generic_services(&self) -> bool { |
4130 | 0 | self.py_generic_services.unwrap_or(false) |
4131 | 0 | } |
4132 | | |
4133 | 0 | pub fn clear_py_generic_services(&mut self) { |
4134 | 0 | self.py_generic_services = ::std::option::Option::None; |
4135 | 0 | } |
4136 | | |
4137 | 0 | pub fn has_py_generic_services(&self) -> bool { |
4138 | 0 | self.py_generic_services.is_some() |
4139 | 0 | } |
4140 | | |
4141 | | // Param is passed by value, moved |
4142 | 0 | pub fn set_py_generic_services(&mut self, v: bool) { |
4143 | 0 | self.py_generic_services = ::std::option::Option::Some(v); |
4144 | 0 | } |
4145 | | |
4146 | | // optional bool php_generic_services = 42; |
4147 | | |
4148 | 0 | pub fn php_generic_services(&self) -> bool { |
4149 | 0 | self.php_generic_services.unwrap_or(false) |
4150 | 0 | } |
4151 | | |
4152 | 0 | pub fn clear_php_generic_services(&mut self) { |
4153 | 0 | self.php_generic_services = ::std::option::Option::None; |
4154 | 0 | } |
4155 | | |
4156 | 0 | pub fn has_php_generic_services(&self) -> bool { |
4157 | 0 | self.php_generic_services.is_some() |
4158 | 0 | } |
4159 | | |
4160 | | // Param is passed by value, moved |
4161 | 0 | pub fn set_php_generic_services(&mut self, v: bool) { |
4162 | 0 | self.php_generic_services = ::std::option::Option::Some(v); |
4163 | 0 | } |
4164 | | |
4165 | | // optional bool deprecated = 23; |
4166 | | |
4167 | 0 | pub fn deprecated(&self) -> bool { |
4168 | 0 | self.deprecated.unwrap_or(false) |
4169 | 0 | } |
4170 | | |
4171 | 0 | pub fn clear_deprecated(&mut self) { |
4172 | 0 | self.deprecated = ::std::option::Option::None; |
4173 | 0 | } |
4174 | | |
4175 | 0 | pub fn has_deprecated(&self) -> bool { |
4176 | 0 | self.deprecated.is_some() |
4177 | 0 | } |
4178 | | |
4179 | | // Param is passed by value, moved |
4180 | 0 | pub fn set_deprecated(&mut self, v: bool) { |
4181 | 0 | self.deprecated = ::std::option::Option::Some(v); |
4182 | 0 | } |
4183 | | |
4184 | | // optional bool cc_enable_arenas = 31; |
4185 | | |
4186 | 0 | pub fn cc_enable_arenas(&self) -> bool { |
4187 | 0 | self.cc_enable_arenas.unwrap_or(true) |
4188 | 0 | } |
4189 | | |
4190 | 0 | pub fn clear_cc_enable_arenas(&mut self) { |
4191 | 0 | self.cc_enable_arenas = ::std::option::Option::None; |
4192 | 0 | } |
4193 | | |
4194 | 0 | pub fn has_cc_enable_arenas(&self) -> bool { |
4195 | 0 | self.cc_enable_arenas.is_some() |
4196 | 0 | } |
4197 | | |
4198 | | // Param is passed by value, moved |
4199 | 0 | pub fn set_cc_enable_arenas(&mut self, v: bool) { |
4200 | 0 | self.cc_enable_arenas = ::std::option::Option::Some(v); |
4201 | 0 | } |
4202 | | |
4203 | | // optional string objc_class_prefix = 36; |
4204 | | |
4205 | 0 | pub fn objc_class_prefix(&self) -> &str { |
4206 | 0 | match self.objc_class_prefix.as_ref() { |
4207 | 0 | Some(v) => v, |
4208 | 0 | None => "", |
4209 | | } |
4210 | 0 | } |
4211 | | |
4212 | 0 | pub fn clear_objc_class_prefix(&mut self) { |
4213 | 0 | self.objc_class_prefix = ::std::option::Option::None; |
4214 | 0 | } |
4215 | | |
4216 | 0 | pub fn has_objc_class_prefix(&self) -> bool { |
4217 | 0 | self.objc_class_prefix.is_some() |
4218 | 0 | } |
4219 | | |
4220 | | // Param is passed by value, moved |
4221 | 0 | pub fn set_objc_class_prefix(&mut self, v: ::std::string::String) { |
4222 | 0 | self.objc_class_prefix = ::std::option::Option::Some(v); |
4223 | 0 | } |
4224 | | |
4225 | | // Mutable pointer to the field. |
4226 | | // If field is not initialized, it is initialized with default value first. |
4227 | 0 | pub fn mut_objc_class_prefix(&mut self) -> &mut ::std::string::String { |
4228 | 0 | if self.objc_class_prefix.is_none() { |
4229 | 0 | self.objc_class_prefix = ::std::option::Option::Some(::std::string::String::new()); |
4230 | 0 | } |
4231 | 0 | self.objc_class_prefix.as_mut().unwrap() |
4232 | 0 | } |
4233 | | |
4234 | | // Take field |
4235 | 0 | pub fn take_objc_class_prefix(&mut self) -> ::std::string::String { |
4236 | 0 | self.objc_class_prefix.take().unwrap_or_else(|| ::std::string::String::new()) |
4237 | 0 | } |
4238 | | |
4239 | | // optional string csharp_namespace = 37; |
4240 | | |
4241 | 0 | pub fn csharp_namespace(&self) -> &str { |
4242 | 0 | match self.csharp_namespace.as_ref() { |
4243 | 0 | Some(v) => v, |
4244 | 0 | None => "", |
4245 | | } |
4246 | 0 | } |
4247 | | |
4248 | 0 | pub fn clear_csharp_namespace(&mut self) { |
4249 | 0 | self.csharp_namespace = ::std::option::Option::None; |
4250 | 0 | } |
4251 | | |
4252 | 0 | pub fn has_csharp_namespace(&self) -> bool { |
4253 | 0 | self.csharp_namespace.is_some() |
4254 | 0 | } |
4255 | | |
4256 | | // Param is passed by value, moved |
4257 | 0 | pub fn set_csharp_namespace(&mut self, v: ::std::string::String) { |
4258 | 0 | self.csharp_namespace = ::std::option::Option::Some(v); |
4259 | 0 | } |
4260 | | |
4261 | | // Mutable pointer to the field. |
4262 | | // If field is not initialized, it is initialized with default value first. |
4263 | 0 | pub fn mut_csharp_namespace(&mut self) -> &mut ::std::string::String { |
4264 | 0 | if self.csharp_namespace.is_none() { |
4265 | 0 | self.csharp_namespace = ::std::option::Option::Some(::std::string::String::new()); |
4266 | 0 | } |
4267 | 0 | self.csharp_namespace.as_mut().unwrap() |
4268 | 0 | } |
4269 | | |
4270 | | // Take field |
4271 | 0 | pub fn take_csharp_namespace(&mut self) -> ::std::string::String { |
4272 | 0 | self.csharp_namespace.take().unwrap_or_else(|| ::std::string::String::new()) |
4273 | 0 | } |
4274 | | |
4275 | | // optional string swift_prefix = 39; |
4276 | | |
4277 | 0 | pub fn swift_prefix(&self) -> &str { |
4278 | 0 | match self.swift_prefix.as_ref() { |
4279 | 0 | Some(v) => v, |
4280 | 0 | None => "", |
4281 | | } |
4282 | 0 | } |
4283 | | |
4284 | 0 | pub fn clear_swift_prefix(&mut self) { |
4285 | 0 | self.swift_prefix = ::std::option::Option::None; |
4286 | 0 | } |
4287 | | |
4288 | 0 | pub fn has_swift_prefix(&self) -> bool { |
4289 | 0 | self.swift_prefix.is_some() |
4290 | 0 | } |
4291 | | |
4292 | | // Param is passed by value, moved |
4293 | 0 | pub fn set_swift_prefix(&mut self, v: ::std::string::String) { |
4294 | 0 | self.swift_prefix = ::std::option::Option::Some(v); |
4295 | 0 | } |
4296 | | |
4297 | | // Mutable pointer to the field. |
4298 | | // If field is not initialized, it is initialized with default value first. |
4299 | 0 | pub fn mut_swift_prefix(&mut self) -> &mut ::std::string::String { |
4300 | 0 | if self.swift_prefix.is_none() { |
4301 | 0 | self.swift_prefix = ::std::option::Option::Some(::std::string::String::new()); |
4302 | 0 | } |
4303 | 0 | self.swift_prefix.as_mut().unwrap() |
4304 | 0 | } |
4305 | | |
4306 | | // Take field |
4307 | 0 | pub fn take_swift_prefix(&mut self) -> ::std::string::String { |
4308 | 0 | self.swift_prefix.take().unwrap_or_else(|| ::std::string::String::new()) |
4309 | 0 | } |
4310 | | |
4311 | | // optional string php_class_prefix = 40; |
4312 | | |
4313 | 0 | pub fn php_class_prefix(&self) -> &str { |
4314 | 0 | match self.php_class_prefix.as_ref() { |
4315 | 0 | Some(v) => v, |
4316 | 0 | None => "", |
4317 | | } |
4318 | 0 | } |
4319 | | |
4320 | 0 | pub fn clear_php_class_prefix(&mut self) { |
4321 | 0 | self.php_class_prefix = ::std::option::Option::None; |
4322 | 0 | } |
4323 | | |
4324 | 0 | pub fn has_php_class_prefix(&self) -> bool { |
4325 | 0 | self.php_class_prefix.is_some() |
4326 | 0 | } |
4327 | | |
4328 | | // Param is passed by value, moved |
4329 | 0 | pub fn set_php_class_prefix(&mut self, v: ::std::string::String) { |
4330 | 0 | self.php_class_prefix = ::std::option::Option::Some(v); |
4331 | 0 | } |
4332 | | |
4333 | | // Mutable pointer to the field. |
4334 | | // If field is not initialized, it is initialized with default value first. |
4335 | 0 | pub fn mut_php_class_prefix(&mut self) -> &mut ::std::string::String { |
4336 | 0 | if self.php_class_prefix.is_none() { |
4337 | 0 | self.php_class_prefix = ::std::option::Option::Some(::std::string::String::new()); |
4338 | 0 | } |
4339 | 0 | self.php_class_prefix.as_mut().unwrap() |
4340 | 0 | } |
4341 | | |
4342 | | // Take field |
4343 | 0 | pub fn take_php_class_prefix(&mut self) -> ::std::string::String { |
4344 | 0 | self.php_class_prefix.take().unwrap_or_else(|| ::std::string::String::new()) |
4345 | 0 | } |
4346 | | |
4347 | | // optional string php_namespace = 41; |
4348 | | |
4349 | 0 | pub fn php_namespace(&self) -> &str { |
4350 | 0 | match self.php_namespace.as_ref() { |
4351 | 0 | Some(v) => v, |
4352 | 0 | None => "", |
4353 | | } |
4354 | 0 | } |
4355 | | |
4356 | 0 | pub fn clear_php_namespace(&mut self) { |
4357 | 0 | self.php_namespace = ::std::option::Option::None; |
4358 | 0 | } |
4359 | | |
4360 | 0 | pub fn has_php_namespace(&self) -> bool { |
4361 | 0 | self.php_namespace.is_some() |
4362 | 0 | } |
4363 | | |
4364 | | // Param is passed by value, moved |
4365 | 0 | pub fn set_php_namespace(&mut self, v: ::std::string::String) { |
4366 | 0 | self.php_namespace = ::std::option::Option::Some(v); |
4367 | 0 | } |
4368 | | |
4369 | | // Mutable pointer to the field. |
4370 | | // If field is not initialized, it is initialized with default value first. |
4371 | 0 | pub fn mut_php_namespace(&mut self) -> &mut ::std::string::String { |
4372 | 0 | if self.php_namespace.is_none() { |
4373 | 0 | self.php_namespace = ::std::option::Option::Some(::std::string::String::new()); |
4374 | 0 | } |
4375 | 0 | self.php_namespace.as_mut().unwrap() |
4376 | 0 | } |
4377 | | |
4378 | | // Take field |
4379 | 0 | pub fn take_php_namespace(&mut self) -> ::std::string::String { |
4380 | 0 | self.php_namespace.take().unwrap_or_else(|| ::std::string::String::new()) |
4381 | 0 | } |
4382 | | |
4383 | | // optional string php_metadata_namespace = 44; |
4384 | | |
4385 | 0 | pub fn php_metadata_namespace(&self) -> &str { |
4386 | 0 | match self.php_metadata_namespace.as_ref() { |
4387 | 0 | Some(v) => v, |
4388 | 0 | None => "", |
4389 | | } |
4390 | 0 | } |
4391 | | |
4392 | 0 | pub fn clear_php_metadata_namespace(&mut self) { |
4393 | 0 | self.php_metadata_namespace = ::std::option::Option::None; |
4394 | 0 | } |
4395 | | |
4396 | 0 | pub fn has_php_metadata_namespace(&self) -> bool { |
4397 | 0 | self.php_metadata_namespace.is_some() |
4398 | 0 | } |
4399 | | |
4400 | | // Param is passed by value, moved |
4401 | 0 | pub fn set_php_metadata_namespace(&mut self, v: ::std::string::String) { |
4402 | 0 | self.php_metadata_namespace = ::std::option::Option::Some(v); |
4403 | 0 | } |
4404 | | |
4405 | | // Mutable pointer to the field. |
4406 | | // If field is not initialized, it is initialized with default value first. |
4407 | 0 | pub fn mut_php_metadata_namespace(&mut self) -> &mut ::std::string::String { |
4408 | 0 | if self.php_metadata_namespace.is_none() { |
4409 | 0 | self.php_metadata_namespace = ::std::option::Option::Some(::std::string::String::new()); |
4410 | 0 | } |
4411 | 0 | self.php_metadata_namespace.as_mut().unwrap() |
4412 | 0 | } |
4413 | | |
4414 | | // Take field |
4415 | 0 | pub fn take_php_metadata_namespace(&mut self) -> ::std::string::String { |
4416 | 0 | self.php_metadata_namespace.take().unwrap_or_else(|| ::std::string::String::new()) |
4417 | 0 | } |
4418 | | |
4419 | | // optional string ruby_package = 45; |
4420 | | |
4421 | 0 | pub fn ruby_package(&self) -> &str { |
4422 | 0 | match self.ruby_package.as_ref() { |
4423 | 0 | Some(v) => v, |
4424 | 0 | None => "", |
4425 | | } |
4426 | 0 | } |
4427 | | |
4428 | 0 | pub fn clear_ruby_package(&mut self) { |
4429 | 0 | self.ruby_package = ::std::option::Option::None; |
4430 | 0 | } |
4431 | | |
4432 | 0 | pub fn has_ruby_package(&self) -> bool { |
4433 | 0 | self.ruby_package.is_some() |
4434 | 0 | } |
4435 | | |
4436 | | // Param is passed by value, moved |
4437 | 0 | pub fn set_ruby_package(&mut self, v: ::std::string::String) { |
4438 | 0 | self.ruby_package = ::std::option::Option::Some(v); |
4439 | 0 | } |
4440 | | |
4441 | | // Mutable pointer to the field. |
4442 | | // If field is not initialized, it is initialized with default value first. |
4443 | 0 | pub fn mut_ruby_package(&mut self) -> &mut ::std::string::String { |
4444 | 0 | if self.ruby_package.is_none() { |
4445 | 0 | self.ruby_package = ::std::option::Option::Some(::std::string::String::new()); |
4446 | 0 | } |
4447 | 0 | self.ruby_package.as_mut().unwrap() |
4448 | 0 | } |
4449 | | |
4450 | | // Take field |
4451 | 0 | pub fn take_ruby_package(&mut self) -> ::std::string::String { |
4452 | 0 | self.ruby_package.take().unwrap_or_else(|| ::std::string::String::new()) |
4453 | 0 | } |
4454 | | |
4455 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
4456 | 0 | let mut fields = ::std::vec::Vec::with_capacity(21); |
4457 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
4458 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4459 | | "java_package", |
4460 | 0 | |m: &FileOptions| { &m.java_package }, |
4461 | 0 | |m: &mut FileOptions| { &mut m.java_package }, |
4462 | | )); |
4463 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4464 | | "java_outer_classname", |
4465 | 0 | |m: &FileOptions| { &m.java_outer_classname }, |
4466 | 0 | |m: &mut FileOptions| { &mut m.java_outer_classname }, |
4467 | | )); |
4468 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4469 | | "java_multiple_files", |
4470 | 0 | |m: &FileOptions| { &m.java_multiple_files }, |
4471 | 0 | |m: &mut FileOptions| { &mut m.java_multiple_files }, |
4472 | | )); |
4473 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4474 | | "java_generate_equals_and_hash", |
4475 | 0 | |m: &FileOptions| { &m.java_generate_equals_and_hash }, |
4476 | 0 | |m: &mut FileOptions| { &mut m.java_generate_equals_and_hash }, |
4477 | | )); |
4478 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4479 | | "java_string_check_utf8", |
4480 | 0 | |m: &FileOptions| { &m.java_string_check_utf8 }, |
4481 | 0 | |m: &mut FileOptions| { &mut m.java_string_check_utf8 }, |
4482 | | )); |
4483 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4484 | | "optimize_for", |
4485 | 0 | |m: &FileOptions| { &m.optimize_for }, |
4486 | 0 | |m: &mut FileOptions| { &mut m.optimize_for }, |
4487 | | )); |
4488 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4489 | | "go_package", |
4490 | 0 | |m: &FileOptions| { &m.go_package }, |
4491 | 0 | |m: &mut FileOptions| { &mut m.go_package }, |
4492 | | )); |
4493 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4494 | | "cc_generic_services", |
4495 | 0 | |m: &FileOptions| { &m.cc_generic_services }, |
4496 | 0 | |m: &mut FileOptions| { &mut m.cc_generic_services }, |
4497 | | )); |
4498 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4499 | | "java_generic_services", |
4500 | 0 | |m: &FileOptions| { &m.java_generic_services }, |
4501 | 0 | |m: &mut FileOptions| { &mut m.java_generic_services }, |
4502 | | )); |
4503 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4504 | | "py_generic_services", |
4505 | 0 | |m: &FileOptions| { &m.py_generic_services }, |
4506 | 0 | |m: &mut FileOptions| { &mut m.py_generic_services }, |
4507 | | )); |
4508 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4509 | | "php_generic_services", |
4510 | 0 | |m: &FileOptions| { &m.php_generic_services }, |
4511 | 0 | |m: &mut FileOptions| { &mut m.php_generic_services }, |
4512 | | )); |
4513 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4514 | | "deprecated", |
4515 | 0 | |m: &FileOptions| { &m.deprecated }, |
4516 | 0 | |m: &mut FileOptions| { &mut m.deprecated }, |
4517 | | )); |
4518 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4519 | | "cc_enable_arenas", |
4520 | 0 | |m: &FileOptions| { &m.cc_enable_arenas }, |
4521 | 0 | |m: &mut FileOptions| { &mut m.cc_enable_arenas }, |
4522 | | )); |
4523 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4524 | | "objc_class_prefix", |
4525 | 0 | |m: &FileOptions| { &m.objc_class_prefix }, |
4526 | 0 | |m: &mut FileOptions| { &mut m.objc_class_prefix }, |
4527 | | )); |
4528 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4529 | | "csharp_namespace", |
4530 | 0 | |m: &FileOptions| { &m.csharp_namespace }, |
4531 | 0 | |m: &mut FileOptions| { &mut m.csharp_namespace }, |
4532 | | )); |
4533 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4534 | | "swift_prefix", |
4535 | 0 | |m: &FileOptions| { &m.swift_prefix }, |
4536 | 0 | |m: &mut FileOptions| { &mut m.swift_prefix }, |
4537 | | )); |
4538 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4539 | | "php_class_prefix", |
4540 | 0 | |m: &FileOptions| { &m.php_class_prefix }, |
4541 | 0 | |m: &mut FileOptions| { &mut m.php_class_prefix }, |
4542 | | )); |
4543 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4544 | | "php_namespace", |
4545 | 0 | |m: &FileOptions| { &m.php_namespace }, |
4546 | 0 | |m: &mut FileOptions| { &mut m.php_namespace }, |
4547 | | )); |
4548 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4549 | | "php_metadata_namespace", |
4550 | 0 | |m: &FileOptions| { &m.php_metadata_namespace }, |
4551 | 0 | |m: &mut FileOptions| { &mut m.php_metadata_namespace }, |
4552 | | )); |
4553 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
4554 | | "ruby_package", |
4555 | 0 | |m: &FileOptions| { &m.ruby_package }, |
4556 | 0 | |m: &mut FileOptions| { &mut m.ruby_package }, |
4557 | | )); |
4558 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
4559 | | "uninterpreted_option", |
4560 | 0 | |m: &FileOptions| { &m.uninterpreted_option }, |
4561 | 0 | |m: &mut FileOptions| { &mut m.uninterpreted_option }, |
4562 | | )); |
4563 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<FileOptions>( |
4564 | | "FileOptions", |
4565 | 0 | fields, |
4566 | 0 | oneofs, |
4567 | | ) |
4568 | 0 | } |
4569 | | } |
4570 | | |
4571 | | impl crate::Message for FileOptions { |
4572 | | const NAME: &'static str = "FileOptions"; |
4573 | | |
4574 | 0 | fn is_initialized(&self) -> bool { |
4575 | 0 | for v in &self.uninterpreted_option { |
4576 | 0 | if !v.is_initialized() { |
4577 | 0 | return false; |
4578 | 0 | } |
4579 | | }; |
4580 | 0 | true |
4581 | 0 | } |
4582 | | |
4583 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
4584 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
4585 | 0 | match tag { |
4586 | | 10 => { |
4587 | 0 | self.java_package = ::std::option::Option::Some(is.read_string()?); |
4588 | | }, |
4589 | | 66 => { |
4590 | 0 | self.java_outer_classname = ::std::option::Option::Some(is.read_string()?); |
4591 | | }, |
4592 | | 80 => { |
4593 | 0 | self.java_multiple_files = ::std::option::Option::Some(is.read_bool()?); |
4594 | | }, |
4595 | | 160 => { |
4596 | 0 | self.java_generate_equals_and_hash = ::std::option::Option::Some(is.read_bool()?); |
4597 | | }, |
4598 | | 216 => { |
4599 | 0 | self.java_string_check_utf8 = ::std::option::Option::Some(is.read_bool()?); |
4600 | | }, |
4601 | | 72 => { |
4602 | 0 | self.optimize_for = ::std::option::Option::Some(is.read_enum_or_unknown()?); |
4603 | | }, |
4604 | | 90 => { |
4605 | 0 | self.go_package = ::std::option::Option::Some(is.read_string()?); |
4606 | | }, |
4607 | | 128 => { |
4608 | 0 | self.cc_generic_services = ::std::option::Option::Some(is.read_bool()?); |
4609 | | }, |
4610 | | 136 => { |
4611 | 0 | self.java_generic_services = ::std::option::Option::Some(is.read_bool()?); |
4612 | | }, |
4613 | | 144 => { |
4614 | 0 | self.py_generic_services = ::std::option::Option::Some(is.read_bool()?); |
4615 | | }, |
4616 | | 336 => { |
4617 | 0 | self.php_generic_services = ::std::option::Option::Some(is.read_bool()?); |
4618 | | }, |
4619 | | 184 => { |
4620 | 0 | self.deprecated = ::std::option::Option::Some(is.read_bool()?); |
4621 | | }, |
4622 | | 248 => { |
4623 | 0 | self.cc_enable_arenas = ::std::option::Option::Some(is.read_bool()?); |
4624 | | }, |
4625 | | 290 => { |
4626 | 0 | self.objc_class_prefix = ::std::option::Option::Some(is.read_string()?); |
4627 | | }, |
4628 | | 298 => { |
4629 | 0 | self.csharp_namespace = ::std::option::Option::Some(is.read_string()?); |
4630 | | }, |
4631 | | 314 => { |
4632 | 0 | self.swift_prefix = ::std::option::Option::Some(is.read_string()?); |
4633 | | }, |
4634 | | 322 => { |
4635 | 0 | self.php_class_prefix = ::std::option::Option::Some(is.read_string()?); |
4636 | | }, |
4637 | | 330 => { |
4638 | 0 | self.php_namespace = ::std::option::Option::Some(is.read_string()?); |
4639 | | }, |
4640 | | 354 => { |
4641 | 0 | self.php_metadata_namespace = ::std::option::Option::Some(is.read_string()?); |
4642 | | }, |
4643 | | 362 => { |
4644 | 0 | self.ruby_package = ::std::option::Option::Some(is.read_string()?); |
4645 | | }, |
4646 | | 7994 => { |
4647 | 0 | self.uninterpreted_option.push(is.read_message()?); |
4648 | | }, |
4649 | 0 | tag => { |
4650 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
4651 | | }, |
4652 | | }; |
4653 | | } |
4654 | 0 | ::std::result::Result::Ok(()) |
4655 | 0 | } |
4656 | | |
4657 | | // Compute sizes of nested messages |
4658 | | #[allow(unused_variables)] |
4659 | 0 | fn compute_size(&self) -> u64 { |
4660 | 0 | let mut my_size = 0; |
4661 | 0 | if let Some(v) = self.java_package.as_ref() { |
4662 | 0 | my_size += crate::rt::string_size(1, &v); |
4663 | 0 | } |
4664 | 0 | if let Some(v) = self.java_outer_classname.as_ref() { |
4665 | 0 | my_size += crate::rt::string_size(8, &v); |
4666 | 0 | } |
4667 | 0 | if let Some(v) = self.java_multiple_files { |
4668 | 0 | my_size += 1 + 1; |
4669 | 0 | } |
4670 | 0 | if let Some(v) = self.java_generate_equals_and_hash { |
4671 | 0 | my_size += 2 + 1; |
4672 | 0 | } |
4673 | 0 | if let Some(v) = self.java_string_check_utf8 { |
4674 | 0 | my_size += 2 + 1; |
4675 | 0 | } |
4676 | 0 | if let Some(v) = self.optimize_for { |
4677 | 0 | my_size += crate::rt::int32_size(9, v.value()); |
4678 | 0 | } |
4679 | 0 | if let Some(v) = self.go_package.as_ref() { |
4680 | 0 | my_size += crate::rt::string_size(11, &v); |
4681 | 0 | } |
4682 | 0 | if let Some(v) = self.cc_generic_services { |
4683 | 0 | my_size += 2 + 1; |
4684 | 0 | } |
4685 | 0 | if let Some(v) = self.java_generic_services { |
4686 | 0 | my_size += 2 + 1; |
4687 | 0 | } |
4688 | 0 | if let Some(v) = self.py_generic_services { |
4689 | 0 | my_size += 2 + 1; |
4690 | 0 | } |
4691 | 0 | if let Some(v) = self.php_generic_services { |
4692 | 0 | my_size += 2 + 1; |
4693 | 0 | } |
4694 | 0 | if let Some(v) = self.deprecated { |
4695 | 0 | my_size += 2 + 1; |
4696 | 0 | } |
4697 | 0 | if let Some(v) = self.cc_enable_arenas { |
4698 | 0 | my_size += 2 + 1; |
4699 | 0 | } |
4700 | 0 | if let Some(v) = self.objc_class_prefix.as_ref() { |
4701 | 0 | my_size += crate::rt::string_size(36, &v); |
4702 | 0 | } |
4703 | 0 | if let Some(v) = self.csharp_namespace.as_ref() { |
4704 | 0 | my_size += crate::rt::string_size(37, &v); |
4705 | 0 | } |
4706 | 0 | if let Some(v) = self.swift_prefix.as_ref() { |
4707 | 0 | my_size += crate::rt::string_size(39, &v); |
4708 | 0 | } |
4709 | 0 | if let Some(v) = self.php_class_prefix.as_ref() { |
4710 | 0 | my_size += crate::rt::string_size(40, &v); |
4711 | 0 | } |
4712 | 0 | if let Some(v) = self.php_namespace.as_ref() { |
4713 | 0 | my_size += crate::rt::string_size(41, &v); |
4714 | 0 | } |
4715 | 0 | if let Some(v) = self.php_metadata_namespace.as_ref() { |
4716 | 0 | my_size += crate::rt::string_size(44, &v); |
4717 | 0 | } |
4718 | 0 | if let Some(v) = self.ruby_package.as_ref() { |
4719 | 0 | my_size += crate::rt::string_size(45, &v); |
4720 | 0 | } |
4721 | 0 | for value in &self.uninterpreted_option { |
4722 | 0 | let len = value.compute_size(); |
4723 | 0 | my_size += 2 + crate::rt::compute_raw_varint64_size(len) + len; |
4724 | 0 | }; |
4725 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
4726 | 0 | self.special_fields.cached_size().set(my_size as u32); |
4727 | 0 | my_size |
4728 | 0 | } |
4729 | | |
4730 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
4731 | 0 | if let Some(v) = self.java_package.as_ref() { |
4732 | 0 | os.write_string(1, v)?; |
4733 | 0 | } |
4734 | 0 | if let Some(v) = self.java_outer_classname.as_ref() { |
4735 | 0 | os.write_string(8, v)?; |
4736 | 0 | } |
4737 | 0 | if let Some(v) = self.java_multiple_files { |
4738 | 0 | os.write_bool(10, v)?; |
4739 | 0 | } |
4740 | 0 | if let Some(v) = self.java_generate_equals_and_hash { |
4741 | 0 | os.write_bool(20, v)?; |
4742 | 0 | } |
4743 | 0 | if let Some(v) = self.java_string_check_utf8 { |
4744 | 0 | os.write_bool(27, v)?; |
4745 | 0 | } |
4746 | 0 | if let Some(v) = self.optimize_for { |
4747 | 0 | os.write_enum(9, crate::EnumOrUnknown::value(&v))?; |
4748 | 0 | } |
4749 | 0 | if let Some(v) = self.go_package.as_ref() { |
4750 | 0 | os.write_string(11, v)?; |
4751 | 0 | } |
4752 | 0 | if let Some(v) = self.cc_generic_services { |
4753 | 0 | os.write_bool(16, v)?; |
4754 | 0 | } |
4755 | 0 | if let Some(v) = self.java_generic_services { |
4756 | 0 | os.write_bool(17, v)?; |
4757 | 0 | } |
4758 | 0 | if let Some(v) = self.py_generic_services { |
4759 | 0 | os.write_bool(18, v)?; |
4760 | 0 | } |
4761 | 0 | if let Some(v) = self.php_generic_services { |
4762 | 0 | os.write_bool(42, v)?; |
4763 | 0 | } |
4764 | 0 | if let Some(v) = self.deprecated { |
4765 | 0 | os.write_bool(23, v)?; |
4766 | 0 | } |
4767 | 0 | if let Some(v) = self.cc_enable_arenas { |
4768 | 0 | os.write_bool(31, v)?; |
4769 | 0 | } |
4770 | 0 | if let Some(v) = self.objc_class_prefix.as_ref() { |
4771 | 0 | os.write_string(36, v)?; |
4772 | 0 | } |
4773 | 0 | if let Some(v) = self.csharp_namespace.as_ref() { |
4774 | 0 | os.write_string(37, v)?; |
4775 | 0 | } |
4776 | 0 | if let Some(v) = self.swift_prefix.as_ref() { |
4777 | 0 | os.write_string(39, v)?; |
4778 | 0 | } |
4779 | 0 | if let Some(v) = self.php_class_prefix.as_ref() { |
4780 | 0 | os.write_string(40, v)?; |
4781 | 0 | } |
4782 | 0 | if let Some(v) = self.php_namespace.as_ref() { |
4783 | 0 | os.write_string(41, v)?; |
4784 | 0 | } |
4785 | 0 | if let Some(v) = self.php_metadata_namespace.as_ref() { |
4786 | 0 | os.write_string(44, v)?; |
4787 | 0 | } |
4788 | 0 | if let Some(v) = self.ruby_package.as_ref() { |
4789 | 0 | os.write_string(45, v)?; |
4790 | 0 | } |
4791 | 0 | for v in &self.uninterpreted_option { |
4792 | 0 | crate::rt::write_message_field_with_cached_size(999, v, os)?; |
4793 | | }; |
4794 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
4795 | 0 | ::std::result::Result::Ok(()) |
4796 | 0 | } |
4797 | | |
4798 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
4799 | 0 | &self.special_fields |
4800 | 0 | } |
4801 | | |
4802 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
4803 | 0 | &mut self.special_fields |
4804 | 0 | } |
4805 | | |
4806 | 0 | fn new() -> FileOptions { |
4807 | 0 | FileOptions::new() |
4808 | 0 | } |
4809 | | |
4810 | 0 | fn clear(&mut self) { |
4811 | 0 | self.java_package = ::std::option::Option::None; |
4812 | 0 | self.java_outer_classname = ::std::option::Option::None; |
4813 | 0 | self.java_multiple_files = ::std::option::Option::None; |
4814 | 0 | self.java_generate_equals_and_hash = ::std::option::Option::None; |
4815 | 0 | self.java_string_check_utf8 = ::std::option::Option::None; |
4816 | 0 | self.optimize_for = ::std::option::Option::None; |
4817 | 0 | self.go_package = ::std::option::Option::None; |
4818 | 0 | self.cc_generic_services = ::std::option::Option::None; |
4819 | 0 | self.java_generic_services = ::std::option::Option::None; |
4820 | 0 | self.py_generic_services = ::std::option::Option::None; |
4821 | 0 | self.php_generic_services = ::std::option::Option::None; |
4822 | 0 | self.deprecated = ::std::option::Option::None; |
4823 | 0 | self.cc_enable_arenas = ::std::option::Option::None; |
4824 | 0 | self.objc_class_prefix = ::std::option::Option::None; |
4825 | 0 | self.csharp_namespace = ::std::option::Option::None; |
4826 | 0 | self.swift_prefix = ::std::option::Option::None; |
4827 | 0 | self.php_class_prefix = ::std::option::Option::None; |
4828 | 0 | self.php_namespace = ::std::option::Option::None; |
4829 | 0 | self.php_metadata_namespace = ::std::option::Option::None; |
4830 | 0 | self.ruby_package = ::std::option::Option::None; |
4831 | 0 | self.uninterpreted_option.clear(); |
4832 | 0 | self.special_fields.clear(); |
4833 | 0 | } |
4834 | | |
4835 | 0 | fn default_instance() -> &'static FileOptions { |
4836 | | static instance: FileOptions = FileOptions { |
4837 | | java_package: ::std::option::Option::None, |
4838 | | java_outer_classname: ::std::option::Option::None, |
4839 | | java_multiple_files: ::std::option::Option::None, |
4840 | | java_generate_equals_and_hash: ::std::option::Option::None, |
4841 | | java_string_check_utf8: ::std::option::Option::None, |
4842 | | optimize_for: ::std::option::Option::None, |
4843 | | go_package: ::std::option::Option::None, |
4844 | | cc_generic_services: ::std::option::Option::None, |
4845 | | java_generic_services: ::std::option::Option::None, |
4846 | | py_generic_services: ::std::option::Option::None, |
4847 | | php_generic_services: ::std::option::Option::None, |
4848 | | deprecated: ::std::option::Option::None, |
4849 | | cc_enable_arenas: ::std::option::Option::None, |
4850 | | objc_class_prefix: ::std::option::Option::None, |
4851 | | csharp_namespace: ::std::option::Option::None, |
4852 | | swift_prefix: ::std::option::Option::None, |
4853 | | php_class_prefix: ::std::option::Option::None, |
4854 | | php_namespace: ::std::option::Option::None, |
4855 | | php_metadata_namespace: ::std::option::Option::None, |
4856 | | ruby_package: ::std::option::Option::None, |
4857 | | uninterpreted_option: ::std::vec::Vec::new(), |
4858 | | special_fields: crate::SpecialFields::new(), |
4859 | | }; |
4860 | 0 | &instance |
4861 | 0 | } |
4862 | | } |
4863 | | |
4864 | | impl crate::MessageFull for FileOptions { |
4865 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
4866 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
4867 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("FileOptions").unwrap()).clone() |
4868 | 0 | } |
4869 | | } |
4870 | | |
4871 | | impl ::std::fmt::Display for FileOptions { |
4872 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
4873 | 0 | crate::text_format::fmt(self, f) |
4874 | 0 | } |
4875 | | } |
4876 | | |
4877 | | impl crate::reflect::ProtobufValue for FileOptions { |
4878 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
4879 | | } |
4880 | | |
4881 | | /// Nested message and enums of message `FileOptions` |
4882 | | pub mod file_options { |
4883 | | /// Generated classes can be optimized for speed or code size. |
4884 | | #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] |
4885 | | // @@protoc_insertion_point(enum:google.protobuf.FileOptions.OptimizeMode) |
4886 | | pub enum OptimizeMode { |
4887 | | // @@protoc_insertion_point(enum_value:google.protobuf.FileOptions.OptimizeMode.SPEED) |
4888 | | SPEED = 1, |
4889 | | // @@protoc_insertion_point(enum_value:google.protobuf.FileOptions.OptimizeMode.CODE_SIZE) |
4890 | | CODE_SIZE = 2, |
4891 | | // @@protoc_insertion_point(enum_value:google.protobuf.FileOptions.OptimizeMode.LITE_RUNTIME) |
4892 | | LITE_RUNTIME = 3, |
4893 | | } |
4894 | | |
4895 | | impl crate::Enum for OptimizeMode { |
4896 | | const NAME: &'static str = "OptimizeMode"; |
4897 | | |
4898 | 0 | fn value(&self) -> i32 { |
4899 | 0 | *self as i32 |
4900 | 0 | } |
4901 | | |
4902 | 0 | fn from_i32(value: i32) -> ::std::option::Option<OptimizeMode> { |
4903 | 0 | match value { |
4904 | 0 | 1 => ::std::option::Option::Some(OptimizeMode::SPEED), |
4905 | 0 | 2 => ::std::option::Option::Some(OptimizeMode::CODE_SIZE), |
4906 | 0 | 3 => ::std::option::Option::Some(OptimizeMode::LITE_RUNTIME), |
4907 | 0 | _ => ::std::option::Option::None |
4908 | | } |
4909 | 0 | } |
4910 | | |
4911 | | const VALUES: &'static [OptimizeMode] = &[ |
4912 | | OptimizeMode::SPEED, |
4913 | | OptimizeMode::CODE_SIZE, |
4914 | | OptimizeMode::LITE_RUNTIME, |
4915 | | ]; |
4916 | | } |
4917 | | |
4918 | | impl crate::EnumFull for OptimizeMode { |
4919 | 0 | fn enum_descriptor() -> crate::reflect::EnumDescriptor { |
4920 | | static descriptor: crate::rt::Lazy<crate::reflect::EnumDescriptor> = crate::rt::Lazy::new(); |
4921 | 0 | descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("FileOptions.OptimizeMode").unwrap()).clone() |
4922 | 0 | } |
4923 | | |
4924 | 0 | fn descriptor(&self) -> crate::reflect::EnumValueDescriptor { |
4925 | 0 | let index = match self { |
4926 | 0 | OptimizeMode::SPEED => 0, |
4927 | 0 | OptimizeMode::CODE_SIZE => 1, |
4928 | 0 | OptimizeMode::LITE_RUNTIME => 2, |
4929 | | }; |
4930 | 0 | Self::enum_descriptor().value_by_index(index) |
4931 | 0 | } |
4932 | | } |
4933 | | |
4934 | | // Note, `Default` is implemented although default value is not 0 |
4935 | | impl ::std::default::Default for OptimizeMode { |
4936 | 0 | fn default() -> Self { |
4937 | 0 | OptimizeMode::SPEED |
4938 | 0 | } |
4939 | | } |
4940 | | |
4941 | | impl OptimizeMode { |
4942 | 0 | pub(in super) fn generated_enum_descriptor_data() -> crate::reflect::GeneratedEnumDescriptorData { |
4943 | 0 | crate::reflect::GeneratedEnumDescriptorData::new::<OptimizeMode>("FileOptions.OptimizeMode") |
4944 | 0 | } |
4945 | | } |
4946 | | } |
4947 | | |
4948 | | #[derive(PartialEq,Clone,Default,Debug)] |
4949 | | // @@protoc_insertion_point(message:google.protobuf.MessageOptions) |
4950 | | pub struct MessageOptions { |
4951 | | // message fields |
4952 | | // @@protoc_insertion_point(field:google.protobuf.MessageOptions.message_set_wire_format) |
4953 | | pub message_set_wire_format: ::std::option::Option<bool>, |
4954 | | /// Disables the generation of the standard "descriptor()" accessor, which can |
4955 | | /// conflict with a field of the same name. This is meant to make migration |
4956 | | /// from proto1 easier; new code should avoid fields named "descriptor". |
4957 | | // @@protoc_insertion_point(field:google.protobuf.MessageOptions.no_standard_descriptor_accessor) |
4958 | | pub no_standard_descriptor_accessor: ::std::option::Option<bool>, |
4959 | | /// Is this message deprecated? |
4960 | | /// Depending on the target platform, this can emit Deprecated annotations |
4961 | | /// for the message, or it will be completely ignored; in the very least, |
4962 | | /// this is a formalization for deprecating messages. |
4963 | | // @@protoc_insertion_point(field:google.protobuf.MessageOptions.deprecated) |
4964 | | pub deprecated: ::std::option::Option<bool>, |
4965 | | // @@protoc_insertion_point(field:google.protobuf.MessageOptions.map_entry) |
4966 | | pub map_entry: ::std::option::Option<bool>, |
4967 | | /// The parser stores options it doesn't recognize here. See above. |
4968 | | // @@protoc_insertion_point(field:google.protobuf.MessageOptions.uninterpreted_option) |
4969 | | pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>, |
4970 | | // special fields |
4971 | | // @@protoc_insertion_point(special_field:google.protobuf.MessageOptions.special_fields) |
4972 | | pub special_fields: crate::SpecialFields, |
4973 | | } |
4974 | | |
4975 | | impl<'a> ::std::default::Default for &'a MessageOptions { |
4976 | 0 | fn default() -> &'a MessageOptions { |
4977 | 0 | <MessageOptions as crate::Message>::default_instance() |
4978 | 0 | } |
4979 | | } |
4980 | | |
4981 | | impl MessageOptions { |
4982 | 0 | pub fn new() -> MessageOptions { |
4983 | 0 | ::std::default::Default::default() |
4984 | 0 | } |
4985 | | |
4986 | | // optional bool message_set_wire_format = 1; |
4987 | | |
4988 | 0 | pub fn message_set_wire_format(&self) -> bool { |
4989 | 0 | self.message_set_wire_format.unwrap_or(false) |
4990 | 0 | } |
4991 | | |
4992 | 0 | pub fn clear_message_set_wire_format(&mut self) { |
4993 | 0 | self.message_set_wire_format = ::std::option::Option::None; |
4994 | 0 | } |
4995 | | |
4996 | 0 | pub fn has_message_set_wire_format(&self) -> bool { |
4997 | 0 | self.message_set_wire_format.is_some() |
4998 | 0 | } |
4999 | | |
5000 | | // Param is passed by value, moved |
5001 | 0 | pub fn set_message_set_wire_format(&mut self, v: bool) { |
5002 | 0 | self.message_set_wire_format = ::std::option::Option::Some(v); |
5003 | 0 | } |
5004 | | |
5005 | | // optional bool no_standard_descriptor_accessor = 2; |
5006 | | |
5007 | 0 | pub fn no_standard_descriptor_accessor(&self) -> bool { |
5008 | 0 | self.no_standard_descriptor_accessor.unwrap_or(false) |
5009 | 0 | } |
5010 | | |
5011 | 0 | pub fn clear_no_standard_descriptor_accessor(&mut self) { |
5012 | 0 | self.no_standard_descriptor_accessor = ::std::option::Option::None; |
5013 | 0 | } |
5014 | | |
5015 | 0 | pub fn has_no_standard_descriptor_accessor(&self) -> bool { |
5016 | 0 | self.no_standard_descriptor_accessor.is_some() |
5017 | 0 | } |
5018 | | |
5019 | | // Param is passed by value, moved |
5020 | 0 | pub fn set_no_standard_descriptor_accessor(&mut self, v: bool) { |
5021 | 0 | self.no_standard_descriptor_accessor = ::std::option::Option::Some(v); |
5022 | 0 | } |
5023 | | |
5024 | | // optional bool deprecated = 3; |
5025 | | |
5026 | 0 | pub fn deprecated(&self) -> bool { |
5027 | 0 | self.deprecated.unwrap_or(false) |
5028 | 0 | } |
5029 | | |
5030 | 0 | pub fn clear_deprecated(&mut self) { |
5031 | 0 | self.deprecated = ::std::option::Option::None; |
5032 | 0 | } |
5033 | | |
5034 | 0 | pub fn has_deprecated(&self) -> bool { |
5035 | 0 | self.deprecated.is_some() |
5036 | 0 | } |
5037 | | |
5038 | | // Param is passed by value, moved |
5039 | 0 | pub fn set_deprecated(&mut self, v: bool) { |
5040 | 0 | self.deprecated = ::std::option::Option::Some(v); |
5041 | 0 | } |
5042 | | |
5043 | | // optional bool map_entry = 7; |
5044 | | |
5045 | 0 | pub fn map_entry(&self) -> bool { |
5046 | 0 | self.map_entry.unwrap_or(false) |
5047 | 0 | } |
5048 | | |
5049 | 0 | pub fn clear_map_entry(&mut self) { |
5050 | 0 | self.map_entry = ::std::option::Option::None; |
5051 | 0 | } |
5052 | | |
5053 | 0 | pub fn has_map_entry(&self) -> bool { |
5054 | 0 | self.map_entry.is_some() |
5055 | 0 | } |
5056 | | |
5057 | | // Param is passed by value, moved |
5058 | 0 | pub fn set_map_entry(&mut self, v: bool) { |
5059 | 0 | self.map_entry = ::std::option::Option::Some(v); |
5060 | 0 | } |
5061 | | |
5062 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
5063 | 0 | let mut fields = ::std::vec::Vec::with_capacity(5); |
5064 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
5065 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5066 | | "message_set_wire_format", |
5067 | 0 | |m: &MessageOptions| { &m.message_set_wire_format }, |
5068 | 0 | |m: &mut MessageOptions| { &mut m.message_set_wire_format }, |
5069 | | )); |
5070 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5071 | | "no_standard_descriptor_accessor", |
5072 | 0 | |m: &MessageOptions| { &m.no_standard_descriptor_accessor }, |
5073 | 0 | |m: &mut MessageOptions| { &mut m.no_standard_descriptor_accessor }, |
5074 | | )); |
5075 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5076 | | "deprecated", |
5077 | 0 | |m: &MessageOptions| { &m.deprecated }, |
5078 | 0 | |m: &mut MessageOptions| { &mut m.deprecated }, |
5079 | | )); |
5080 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5081 | | "map_entry", |
5082 | 0 | |m: &MessageOptions| { &m.map_entry }, |
5083 | 0 | |m: &mut MessageOptions| { &mut m.map_entry }, |
5084 | | )); |
5085 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
5086 | | "uninterpreted_option", |
5087 | 0 | |m: &MessageOptions| { &m.uninterpreted_option }, |
5088 | 0 | |m: &mut MessageOptions| { &mut m.uninterpreted_option }, |
5089 | | )); |
5090 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<MessageOptions>( |
5091 | | "MessageOptions", |
5092 | 0 | fields, |
5093 | 0 | oneofs, |
5094 | | ) |
5095 | 0 | } |
5096 | | } |
5097 | | |
5098 | | impl crate::Message for MessageOptions { |
5099 | | const NAME: &'static str = "MessageOptions"; |
5100 | | |
5101 | 0 | fn is_initialized(&self) -> bool { |
5102 | 0 | for v in &self.uninterpreted_option { |
5103 | 0 | if !v.is_initialized() { |
5104 | 0 | return false; |
5105 | 0 | } |
5106 | | }; |
5107 | 0 | true |
5108 | 0 | } |
5109 | | |
5110 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
5111 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
5112 | 0 | match tag { |
5113 | | 8 => { |
5114 | 0 | self.message_set_wire_format = ::std::option::Option::Some(is.read_bool()?); |
5115 | | }, |
5116 | | 16 => { |
5117 | 0 | self.no_standard_descriptor_accessor = ::std::option::Option::Some(is.read_bool()?); |
5118 | | }, |
5119 | | 24 => { |
5120 | 0 | self.deprecated = ::std::option::Option::Some(is.read_bool()?); |
5121 | | }, |
5122 | | 56 => { |
5123 | 0 | self.map_entry = ::std::option::Option::Some(is.read_bool()?); |
5124 | | }, |
5125 | | 7994 => { |
5126 | 0 | self.uninterpreted_option.push(is.read_message()?); |
5127 | | }, |
5128 | 0 | tag => { |
5129 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
5130 | | }, |
5131 | | }; |
5132 | | } |
5133 | 0 | ::std::result::Result::Ok(()) |
5134 | 0 | } |
5135 | | |
5136 | | // Compute sizes of nested messages |
5137 | | #[allow(unused_variables)] |
5138 | 0 | fn compute_size(&self) -> u64 { |
5139 | 0 | let mut my_size = 0; |
5140 | 0 | if let Some(v) = self.message_set_wire_format { |
5141 | 0 | my_size += 1 + 1; |
5142 | 0 | } |
5143 | 0 | if let Some(v) = self.no_standard_descriptor_accessor { |
5144 | 0 | my_size += 1 + 1; |
5145 | 0 | } |
5146 | 0 | if let Some(v) = self.deprecated { |
5147 | 0 | my_size += 1 + 1; |
5148 | 0 | } |
5149 | 0 | if let Some(v) = self.map_entry { |
5150 | 0 | my_size += 1 + 1; |
5151 | 0 | } |
5152 | 0 | for value in &self.uninterpreted_option { |
5153 | 0 | let len = value.compute_size(); |
5154 | 0 | my_size += 2 + crate::rt::compute_raw_varint64_size(len) + len; |
5155 | 0 | }; |
5156 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
5157 | 0 | self.special_fields.cached_size().set(my_size as u32); |
5158 | 0 | my_size |
5159 | 0 | } |
5160 | | |
5161 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
5162 | 0 | if let Some(v) = self.message_set_wire_format { |
5163 | 0 | os.write_bool(1, v)?; |
5164 | 0 | } |
5165 | 0 | if let Some(v) = self.no_standard_descriptor_accessor { |
5166 | 0 | os.write_bool(2, v)?; |
5167 | 0 | } |
5168 | 0 | if let Some(v) = self.deprecated { |
5169 | 0 | os.write_bool(3, v)?; |
5170 | 0 | } |
5171 | 0 | if let Some(v) = self.map_entry { |
5172 | 0 | os.write_bool(7, v)?; |
5173 | 0 | } |
5174 | 0 | for v in &self.uninterpreted_option { |
5175 | 0 | crate::rt::write_message_field_with_cached_size(999, v, os)?; |
5176 | | }; |
5177 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
5178 | 0 | ::std::result::Result::Ok(()) |
5179 | 0 | } |
5180 | | |
5181 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
5182 | 0 | &self.special_fields |
5183 | 0 | } |
5184 | | |
5185 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
5186 | 0 | &mut self.special_fields |
5187 | 0 | } |
5188 | | |
5189 | 0 | fn new() -> MessageOptions { |
5190 | 0 | MessageOptions::new() |
5191 | 0 | } |
5192 | | |
5193 | 0 | fn clear(&mut self) { |
5194 | 0 | self.message_set_wire_format = ::std::option::Option::None; |
5195 | 0 | self.no_standard_descriptor_accessor = ::std::option::Option::None; |
5196 | 0 | self.deprecated = ::std::option::Option::None; |
5197 | 0 | self.map_entry = ::std::option::Option::None; |
5198 | 0 | self.uninterpreted_option.clear(); |
5199 | 0 | self.special_fields.clear(); |
5200 | 0 | } |
5201 | | |
5202 | 0 | fn default_instance() -> &'static MessageOptions { |
5203 | | static instance: MessageOptions = MessageOptions { |
5204 | | message_set_wire_format: ::std::option::Option::None, |
5205 | | no_standard_descriptor_accessor: ::std::option::Option::None, |
5206 | | deprecated: ::std::option::Option::None, |
5207 | | map_entry: ::std::option::Option::None, |
5208 | | uninterpreted_option: ::std::vec::Vec::new(), |
5209 | | special_fields: crate::SpecialFields::new(), |
5210 | | }; |
5211 | 0 | &instance |
5212 | 0 | } |
5213 | | } |
5214 | | |
5215 | | impl crate::MessageFull for MessageOptions { |
5216 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
5217 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
5218 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("MessageOptions").unwrap()).clone() |
5219 | 0 | } |
5220 | | } |
5221 | | |
5222 | | impl ::std::fmt::Display for MessageOptions { |
5223 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
5224 | 0 | crate::text_format::fmt(self, f) |
5225 | 0 | } |
5226 | | } |
5227 | | |
5228 | | impl crate::reflect::ProtobufValue for MessageOptions { |
5229 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
5230 | | } |
5231 | | |
5232 | | #[derive(PartialEq,Clone,Default,Debug)] |
5233 | | // @@protoc_insertion_point(message:google.protobuf.FieldOptions) |
5234 | | pub struct FieldOptions { |
5235 | | // message fields |
5236 | | /// The ctype option instructs the C++ code generator to use a different |
5237 | | /// representation of the field than it normally would. See the specific |
5238 | | /// options below. This option is not yet implemented in the open source |
5239 | | /// release -- sorry, we'll try to include it in a future version! |
5240 | | // @@protoc_insertion_point(field:google.protobuf.FieldOptions.ctype) |
5241 | | pub ctype: ::std::option::Option<crate::EnumOrUnknown<field_options::CType>>, |
5242 | | /// The packed option can be enabled for repeated primitive fields to enable |
5243 | | /// a more efficient representation on the wire. Rather than repeatedly |
5244 | | /// writing the tag and type for each element, the entire array is encoded as |
5245 | | /// a single length-delimited blob. In proto3, only explicit setting it to |
5246 | | /// false will avoid using packed encoding. |
5247 | | // @@protoc_insertion_point(field:google.protobuf.FieldOptions.packed) |
5248 | | pub packed: ::std::option::Option<bool>, |
5249 | | /// The jstype option determines the JavaScript type used for values of the |
5250 | | /// field. The option is permitted only for 64 bit integral and fixed types |
5251 | | /// (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING |
5252 | | /// is represented as JavaScript string, which avoids loss of precision that |
5253 | | /// can happen when a large value is converted to a floating point JavaScript. |
5254 | | /// Specifying JS_NUMBER for the jstype causes the generated JavaScript code to |
5255 | | /// use the JavaScript "number" type. The behavior of the default option |
5256 | | /// JS_NORMAL is implementation dependent. |
5257 | | /// |
5258 | | /// This option is an enum to permit additional types to be added, e.g. |
5259 | | /// goog.math.Integer. |
5260 | | // @@protoc_insertion_point(field:google.protobuf.FieldOptions.jstype) |
5261 | | pub jstype: ::std::option::Option<crate::EnumOrUnknown<field_options::JSType>>, |
5262 | | /// Should this field be parsed lazily? Lazy applies only to message-type |
5263 | | /// fields. It means that when the outer message is initially parsed, the |
5264 | | /// inner message's contents will not be parsed but instead stored in encoded |
5265 | | /// form. The inner message will actually be parsed when it is first accessed. |
5266 | | /// |
5267 | | /// This is only a hint. Implementations are free to choose whether to use |
5268 | | /// eager or lazy parsing regardless of the value of this option. However, |
5269 | | /// setting this option true suggests that the protocol author believes that |
5270 | | /// using lazy parsing on this field is worth the additional bookkeeping |
5271 | | /// overhead typically needed to implement it. |
5272 | | /// |
5273 | | /// This option does not affect the public interface of any generated code; |
5274 | | /// all method signatures remain the same. Furthermore, thread-safety of the |
5275 | | /// interface is not affected by this option; const methods remain safe to |
5276 | | /// call from multiple threads concurrently, while non-const methods continue |
5277 | | /// to require exclusive access. |
5278 | | /// |
5279 | | /// |
5280 | | /// Note that implementations may choose not to check required fields within |
5281 | | /// a lazy sub-message. That is, calling IsInitialized() on the outer message |
5282 | | /// may return true even if the inner message has missing required fields. |
5283 | | /// This is necessary because otherwise the inner message would have to be |
5284 | | /// parsed in order to perform the check, defeating the purpose of lazy |
5285 | | /// parsing. An implementation which chooses not to check required fields |
5286 | | /// must be consistent about it. That is, for any particular sub-message, the |
5287 | | /// implementation must either *always* check its required fields, or *never* |
5288 | | /// check its required fields, regardless of whether or not the message has |
5289 | | /// been parsed. |
5290 | | // @@protoc_insertion_point(field:google.protobuf.FieldOptions.lazy) |
5291 | | pub lazy: ::std::option::Option<bool>, |
5292 | | /// Is this field deprecated? |
5293 | | /// Depending on the target platform, this can emit Deprecated annotations |
5294 | | /// for accessors, or it will be completely ignored; in the very least, this |
5295 | | /// is a formalization for deprecating fields. |
5296 | | // @@protoc_insertion_point(field:google.protobuf.FieldOptions.deprecated) |
5297 | | pub deprecated: ::std::option::Option<bool>, |
5298 | | /// For Google-internal migration only. Do not use. |
5299 | | // @@protoc_insertion_point(field:google.protobuf.FieldOptions.weak) |
5300 | | pub weak: ::std::option::Option<bool>, |
5301 | | /// The parser stores options it doesn't recognize here. See above. |
5302 | | // @@protoc_insertion_point(field:google.protobuf.FieldOptions.uninterpreted_option) |
5303 | | pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>, |
5304 | | // special fields |
5305 | | // @@protoc_insertion_point(special_field:google.protobuf.FieldOptions.special_fields) |
5306 | | pub special_fields: crate::SpecialFields, |
5307 | | } |
5308 | | |
5309 | | impl<'a> ::std::default::Default for &'a FieldOptions { |
5310 | 0 | fn default() -> &'a FieldOptions { |
5311 | 0 | <FieldOptions as crate::Message>::default_instance() |
5312 | 0 | } |
5313 | | } |
5314 | | |
5315 | | impl FieldOptions { |
5316 | 0 | pub fn new() -> FieldOptions { |
5317 | 0 | ::std::default::Default::default() |
5318 | 0 | } |
5319 | | |
5320 | | // optional .google.protobuf.FieldOptions.CType ctype = 1; |
5321 | | |
5322 | 0 | pub fn ctype(&self) -> field_options::CType { |
5323 | 0 | match self.ctype { |
5324 | 0 | Some(e) => e.enum_value_or(field_options::CType::STRING), |
5325 | 0 | None => field_options::CType::STRING, |
5326 | | } |
5327 | 0 | } |
5328 | | |
5329 | 0 | pub fn clear_ctype(&mut self) { |
5330 | 0 | self.ctype = ::std::option::Option::None; |
5331 | 0 | } |
5332 | | |
5333 | 0 | pub fn has_ctype(&self) -> bool { |
5334 | 0 | self.ctype.is_some() |
5335 | 0 | } |
5336 | | |
5337 | | // Param is passed by value, moved |
5338 | 0 | pub fn set_ctype(&mut self, v: field_options::CType) { |
5339 | 0 | self.ctype = ::std::option::Option::Some(crate::EnumOrUnknown::new(v)); |
5340 | 0 | } |
5341 | | |
5342 | | // optional bool packed = 2; |
5343 | | |
5344 | 0 | pub fn packed(&self) -> bool { |
5345 | 0 | self.packed.unwrap_or(false) |
5346 | 0 | } |
5347 | | |
5348 | 0 | pub fn clear_packed(&mut self) { |
5349 | 0 | self.packed = ::std::option::Option::None; |
5350 | 0 | } |
5351 | | |
5352 | 0 | pub fn has_packed(&self) -> bool { |
5353 | 0 | self.packed.is_some() |
5354 | 0 | } |
5355 | | |
5356 | | // Param is passed by value, moved |
5357 | 0 | pub fn set_packed(&mut self, v: bool) { |
5358 | 0 | self.packed = ::std::option::Option::Some(v); |
5359 | 0 | } |
5360 | | |
5361 | | // optional .google.protobuf.FieldOptions.JSType jstype = 6; |
5362 | | |
5363 | 0 | pub fn jstype(&self) -> field_options::JSType { |
5364 | 0 | match self.jstype { |
5365 | 0 | Some(e) => e.enum_value_or(field_options::JSType::JS_NORMAL), |
5366 | 0 | None => field_options::JSType::JS_NORMAL, |
5367 | | } |
5368 | 0 | } |
5369 | | |
5370 | 0 | pub fn clear_jstype(&mut self) { |
5371 | 0 | self.jstype = ::std::option::Option::None; |
5372 | 0 | } |
5373 | | |
5374 | 0 | pub fn has_jstype(&self) -> bool { |
5375 | 0 | self.jstype.is_some() |
5376 | 0 | } |
5377 | | |
5378 | | // Param is passed by value, moved |
5379 | 0 | pub fn set_jstype(&mut self, v: field_options::JSType) { |
5380 | 0 | self.jstype = ::std::option::Option::Some(crate::EnumOrUnknown::new(v)); |
5381 | 0 | } |
5382 | | |
5383 | | // optional bool lazy = 5; |
5384 | | |
5385 | 0 | pub fn lazy(&self) -> bool { |
5386 | 0 | self.lazy.unwrap_or(false) |
5387 | 0 | } |
5388 | | |
5389 | 0 | pub fn clear_lazy(&mut self) { |
5390 | 0 | self.lazy = ::std::option::Option::None; |
5391 | 0 | } |
5392 | | |
5393 | 0 | pub fn has_lazy(&self) -> bool { |
5394 | 0 | self.lazy.is_some() |
5395 | 0 | } |
5396 | | |
5397 | | // Param is passed by value, moved |
5398 | 0 | pub fn set_lazy(&mut self, v: bool) { |
5399 | 0 | self.lazy = ::std::option::Option::Some(v); |
5400 | 0 | } |
5401 | | |
5402 | | // optional bool deprecated = 3; |
5403 | | |
5404 | 0 | pub fn deprecated(&self) -> bool { |
5405 | 0 | self.deprecated.unwrap_or(false) |
5406 | 0 | } |
5407 | | |
5408 | 0 | pub fn clear_deprecated(&mut self) { |
5409 | 0 | self.deprecated = ::std::option::Option::None; |
5410 | 0 | } |
5411 | | |
5412 | 0 | pub fn has_deprecated(&self) -> bool { |
5413 | 0 | self.deprecated.is_some() |
5414 | 0 | } |
5415 | | |
5416 | | // Param is passed by value, moved |
5417 | 0 | pub fn set_deprecated(&mut self, v: bool) { |
5418 | 0 | self.deprecated = ::std::option::Option::Some(v); |
5419 | 0 | } |
5420 | | |
5421 | | // optional bool weak = 10; |
5422 | | |
5423 | 0 | pub fn weak(&self) -> bool { |
5424 | 0 | self.weak.unwrap_or(false) |
5425 | 0 | } |
5426 | | |
5427 | 0 | pub fn clear_weak(&mut self) { |
5428 | 0 | self.weak = ::std::option::Option::None; |
5429 | 0 | } |
5430 | | |
5431 | 0 | pub fn has_weak(&self) -> bool { |
5432 | 0 | self.weak.is_some() |
5433 | 0 | } |
5434 | | |
5435 | | // Param is passed by value, moved |
5436 | 0 | pub fn set_weak(&mut self, v: bool) { |
5437 | 0 | self.weak = ::std::option::Option::Some(v); |
5438 | 0 | } |
5439 | | |
5440 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
5441 | 0 | let mut fields = ::std::vec::Vec::with_capacity(7); |
5442 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
5443 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5444 | | "ctype", |
5445 | 0 | |m: &FieldOptions| { &m.ctype }, |
5446 | 0 | |m: &mut FieldOptions| { &mut m.ctype }, |
5447 | | )); |
5448 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5449 | | "packed", |
5450 | 0 | |m: &FieldOptions| { &m.packed }, |
5451 | 0 | |m: &mut FieldOptions| { &mut m.packed }, |
5452 | | )); |
5453 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5454 | | "jstype", |
5455 | 0 | |m: &FieldOptions| { &m.jstype }, |
5456 | 0 | |m: &mut FieldOptions| { &mut m.jstype }, |
5457 | | )); |
5458 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5459 | | "lazy", |
5460 | 0 | |m: &FieldOptions| { &m.lazy }, |
5461 | 0 | |m: &mut FieldOptions| { &mut m.lazy }, |
5462 | | )); |
5463 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5464 | | "deprecated", |
5465 | 0 | |m: &FieldOptions| { &m.deprecated }, |
5466 | 0 | |m: &mut FieldOptions| { &mut m.deprecated }, |
5467 | | )); |
5468 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5469 | | "weak", |
5470 | 0 | |m: &FieldOptions| { &m.weak }, |
5471 | 0 | |m: &mut FieldOptions| { &mut m.weak }, |
5472 | | )); |
5473 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
5474 | | "uninterpreted_option", |
5475 | 0 | |m: &FieldOptions| { &m.uninterpreted_option }, |
5476 | 0 | |m: &mut FieldOptions| { &mut m.uninterpreted_option }, |
5477 | | )); |
5478 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<FieldOptions>( |
5479 | | "FieldOptions", |
5480 | 0 | fields, |
5481 | 0 | oneofs, |
5482 | | ) |
5483 | 0 | } |
5484 | | } |
5485 | | |
5486 | | impl crate::Message for FieldOptions { |
5487 | | const NAME: &'static str = "FieldOptions"; |
5488 | | |
5489 | 0 | fn is_initialized(&self) -> bool { |
5490 | 0 | for v in &self.uninterpreted_option { |
5491 | 0 | if !v.is_initialized() { |
5492 | 0 | return false; |
5493 | 0 | } |
5494 | | }; |
5495 | 0 | true |
5496 | 0 | } |
5497 | | |
5498 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
5499 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
5500 | 0 | match tag { |
5501 | | 8 => { |
5502 | 0 | self.ctype = ::std::option::Option::Some(is.read_enum_or_unknown()?); |
5503 | | }, |
5504 | | 16 => { |
5505 | 0 | self.packed = ::std::option::Option::Some(is.read_bool()?); |
5506 | | }, |
5507 | | 48 => { |
5508 | 0 | self.jstype = ::std::option::Option::Some(is.read_enum_or_unknown()?); |
5509 | | }, |
5510 | | 40 => { |
5511 | 0 | self.lazy = ::std::option::Option::Some(is.read_bool()?); |
5512 | | }, |
5513 | | 24 => { |
5514 | 0 | self.deprecated = ::std::option::Option::Some(is.read_bool()?); |
5515 | | }, |
5516 | | 80 => { |
5517 | 0 | self.weak = ::std::option::Option::Some(is.read_bool()?); |
5518 | | }, |
5519 | | 7994 => { |
5520 | 0 | self.uninterpreted_option.push(is.read_message()?); |
5521 | | }, |
5522 | 0 | tag => { |
5523 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
5524 | | }, |
5525 | | }; |
5526 | | } |
5527 | 0 | ::std::result::Result::Ok(()) |
5528 | 0 | } |
5529 | | |
5530 | | // Compute sizes of nested messages |
5531 | | #[allow(unused_variables)] |
5532 | 0 | fn compute_size(&self) -> u64 { |
5533 | 0 | let mut my_size = 0; |
5534 | 0 | if let Some(v) = self.ctype { |
5535 | 0 | my_size += crate::rt::int32_size(1, v.value()); |
5536 | 0 | } |
5537 | 0 | if let Some(v) = self.packed { |
5538 | 0 | my_size += 1 + 1; |
5539 | 0 | } |
5540 | 0 | if let Some(v) = self.jstype { |
5541 | 0 | my_size += crate::rt::int32_size(6, v.value()); |
5542 | 0 | } |
5543 | 0 | if let Some(v) = self.lazy { |
5544 | 0 | my_size += 1 + 1; |
5545 | 0 | } |
5546 | 0 | if let Some(v) = self.deprecated { |
5547 | 0 | my_size += 1 + 1; |
5548 | 0 | } |
5549 | 0 | if let Some(v) = self.weak { |
5550 | 0 | my_size += 1 + 1; |
5551 | 0 | } |
5552 | 0 | for value in &self.uninterpreted_option { |
5553 | 0 | let len = value.compute_size(); |
5554 | 0 | my_size += 2 + crate::rt::compute_raw_varint64_size(len) + len; |
5555 | 0 | }; |
5556 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
5557 | 0 | self.special_fields.cached_size().set(my_size as u32); |
5558 | 0 | my_size |
5559 | 0 | } |
5560 | | |
5561 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
5562 | 0 | if let Some(v) = self.ctype { |
5563 | 0 | os.write_enum(1, crate::EnumOrUnknown::value(&v))?; |
5564 | 0 | } |
5565 | 0 | if let Some(v) = self.packed { |
5566 | 0 | os.write_bool(2, v)?; |
5567 | 0 | } |
5568 | 0 | if let Some(v) = self.jstype { |
5569 | 0 | os.write_enum(6, crate::EnumOrUnknown::value(&v))?; |
5570 | 0 | } |
5571 | 0 | if let Some(v) = self.lazy { |
5572 | 0 | os.write_bool(5, v)?; |
5573 | 0 | } |
5574 | 0 | if let Some(v) = self.deprecated { |
5575 | 0 | os.write_bool(3, v)?; |
5576 | 0 | } |
5577 | 0 | if let Some(v) = self.weak { |
5578 | 0 | os.write_bool(10, v)?; |
5579 | 0 | } |
5580 | 0 | for v in &self.uninterpreted_option { |
5581 | 0 | crate::rt::write_message_field_with_cached_size(999, v, os)?; |
5582 | | }; |
5583 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
5584 | 0 | ::std::result::Result::Ok(()) |
5585 | 0 | } |
5586 | | |
5587 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
5588 | 0 | &self.special_fields |
5589 | 0 | } |
5590 | | |
5591 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
5592 | 0 | &mut self.special_fields |
5593 | 0 | } |
5594 | | |
5595 | 0 | fn new() -> FieldOptions { |
5596 | 0 | FieldOptions::new() |
5597 | 0 | } |
5598 | | |
5599 | 0 | fn clear(&mut self) { |
5600 | 0 | self.ctype = ::std::option::Option::None; |
5601 | 0 | self.packed = ::std::option::Option::None; |
5602 | 0 | self.jstype = ::std::option::Option::None; |
5603 | 0 | self.lazy = ::std::option::Option::None; |
5604 | 0 | self.deprecated = ::std::option::Option::None; |
5605 | 0 | self.weak = ::std::option::Option::None; |
5606 | 0 | self.uninterpreted_option.clear(); |
5607 | 0 | self.special_fields.clear(); |
5608 | 0 | } |
5609 | | |
5610 | 0 | fn default_instance() -> &'static FieldOptions { |
5611 | | static instance: FieldOptions = FieldOptions { |
5612 | | ctype: ::std::option::Option::None, |
5613 | | packed: ::std::option::Option::None, |
5614 | | jstype: ::std::option::Option::None, |
5615 | | lazy: ::std::option::Option::None, |
5616 | | deprecated: ::std::option::Option::None, |
5617 | | weak: ::std::option::Option::None, |
5618 | | uninterpreted_option: ::std::vec::Vec::new(), |
5619 | | special_fields: crate::SpecialFields::new(), |
5620 | | }; |
5621 | 0 | &instance |
5622 | 0 | } |
5623 | | } |
5624 | | |
5625 | | impl crate::MessageFull for FieldOptions { |
5626 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
5627 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
5628 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("FieldOptions").unwrap()).clone() |
5629 | 0 | } |
5630 | | } |
5631 | | |
5632 | | impl ::std::fmt::Display for FieldOptions { |
5633 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
5634 | 0 | crate::text_format::fmt(self, f) |
5635 | 0 | } |
5636 | | } |
5637 | | |
5638 | | impl crate::reflect::ProtobufValue for FieldOptions { |
5639 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
5640 | | } |
5641 | | |
5642 | | /// Nested message and enums of message `FieldOptions` |
5643 | | pub mod field_options { |
5644 | | #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] |
5645 | | // @@protoc_insertion_point(enum:google.protobuf.FieldOptions.CType) |
5646 | | pub enum CType { |
5647 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldOptions.CType.STRING) |
5648 | | STRING = 0, |
5649 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldOptions.CType.CORD) |
5650 | | CORD = 1, |
5651 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldOptions.CType.STRING_PIECE) |
5652 | | STRING_PIECE = 2, |
5653 | | } |
5654 | | |
5655 | | impl crate::Enum for CType { |
5656 | | const NAME: &'static str = "CType"; |
5657 | | |
5658 | 0 | fn value(&self) -> i32 { |
5659 | 0 | *self as i32 |
5660 | 0 | } |
5661 | | |
5662 | 0 | fn from_i32(value: i32) -> ::std::option::Option<CType> { |
5663 | 0 | match value { |
5664 | 0 | 0 => ::std::option::Option::Some(CType::STRING), |
5665 | 0 | 1 => ::std::option::Option::Some(CType::CORD), |
5666 | 0 | 2 => ::std::option::Option::Some(CType::STRING_PIECE), |
5667 | 0 | _ => ::std::option::Option::None |
5668 | | } |
5669 | 0 | } |
5670 | | |
5671 | | const VALUES: &'static [CType] = &[ |
5672 | | CType::STRING, |
5673 | | CType::CORD, |
5674 | | CType::STRING_PIECE, |
5675 | | ]; |
5676 | | } |
5677 | | |
5678 | | impl crate::EnumFull for CType { |
5679 | 0 | fn enum_descriptor() -> crate::reflect::EnumDescriptor { |
5680 | | static descriptor: crate::rt::Lazy<crate::reflect::EnumDescriptor> = crate::rt::Lazy::new(); |
5681 | 0 | descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("FieldOptions.CType").unwrap()).clone() |
5682 | 0 | } |
5683 | | |
5684 | 0 | fn descriptor(&self) -> crate::reflect::EnumValueDescriptor { |
5685 | 0 | let index = *self as usize; |
5686 | 0 | Self::enum_descriptor().value_by_index(index) |
5687 | 0 | } |
5688 | | } |
5689 | | |
5690 | | impl ::std::default::Default for CType { |
5691 | 0 | fn default() -> Self { |
5692 | 0 | CType::STRING |
5693 | 0 | } |
5694 | | } |
5695 | | |
5696 | | impl CType { |
5697 | 0 | pub(in super) fn generated_enum_descriptor_data() -> crate::reflect::GeneratedEnumDescriptorData { |
5698 | 0 | crate::reflect::GeneratedEnumDescriptorData::new::<CType>("FieldOptions.CType") |
5699 | 0 | } |
5700 | | } |
5701 | | |
5702 | | #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] |
5703 | | // @@protoc_insertion_point(enum:google.protobuf.FieldOptions.JSType) |
5704 | | pub enum JSType { |
5705 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldOptions.JSType.JS_NORMAL) |
5706 | | JS_NORMAL = 0, |
5707 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldOptions.JSType.JS_STRING) |
5708 | | JS_STRING = 1, |
5709 | | // @@protoc_insertion_point(enum_value:google.protobuf.FieldOptions.JSType.JS_NUMBER) |
5710 | | JS_NUMBER = 2, |
5711 | | } |
5712 | | |
5713 | | impl crate::Enum for JSType { |
5714 | | const NAME: &'static str = "JSType"; |
5715 | | |
5716 | 0 | fn value(&self) -> i32 { |
5717 | 0 | *self as i32 |
5718 | 0 | } |
5719 | | |
5720 | 0 | fn from_i32(value: i32) -> ::std::option::Option<JSType> { |
5721 | 0 | match value { |
5722 | 0 | 0 => ::std::option::Option::Some(JSType::JS_NORMAL), |
5723 | 0 | 1 => ::std::option::Option::Some(JSType::JS_STRING), |
5724 | 0 | 2 => ::std::option::Option::Some(JSType::JS_NUMBER), |
5725 | 0 | _ => ::std::option::Option::None |
5726 | | } |
5727 | 0 | } |
5728 | | |
5729 | | const VALUES: &'static [JSType] = &[ |
5730 | | JSType::JS_NORMAL, |
5731 | | JSType::JS_STRING, |
5732 | | JSType::JS_NUMBER, |
5733 | | ]; |
5734 | | } |
5735 | | |
5736 | | impl crate::EnumFull for JSType { |
5737 | 0 | fn enum_descriptor() -> crate::reflect::EnumDescriptor { |
5738 | | static descriptor: crate::rt::Lazy<crate::reflect::EnumDescriptor> = crate::rt::Lazy::new(); |
5739 | 0 | descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("FieldOptions.JSType").unwrap()).clone() |
5740 | 0 | } |
5741 | | |
5742 | 0 | fn descriptor(&self) -> crate::reflect::EnumValueDescriptor { |
5743 | 0 | let index = *self as usize; |
5744 | 0 | Self::enum_descriptor().value_by_index(index) |
5745 | 0 | } |
5746 | | } |
5747 | | |
5748 | | impl ::std::default::Default for JSType { |
5749 | 0 | fn default() -> Self { |
5750 | 0 | JSType::JS_NORMAL |
5751 | 0 | } |
5752 | | } |
5753 | | |
5754 | | impl JSType { |
5755 | 0 | pub(in super) fn generated_enum_descriptor_data() -> crate::reflect::GeneratedEnumDescriptorData { |
5756 | 0 | crate::reflect::GeneratedEnumDescriptorData::new::<JSType>("FieldOptions.JSType") |
5757 | 0 | } |
5758 | | } |
5759 | | } |
5760 | | |
5761 | | #[derive(PartialEq,Clone,Default,Debug)] |
5762 | | // @@protoc_insertion_point(message:google.protobuf.OneofOptions) |
5763 | | pub struct OneofOptions { |
5764 | | // message fields |
5765 | | /// The parser stores options it doesn't recognize here. See above. |
5766 | | // @@protoc_insertion_point(field:google.protobuf.OneofOptions.uninterpreted_option) |
5767 | | pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>, |
5768 | | // special fields |
5769 | | // @@protoc_insertion_point(special_field:google.protobuf.OneofOptions.special_fields) |
5770 | | pub special_fields: crate::SpecialFields, |
5771 | | } |
5772 | | |
5773 | | impl<'a> ::std::default::Default for &'a OneofOptions { |
5774 | 0 | fn default() -> &'a OneofOptions { |
5775 | 0 | <OneofOptions as crate::Message>::default_instance() |
5776 | 0 | } |
5777 | | } |
5778 | | |
5779 | | impl OneofOptions { |
5780 | 0 | pub fn new() -> OneofOptions { |
5781 | 0 | ::std::default::Default::default() |
5782 | 0 | } |
5783 | | |
5784 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
5785 | 0 | let mut fields = ::std::vec::Vec::with_capacity(1); |
5786 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
5787 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
5788 | | "uninterpreted_option", |
5789 | 0 | |m: &OneofOptions| { &m.uninterpreted_option }, |
5790 | 0 | |m: &mut OneofOptions| { &mut m.uninterpreted_option }, |
5791 | | )); |
5792 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<OneofOptions>( |
5793 | | "OneofOptions", |
5794 | 0 | fields, |
5795 | 0 | oneofs, |
5796 | | ) |
5797 | 0 | } |
5798 | | } |
5799 | | |
5800 | | impl crate::Message for OneofOptions { |
5801 | | const NAME: &'static str = "OneofOptions"; |
5802 | | |
5803 | 0 | fn is_initialized(&self) -> bool { |
5804 | 0 | for v in &self.uninterpreted_option { |
5805 | 0 | if !v.is_initialized() { |
5806 | 0 | return false; |
5807 | 0 | } |
5808 | | }; |
5809 | 0 | true |
5810 | 0 | } |
5811 | | |
5812 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
5813 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
5814 | 0 | match tag { |
5815 | | 7994 => { |
5816 | 0 | self.uninterpreted_option.push(is.read_message()?); |
5817 | | }, |
5818 | 0 | tag => { |
5819 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
5820 | | }, |
5821 | | }; |
5822 | | } |
5823 | 0 | ::std::result::Result::Ok(()) |
5824 | 0 | } |
5825 | | |
5826 | | // Compute sizes of nested messages |
5827 | | #[allow(unused_variables)] |
5828 | 0 | fn compute_size(&self) -> u64 { |
5829 | 0 | let mut my_size = 0; |
5830 | 0 | for value in &self.uninterpreted_option { |
5831 | 0 | let len = value.compute_size(); |
5832 | 0 | my_size += 2 + crate::rt::compute_raw_varint64_size(len) + len; |
5833 | 0 | }; |
5834 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
5835 | 0 | self.special_fields.cached_size().set(my_size as u32); |
5836 | 0 | my_size |
5837 | 0 | } |
5838 | | |
5839 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
5840 | 0 | for v in &self.uninterpreted_option { |
5841 | 0 | crate::rt::write_message_field_with_cached_size(999, v, os)?; |
5842 | | }; |
5843 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
5844 | 0 | ::std::result::Result::Ok(()) |
5845 | 0 | } |
5846 | | |
5847 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
5848 | 0 | &self.special_fields |
5849 | 0 | } |
5850 | | |
5851 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
5852 | 0 | &mut self.special_fields |
5853 | 0 | } |
5854 | | |
5855 | 0 | fn new() -> OneofOptions { |
5856 | 0 | OneofOptions::new() |
5857 | 0 | } |
5858 | | |
5859 | 0 | fn clear(&mut self) { |
5860 | 0 | self.uninterpreted_option.clear(); |
5861 | 0 | self.special_fields.clear(); |
5862 | 0 | } |
5863 | | |
5864 | 0 | fn default_instance() -> &'static OneofOptions { |
5865 | | static instance: OneofOptions = OneofOptions { |
5866 | | uninterpreted_option: ::std::vec::Vec::new(), |
5867 | | special_fields: crate::SpecialFields::new(), |
5868 | | }; |
5869 | 0 | &instance |
5870 | 0 | } |
5871 | | } |
5872 | | |
5873 | | impl crate::MessageFull for OneofOptions { |
5874 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
5875 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
5876 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("OneofOptions").unwrap()).clone() |
5877 | 0 | } |
5878 | | } |
5879 | | |
5880 | | impl ::std::fmt::Display for OneofOptions { |
5881 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
5882 | 0 | crate::text_format::fmt(self, f) |
5883 | 0 | } |
5884 | | } |
5885 | | |
5886 | | impl crate::reflect::ProtobufValue for OneofOptions { |
5887 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
5888 | | } |
5889 | | |
5890 | | #[derive(PartialEq,Clone,Default,Debug)] |
5891 | | // @@protoc_insertion_point(message:google.protobuf.EnumOptions) |
5892 | | pub struct EnumOptions { |
5893 | | // message fields |
5894 | | /// Set this option to true to allow mapping different tag names to the same |
5895 | | /// value. |
5896 | | // @@protoc_insertion_point(field:google.protobuf.EnumOptions.allow_alias) |
5897 | | pub allow_alias: ::std::option::Option<bool>, |
5898 | | /// Is this enum deprecated? |
5899 | | /// Depending on the target platform, this can emit Deprecated annotations |
5900 | | /// for the enum, or it will be completely ignored; in the very least, this |
5901 | | /// is a formalization for deprecating enums. |
5902 | | // @@protoc_insertion_point(field:google.protobuf.EnumOptions.deprecated) |
5903 | | pub deprecated: ::std::option::Option<bool>, |
5904 | | /// The parser stores options it doesn't recognize here. See above. |
5905 | | // @@protoc_insertion_point(field:google.protobuf.EnumOptions.uninterpreted_option) |
5906 | | pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>, |
5907 | | // special fields |
5908 | | // @@protoc_insertion_point(special_field:google.protobuf.EnumOptions.special_fields) |
5909 | | pub special_fields: crate::SpecialFields, |
5910 | | } |
5911 | | |
5912 | | impl<'a> ::std::default::Default for &'a EnumOptions { |
5913 | 0 | fn default() -> &'a EnumOptions { |
5914 | 0 | <EnumOptions as crate::Message>::default_instance() |
5915 | 0 | } |
5916 | | } |
5917 | | |
5918 | | impl EnumOptions { |
5919 | 0 | pub fn new() -> EnumOptions { |
5920 | 0 | ::std::default::Default::default() |
5921 | 0 | } |
5922 | | |
5923 | | // optional bool allow_alias = 2; |
5924 | | |
5925 | 0 | pub fn allow_alias(&self) -> bool { |
5926 | 0 | self.allow_alias.unwrap_or(false) |
5927 | 0 | } |
5928 | | |
5929 | 0 | pub fn clear_allow_alias(&mut self) { |
5930 | 0 | self.allow_alias = ::std::option::Option::None; |
5931 | 0 | } |
5932 | | |
5933 | 0 | pub fn has_allow_alias(&self) -> bool { |
5934 | 0 | self.allow_alias.is_some() |
5935 | 0 | } |
5936 | | |
5937 | | // Param is passed by value, moved |
5938 | 0 | pub fn set_allow_alias(&mut self, v: bool) { |
5939 | 0 | self.allow_alias = ::std::option::Option::Some(v); |
5940 | 0 | } |
5941 | | |
5942 | | // optional bool deprecated = 3; |
5943 | | |
5944 | 0 | pub fn deprecated(&self) -> bool { |
5945 | 0 | self.deprecated.unwrap_or(false) |
5946 | 0 | } |
5947 | | |
5948 | 0 | pub fn clear_deprecated(&mut self) { |
5949 | 0 | self.deprecated = ::std::option::Option::None; |
5950 | 0 | } |
5951 | | |
5952 | 0 | pub fn has_deprecated(&self) -> bool { |
5953 | 0 | self.deprecated.is_some() |
5954 | 0 | } |
5955 | | |
5956 | | // Param is passed by value, moved |
5957 | 0 | pub fn set_deprecated(&mut self, v: bool) { |
5958 | 0 | self.deprecated = ::std::option::Option::Some(v); |
5959 | 0 | } |
5960 | | |
5961 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
5962 | 0 | let mut fields = ::std::vec::Vec::with_capacity(3); |
5963 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
5964 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5965 | | "allow_alias", |
5966 | 0 | |m: &EnumOptions| { &m.allow_alias }, |
5967 | 0 | |m: &mut EnumOptions| { &mut m.allow_alias }, |
5968 | | )); |
5969 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
5970 | | "deprecated", |
5971 | 0 | |m: &EnumOptions| { &m.deprecated }, |
5972 | 0 | |m: &mut EnumOptions| { &mut m.deprecated }, |
5973 | | )); |
5974 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
5975 | | "uninterpreted_option", |
5976 | 0 | |m: &EnumOptions| { &m.uninterpreted_option }, |
5977 | 0 | |m: &mut EnumOptions| { &mut m.uninterpreted_option }, |
5978 | | )); |
5979 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<EnumOptions>( |
5980 | | "EnumOptions", |
5981 | 0 | fields, |
5982 | 0 | oneofs, |
5983 | | ) |
5984 | 0 | } |
5985 | | } |
5986 | | |
5987 | | impl crate::Message for EnumOptions { |
5988 | | const NAME: &'static str = "EnumOptions"; |
5989 | | |
5990 | 0 | fn is_initialized(&self) -> bool { |
5991 | 0 | for v in &self.uninterpreted_option { |
5992 | 0 | if !v.is_initialized() { |
5993 | 0 | return false; |
5994 | 0 | } |
5995 | | }; |
5996 | 0 | true |
5997 | 0 | } |
5998 | | |
5999 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
6000 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
6001 | 0 | match tag { |
6002 | | 16 => { |
6003 | 0 | self.allow_alias = ::std::option::Option::Some(is.read_bool()?); |
6004 | | }, |
6005 | | 24 => { |
6006 | 0 | self.deprecated = ::std::option::Option::Some(is.read_bool()?); |
6007 | | }, |
6008 | | 7994 => { |
6009 | 0 | self.uninterpreted_option.push(is.read_message()?); |
6010 | | }, |
6011 | 0 | tag => { |
6012 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
6013 | | }, |
6014 | | }; |
6015 | | } |
6016 | 0 | ::std::result::Result::Ok(()) |
6017 | 0 | } |
6018 | | |
6019 | | // Compute sizes of nested messages |
6020 | | #[allow(unused_variables)] |
6021 | 0 | fn compute_size(&self) -> u64 { |
6022 | 0 | let mut my_size = 0; |
6023 | 0 | if let Some(v) = self.allow_alias { |
6024 | 0 | my_size += 1 + 1; |
6025 | 0 | } |
6026 | 0 | if let Some(v) = self.deprecated { |
6027 | 0 | my_size += 1 + 1; |
6028 | 0 | } |
6029 | 0 | for value in &self.uninterpreted_option { |
6030 | 0 | let len = value.compute_size(); |
6031 | 0 | my_size += 2 + crate::rt::compute_raw_varint64_size(len) + len; |
6032 | 0 | }; |
6033 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
6034 | 0 | self.special_fields.cached_size().set(my_size as u32); |
6035 | 0 | my_size |
6036 | 0 | } |
6037 | | |
6038 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
6039 | 0 | if let Some(v) = self.allow_alias { |
6040 | 0 | os.write_bool(2, v)?; |
6041 | 0 | } |
6042 | 0 | if let Some(v) = self.deprecated { |
6043 | 0 | os.write_bool(3, v)?; |
6044 | 0 | } |
6045 | 0 | for v in &self.uninterpreted_option { |
6046 | 0 | crate::rt::write_message_field_with_cached_size(999, v, os)?; |
6047 | | }; |
6048 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
6049 | 0 | ::std::result::Result::Ok(()) |
6050 | 0 | } |
6051 | | |
6052 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
6053 | 0 | &self.special_fields |
6054 | 0 | } |
6055 | | |
6056 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
6057 | 0 | &mut self.special_fields |
6058 | 0 | } |
6059 | | |
6060 | 0 | fn new() -> EnumOptions { |
6061 | 0 | EnumOptions::new() |
6062 | 0 | } |
6063 | | |
6064 | 0 | fn clear(&mut self) { |
6065 | 0 | self.allow_alias = ::std::option::Option::None; |
6066 | 0 | self.deprecated = ::std::option::Option::None; |
6067 | 0 | self.uninterpreted_option.clear(); |
6068 | 0 | self.special_fields.clear(); |
6069 | 0 | } |
6070 | | |
6071 | 0 | fn default_instance() -> &'static EnumOptions { |
6072 | | static instance: EnumOptions = EnumOptions { |
6073 | | allow_alias: ::std::option::Option::None, |
6074 | | deprecated: ::std::option::Option::None, |
6075 | | uninterpreted_option: ::std::vec::Vec::new(), |
6076 | | special_fields: crate::SpecialFields::new(), |
6077 | | }; |
6078 | 0 | &instance |
6079 | 0 | } |
6080 | | } |
6081 | | |
6082 | | impl crate::MessageFull for EnumOptions { |
6083 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
6084 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
6085 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("EnumOptions").unwrap()).clone() |
6086 | 0 | } |
6087 | | } |
6088 | | |
6089 | | impl ::std::fmt::Display for EnumOptions { |
6090 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
6091 | 0 | crate::text_format::fmt(self, f) |
6092 | 0 | } |
6093 | | } |
6094 | | |
6095 | | impl crate::reflect::ProtobufValue for EnumOptions { |
6096 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
6097 | | } |
6098 | | |
6099 | | #[derive(PartialEq,Clone,Default,Debug)] |
6100 | | // @@protoc_insertion_point(message:google.protobuf.EnumValueOptions) |
6101 | | pub struct EnumValueOptions { |
6102 | | // message fields |
6103 | | /// Is this enum value deprecated? |
6104 | | /// Depending on the target platform, this can emit Deprecated annotations |
6105 | | /// for the enum value, or it will be completely ignored; in the very least, |
6106 | | /// this is a formalization for deprecating enum values. |
6107 | | // @@protoc_insertion_point(field:google.protobuf.EnumValueOptions.deprecated) |
6108 | | pub deprecated: ::std::option::Option<bool>, |
6109 | | /// The parser stores options it doesn't recognize here. See above. |
6110 | | // @@protoc_insertion_point(field:google.protobuf.EnumValueOptions.uninterpreted_option) |
6111 | | pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>, |
6112 | | // special fields |
6113 | | // @@protoc_insertion_point(special_field:google.protobuf.EnumValueOptions.special_fields) |
6114 | | pub special_fields: crate::SpecialFields, |
6115 | | } |
6116 | | |
6117 | | impl<'a> ::std::default::Default for &'a EnumValueOptions { |
6118 | 0 | fn default() -> &'a EnumValueOptions { |
6119 | 0 | <EnumValueOptions as crate::Message>::default_instance() |
6120 | 0 | } |
6121 | | } |
6122 | | |
6123 | | impl EnumValueOptions { |
6124 | 0 | pub fn new() -> EnumValueOptions { |
6125 | 0 | ::std::default::Default::default() |
6126 | 0 | } |
6127 | | |
6128 | | // optional bool deprecated = 1; |
6129 | | |
6130 | 0 | pub fn deprecated(&self) -> bool { |
6131 | 0 | self.deprecated.unwrap_or(false) |
6132 | 0 | } |
6133 | | |
6134 | 0 | pub fn clear_deprecated(&mut self) { |
6135 | 0 | self.deprecated = ::std::option::Option::None; |
6136 | 0 | } |
6137 | | |
6138 | 0 | pub fn has_deprecated(&self) -> bool { |
6139 | 0 | self.deprecated.is_some() |
6140 | 0 | } |
6141 | | |
6142 | | // Param is passed by value, moved |
6143 | 0 | pub fn set_deprecated(&mut self, v: bool) { |
6144 | 0 | self.deprecated = ::std::option::Option::Some(v); |
6145 | 0 | } |
6146 | | |
6147 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
6148 | 0 | let mut fields = ::std::vec::Vec::with_capacity(2); |
6149 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
6150 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
6151 | | "deprecated", |
6152 | 0 | |m: &EnumValueOptions| { &m.deprecated }, |
6153 | 0 | |m: &mut EnumValueOptions| { &mut m.deprecated }, |
6154 | | )); |
6155 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
6156 | | "uninterpreted_option", |
6157 | 0 | |m: &EnumValueOptions| { &m.uninterpreted_option }, |
6158 | 0 | |m: &mut EnumValueOptions| { &mut m.uninterpreted_option }, |
6159 | | )); |
6160 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<EnumValueOptions>( |
6161 | | "EnumValueOptions", |
6162 | 0 | fields, |
6163 | 0 | oneofs, |
6164 | | ) |
6165 | 0 | } |
6166 | | } |
6167 | | |
6168 | | impl crate::Message for EnumValueOptions { |
6169 | | const NAME: &'static str = "EnumValueOptions"; |
6170 | | |
6171 | 0 | fn is_initialized(&self) -> bool { |
6172 | 0 | for v in &self.uninterpreted_option { |
6173 | 0 | if !v.is_initialized() { |
6174 | 0 | return false; |
6175 | 0 | } |
6176 | | }; |
6177 | 0 | true |
6178 | 0 | } |
6179 | | |
6180 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
6181 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
6182 | 0 | match tag { |
6183 | | 8 => { |
6184 | 0 | self.deprecated = ::std::option::Option::Some(is.read_bool()?); |
6185 | | }, |
6186 | | 7994 => { |
6187 | 0 | self.uninterpreted_option.push(is.read_message()?); |
6188 | | }, |
6189 | 0 | tag => { |
6190 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
6191 | | }, |
6192 | | }; |
6193 | | } |
6194 | 0 | ::std::result::Result::Ok(()) |
6195 | 0 | } |
6196 | | |
6197 | | // Compute sizes of nested messages |
6198 | | #[allow(unused_variables)] |
6199 | 0 | fn compute_size(&self) -> u64 { |
6200 | 0 | let mut my_size = 0; |
6201 | 0 | if let Some(v) = self.deprecated { |
6202 | 0 | my_size += 1 + 1; |
6203 | 0 | } |
6204 | 0 | for value in &self.uninterpreted_option { |
6205 | 0 | let len = value.compute_size(); |
6206 | 0 | my_size += 2 + crate::rt::compute_raw_varint64_size(len) + len; |
6207 | 0 | }; |
6208 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
6209 | 0 | self.special_fields.cached_size().set(my_size as u32); |
6210 | 0 | my_size |
6211 | 0 | } |
6212 | | |
6213 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
6214 | 0 | if let Some(v) = self.deprecated { |
6215 | 0 | os.write_bool(1, v)?; |
6216 | 0 | } |
6217 | 0 | for v in &self.uninterpreted_option { |
6218 | 0 | crate::rt::write_message_field_with_cached_size(999, v, os)?; |
6219 | | }; |
6220 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
6221 | 0 | ::std::result::Result::Ok(()) |
6222 | 0 | } |
6223 | | |
6224 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
6225 | 0 | &self.special_fields |
6226 | 0 | } |
6227 | | |
6228 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
6229 | 0 | &mut self.special_fields |
6230 | 0 | } |
6231 | | |
6232 | 0 | fn new() -> EnumValueOptions { |
6233 | 0 | EnumValueOptions::new() |
6234 | 0 | } |
6235 | | |
6236 | 0 | fn clear(&mut self) { |
6237 | 0 | self.deprecated = ::std::option::Option::None; |
6238 | 0 | self.uninterpreted_option.clear(); |
6239 | 0 | self.special_fields.clear(); |
6240 | 0 | } |
6241 | | |
6242 | 0 | fn default_instance() -> &'static EnumValueOptions { |
6243 | | static instance: EnumValueOptions = EnumValueOptions { |
6244 | | deprecated: ::std::option::Option::None, |
6245 | | uninterpreted_option: ::std::vec::Vec::new(), |
6246 | | special_fields: crate::SpecialFields::new(), |
6247 | | }; |
6248 | 0 | &instance |
6249 | 0 | } |
6250 | | } |
6251 | | |
6252 | | impl crate::MessageFull for EnumValueOptions { |
6253 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
6254 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
6255 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("EnumValueOptions").unwrap()).clone() |
6256 | 0 | } |
6257 | | } |
6258 | | |
6259 | | impl ::std::fmt::Display for EnumValueOptions { |
6260 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
6261 | 0 | crate::text_format::fmt(self, f) |
6262 | 0 | } |
6263 | | } |
6264 | | |
6265 | | impl crate::reflect::ProtobufValue for EnumValueOptions { |
6266 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
6267 | | } |
6268 | | |
6269 | | #[derive(PartialEq,Clone,Default,Debug)] |
6270 | | // @@protoc_insertion_point(message:google.protobuf.ServiceOptions) |
6271 | | pub struct ServiceOptions { |
6272 | | // message fields |
6273 | | /// Is this service deprecated? |
6274 | | /// Depending on the target platform, this can emit Deprecated annotations |
6275 | | /// for the service, or it will be completely ignored; in the very least, |
6276 | | /// this is a formalization for deprecating services. |
6277 | | // @@protoc_insertion_point(field:google.protobuf.ServiceOptions.deprecated) |
6278 | | pub deprecated: ::std::option::Option<bool>, |
6279 | | /// The parser stores options it doesn't recognize here. See above. |
6280 | | // @@protoc_insertion_point(field:google.protobuf.ServiceOptions.uninterpreted_option) |
6281 | | pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>, |
6282 | | // special fields |
6283 | | // @@protoc_insertion_point(special_field:google.protobuf.ServiceOptions.special_fields) |
6284 | | pub special_fields: crate::SpecialFields, |
6285 | | } |
6286 | | |
6287 | | impl<'a> ::std::default::Default for &'a ServiceOptions { |
6288 | 0 | fn default() -> &'a ServiceOptions { |
6289 | 0 | <ServiceOptions as crate::Message>::default_instance() |
6290 | 0 | } |
6291 | | } |
6292 | | |
6293 | | impl ServiceOptions { |
6294 | 0 | pub fn new() -> ServiceOptions { |
6295 | 0 | ::std::default::Default::default() |
6296 | 0 | } |
6297 | | |
6298 | | // optional bool deprecated = 33; |
6299 | | |
6300 | 0 | pub fn deprecated(&self) -> bool { |
6301 | 0 | self.deprecated.unwrap_or(false) |
6302 | 0 | } |
6303 | | |
6304 | 0 | pub fn clear_deprecated(&mut self) { |
6305 | 0 | self.deprecated = ::std::option::Option::None; |
6306 | 0 | } |
6307 | | |
6308 | 0 | pub fn has_deprecated(&self) -> bool { |
6309 | 0 | self.deprecated.is_some() |
6310 | 0 | } |
6311 | | |
6312 | | // Param is passed by value, moved |
6313 | 0 | pub fn set_deprecated(&mut self, v: bool) { |
6314 | 0 | self.deprecated = ::std::option::Option::Some(v); |
6315 | 0 | } |
6316 | | |
6317 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
6318 | 0 | let mut fields = ::std::vec::Vec::with_capacity(2); |
6319 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
6320 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
6321 | | "deprecated", |
6322 | 0 | |m: &ServiceOptions| { &m.deprecated }, |
6323 | 0 | |m: &mut ServiceOptions| { &mut m.deprecated }, |
6324 | | )); |
6325 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
6326 | | "uninterpreted_option", |
6327 | 0 | |m: &ServiceOptions| { &m.uninterpreted_option }, |
6328 | 0 | |m: &mut ServiceOptions| { &mut m.uninterpreted_option }, |
6329 | | )); |
6330 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<ServiceOptions>( |
6331 | | "ServiceOptions", |
6332 | 0 | fields, |
6333 | 0 | oneofs, |
6334 | | ) |
6335 | 0 | } |
6336 | | } |
6337 | | |
6338 | | impl crate::Message for ServiceOptions { |
6339 | | const NAME: &'static str = "ServiceOptions"; |
6340 | | |
6341 | 0 | fn is_initialized(&self) -> bool { |
6342 | 0 | for v in &self.uninterpreted_option { |
6343 | 0 | if !v.is_initialized() { |
6344 | 0 | return false; |
6345 | 0 | } |
6346 | | }; |
6347 | 0 | true |
6348 | 0 | } |
6349 | | |
6350 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
6351 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
6352 | 0 | match tag { |
6353 | | 264 => { |
6354 | 0 | self.deprecated = ::std::option::Option::Some(is.read_bool()?); |
6355 | | }, |
6356 | | 7994 => { |
6357 | 0 | self.uninterpreted_option.push(is.read_message()?); |
6358 | | }, |
6359 | 0 | tag => { |
6360 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
6361 | | }, |
6362 | | }; |
6363 | | } |
6364 | 0 | ::std::result::Result::Ok(()) |
6365 | 0 | } |
6366 | | |
6367 | | // Compute sizes of nested messages |
6368 | | #[allow(unused_variables)] |
6369 | 0 | fn compute_size(&self) -> u64 { |
6370 | 0 | let mut my_size = 0; |
6371 | 0 | if let Some(v) = self.deprecated { |
6372 | 0 | my_size += 2 + 1; |
6373 | 0 | } |
6374 | 0 | for value in &self.uninterpreted_option { |
6375 | 0 | let len = value.compute_size(); |
6376 | 0 | my_size += 2 + crate::rt::compute_raw_varint64_size(len) + len; |
6377 | 0 | }; |
6378 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
6379 | 0 | self.special_fields.cached_size().set(my_size as u32); |
6380 | 0 | my_size |
6381 | 0 | } |
6382 | | |
6383 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
6384 | 0 | if let Some(v) = self.deprecated { |
6385 | 0 | os.write_bool(33, v)?; |
6386 | 0 | } |
6387 | 0 | for v in &self.uninterpreted_option { |
6388 | 0 | crate::rt::write_message_field_with_cached_size(999, v, os)?; |
6389 | | }; |
6390 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
6391 | 0 | ::std::result::Result::Ok(()) |
6392 | 0 | } |
6393 | | |
6394 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
6395 | 0 | &self.special_fields |
6396 | 0 | } |
6397 | | |
6398 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
6399 | 0 | &mut self.special_fields |
6400 | 0 | } |
6401 | | |
6402 | 0 | fn new() -> ServiceOptions { |
6403 | 0 | ServiceOptions::new() |
6404 | 0 | } |
6405 | | |
6406 | 0 | fn clear(&mut self) { |
6407 | 0 | self.deprecated = ::std::option::Option::None; |
6408 | 0 | self.uninterpreted_option.clear(); |
6409 | 0 | self.special_fields.clear(); |
6410 | 0 | } |
6411 | | |
6412 | 0 | fn default_instance() -> &'static ServiceOptions { |
6413 | | static instance: ServiceOptions = ServiceOptions { |
6414 | | deprecated: ::std::option::Option::None, |
6415 | | uninterpreted_option: ::std::vec::Vec::new(), |
6416 | | special_fields: crate::SpecialFields::new(), |
6417 | | }; |
6418 | 0 | &instance |
6419 | 0 | } |
6420 | | } |
6421 | | |
6422 | | impl crate::MessageFull for ServiceOptions { |
6423 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
6424 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
6425 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("ServiceOptions").unwrap()).clone() |
6426 | 0 | } |
6427 | | } |
6428 | | |
6429 | | impl ::std::fmt::Display for ServiceOptions { |
6430 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
6431 | 0 | crate::text_format::fmt(self, f) |
6432 | 0 | } |
6433 | | } |
6434 | | |
6435 | | impl crate::reflect::ProtobufValue for ServiceOptions { |
6436 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
6437 | | } |
6438 | | |
6439 | | #[derive(PartialEq,Clone,Default,Debug)] |
6440 | | // @@protoc_insertion_point(message:google.protobuf.MethodOptions) |
6441 | | pub struct MethodOptions { |
6442 | | // message fields |
6443 | | /// Is this method deprecated? |
6444 | | /// Depending on the target platform, this can emit Deprecated annotations |
6445 | | /// for the method, or it will be completely ignored; in the very least, |
6446 | | /// this is a formalization for deprecating methods. |
6447 | | // @@protoc_insertion_point(field:google.protobuf.MethodOptions.deprecated) |
6448 | | pub deprecated: ::std::option::Option<bool>, |
6449 | | // @@protoc_insertion_point(field:google.protobuf.MethodOptions.idempotency_level) |
6450 | | pub idempotency_level: ::std::option::Option<crate::EnumOrUnknown<method_options::IdempotencyLevel>>, |
6451 | | /// The parser stores options it doesn't recognize here. See above. |
6452 | | // @@protoc_insertion_point(field:google.protobuf.MethodOptions.uninterpreted_option) |
6453 | | pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>, |
6454 | | // special fields |
6455 | | // @@protoc_insertion_point(special_field:google.protobuf.MethodOptions.special_fields) |
6456 | | pub special_fields: crate::SpecialFields, |
6457 | | } |
6458 | | |
6459 | | impl<'a> ::std::default::Default for &'a MethodOptions { |
6460 | 0 | fn default() -> &'a MethodOptions { |
6461 | 0 | <MethodOptions as crate::Message>::default_instance() |
6462 | 0 | } |
6463 | | } |
6464 | | |
6465 | | impl MethodOptions { |
6466 | 0 | pub fn new() -> MethodOptions { |
6467 | 0 | ::std::default::Default::default() |
6468 | 0 | } |
6469 | | |
6470 | | // optional bool deprecated = 33; |
6471 | | |
6472 | 0 | pub fn deprecated(&self) -> bool { |
6473 | 0 | self.deprecated.unwrap_or(false) |
6474 | 0 | } |
6475 | | |
6476 | 0 | pub fn clear_deprecated(&mut self) { |
6477 | 0 | self.deprecated = ::std::option::Option::None; |
6478 | 0 | } |
6479 | | |
6480 | 0 | pub fn has_deprecated(&self) -> bool { |
6481 | 0 | self.deprecated.is_some() |
6482 | 0 | } |
6483 | | |
6484 | | // Param is passed by value, moved |
6485 | 0 | pub fn set_deprecated(&mut self, v: bool) { |
6486 | 0 | self.deprecated = ::std::option::Option::Some(v); |
6487 | 0 | } |
6488 | | |
6489 | | // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; |
6490 | | |
6491 | 0 | pub fn idempotency_level(&self) -> method_options::IdempotencyLevel { |
6492 | 0 | match self.idempotency_level { |
6493 | 0 | Some(e) => e.enum_value_or(method_options::IdempotencyLevel::IDEMPOTENCY_UNKNOWN), |
6494 | 0 | None => method_options::IdempotencyLevel::IDEMPOTENCY_UNKNOWN, |
6495 | | } |
6496 | 0 | } |
6497 | | |
6498 | 0 | pub fn clear_idempotency_level(&mut self) { |
6499 | 0 | self.idempotency_level = ::std::option::Option::None; |
6500 | 0 | } |
6501 | | |
6502 | 0 | pub fn has_idempotency_level(&self) -> bool { |
6503 | 0 | self.idempotency_level.is_some() |
6504 | 0 | } |
6505 | | |
6506 | | // Param is passed by value, moved |
6507 | 0 | pub fn set_idempotency_level(&mut self, v: method_options::IdempotencyLevel) { |
6508 | 0 | self.idempotency_level = ::std::option::Option::Some(crate::EnumOrUnknown::new(v)); |
6509 | 0 | } |
6510 | | |
6511 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
6512 | 0 | let mut fields = ::std::vec::Vec::with_capacity(3); |
6513 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
6514 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
6515 | | "deprecated", |
6516 | 0 | |m: &MethodOptions| { &m.deprecated }, |
6517 | 0 | |m: &mut MethodOptions| { &mut m.deprecated }, |
6518 | | )); |
6519 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
6520 | | "idempotency_level", |
6521 | 0 | |m: &MethodOptions| { &m.idempotency_level }, |
6522 | 0 | |m: &mut MethodOptions| { &mut m.idempotency_level }, |
6523 | | )); |
6524 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
6525 | | "uninterpreted_option", |
6526 | 0 | |m: &MethodOptions| { &m.uninterpreted_option }, |
6527 | 0 | |m: &mut MethodOptions| { &mut m.uninterpreted_option }, |
6528 | | )); |
6529 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<MethodOptions>( |
6530 | | "MethodOptions", |
6531 | 0 | fields, |
6532 | 0 | oneofs, |
6533 | | ) |
6534 | 0 | } |
6535 | | } |
6536 | | |
6537 | | impl crate::Message for MethodOptions { |
6538 | | const NAME: &'static str = "MethodOptions"; |
6539 | | |
6540 | 0 | fn is_initialized(&self) -> bool { |
6541 | 0 | for v in &self.uninterpreted_option { |
6542 | 0 | if !v.is_initialized() { |
6543 | 0 | return false; |
6544 | 0 | } |
6545 | | }; |
6546 | 0 | true |
6547 | 0 | } |
6548 | | |
6549 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
6550 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
6551 | 0 | match tag { |
6552 | | 264 => { |
6553 | 0 | self.deprecated = ::std::option::Option::Some(is.read_bool()?); |
6554 | | }, |
6555 | | 272 => { |
6556 | 0 | self.idempotency_level = ::std::option::Option::Some(is.read_enum_or_unknown()?); |
6557 | | }, |
6558 | | 7994 => { |
6559 | 0 | self.uninterpreted_option.push(is.read_message()?); |
6560 | | }, |
6561 | 0 | tag => { |
6562 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
6563 | | }, |
6564 | | }; |
6565 | | } |
6566 | 0 | ::std::result::Result::Ok(()) |
6567 | 0 | } |
6568 | | |
6569 | | // Compute sizes of nested messages |
6570 | | #[allow(unused_variables)] |
6571 | 0 | fn compute_size(&self) -> u64 { |
6572 | 0 | let mut my_size = 0; |
6573 | 0 | if let Some(v) = self.deprecated { |
6574 | 0 | my_size += 2 + 1; |
6575 | 0 | } |
6576 | 0 | if let Some(v) = self.idempotency_level { |
6577 | 0 | my_size += crate::rt::int32_size(34, v.value()); |
6578 | 0 | } |
6579 | 0 | for value in &self.uninterpreted_option { |
6580 | 0 | let len = value.compute_size(); |
6581 | 0 | my_size += 2 + crate::rt::compute_raw_varint64_size(len) + len; |
6582 | 0 | }; |
6583 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
6584 | 0 | self.special_fields.cached_size().set(my_size as u32); |
6585 | 0 | my_size |
6586 | 0 | } |
6587 | | |
6588 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
6589 | 0 | if let Some(v) = self.deprecated { |
6590 | 0 | os.write_bool(33, v)?; |
6591 | 0 | } |
6592 | 0 | if let Some(v) = self.idempotency_level { |
6593 | 0 | os.write_enum(34, crate::EnumOrUnknown::value(&v))?; |
6594 | 0 | } |
6595 | 0 | for v in &self.uninterpreted_option { |
6596 | 0 | crate::rt::write_message_field_with_cached_size(999, v, os)?; |
6597 | | }; |
6598 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
6599 | 0 | ::std::result::Result::Ok(()) |
6600 | 0 | } |
6601 | | |
6602 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
6603 | 0 | &self.special_fields |
6604 | 0 | } |
6605 | | |
6606 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
6607 | 0 | &mut self.special_fields |
6608 | 0 | } |
6609 | | |
6610 | 0 | fn new() -> MethodOptions { |
6611 | 0 | MethodOptions::new() |
6612 | 0 | } |
6613 | | |
6614 | 0 | fn clear(&mut self) { |
6615 | 0 | self.deprecated = ::std::option::Option::None; |
6616 | 0 | self.idempotency_level = ::std::option::Option::None; |
6617 | 0 | self.uninterpreted_option.clear(); |
6618 | 0 | self.special_fields.clear(); |
6619 | 0 | } |
6620 | | |
6621 | 0 | fn default_instance() -> &'static MethodOptions { |
6622 | | static instance: MethodOptions = MethodOptions { |
6623 | | deprecated: ::std::option::Option::None, |
6624 | | idempotency_level: ::std::option::Option::None, |
6625 | | uninterpreted_option: ::std::vec::Vec::new(), |
6626 | | special_fields: crate::SpecialFields::new(), |
6627 | | }; |
6628 | 0 | &instance |
6629 | 0 | } |
6630 | | } |
6631 | | |
6632 | | impl crate::MessageFull for MethodOptions { |
6633 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
6634 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
6635 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("MethodOptions").unwrap()).clone() |
6636 | 0 | } |
6637 | | } |
6638 | | |
6639 | | impl ::std::fmt::Display for MethodOptions { |
6640 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
6641 | 0 | crate::text_format::fmt(self, f) |
6642 | 0 | } |
6643 | | } |
6644 | | |
6645 | | impl crate::reflect::ProtobufValue for MethodOptions { |
6646 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
6647 | | } |
6648 | | |
6649 | | /// Nested message and enums of message `MethodOptions` |
6650 | | pub mod method_options { |
6651 | | /// Is this method side-effect-free (or safe in HTTP parlance), or idempotent, |
6652 | | /// or neither? HTTP based RPC implementation may choose GET verb for safe |
6653 | | /// methods, and PUT verb for idempotent methods instead of the default POST. |
6654 | | #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] |
6655 | | // @@protoc_insertion_point(enum:google.protobuf.MethodOptions.IdempotencyLevel) |
6656 | | pub enum IdempotencyLevel { |
6657 | | // @@protoc_insertion_point(enum_value:google.protobuf.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN) |
6658 | | IDEMPOTENCY_UNKNOWN = 0, |
6659 | | // @@protoc_insertion_point(enum_value:google.protobuf.MethodOptions.IdempotencyLevel.NO_SIDE_EFFECTS) |
6660 | | NO_SIDE_EFFECTS = 1, |
6661 | | // @@protoc_insertion_point(enum_value:google.protobuf.MethodOptions.IdempotencyLevel.IDEMPOTENT) |
6662 | | IDEMPOTENT = 2, |
6663 | | } |
6664 | | |
6665 | | impl crate::Enum for IdempotencyLevel { |
6666 | | const NAME: &'static str = "IdempotencyLevel"; |
6667 | | |
6668 | 0 | fn value(&self) -> i32 { |
6669 | 0 | *self as i32 |
6670 | 0 | } |
6671 | | |
6672 | 0 | fn from_i32(value: i32) -> ::std::option::Option<IdempotencyLevel> { |
6673 | 0 | match value { |
6674 | 0 | 0 => ::std::option::Option::Some(IdempotencyLevel::IDEMPOTENCY_UNKNOWN), |
6675 | 0 | 1 => ::std::option::Option::Some(IdempotencyLevel::NO_SIDE_EFFECTS), |
6676 | 0 | 2 => ::std::option::Option::Some(IdempotencyLevel::IDEMPOTENT), |
6677 | 0 | _ => ::std::option::Option::None |
6678 | | } |
6679 | 0 | } |
6680 | | |
6681 | | const VALUES: &'static [IdempotencyLevel] = &[ |
6682 | | IdempotencyLevel::IDEMPOTENCY_UNKNOWN, |
6683 | | IdempotencyLevel::NO_SIDE_EFFECTS, |
6684 | | IdempotencyLevel::IDEMPOTENT, |
6685 | | ]; |
6686 | | } |
6687 | | |
6688 | | impl crate::EnumFull for IdempotencyLevel { |
6689 | 0 | fn enum_descriptor() -> crate::reflect::EnumDescriptor { |
6690 | | static descriptor: crate::rt::Lazy<crate::reflect::EnumDescriptor> = crate::rt::Lazy::new(); |
6691 | 0 | descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("MethodOptions.IdempotencyLevel").unwrap()).clone() |
6692 | 0 | } |
6693 | | |
6694 | 0 | fn descriptor(&self) -> crate::reflect::EnumValueDescriptor { |
6695 | 0 | let index = *self as usize; |
6696 | 0 | Self::enum_descriptor().value_by_index(index) |
6697 | 0 | } |
6698 | | } |
6699 | | |
6700 | | impl ::std::default::Default for IdempotencyLevel { |
6701 | 0 | fn default() -> Self { |
6702 | 0 | IdempotencyLevel::IDEMPOTENCY_UNKNOWN |
6703 | 0 | } |
6704 | | } |
6705 | | |
6706 | | impl IdempotencyLevel { |
6707 | 0 | pub(in super) fn generated_enum_descriptor_data() -> crate::reflect::GeneratedEnumDescriptorData { |
6708 | 0 | crate::reflect::GeneratedEnumDescriptorData::new::<IdempotencyLevel>("MethodOptions.IdempotencyLevel") |
6709 | 0 | } |
6710 | | } |
6711 | | } |
6712 | | |
6713 | | /// A message representing a option the parser does not recognize. This only |
6714 | | /// appears in options protos created by the compiler::Parser class. |
6715 | | /// DescriptorPool resolves these when building Descriptor objects. Therefore, |
6716 | | /// options protos in descriptor objects (e.g. returned by Descriptor::options(), |
6717 | | /// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions |
6718 | | /// in them. |
6719 | | #[derive(PartialEq,Clone,Default,Debug)] |
6720 | | // @@protoc_insertion_point(message:google.protobuf.UninterpretedOption) |
6721 | | pub struct UninterpretedOption { |
6722 | | // message fields |
6723 | | // @@protoc_insertion_point(field:google.protobuf.UninterpretedOption.name) |
6724 | | pub name: ::std::vec::Vec<uninterpreted_option::NamePart>, |
6725 | | /// The value of the uninterpreted option, in whatever type the tokenizer |
6726 | | /// identified it as during parsing. Exactly one of these should be set. |
6727 | | // @@protoc_insertion_point(field:google.protobuf.UninterpretedOption.identifier_value) |
6728 | | pub identifier_value: ::std::option::Option<::std::string::String>, |
6729 | | // @@protoc_insertion_point(field:google.protobuf.UninterpretedOption.positive_int_value) |
6730 | | pub positive_int_value: ::std::option::Option<u64>, |
6731 | | // @@protoc_insertion_point(field:google.protobuf.UninterpretedOption.negative_int_value) |
6732 | | pub negative_int_value: ::std::option::Option<i64>, |
6733 | | // @@protoc_insertion_point(field:google.protobuf.UninterpretedOption.double_value) |
6734 | | pub double_value: ::std::option::Option<f64>, |
6735 | | // @@protoc_insertion_point(field:google.protobuf.UninterpretedOption.string_value) |
6736 | | pub string_value: ::std::option::Option<::std::vec::Vec<u8>>, |
6737 | | // @@protoc_insertion_point(field:google.protobuf.UninterpretedOption.aggregate_value) |
6738 | | pub aggregate_value: ::std::option::Option<::std::string::String>, |
6739 | | // special fields |
6740 | | // @@protoc_insertion_point(special_field:google.protobuf.UninterpretedOption.special_fields) |
6741 | | pub special_fields: crate::SpecialFields, |
6742 | | } |
6743 | | |
6744 | | impl<'a> ::std::default::Default for &'a UninterpretedOption { |
6745 | 0 | fn default() -> &'a UninterpretedOption { |
6746 | 0 | <UninterpretedOption as crate::Message>::default_instance() |
6747 | 0 | } |
6748 | | } |
6749 | | |
6750 | | impl UninterpretedOption { |
6751 | 0 | pub fn new() -> UninterpretedOption { |
6752 | 0 | ::std::default::Default::default() |
6753 | 0 | } |
6754 | | |
6755 | | // optional string identifier_value = 3; |
6756 | | |
6757 | 0 | pub fn identifier_value(&self) -> &str { |
6758 | 0 | match self.identifier_value.as_ref() { |
6759 | 0 | Some(v) => v, |
6760 | 0 | None => "", |
6761 | | } |
6762 | 0 | } |
6763 | | |
6764 | 0 | pub fn clear_identifier_value(&mut self) { |
6765 | 0 | self.identifier_value = ::std::option::Option::None; |
6766 | 0 | } |
6767 | | |
6768 | 0 | pub fn has_identifier_value(&self) -> bool { |
6769 | 0 | self.identifier_value.is_some() |
6770 | 0 | } |
6771 | | |
6772 | | // Param is passed by value, moved |
6773 | 0 | pub fn set_identifier_value(&mut self, v: ::std::string::String) { |
6774 | 0 | self.identifier_value = ::std::option::Option::Some(v); |
6775 | 0 | } |
6776 | | |
6777 | | // Mutable pointer to the field. |
6778 | | // If field is not initialized, it is initialized with default value first. |
6779 | 0 | pub fn mut_identifier_value(&mut self) -> &mut ::std::string::String { |
6780 | 0 | if self.identifier_value.is_none() { |
6781 | 0 | self.identifier_value = ::std::option::Option::Some(::std::string::String::new()); |
6782 | 0 | } |
6783 | 0 | self.identifier_value.as_mut().unwrap() |
6784 | 0 | } |
6785 | | |
6786 | | // Take field |
6787 | 0 | pub fn take_identifier_value(&mut self) -> ::std::string::String { |
6788 | 0 | self.identifier_value.take().unwrap_or_else(|| ::std::string::String::new()) |
6789 | 0 | } |
6790 | | |
6791 | | // optional uint64 positive_int_value = 4; |
6792 | | |
6793 | 0 | pub fn positive_int_value(&self) -> u64 { |
6794 | 0 | self.positive_int_value.unwrap_or(0) |
6795 | 0 | } |
6796 | | |
6797 | 0 | pub fn clear_positive_int_value(&mut self) { |
6798 | 0 | self.positive_int_value = ::std::option::Option::None; |
6799 | 0 | } |
6800 | | |
6801 | 0 | pub fn has_positive_int_value(&self) -> bool { |
6802 | 0 | self.positive_int_value.is_some() |
6803 | 0 | } |
6804 | | |
6805 | | // Param is passed by value, moved |
6806 | 0 | pub fn set_positive_int_value(&mut self, v: u64) { |
6807 | 0 | self.positive_int_value = ::std::option::Option::Some(v); |
6808 | 0 | } |
6809 | | |
6810 | | // optional int64 negative_int_value = 5; |
6811 | | |
6812 | 0 | pub fn negative_int_value(&self) -> i64 { |
6813 | 0 | self.negative_int_value.unwrap_or(0) |
6814 | 0 | } |
6815 | | |
6816 | 0 | pub fn clear_negative_int_value(&mut self) { |
6817 | 0 | self.negative_int_value = ::std::option::Option::None; |
6818 | 0 | } |
6819 | | |
6820 | 0 | pub fn has_negative_int_value(&self) -> bool { |
6821 | 0 | self.negative_int_value.is_some() |
6822 | 0 | } |
6823 | | |
6824 | | // Param is passed by value, moved |
6825 | 0 | pub fn set_negative_int_value(&mut self, v: i64) { |
6826 | 0 | self.negative_int_value = ::std::option::Option::Some(v); |
6827 | 0 | } |
6828 | | |
6829 | | // optional double double_value = 6; |
6830 | | |
6831 | 0 | pub fn double_value(&self) -> f64 { |
6832 | 0 | self.double_value.unwrap_or(0.) |
6833 | 0 | } |
6834 | | |
6835 | 0 | pub fn clear_double_value(&mut self) { |
6836 | 0 | self.double_value = ::std::option::Option::None; |
6837 | 0 | } |
6838 | | |
6839 | 0 | pub fn has_double_value(&self) -> bool { |
6840 | 0 | self.double_value.is_some() |
6841 | 0 | } |
6842 | | |
6843 | | // Param is passed by value, moved |
6844 | 0 | pub fn set_double_value(&mut self, v: f64) { |
6845 | 0 | self.double_value = ::std::option::Option::Some(v); |
6846 | 0 | } |
6847 | | |
6848 | | // optional bytes string_value = 7; |
6849 | | |
6850 | 0 | pub fn string_value(&self) -> &[u8] { |
6851 | 0 | match self.string_value.as_ref() { |
6852 | 0 | Some(v) => v, |
6853 | 0 | None => &[], |
6854 | | } |
6855 | 0 | } |
6856 | | |
6857 | 0 | pub fn clear_string_value(&mut self) { |
6858 | 0 | self.string_value = ::std::option::Option::None; |
6859 | 0 | } |
6860 | | |
6861 | 0 | pub fn has_string_value(&self) -> bool { |
6862 | 0 | self.string_value.is_some() |
6863 | 0 | } |
6864 | | |
6865 | | // Param is passed by value, moved |
6866 | 0 | pub fn set_string_value(&mut self, v: ::std::vec::Vec<u8>) { |
6867 | 0 | self.string_value = ::std::option::Option::Some(v); |
6868 | 0 | } |
6869 | | |
6870 | | // Mutable pointer to the field. |
6871 | | // If field is not initialized, it is initialized with default value first. |
6872 | 0 | pub fn mut_string_value(&mut self) -> &mut ::std::vec::Vec<u8> { |
6873 | 0 | if self.string_value.is_none() { |
6874 | 0 | self.string_value = ::std::option::Option::Some(::std::vec::Vec::new()); |
6875 | 0 | } |
6876 | 0 | self.string_value.as_mut().unwrap() |
6877 | 0 | } |
6878 | | |
6879 | | // Take field |
6880 | 0 | pub fn take_string_value(&mut self) -> ::std::vec::Vec<u8> { |
6881 | 0 | self.string_value.take().unwrap_or_else(|| ::std::vec::Vec::new()) |
6882 | 0 | } |
6883 | | |
6884 | | // optional string aggregate_value = 8; |
6885 | | |
6886 | 0 | pub fn aggregate_value(&self) -> &str { |
6887 | 0 | match self.aggregate_value.as_ref() { |
6888 | 0 | Some(v) => v, |
6889 | 0 | None => "", |
6890 | | } |
6891 | 0 | } |
6892 | | |
6893 | 0 | pub fn clear_aggregate_value(&mut self) { |
6894 | 0 | self.aggregate_value = ::std::option::Option::None; |
6895 | 0 | } |
6896 | | |
6897 | 0 | pub fn has_aggregate_value(&self) -> bool { |
6898 | 0 | self.aggregate_value.is_some() |
6899 | 0 | } |
6900 | | |
6901 | | // Param is passed by value, moved |
6902 | 0 | pub fn set_aggregate_value(&mut self, v: ::std::string::String) { |
6903 | 0 | self.aggregate_value = ::std::option::Option::Some(v); |
6904 | 0 | } |
6905 | | |
6906 | | // Mutable pointer to the field. |
6907 | | // If field is not initialized, it is initialized with default value first. |
6908 | 0 | pub fn mut_aggregate_value(&mut self) -> &mut ::std::string::String { |
6909 | 0 | if self.aggregate_value.is_none() { |
6910 | 0 | self.aggregate_value = ::std::option::Option::Some(::std::string::String::new()); |
6911 | 0 | } |
6912 | 0 | self.aggregate_value.as_mut().unwrap() |
6913 | 0 | } |
6914 | | |
6915 | | // Take field |
6916 | 0 | pub fn take_aggregate_value(&mut self) -> ::std::string::String { |
6917 | 0 | self.aggregate_value.take().unwrap_or_else(|| ::std::string::String::new()) |
6918 | 0 | } |
6919 | | |
6920 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
6921 | 0 | let mut fields = ::std::vec::Vec::with_capacity(7); |
6922 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
6923 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
6924 | | "name", |
6925 | 0 | |m: &UninterpretedOption| { &m.name }, |
6926 | 0 | |m: &mut UninterpretedOption| { &mut m.name }, |
6927 | | )); |
6928 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
6929 | | "identifier_value", |
6930 | 0 | |m: &UninterpretedOption| { &m.identifier_value }, |
6931 | 0 | |m: &mut UninterpretedOption| { &mut m.identifier_value }, |
6932 | | )); |
6933 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
6934 | | "positive_int_value", |
6935 | 0 | |m: &UninterpretedOption| { &m.positive_int_value }, |
6936 | 0 | |m: &mut UninterpretedOption| { &mut m.positive_int_value }, |
6937 | | )); |
6938 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
6939 | | "negative_int_value", |
6940 | 0 | |m: &UninterpretedOption| { &m.negative_int_value }, |
6941 | 0 | |m: &mut UninterpretedOption| { &mut m.negative_int_value }, |
6942 | | )); |
6943 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
6944 | | "double_value", |
6945 | 0 | |m: &UninterpretedOption| { &m.double_value }, |
6946 | 0 | |m: &mut UninterpretedOption| { &mut m.double_value }, |
6947 | | )); |
6948 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
6949 | | "string_value", |
6950 | 0 | |m: &UninterpretedOption| { &m.string_value }, |
6951 | 0 | |m: &mut UninterpretedOption| { &mut m.string_value }, |
6952 | | )); |
6953 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
6954 | | "aggregate_value", |
6955 | 0 | |m: &UninterpretedOption| { &m.aggregate_value }, |
6956 | 0 | |m: &mut UninterpretedOption| { &mut m.aggregate_value }, |
6957 | | )); |
6958 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<UninterpretedOption>( |
6959 | | "UninterpretedOption", |
6960 | 0 | fields, |
6961 | 0 | oneofs, |
6962 | | ) |
6963 | 0 | } |
6964 | | } |
6965 | | |
6966 | | impl crate::Message for UninterpretedOption { |
6967 | | const NAME: &'static str = "UninterpretedOption"; |
6968 | | |
6969 | 0 | fn is_initialized(&self) -> bool { |
6970 | 0 | for v in &self.name { |
6971 | 0 | if !v.is_initialized() { |
6972 | 0 | return false; |
6973 | 0 | } |
6974 | | }; |
6975 | 0 | true |
6976 | 0 | } |
6977 | | |
6978 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
6979 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
6980 | 0 | match tag { |
6981 | | 18 => { |
6982 | 0 | self.name.push(is.read_message()?); |
6983 | | }, |
6984 | | 26 => { |
6985 | 0 | self.identifier_value = ::std::option::Option::Some(is.read_string()?); |
6986 | | }, |
6987 | | 32 => { |
6988 | 0 | self.positive_int_value = ::std::option::Option::Some(is.read_uint64()?); |
6989 | | }, |
6990 | | 40 => { |
6991 | 0 | self.negative_int_value = ::std::option::Option::Some(is.read_int64()?); |
6992 | | }, |
6993 | | 49 => { |
6994 | 0 | self.double_value = ::std::option::Option::Some(is.read_double()?); |
6995 | | }, |
6996 | | 58 => { |
6997 | 0 | self.string_value = ::std::option::Option::Some(is.read_bytes()?); |
6998 | | }, |
6999 | | 66 => { |
7000 | 0 | self.aggregate_value = ::std::option::Option::Some(is.read_string()?); |
7001 | | }, |
7002 | 0 | tag => { |
7003 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
7004 | | }, |
7005 | | }; |
7006 | | } |
7007 | 0 | ::std::result::Result::Ok(()) |
7008 | 0 | } |
7009 | | |
7010 | | // Compute sizes of nested messages |
7011 | | #[allow(unused_variables)] |
7012 | 0 | fn compute_size(&self) -> u64 { |
7013 | 0 | let mut my_size = 0; |
7014 | 0 | for value in &self.name { |
7015 | 0 | let len = value.compute_size(); |
7016 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
7017 | 0 | }; |
7018 | 0 | if let Some(v) = self.identifier_value.as_ref() { |
7019 | 0 | my_size += crate::rt::string_size(3, &v); |
7020 | 0 | } |
7021 | 0 | if let Some(v) = self.positive_int_value { |
7022 | 0 | my_size += crate::rt::uint64_size(4, v); |
7023 | 0 | } |
7024 | 0 | if let Some(v) = self.negative_int_value { |
7025 | 0 | my_size += crate::rt::int64_size(5, v); |
7026 | 0 | } |
7027 | 0 | if let Some(v) = self.double_value { |
7028 | 0 | my_size += 1 + 8; |
7029 | 0 | } |
7030 | 0 | if let Some(v) = self.string_value.as_ref() { |
7031 | 0 | my_size += crate::rt::bytes_size(7, &v); |
7032 | 0 | } |
7033 | 0 | if let Some(v) = self.aggregate_value.as_ref() { |
7034 | 0 | my_size += crate::rt::string_size(8, &v); |
7035 | 0 | } |
7036 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
7037 | 0 | self.special_fields.cached_size().set(my_size as u32); |
7038 | 0 | my_size |
7039 | 0 | } |
7040 | | |
7041 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
7042 | 0 | for v in &self.name { |
7043 | 0 | crate::rt::write_message_field_with_cached_size(2, v, os)?; |
7044 | | }; |
7045 | 0 | if let Some(v) = self.identifier_value.as_ref() { |
7046 | 0 | os.write_string(3, v)?; |
7047 | 0 | } |
7048 | 0 | if let Some(v) = self.positive_int_value { |
7049 | 0 | os.write_uint64(4, v)?; |
7050 | 0 | } |
7051 | 0 | if let Some(v) = self.negative_int_value { |
7052 | 0 | os.write_int64(5, v)?; |
7053 | 0 | } |
7054 | 0 | if let Some(v) = self.double_value { |
7055 | 0 | os.write_double(6, v)?; |
7056 | 0 | } |
7057 | 0 | if let Some(v) = self.string_value.as_ref() { |
7058 | 0 | os.write_bytes(7, v)?; |
7059 | 0 | } |
7060 | 0 | if let Some(v) = self.aggregate_value.as_ref() { |
7061 | 0 | os.write_string(8, v)?; |
7062 | 0 | } |
7063 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
7064 | 0 | ::std::result::Result::Ok(()) |
7065 | 0 | } |
7066 | | |
7067 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
7068 | 0 | &self.special_fields |
7069 | 0 | } |
7070 | | |
7071 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
7072 | 0 | &mut self.special_fields |
7073 | 0 | } |
7074 | | |
7075 | 0 | fn new() -> UninterpretedOption { |
7076 | 0 | UninterpretedOption::new() |
7077 | 0 | } |
7078 | | |
7079 | 0 | fn clear(&mut self) { |
7080 | 0 | self.name.clear(); |
7081 | 0 | self.identifier_value = ::std::option::Option::None; |
7082 | 0 | self.positive_int_value = ::std::option::Option::None; |
7083 | 0 | self.negative_int_value = ::std::option::Option::None; |
7084 | 0 | self.double_value = ::std::option::Option::None; |
7085 | 0 | self.string_value = ::std::option::Option::None; |
7086 | 0 | self.aggregate_value = ::std::option::Option::None; |
7087 | 0 | self.special_fields.clear(); |
7088 | 0 | } |
7089 | | |
7090 | 0 | fn default_instance() -> &'static UninterpretedOption { |
7091 | | static instance: UninterpretedOption = UninterpretedOption { |
7092 | | name: ::std::vec::Vec::new(), |
7093 | | identifier_value: ::std::option::Option::None, |
7094 | | positive_int_value: ::std::option::Option::None, |
7095 | | negative_int_value: ::std::option::Option::None, |
7096 | | double_value: ::std::option::Option::None, |
7097 | | string_value: ::std::option::Option::None, |
7098 | | aggregate_value: ::std::option::Option::None, |
7099 | | special_fields: crate::SpecialFields::new(), |
7100 | | }; |
7101 | 0 | &instance |
7102 | 0 | } |
7103 | | } |
7104 | | |
7105 | | impl crate::MessageFull for UninterpretedOption { |
7106 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
7107 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
7108 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("UninterpretedOption").unwrap()).clone() |
7109 | 0 | } |
7110 | | } |
7111 | | |
7112 | | impl ::std::fmt::Display for UninterpretedOption { |
7113 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
7114 | 0 | crate::text_format::fmt(self, f) |
7115 | 0 | } |
7116 | | } |
7117 | | |
7118 | | impl crate::reflect::ProtobufValue for UninterpretedOption { |
7119 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
7120 | | } |
7121 | | |
7122 | | /// Nested message and enums of message `UninterpretedOption` |
7123 | | pub mod uninterpreted_option { |
7124 | | /// The name of the uninterpreted option. Each string represents a segment in |
7125 | | /// a dot-separated name. is_extension is true iff a segment represents an |
7126 | | /// extension (denoted with parentheses in options specs in .proto files). |
7127 | | /// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents |
7128 | | /// "foo.(bar.baz).qux". |
7129 | | #[derive(PartialEq,Clone,Default,Debug)] |
7130 | | // @@protoc_insertion_point(message:google.protobuf.UninterpretedOption.NamePart) |
7131 | | pub struct NamePart { |
7132 | | // message fields |
7133 | | // @@protoc_insertion_point(field:google.protobuf.UninterpretedOption.NamePart.name_part) |
7134 | | pub name_part: ::std::option::Option<::std::string::String>, |
7135 | | // @@protoc_insertion_point(field:google.protobuf.UninterpretedOption.NamePart.is_extension) |
7136 | | pub is_extension: ::std::option::Option<bool>, |
7137 | | // special fields |
7138 | | // @@protoc_insertion_point(special_field:google.protobuf.UninterpretedOption.NamePart.special_fields) |
7139 | | pub special_fields: crate::SpecialFields, |
7140 | | } |
7141 | | |
7142 | | impl<'a> ::std::default::Default for &'a NamePart { |
7143 | 0 | fn default() -> &'a NamePart { |
7144 | 0 | <NamePart as crate::Message>::default_instance() |
7145 | 0 | } |
7146 | | } |
7147 | | |
7148 | | impl NamePart { |
7149 | 0 | pub fn new() -> NamePart { |
7150 | 0 | ::std::default::Default::default() |
7151 | 0 | } |
7152 | | |
7153 | | // required string name_part = 1; |
7154 | | |
7155 | 0 | pub fn name_part(&self) -> &str { |
7156 | 0 | match self.name_part.as_ref() { |
7157 | 0 | Some(v) => v, |
7158 | 0 | None => "", |
7159 | | } |
7160 | 0 | } |
7161 | | |
7162 | 0 | pub fn clear_name_part(&mut self) { |
7163 | 0 | self.name_part = ::std::option::Option::None; |
7164 | 0 | } |
7165 | | |
7166 | 0 | pub fn has_name_part(&self) -> bool { |
7167 | 0 | self.name_part.is_some() |
7168 | 0 | } |
7169 | | |
7170 | | // Param is passed by value, moved |
7171 | 0 | pub fn set_name_part(&mut self, v: ::std::string::String) { |
7172 | 0 | self.name_part = ::std::option::Option::Some(v); |
7173 | 0 | } |
7174 | | |
7175 | | // Mutable pointer to the field. |
7176 | | // If field is not initialized, it is initialized with default value first. |
7177 | 0 | pub fn mut_name_part(&mut self) -> &mut ::std::string::String { |
7178 | 0 | if self.name_part.is_none() { |
7179 | 0 | self.name_part = ::std::option::Option::Some(::std::string::String::new()); |
7180 | 0 | } |
7181 | 0 | self.name_part.as_mut().unwrap() |
7182 | 0 | } |
7183 | | |
7184 | | // Take field |
7185 | 0 | pub fn take_name_part(&mut self) -> ::std::string::String { |
7186 | 0 | self.name_part.take().unwrap_or_else(|| ::std::string::String::new()) |
7187 | 0 | } |
7188 | | |
7189 | | // required bool is_extension = 2; |
7190 | | |
7191 | 0 | pub fn is_extension(&self) -> bool { |
7192 | 0 | self.is_extension.unwrap_or(false) |
7193 | 0 | } |
7194 | | |
7195 | 0 | pub fn clear_is_extension(&mut self) { |
7196 | 0 | self.is_extension = ::std::option::Option::None; |
7197 | 0 | } |
7198 | | |
7199 | 0 | pub fn has_is_extension(&self) -> bool { |
7200 | 0 | self.is_extension.is_some() |
7201 | 0 | } |
7202 | | |
7203 | | // Param is passed by value, moved |
7204 | 0 | pub fn set_is_extension(&mut self, v: bool) { |
7205 | 0 | self.is_extension = ::std::option::Option::Some(v); |
7206 | 0 | } |
7207 | | |
7208 | 0 | pub(in super) fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
7209 | 0 | let mut fields = ::std::vec::Vec::with_capacity(2); |
7210 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
7211 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
7212 | | "name_part", |
7213 | 0 | |m: &NamePart| { &m.name_part }, |
7214 | 0 | |m: &mut NamePart| { &mut m.name_part }, |
7215 | | )); |
7216 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
7217 | | "is_extension", |
7218 | 0 | |m: &NamePart| { &m.is_extension }, |
7219 | 0 | |m: &mut NamePart| { &mut m.is_extension }, |
7220 | | )); |
7221 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<NamePart>( |
7222 | | "UninterpretedOption.NamePart", |
7223 | 0 | fields, |
7224 | 0 | oneofs, |
7225 | | ) |
7226 | 0 | } |
7227 | | } |
7228 | | |
7229 | | impl crate::Message for NamePart { |
7230 | | const NAME: &'static str = "NamePart"; |
7231 | | |
7232 | 0 | fn is_initialized(&self) -> bool { |
7233 | 0 | if self.name_part.is_none() { |
7234 | 0 | return false; |
7235 | 0 | } |
7236 | 0 | if self.is_extension.is_none() { |
7237 | 0 | return false; |
7238 | 0 | } |
7239 | 0 | true |
7240 | 0 | } |
7241 | | |
7242 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
7243 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
7244 | 0 | match tag { |
7245 | | 10 => { |
7246 | 0 | self.name_part = ::std::option::Option::Some(is.read_string()?); |
7247 | | }, |
7248 | | 16 => { |
7249 | 0 | self.is_extension = ::std::option::Option::Some(is.read_bool()?); |
7250 | | }, |
7251 | 0 | tag => { |
7252 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
7253 | | }, |
7254 | | }; |
7255 | | } |
7256 | 0 | ::std::result::Result::Ok(()) |
7257 | 0 | } |
7258 | | |
7259 | | // Compute sizes of nested messages |
7260 | | #[allow(unused_variables)] |
7261 | 0 | fn compute_size(&self) -> u64 { |
7262 | 0 | let mut my_size = 0; |
7263 | 0 | if let Some(v) = self.name_part.as_ref() { |
7264 | 0 | my_size += crate::rt::string_size(1, &v); |
7265 | 0 | } |
7266 | 0 | if let Some(v) = self.is_extension { |
7267 | 0 | my_size += 1 + 1; |
7268 | 0 | } |
7269 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
7270 | 0 | self.special_fields.cached_size().set(my_size as u32); |
7271 | 0 | my_size |
7272 | 0 | } |
7273 | | |
7274 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
7275 | 0 | if let Some(v) = self.name_part.as_ref() { |
7276 | 0 | os.write_string(1, v)?; |
7277 | 0 | } |
7278 | 0 | if let Some(v) = self.is_extension { |
7279 | 0 | os.write_bool(2, v)?; |
7280 | 0 | } |
7281 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
7282 | 0 | ::std::result::Result::Ok(()) |
7283 | 0 | } |
7284 | | |
7285 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
7286 | 0 | &self.special_fields |
7287 | 0 | } |
7288 | | |
7289 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
7290 | 0 | &mut self.special_fields |
7291 | 0 | } |
7292 | | |
7293 | 0 | fn new() -> NamePart { |
7294 | 0 | NamePart::new() |
7295 | 0 | } |
7296 | | |
7297 | 0 | fn clear(&mut self) { |
7298 | 0 | self.name_part = ::std::option::Option::None; |
7299 | 0 | self.is_extension = ::std::option::Option::None; |
7300 | 0 | self.special_fields.clear(); |
7301 | 0 | } |
7302 | | |
7303 | 0 | fn default_instance() -> &'static NamePart { |
7304 | | static instance: NamePart = NamePart { |
7305 | | name_part: ::std::option::Option::None, |
7306 | | is_extension: ::std::option::Option::None, |
7307 | | special_fields: crate::SpecialFields::new(), |
7308 | | }; |
7309 | 0 | &instance |
7310 | 0 | } |
7311 | | } |
7312 | | |
7313 | | impl crate::MessageFull for NamePart { |
7314 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
7315 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
7316 | 0 | descriptor.get(|| super::file_descriptor().message_by_package_relative_name("UninterpretedOption.NamePart").unwrap()).clone() |
7317 | 0 | } |
7318 | | } |
7319 | | |
7320 | | impl ::std::fmt::Display for NamePart { |
7321 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
7322 | 0 | crate::text_format::fmt(self, f) |
7323 | 0 | } |
7324 | | } |
7325 | | |
7326 | | impl crate::reflect::ProtobufValue for NamePart { |
7327 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
7328 | | } |
7329 | | } |
7330 | | |
7331 | | /// Encapsulates information about the original source file from which a |
7332 | | /// FileDescriptorProto was generated. |
7333 | | #[derive(PartialEq,Clone,Default,Debug)] |
7334 | | // @@protoc_insertion_point(message:google.protobuf.SourceCodeInfo) |
7335 | | pub struct SourceCodeInfo { |
7336 | | // message fields |
7337 | | // @@protoc_insertion_point(field:google.protobuf.SourceCodeInfo.location) |
7338 | | pub location: ::std::vec::Vec<source_code_info::Location>, |
7339 | | // special fields |
7340 | | // @@protoc_insertion_point(special_field:google.protobuf.SourceCodeInfo.special_fields) |
7341 | | pub special_fields: crate::SpecialFields, |
7342 | | } |
7343 | | |
7344 | | impl<'a> ::std::default::Default for &'a SourceCodeInfo { |
7345 | 0 | fn default() -> &'a SourceCodeInfo { |
7346 | 0 | <SourceCodeInfo as crate::Message>::default_instance() |
7347 | 0 | } |
7348 | | } |
7349 | | |
7350 | | impl SourceCodeInfo { |
7351 | 0 | pub fn new() -> SourceCodeInfo { |
7352 | 0 | ::std::default::Default::default() |
7353 | 0 | } |
7354 | | |
7355 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
7356 | 0 | let mut fields = ::std::vec::Vec::with_capacity(1); |
7357 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
7358 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
7359 | | "location", |
7360 | 0 | |m: &SourceCodeInfo| { &m.location }, |
7361 | 0 | |m: &mut SourceCodeInfo| { &mut m.location }, |
7362 | | )); |
7363 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<SourceCodeInfo>( |
7364 | | "SourceCodeInfo", |
7365 | 0 | fields, |
7366 | 0 | oneofs, |
7367 | | ) |
7368 | 0 | } |
7369 | | } |
7370 | | |
7371 | | impl crate::Message for SourceCodeInfo { |
7372 | | const NAME: &'static str = "SourceCodeInfo"; |
7373 | | |
7374 | 0 | fn is_initialized(&self) -> bool { |
7375 | 0 | true |
7376 | 0 | } |
7377 | | |
7378 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
7379 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
7380 | 0 | match tag { |
7381 | | 10 => { |
7382 | 0 | self.location.push(is.read_message()?); |
7383 | | }, |
7384 | 0 | tag => { |
7385 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
7386 | | }, |
7387 | | }; |
7388 | | } |
7389 | 0 | ::std::result::Result::Ok(()) |
7390 | 0 | } |
7391 | | |
7392 | | // Compute sizes of nested messages |
7393 | | #[allow(unused_variables)] |
7394 | 0 | fn compute_size(&self) -> u64 { |
7395 | 0 | let mut my_size = 0; |
7396 | 0 | for value in &self.location { |
7397 | 0 | let len = value.compute_size(); |
7398 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
7399 | 0 | }; |
7400 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
7401 | 0 | self.special_fields.cached_size().set(my_size as u32); |
7402 | 0 | my_size |
7403 | 0 | } |
7404 | | |
7405 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
7406 | 0 | for v in &self.location { |
7407 | 0 | crate::rt::write_message_field_with_cached_size(1, v, os)?; |
7408 | | }; |
7409 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
7410 | 0 | ::std::result::Result::Ok(()) |
7411 | 0 | } |
7412 | | |
7413 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
7414 | 0 | &self.special_fields |
7415 | 0 | } |
7416 | | |
7417 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
7418 | 0 | &mut self.special_fields |
7419 | 0 | } |
7420 | | |
7421 | 0 | fn new() -> SourceCodeInfo { |
7422 | 0 | SourceCodeInfo::new() |
7423 | 0 | } |
7424 | | |
7425 | 0 | fn clear(&mut self) { |
7426 | 0 | self.location.clear(); |
7427 | 0 | self.special_fields.clear(); |
7428 | 0 | } |
7429 | | |
7430 | 0 | fn default_instance() -> &'static SourceCodeInfo { |
7431 | | static instance: SourceCodeInfo = SourceCodeInfo { |
7432 | | location: ::std::vec::Vec::new(), |
7433 | | special_fields: crate::SpecialFields::new(), |
7434 | | }; |
7435 | 0 | &instance |
7436 | 0 | } |
7437 | | } |
7438 | | |
7439 | | impl crate::MessageFull for SourceCodeInfo { |
7440 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
7441 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
7442 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("SourceCodeInfo").unwrap()).clone() |
7443 | 0 | } |
7444 | | } |
7445 | | |
7446 | | impl ::std::fmt::Display for SourceCodeInfo { |
7447 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
7448 | 0 | crate::text_format::fmt(self, f) |
7449 | 0 | } |
7450 | | } |
7451 | | |
7452 | | impl crate::reflect::ProtobufValue for SourceCodeInfo { |
7453 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
7454 | | } |
7455 | | |
7456 | | /// Nested message and enums of message `SourceCodeInfo` |
7457 | | pub mod source_code_info { |
7458 | | #[derive(PartialEq,Clone,Default,Debug)] |
7459 | | // @@protoc_insertion_point(message:google.protobuf.SourceCodeInfo.Location) |
7460 | | pub struct Location { |
7461 | | // message fields |
7462 | | // @@protoc_insertion_point(field:google.protobuf.SourceCodeInfo.Location.path) |
7463 | | pub path: ::std::vec::Vec<i32>, |
7464 | | /// Always has exactly three or four elements: start line, start column, |
7465 | | /// end line (optional, otherwise assumed same as start line), end column. |
7466 | | /// These are packed into a single field for efficiency. Note that line |
7467 | | /// and column numbers are zero-based -- typically you will want to add |
7468 | | /// 1 to each before displaying to a user. |
7469 | | // @@protoc_insertion_point(field:google.protobuf.SourceCodeInfo.Location.span) |
7470 | | pub span: ::std::vec::Vec<i32>, |
7471 | | // @@protoc_insertion_point(field:google.protobuf.SourceCodeInfo.Location.leading_comments) |
7472 | | pub leading_comments: ::std::option::Option<::std::string::String>, |
7473 | | // @@protoc_insertion_point(field:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
7474 | | pub trailing_comments: ::std::option::Option<::std::string::String>, |
7475 | | // @@protoc_insertion_point(field:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
7476 | | pub leading_detached_comments: ::std::vec::Vec<::std::string::String>, |
7477 | | // special fields |
7478 | | // @@protoc_insertion_point(special_field:google.protobuf.SourceCodeInfo.Location.special_fields) |
7479 | | pub special_fields: crate::SpecialFields, |
7480 | | } |
7481 | | |
7482 | | impl<'a> ::std::default::Default for &'a Location { |
7483 | 0 | fn default() -> &'a Location { |
7484 | 0 | <Location as crate::Message>::default_instance() |
7485 | 0 | } |
7486 | | } |
7487 | | |
7488 | | impl Location { |
7489 | 0 | pub fn new() -> Location { |
7490 | 0 | ::std::default::Default::default() |
7491 | 0 | } |
7492 | | |
7493 | | // optional string leading_comments = 3; |
7494 | | |
7495 | 0 | pub fn leading_comments(&self) -> &str { |
7496 | 0 | match self.leading_comments.as_ref() { |
7497 | 0 | Some(v) => v, |
7498 | 0 | None => "", |
7499 | | } |
7500 | 0 | } |
7501 | | |
7502 | 0 | pub fn clear_leading_comments(&mut self) { |
7503 | 0 | self.leading_comments = ::std::option::Option::None; |
7504 | 0 | } |
7505 | | |
7506 | 0 | pub fn has_leading_comments(&self) -> bool { |
7507 | 0 | self.leading_comments.is_some() |
7508 | 0 | } |
7509 | | |
7510 | | // Param is passed by value, moved |
7511 | 0 | pub fn set_leading_comments(&mut self, v: ::std::string::String) { |
7512 | 0 | self.leading_comments = ::std::option::Option::Some(v); |
7513 | 0 | } |
7514 | | |
7515 | | // Mutable pointer to the field. |
7516 | | // If field is not initialized, it is initialized with default value first. |
7517 | 0 | pub fn mut_leading_comments(&mut self) -> &mut ::std::string::String { |
7518 | 0 | if self.leading_comments.is_none() { |
7519 | 0 | self.leading_comments = ::std::option::Option::Some(::std::string::String::new()); |
7520 | 0 | } |
7521 | 0 | self.leading_comments.as_mut().unwrap() |
7522 | 0 | } |
7523 | | |
7524 | | // Take field |
7525 | 0 | pub fn take_leading_comments(&mut self) -> ::std::string::String { |
7526 | 0 | self.leading_comments.take().unwrap_or_else(|| ::std::string::String::new()) |
7527 | 0 | } |
7528 | | |
7529 | | // optional string trailing_comments = 4; |
7530 | | |
7531 | 0 | pub fn trailing_comments(&self) -> &str { |
7532 | 0 | match self.trailing_comments.as_ref() { |
7533 | 0 | Some(v) => v, |
7534 | 0 | None => "", |
7535 | | } |
7536 | 0 | } |
7537 | | |
7538 | 0 | pub fn clear_trailing_comments(&mut self) { |
7539 | 0 | self.trailing_comments = ::std::option::Option::None; |
7540 | 0 | } |
7541 | | |
7542 | 0 | pub fn has_trailing_comments(&self) -> bool { |
7543 | 0 | self.trailing_comments.is_some() |
7544 | 0 | } |
7545 | | |
7546 | | // Param is passed by value, moved |
7547 | 0 | pub fn set_trailing_comments(&mut self, v: ::std::string::String) { |
7548 | 0 | self.trailing_comments = ::std::option::Option::Some(v); |
7549 | 0 | } |
7550 | | |
7551 | | // Mutable pointer to the field. |
7552 | | // If field is not initialized, it is initialized with default value first. |
7553 | 0 | pub fn mut_trailing_comments(&mut self) -> &mut ::std::string::String { |
7554 | 0 | if self.trailing_comments.is_none() { |
7555 | 0 | self.trailing_comments = ::std::option::Option::Some(::std::string::String::new()); |
7556 | 0 | } |
7557 | 0 | self.trailing_comments.as_mut().unwrap() |
7558 | 0 | } |
7559 | | |
7560 | | // Take field |
7561 | 0 | pub fn take_trailing_comments(&mut self) -> ::std::string::String { |
7562 | 0 | self.trailing_comments.take().unwrap_or_else(|| ::std::string::String::new()) |
7563 | 0 | } |
7564 | | |
7565 | 0 | pub(in super) fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
7566 | 0 | let mut fields = ::std::vec::Vec::with_capacity(5); |
7567 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
7568 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
7569 | | "path", |
7570 | 0 | |m: &Location| { &m.path }, |
7571 | 0 | |m: &mut Location| { &mut m.path }, |
7572 | | )); |
7573 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
7574 | | "span", |
7575 | 0 | |m: &Location| { &m.span }, |
7576 | 0 | |m: &mut Location| { &mut m.span }, |
7577 | | )); |
7578 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
7579 | | "leading_comments", |
7580 | 0 | |m: &Location| { &m.leading_comments }, |
7581 | 0 | |m: &mut Location| { &mut m.leading_comments }, |
7582 | | )); |
7583 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
7584 | | "trailing_comments", |
7585 | 0 | |m: &Location| { &m.trailing_comments }, |
7586 | 0 | |m: &mut Location| { &mut m.trailing_comments }, |
7587 | | )); |
7588 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
7589 | | "leading_detached_comments", |
7590 | 0 | |m: &Location| { &m.leading_detached_comments }, |
7591 | 0 | |m: &mut Location| { &mut m.leading_detached_comments }, |
7592 | | )); |
7593 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<Location>( |
7594 | | "SourceCodeInfo.Location", |
7595 | 0 | fields, |
7596 | 0 | oneofs, |
7597 | | ) |
7598 | 0 | } |
7599 | | } |
7600 | | |
7601 | | impl crate::Message for Location { |
7602 | | const NAME: &'static str = "Location"; |
7603 | | |
7604 | 0 | fn is_initialized(&self) -> bool { |
7605 | 0 | true |
7606 | 0 | } |
7607 | | |
7608 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
7609 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
7610 | 0 | match tag { |
7611 | | 10 => { |
7612 | 0 | is.read_repeated_packed_int32_into(&mut self.path)?; |
7613 | | }, |
7614 | | 8 => { |
7615 | 0 | self.path.push(is.read_int32()?); |
7616 | | }, |
7617 | | 18 => { |
7618 | 0 | is.read_repeated_packed_int32_into(&mut self.span)?; |
7619 | | }, |
7620 | | 16 => { |
7621 | 0 | self.span.push(is.read_int32()?); |
7622 | | }, |
7623 | | 26 => { |
7624 | 0 | self.leading_comments = ::std::option::Option::Some(is.read_string()?); |
7625 | | }, |
7626 | | 34 => { |
7627 | 0 | self.trailing_comments = ::std::option::Option::Some(is.read_string()?); |
7628 | | }, |
7629 | | 50 => { |
7630 | 0 | self.leading_detached_comments.push(is.read_string()?); |
7631 | | }, |
7632 | 0 | tag => { |
7633 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
7634 | | }, |
7635 | | }; |
7636 | | } |
7637 | 0 | ::std::result::Result::Ok(()) |
7638 | 0 | } |
7639 | | |
7640 | | // Compute sizes of nested messages |
7641 | | #[allow(unused_variables)] |
7642 | 0 | fn compute_size(&self) -> u64 { |
7643 | 0 | let mut my_size = 0; |
7644 | 0 | my_size += crate::rt::vec_packed_int32_size(1, &self.path); |
7645 | 0 | my_size += crate::rt::vec_packed_int32_size(2, &self.span); |
7646 | 0 | if let Some(v) = self.leading_comments.as_ref() { |
7647 | 0 | my_size += crate::rt::string_size(3, &v); |
7648 | 0 | } |
7649 | 0 | if let Some(v) = self.trailing_comments.as_ref() { |
7650 | 0 | my_size += crate::rt::string_size(4, &v); |
7651 | 0 | } |
7652 | 0 | for value in &self.leading_detached_comments { |
7653 | 0 | my_size += crate::rt::string_size(6, &value); |
7654 | 0 | }; |
7655 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
7656 | 0 | self.special_fields.cached_size().set(my_size as u32); |
7657 | 0 | my_size |
7658 | 0 | } |
7659 | | |
7660 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
7661 | 0 | os.write_repeated_packed_int32(1, &self.path)?; |
7662 | 0 | os.write_repeated_packed_int32(2, &self.span)?; |
7663 | 0 | if let Some(v) = self.leading_comments.as_ref() { |
7664 | 0 | os.write_string(3, v)?; |
7665 | 0 | } |
7666 | 0 | if let Some(v) = self.trailing_comments.as_ref() { |
7667 | 0 | os.write_string(4, v)?; |
7668 | 0 | } |
7669 | 0 | for v in &self.leading_detached_comments { |
7670 | 0 | os.write_string(6, &v)?; |
7671 | | }; |
7672 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
7673 | 0 | ::std::result::Result::Ok(()) |
7674 | 0 | } |
7675 | | |
7676 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
7677 | 0 | &self.special_fields |
7678 | 0 | } |
7679 | | |
7680 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
7681 | 0 | &mut self.special_fields |
7682 | 0 | } |
7683 | | |
7684 | 0 | fn new() -> Location { |
7685 | 0 | Location::new() |
7686 | 0 | } |
7687 | | |
7688 | 0 | fn clear(&mut self) { |
7689 | 0 | self.path.clear(); |
7690 | 0 | self.span.clear(); |
7691 | 0 | self.leading_comments = ::std::option::Option::None; |
7692 | 0 | self.trailing_comments = ::std::option::Option::None; |
7693 | 0 | self.leading_detached_comments.clear(); |
7694 | 0 | self.special_fields.clear(); |
7695 | 0 | } |
7696 | | |
7697 | 0 | fn default_instance() -> &'static Location { |
7698 | | static instance: Location = Location { |
7699 | | path: ::std::vec::Vec::new(), |
7700 | | span: ::std::vec::Vec::new(), |
7701 | | leading_comments: ::std::option::Option::None, |
7702 | | trailing_comments: ::std::option::Option::None, |
7703 | | leading_detached_comments: ::std::vec::Vec::new(), |
7704 | | special_fields: crate::SpecialFields::new(), |
7705 | | }; |
7706 | 0 | &instance |
7707 | 0 | } |
7708 | | } |
7709 | | |
7710 | | impl crate::MessageFull for Location { |
7711 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
7712 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
7713 | 0 | descriptor.get(|| super::file_descriptor().message_by_package_relative_name("SourceCodeInfo.Location").unwrap()).clone() |
7714 | 0 | } |
7715 | | } |
7716 | | |
7717 | | impl ::std::fmt::Display for Location { |
7718 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
7719 | 0 | crate::text_format::fmt(self, f) |
7720 | 0 | } |
7721 | | } |
7722 | | |
7723 | | impl crate::reflect::ProtobufValue for Location { |
7724 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
7725 | | } |
7726 | | } |
7727 | | |
7728 | | /// Describes the relationship between generated code and its original source |
7729 | | /// file. A GeneratedCodeInfo message is associated with only one generated |
7730 | | /// source file, but may contain references to different source .proto files. |
7731 | | #[derive(PartialEq,Clone,Default,Debug)] |
7732 | | // @@protoc_insertion_point(message:google.protobuf.GeneratedCodeInfo) |
7733 | | pub struct GeneratedCodeInfo { |
7734 | | // message fields |
7735 | | /// An Annotation connects some span of text in generated code to an element |
7736 | | /// of its generating .proto file. |
7737 | | // @@protoc_insertion_point(field:google.protobuf.GeneratedCodeInfo.annotation) |
7738 | | pub annotation: ::std::vec::Vec<generated_code_info::Annotation>, |
7739 | | // special fields |
7740 | | // @@protoc_insertion_point(special_field:google.protobuf.GeneratedCodeInfo.special_fields) |
7741 | | pub special_fields: crate::SpecialFields, |
7742 | | } |
7743 | | |
7744 | | impl<'a> ::std::default::Default for &'a GeneratedCodeInfo { |
7745 | 0 | fn default() -> &'a GeneratedCodeInfo { |
7746 | 0 | <GeneratedCodeInfo as crate::Message>::default_instance() |
7747 | 0 | } |
7748 | | } |
7749 | | |
7750 | | impl GeneratedCodeInfo { |
7751 | 0 | pub fn new() -> GeneratedCodeInfo { |
7752 | 0 | ::std::default::Default::default() |
7753 | 0 | } |
7754 | | |
7755 | 0 | fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
7756 | 0 | let mut fields = ::std::vec::Vec::with_capacity(1); |
7757 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
7758 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
7759 | | "annotation", |
7760 | 0 | |m: &GeneratedCodeInfo| { &m.annotation }, |
7761 | 0 | |m: &mut GeneratedCodeInfo| { &mut m.annotation }, |
7762 | | )); |
7763 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<GeneratedCodeInfo>( |
7764 | | "GeneratedCodeInfo", |
7765 | 0 | fields, |
7766 | 0 | oneofs, |
7767 | | ) |
7768 | 0 | } |
7769 | | } |
7770 | | |
7771 | | impl crate::Message for GeneratedCodeInfo { |
7772 | | const NAME: &'static str = "GeneratedCodeInfo"; |
7773 | | |
7774 | 0 | fn is_initialized(&self) -> bool { |
7775 | 0 | true |
7776 | 0 | } |
7777 | | |
7778 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
7779 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
7780 | 0 | match tag { |
7781 | | 10 => { |
7782 | 0 | self.annotation.push(is.read_message()?); |
7783 | | }, |
7784 | 0 | tag => { |
7785 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
7786 | | }, |
7787 | | }; |
7788 | | } |
7789 | 0 | ::std::result::Result::Ok(()) |
7790 | 0 | } |
7791 | | |
7792 | | // Compute sizes of nested messages |
7793 | | #[allow(unused_variables)] |
7794 | 0 | fn compute_size(&self) -> u64 { |
7795 | 0 | let mut my_size = 0; |
7796 | 0 | for value in &self.annotation { |
7797 | 0 | let len = value.compute_size(); |
7798 | 0 | my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len; |
7799 | 0 | }; |
7800 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
7801 | 0 | self.special_fields.cached_size().set(my_size as u32); |
7802 | 0 | my_size |
7803 | 0 | } |
7804 | | |
7805 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
7806 | 0 | for v in &self.annotation { |
7807 | 0 | crate::rt::write_message_field_with_cached_size(1, v, os)?; |
7808 | | }; |
7809 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
7810 | 0 | ::std::result::Result::Ok(()) |
7811 | 0 | } |
7812 | | |
7813 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
7814 | 0 | &self.special_fields |
7815 | 0 | } |
7816 | | |
7817 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
7818 | 0 | &mut self.special_fields |
7819 | 0 | } |
7820 | | |
7821 | 0 | fn new() -> GeneratedCodeInfo { |
7822 | 0 | GeneratedCodeInfo::new() |
7823 | 0 | } |
7824 | | |
7825 | 0 | fn clear(&mut self) { |
7826 | 0 | self.annotation.clear(); |
7827 | 0 | self.special_fields.clear(); |
7828 | 0 | } |
7829 | | |
7830 | 0 | fn default_instance() -> &'static GeneratedCodeInfo { |
7831 | | static instance: GeneratedCodeInfo = GeneratedCodeInfo { |
7832 | | annotation: ::std::vec::Vec::new(), |
7833 | | special_fields: crate::SpecialFields::new(), |
7834 | | }; |
7835 | 0 | &instance |
7836 | 0 | } |
7837 | | } |
7838 | | |
7839 | | impl crate::MessageFull for GeneratedCodeInfo { |
7840 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
7841 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
7842 | 0 | descriptor.get(|| file_descriptor().message_by_package_relative_name("GeneratedCodeInfo").unwrap()).clone() |
7843 | 0 | } |
7844 | | } |
7845 | | |
7846 | | impl ::std::fmt::Display for GeneratedCodeInfo { |
7847 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
7848 | 0 | crate::text_format::fmt(self, f) |
7849 | 0 | } |
7850 | | } |
7851 | | |
7852 | | impl crate::reflect::ProtobufValue for GeneratedCodeInfo { |
7853 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
7854 | | } |
7855 | | |
7856 | | /// Nested message and enums of message `GeneratedCodeInfo` |
7857 | | pub mod generated_code_info { |
7858 | | #[derive(PartialEq,Clone,Default,Debug)] |
7859 | | // @@protoc_insertion_point(message:google.protobuf.GeneratedCodeInfo.Annotation) |
7860 | | pub struct Annotation { |
7861 | | // message fields |
7862 | | /// Identifies the element in the original source .proto file. This field |
7863 | | /// is formatted the same as SourceCodeInfo.Location.path. |
7864 | | // @@protoc_insertion_point(field:google.protobuf.GeneratedCodeInfo.Annotation.path) |
7865 | | pub path: ::std::vec::Vec<i32>, |
7866 | | /// Identifies the filesystem path to the original source .proto. |
7867 | | // @@protoc_insertion_point(field:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
7868 | | pub source_file: ::std::option::Option<::std::string::String>, |
7869 | | /// Identifies the starting offset in bytes in the generated code |
7870 | | /// that relates to the identified object. |
7871 | | // @@protoc_insertion_point(field:google.protobuf.GeneratedCodeInfo.Annotation.begin) |
7872 | | pub begin: ::std::option::Option<i32>, |
7873 | | /// Identifies the ending offset in bytes in the generated code that |
7874 | | /// relates to the identified offset. The end offset should be one past |
7875 | | /// the last relevant byte (so the length of the text = end - begin). |
7876 | | // @@protoc_insertion_point(field:google.protobuf.GeneratedCodeInfo.Annotation.end) |
7877 | | pub end: ::std::option::Option<i32>, |
7878 | | // special fields |
7879 | | // @@protoc_insertion_point(special_field:google.protobuf.GeneratedCodeInfo.Annotation.special_fields) |
7880 | | pub special_fields: crate::SpecialFields, |
7881 | | } |
7882 | | |
7883 | | impl<'a> ::std::default::Default for &'a Annotation { |
7884 | 0 | fn default() -> &'a Annotation { |
7885 | 0 | <Annotation as crate::Message>::default_instance() |
7886 | 0 | } |
7887 | | } |
7888 | | |
7889 | | impl Annotation { |
7890 | 0 | pub fn new() -> Annotation { |
7891 | 0 | ::std::default::Default::default() |
7892 | 0 | } |
7893 | | |
7894 | | // optional string source_file = 2; |
7895 | | |
7896 | 0 | pub fn source_file(&self) -> &str { |
7897 | 0 | match self.source_file.as_ref() { |
7898 | 0 | Some(v) => v, |
7899 | 0 | None => "", |
7900 | | } |
7901 | 0 | } |
7902 | | |
7903 | 0 | pub fn clear_source_file(&mut self) { |
7904 | 0 | self.source_file = ::std::option::Option::None; |
7905 | 0 | } |
7906 | | |
7907 | 0 | pub fn has_source_file(&self) -> bool { |
7908 | 0 | self.source_file.is_some() |
7909 | 0 | } |
7910 | | |
7911 | | // Param is passed by value, moved |
7912 | 0 | pub fn set_source_file(&mut self, v: ::std::string::String) { |
7913 | 0 | self.source_file = ::std::option::Option::Some(v); |
7914 | 0 | } |
7915 | | |
7916 | | // Mutable pointer to the field. |
7917 | | // If field is not initialized, it is initialized with default value first. |
7918 | 0 | pub fn mut_source_file(&mut self) -> &mut ::std::string::String { |
7919 | 0 | if self.source_file.is_none() { |
7920 | 0 | self.source_file = ::std::option::Option::Some(::std::string::String::new()); |
7921 | 0 | } |
7922 | 0 | self.source_file.as_mut().unwrap() |
7923 | 0 | } |
7924 | | |
7925 | | // Take field |
7926 | 0 | pub fn take_source_file(&mut self) -> ::std::string::String { |
7927 | 0 | self.source_file.take().unwrap_or_else(|| ::std::string::String::new()) |
7928 | 0 | } |
7929 | | |
7930 | | // optional int32 begin = 3; |
7931 | | |
7932 | 0 | pub fn begin(&self) -> i32 { |
7933 | 0 | self.begin.unwrap_or(0) |
7934 | 0 | } |
7935 | | |
7936 | 0 | pub fn clear_begin(&mut self) { |
7937 | 0 | self.begin = ::std::option::Option::None; |
7938 | 0 | } |
7939 | | |
7940 | 0 | pub fn has_begin(&self) -> bool { |
7941 | 0 | self.begin.is_some() |
7942 | 0 | } |
7943 | | |
7944 | | // Param is passed by value, moved |
7945 | 0 | pub fn set_begin(&mut self, v: i32) { |
7946 | 0 | self.begin = ::std::option::Option::Some(v); |
7947 | 0 | } |
7948 | | |
7949 | | // optional int32 end = 4; |
7950 | | |
7951 | 0 | pub fn end(&self) -> i32 { |
7952 | 0 | self.end.unwrap_or(0) |
7953 | 0 | } |
7954 | | |
7955 | 0 | pub fn clear_end(&mut self) { |
7956 | 0 | self.end = ::std::option::Option::None; |
7957 | 0 | } |
7958 | | |
7959 | 0 | pub fn has_end(&self) -> bool { |
7960 | 0 | self.end.is_some() |
7961 | 0 | } |
7962 | | |
7963 | | // Param is passed by value, moved |
7964 | 0 | pub fn set_end(&mut self, v: i32) { |
7965 | 0 | self.end = ::std::option::Option::Some(v); |
7966 | 0 | } |
7967 | | |
7968 | 0 | pub(in super) fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData { |
7969 | 0 | let mut fields = ::std::vec::Vec::with_capacity(4); |
7970 | 0 | let mut oneofs = ::std::vec::Vec::with_capacity(0); |
7971 | 0 | fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( |
7972 | | "path", |
7973 | 0 | |m: &Annotation| { &m.path }, |
7974 | 0 | |m: &mut Annotation| { &mut m.path }, |
7975 | | )); |
7976 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
7977 | | "source_file", |
7978 | 0 | |m: &Annotation| { &m.source_file }, |
7979 | 0 | |m: &mut Annotation| { &mut m.source_file }, |
7980 | | )); |
7981 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
7982 | | "begin", |
7983 | 0 | |m: &Annotation| { &m.begin }, |
7984 | 0 | |m: &mut Annotation| { &mut m.begin }, |
7985 | | )); |
7986 | 0 | fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>( |
7987 | | "end", |
7988 | 0 | |m: &Annotation| { &m.end }, |
7989 | 0 | |m: &mut Annotation| { &mut m.end }, |
7990 | | )); |
7991 | 0 | crate::reflect::GeneratedMessageDescriptorData::new_2::<Annotation>( |
7992 | | "GeneratedCodeInfo.Annotation", |
7993 | 0 | fields, |
7994 | 0 | oneofs, |
7995 | | ) |
7996 | 0 | } |
7997 | | } |
7998 | | |
7999 | | impl crate::Message for Annotation { |
8000 | | const NAME: &'static str = "Annotation"; |
8001 | | |
8002 | 0 | fn is_initialized(&self) -> bool { |
8003 | 0 | true |
8004 | 0 | } |
8005 | | |
8006 | 0 | fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> { |
8007 | 0 | while let Some(tag) = is.read_raw_tag_or_eof()? { |
8008 | 0 | match tag { |
8009 | | 10 => { |
8010 | 0 | is.read_repeated_packed_int32_into(&mut self.path)?; |
8011 | | }, |
8012 | | 8 => { |
8013 | 0 | self.path.push(is.read_int32()?); |
8014 | | }, |
8015 | | 18 => { |
8016 | 0 | self.source_file = ::std::option::Option::Some(is.read_string()?); |
8017 | | }, |
8018 | | 24 => { |
8019 | 0 | self.begin = ::std::option::Option::Some(is.read_int32()?); |
8020 | | }, |
8021 | | 32 => { |
8022 | 0 | self.end = ::std::option::Option::Some(is.read_int32()?); |
8023 | | }, |
8024 | 0 | tag => { |
8025 | 0 | crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; |
8026 | | }, |
8027 | | }; |
8028 | | } |
8029 | 0 | ::std::result::Result::Ok(()) |
8030 | 0 | } |
8031 | | |
8032 | | // Compute sizes of nested messages |
8033 | | #[allow(unused_variables)] |
8034 | 0 | fn compute_size(&self) -> u64 { |
8035 | 0 | let mut my_size = 0; |
8036 | 0 | my_size += crate::rt::vec_packed_int32_size(1, &self.path); |
8037 | 0 | if let Some(v) = self.source_file.as_ref() { |
8038 | 0 | my_size += crate::rt::string_size(2, &v); |
8039 | 0 | } |
8040 | 0 | if let Some(v) = self.begin { |
8041 | 0 | my_size += crate::rt::int32_size(3, v); |
8042 | 0 | } |
8043 | 0 | if let Some(v) = self.end { |
8044 | 0 | my_size += crate::rt::int32_size(4, v); |
8045 | 0 | } |
8046 | 0 | my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields()); |
8047 | 0 | self.special_fields.cached_size().set(my_size as u32); |
8048 | 0 | my_size |
8049 | 0 | } |
8050 | | |
8051 | 0 | fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> { |
8052 | 0 | os.write_repeated_packed_int32(1, &self.path)?; |
8053 | 0 | if let Some(v) = self.source_file.as_ref() { |
8054 | 0 | os.write_string(2, v)?; |
8055 | 0 | } |
8056 | 0 | if let Some(v) = self.begin { |
8057 | 0 | os.write_int32(3, v)?; |
8058 | 0 | } |
8059 | 0 | if let Some(v) = self.end { |
8060 | 0 | os.write_int32(4, v)?; |
8061 | 0 | } |
8062 | 0 | os.write_unknown_fields(self.special_fields.unknown_fields())?; |
8063 | 0 | ::std::result::Result::Ok(()) |
8064 | 0 | } |
8065 | | |
8066 | 0 | fn special_fields(&self) -> &crate::SpecialFields { |
8067 | 0 | &self.special_fields |
8068 | 0 | } |
8069 | | |
8070 | 0 | fn mut_special_fields(&mut self) -> &mut crate::SpecialFields { |
8071 | 0 | &mut self.special_fields |
8072 | 0 | } |
8073 | | |
8074 | 0 | fn new() -> Annotation { |
8075 | 0 | Annotation::new() |
8076 | 0 | } |
8077 | | |
8078 | 0 | fn clear(&mut self) { |
8079 | 0 | self.path.clear(); |
8080 | 0 | self.source_file = ::std::option::Option::None; |
8081 | 0 | self.begin = ::std::option::Option::None; |
8082 | 0 | self.end = ::std::option::Option::None; |
8083 | 0 | self.special_fields.clear(); |
8084 | 0 | } |
8085 | | |
8086 | 0 | fn default_instance() -> &'static Annotation { |
8087 | | static instance: Annotation = Annotation { |
8088 | | path: ::std::vec::Vec::new(), |
8089 | | source_file: ::std::option::Option::None, |
8090 | | begin: ::std::option::Option::None, |
8091 | | end: ::std::option::Option::None, |
8092 | | special_fields: crate::SpecialFields::new(), |
8093 | | }; |
8094 | 0 | &instance |
8095 | 0 | } |
8096 | | } |
8097 | | |
8098 | | impl crate::MessageFull for Annotation { |
8099 | 0 | fn descriptor() -> crate::reflect::MessageDescriptor { |
8100 | | static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new(); |
8101 | 0 | descriptor.get(|| super::file_descriptor().message_by_package_relative_name("GeneratedCodeInfo.Annotation").unwrap()).clone() |
8102 | 0 | } |
8103 | | } |
8104 | | |
8105 | | impl ::std::fmt::Display for Annotation { |
8106 | 0 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
8107 | 0 | crate::text_format::fmt(self, f) |
8108 | 0 | } |
8109 | | } |
8110 | | |
8111 | | impl crate::reflect::ProtobufValue for Annotation { |
8112 | | type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>; |
8113 | | } |
8114 | | } |
8115 | | |
8116 | | static file_descriptor_proto_data: &'static [u8] = b"\ |
8117 | | \n\x20google/protobuf/descriptor.proto\x12\x0fgoogle.protobuf\"M\n\x11Fi\ |
8118 | | leDescriptorSet\x128\n\x04file\x18\x01\x20\x03(\x0b2$.google.protobuf.Fi\ |
8119 | | leDescriptorProtoR\x04file\"\xe4\x04\n\x13FileDescriptorProto\x12\x12\n\ |
8120 | | \x04name\x18\x01\x20\x01(\tR\x04name\x12\x18\n\x07package\x18\x02\x20\ |
8121 | | \x01(\tR\x07package\x12\x1e\n\ndependency\x18\x03\x20\x03(\tR\ndependenc\ |
8122 | | y\x12+\n\x11public_dependency\x18\n\x20\x03(\x05R\x10publicDependency\ |
8123 | | \x12'\n\x0fweak_dependency\x18\x0b\x20\x03(\x05R\x0eweakDependency\x12C\ |
8124 | | \n\x0cmessage_type\x18\x04\x20\x03(\x0b2\x20.google.protobuf.DescriptorP\ |
8125 | | rotoR\x0bmessageType\x12A\n\tenum_type\x18\x05\x20\x03(\x0b2$.google.pro\ |
8126 | | tobuf.EnumDescriptorProtoR\x08enumType\x12A\n\x07service\x18\x06\x20\x03\ |
8127 | | (\x0b2'.google.protobuf.ServiceDescriptorProtoR\x07service\x12C\n\texten\ |
8128 | | sion\x18\x07\x20\x03(\x0b2%.google.protobuf.FieldDescriptorProtoR\texten\ |
8129 | | sion\x126\n\x07options\x18\x08\x20\x01(\x0b2\x1c.google.protobuf.FileOpt\ |
8130 | | ionsR\x07options\x12I\n\x10source_code_info\x18\t\x20\x01(\x0b2\x1f.goog\ |
8131 | | le.protobuf.SourceCodeInfoR\x0esourceCodeInfo\x12\x16\n\x06syntax\x18\ |
8132 | | \x0c\x20\x01(\tR\x06syntax\"\xb9\x06\n\x0fDescriptorProto\x12\x12\n\x04n\ |
8133 | | ame\x18\x01\x20\x01(\tR\x04name\x12;\n\x05field\x18\x02\x20\x03(\x0b2%.g\ |
8134 | | oogle.protobuf.FieldDescriptorProtoR\x05field\x12C\n\textension\x18\x06\ |
8135 | | \x20\x03(\x0b2%.google.protobuf.FieldDescriptorProtoR\textension\x12A\n\ |
8136 | | \x0bnested_type\x18\x03\x20\x03(\x0b2\x20.google.protobuf.DescriptorProt\ |
8137 | | oR\nnestedType\x12A\n\tenum_type\x18\x04\x20\x03(\x0b2$.google.protobuf.\ |
8138 | | EnumDescriptorProtoR\x08enumType\x12X\n\x0fextension_range\x18\x05\x20\ |
8139 | | \x03(\x0b2/.google.protobuf.DescriptorProto.ExtensionRangeR\x0eextension\ |
8140 | | Range\x12D\n\noneof_decl\x18\x08\x20\x03(\x0b2%.google.protobuf.OneofDes\ |
8141 | | criptorProtoR\toneofDecl\x129\n\x07options\x18\x07\x20\x01(\x0b2\x1f.goo\ |
8142 | | gle.protobuf.MessageOptionsR\x07options\x12U\n\x0ereserved_range\x18\t\ |
8143 | | \x20\x03(\x0b2..google.protobuf.DescriptorProto.ReservedRangeR\rreserved\ |
8144 | | Range\x12#\n\rreserved_name\x18\n\x20\x03(\tR\x0creservedName\x1az\n\x0e\ |
8145 | | ExtensionRange\x12\x14\n\x05start\x18\x01\x20\x01(\x05R\x05start\x12\x10\ |
8146 | | \n\x03end\x18\x02\x20\x01(\x05R\x03end\x12@\n\x07options\x18\x03\x20\x01\ |
8147 | | (\x0b2&.google.protobuf.ExtensionRangeOptionsR\x07options\x1a7\n\rReserv\ |
8148 | | edRange\x12\x14\n\x05start\x18\x01\x20\x01(\x05R\x05start\x12\x10\n\x03e\ |
8149 | | nd\x18\x02\x20\x01(\x05R\x03end\"|\n\x15ExtensionRangeOptions\x12X\n\x14\ |
8150 | | uninterpreted_option\x18\xe7\x07\x20\x03(\x0b2$.google.protobuf.Uninterp\ |
8151 | | retedOptionR\x13uninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\ |
8152 | | \x02\"\xc1\x06\n\x14FieldDescriptorProto\x12\x12\n\x04name\x18\x01\x20\ |
8153 | | \x01(\tR\x04name\x12\x16\n\x06number\x18\x03\x20\x01(\x05R\x06number\x12\ |
8154 | | A\n\x05label\x18\x04\x20\x01(\x0e2+.google.protobuf.FieldDescriptorProto\ |
8155 | | .LabelR\x05label\x12>\n\x04type\x18\x05\x20\x01(\x0e2*.google.protobuf.F\ |
8156 | | ieldDescriptorProto.TypeR\x04type\x12\x1b\n\ttype_name\x18\x06\x20\x01(\ |
8157 | | \tR\x08typeName\x12\x1a\n\x08extendee\x18\x02\x20\x01(\tR\x08extendee\ |
8158 | | \x12#\n\rdefault_value\x18\x07\x20\x01(\tR\x0cdefaultValue\x12\x1f\n\x0b\ |
8159 | | oneof_index\x18\t\x20\x01(\x05R\noneofIndex\x12\x1b\n\tjson_name\x18\n\ |
8160 | | \x20\x01(\tR\x08jsonName\x127\n\x07options\x18\x08\x20\x01(\x0b2\x1d.goo\ |
8161 | | gle.protobuf.FieldOptionsR\x07options\x12'\n\x0fproto3_optional\x18\x11\ |
8162 | | \x20\x01(\x08R\x0eproto3Optional\"\xb6\x02\n\x04Type\x12\x0f\n\x0bTYPE_D\ |
8163 | | OUBLE\x10\x01\x12\x0e\n\nTYPE_FLOAT\x10\x02\x12\x0e\n\nTYPE_INT64\x10\ |
8164 | | \x03\x12\x0f\n\x0bTYPE_UINT64\x10\x04\x12\x0e\n\nTYPE_INT32\x10\x05\x12\ |
8165 | | \x10\n\x0cTYPE_FIXED64\x10\x06\x12\x10\n\x0cTYPE_FIXED32\x10\x07\x12\r\n\ |
8166 | | \tTYPE_BOOL\x10\x08\x12\x0f\n\x0bTYPE_STRING\x10\t\x12\x0e\n\nTYPE_GROUP\ |
8167 | | \x10\n\x12\x10\n\x0cTYPE_MESSAGE\x10\x0b\x12\x0e\n\nTYPE_BYTES\x10\x0c\ |
8168 | | \x12\x0f\n\x0bTYPE_UINT32\x10\r\x12\r\n\tTYPE_ENUM\x10\x0e\x12\x11\n\rTY\ |
8169 | | PE_SFIXED32\x10\x0f\x12\x11\n\rTYPE_SFIXED64\x10\x10\x12\x0f\n\x0bTYPE_S\ |
8170 | | INT32\x10\x11\x12\x0f\n\x0bTYPE_SINT64\x10\x12\"C\n\x05Label\x12\x12\n\ |
8171 | | \x0eLABEL_OPTIONAL\x10\x01\x12\x12\n\x0eLABEL_REQUIRED\x10\x02\x12\x12\n\ |
8172 | | \x0eLABEL_REPEATED\x10\x03\"c\n\x14OneofDescriptorProto\x12\x12\n\x04nam\ |
8173 | | e\x18\x01\x20\x01(\tR\x04name\x127\n\x07options\x18\x02\x20\x01(\x0b2\ |
8174 | | \x1d.google.protobuf.OneofOptionsR\x07options\"\xe3\x02\n\x13EnumDescrip\ |
8175 | | torProto\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12?\n\x05value\ |
8176 | | \x18\x02\x20\x03(\x0b2).google.protobuf.EnumValueDescriptorProtoR\x05val\ |
8177 | | ue\x126\n\x07options\x18\x03\x20\x01(\x0b2\x1c.google.protobuf.EnumOptio\ |
8178 | | nsR\x07options\x12]\n\x0ereserved_range\x18\x04\x20\x03(\x0b26.google.pr\ |
8179 | | otobuf.EnumDescriptorProto.EnumReservedRangeR\rreservedRange\x12#\n\rres\ |
8180 | | erved_name\x18\x05\x20\x03(\tR\x0creservedName\x1a;\n\x11EnumReservedRan\ |
8181 | | ge\x12\x14\n\x05start\x18\x01\x20\x01(\x05R\x05start\x12\x10\n\x03end\ |
8182 | | \x18\x02\x20\x01(\x05R\x03end\"\x83\x01\n\x18EnumValueDescriptorProto\ |
8183 | | \x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x16\n\x06number\x18\ |
8184 | | \x02\x20\x01(\x05R\x06number\x12;\n\x07options\x18\x03\x20\x01(\x0b2!.go\ |
8185 | | ogle.protobuf.EnumValueOptionsR\x07options\"\xa7\x01\n\x16ServiceDescrip\ |
8186 | | torProto\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12>\n\x06method\ |
8187 | | \x18\x02\x20\x03(\x0b2&.google.protobuf.MethodDescriptorProtoR\x06method\ |
8188 | | \x129\n\x07options\x18\x03\x20\x01(\x0b2\x1f.google.protobuf.ServiceOpti\ |
8189 | | onsR\x07options\"\x89\x02\n\x15MethodDescriptorProto\x12\x12\n\x04name\ |
8190 | | \x18\x01\x20\x01(\tR\x04name\x12\x1d\n\ninput_type\x18\x02\x20\x01(\tR\t\ |
8191 | | inputType\x12\x1f\n\x0boutput_type\x18\x03\x20\x01(\tR\noutputType\x128\ |
8192 | | \n\x07options\x18\x04\x20\x01(\x0b2\x1e.google.protobuf.MethodOptionsR\ |
8193 | | \x07options\x120\n\x10client_streaming\x18\x05\x20\x01(\x08:\x05falseR\ |
8194 | | \x0fclientStreaming\x120\n\x10server_streaming\x18\x06\x20\x01(\x08:\x05\ |
8195 | | falseR\x0fserverStreaming\"\x91\t\n\x0bFileOptions\x12!\n\x0cjava_packag\ |
8196 | | e\x18\x01\x20\x01(\tR\x0bjavaPackage\x120\n\x14java_outer_classname\x18\ |
8197 | | \x08\x20\x01(\tR\x12javaOuterClassname\x125\n\x13java_multiple_files\x18\ |
8198 | | \n\x20\x01(\x08:\x05falseR\x11javaMultipleFiles\x12D\n\x1djava_generate_\ |
8199 | | equals_and_hash\x18\x14\x20\x01(\x08R\x19javaGenerateEqualsAndHashB\x02\ |
8200 | | \x18\x01\x12:\n\x16java_string_check_utf8\x18\x1b\x20\x01(\x08:\x05false\ |
8201 | | R\x13javaStringCheckUtf8\x12S\n\x0coptimize_for\x18\t\x20\x01(\x0e2).goo\ |
8202 | | gle.protobuf.FileOptions.OptimizeMode:\x05SPEEDR\x0boptimizeFor\x12\x1d\ |
8203 | | \n\ngo_package\x18\x0b\x20\x01(\tR\tgoPackage\x125\n\x13cc_generic_servi\ |
8204 | | ces\x18\x10\x20\x01(\x08:\x05falseR\x11ccGenericServices\x129\n\x15java_\ |
8205 | | generic_services\x18\x11\x20\x01(\x08:\x05falseR\x13javaGenericServices\ |
8206 | | \x125\n\x13py_generic_services\x18\x12\x20\x01(\x08:\x05falseR\x11pyGene\ |
8207 | | ricServices\x127\n\x14php_generic_services\x18*\x20\x01(\x08:\x05falseR\ |
8208 | | \x12phpGenericServices\x12%\n\ndeprecated\x18\x17\x20\x01(\x08:\x05false\ |
8209 | | R\ndeprecated\x12.\n\x10cc_enable_arenas\x18\x1f\x20\x01(\x08:\x04trueR\ |
8210 | | \x0eccEnableArenas\x12*\n\x11objc_class_prefix\x18$\x20\x01(\tR\x0fobjcC\ |
8211 | | lassPrefix\x12)\n\x10csharp_namespace\x18%\x20\x01(\tR\x0fcsharpNamespac\ |
8212 | | e\x12!\n\x0cswift_prefix\x18'\x20\x01(\tR\x0bswiftPrefix\x12(\n\x10php_c\ |
8213 | | lass_prefix\x18(\x20\x01(\tR\x0ephpClassPrefix\x12#\n\rphp_namespace\x18\ |
8214 | | )\x20\x01(\tR\x0cphpNamespace\x124\n\x16php_metadata_namespace\x18,\x20\ |
8215 | | \x01(\tR\x14phpMetadataNamespace\x12!\n\x0cruby_package\x18-\x20\x01(\tR\ |
8216 | | \x0brubyPackage\x12X\n\x14uninterpreted_option\x18\xe7\x07\x20\x03(\x0b2\ |
8217 | | $.google.protobuf.UninterpretedOptionR\x13uninterpretedOption\":\n\x0cOp\ |
8218 | | timizeMode\x12\t\n\x05SPEED\x10\x01\x12\r\n\tCODE_SIZE\x10\x02\x12\x10\n\ |
8219 | | \x0cLITE_RUNTIME\x10\x03*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02J\x04\x08\ |
8220 | | &\x10'\"\xe3\x02\n\x0eMessageOptions\x12<\n\x17message_set_wire_format\ |
8221 | | \x18\x01\x20\x01(\x08:\x05falseR\x14messageSetWireFormat\x12L\n\x1fno_st\ |
8222 | | andard_descriptor_accessor\x18\x02\x20\x01(\x08:\x05falseR\x1cnoStandard\ |
8223 | | DescriptorAccessor\x12%\n\ndeprecated\x18\x03\x20\x01(\x08:\x05falseR\nd\ |
8224 | | eprecated\x12\x1b\n\tmap_entry\x18\x07\x20\x01(\x08R\x08mapEntry\x12X\n\ |
8225 | | \x14uninterpreted_option\x18\xe7\x07\x20\x03(\x0b2$.google.protobuf.Unin\ |
8226 | | terpretedOptionR\x13uninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\ |
8227 | | \x80\x02J\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07J\ |
8228 | | \x04\x08\x08\x10\tJ\x04\x08\t\x10\n\"\xe2\x03\n\x0cFieldOptions\x12A\n\ |
8229 | | \x05ctype\x18\x01\x20\x01(\x0e2#.google.protobuf.FieldOptions.CType:\x06\ |
8230 | | STRINGR\x05ctype\x12\x16\n\x06packed\x18\x02\x20\x01(\x08R\x06packed\x12\ |
8231 | | G\n\x06jstype\x18\x06\x20\x01(\x0e2$.google.protobuf.FieldOptions.JSType\ |
8232 | | :\tJS_NORMALR\x06jstype\x12\x19\n\x04lazy\x18\x05\x20\x01(\x08:\x05false\ |
8233 | | R\x04lazy\x12%\n\ndeprecated\x18\x03\x20\x01(\x08:\x05falseR\ndeprecated\ |
8234 | | \x12\x19\n\x04weak\x18\n\x20\x01(\x08:\x05falseR\x04weak\x12X\n\x14unint\ |
8235 | | erpreted_option\x18\xe7\x07\x20\x03(\x0b2$.google.protobuf.Uninterpreted\ |
8236 | | OptionR\x13uninterpretedOption\"/\n\x05CType\x12\n\n\x06STRING\x10\0\x12\ |
8237 | | \x08\n\x04CORD\x10\x01\x12\x10\n\x0cSTRING_PIECE\x10\x02\"5\n\x06JSType\ |
8238 | | \x12\r\n\tJS_NORMAL\x10\0\x12\r\n\tJS_STRING\x10\x01\x12\r\n\tJS_NUMBER\ |
8239 | | \x10\x02*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02J\x04\x08\x04\x10\x05\"s\ |
8240 | | \n\x0cOneofOptions\x12X\n\x14uninterpreted_option\x18\xe7\x07\x20\x03(\ |
8241 | | \x0b2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOption*\t\ |
8242 | | \x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\xc0\x01\n\x0bEnumOptions\x12\x1f\ |
8243 | | \n\x0ballow_alias\x18\x02\x20\x01(\x08R\nallowAlias\x12%\n\ndeprecated\ |
8244 | | \x18\x03\x20\x01(\x08:\x05falseR\ndeprecated\x12X\n\x14uninterpreted_opt\ |
8245 | | ion\x18\xe7\x07\x20\x03(\x0b2$.google.protobuf.UninterpretedOptionR\x13u\ |
8246 | | ninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02J\x04\x08\x05\ |
8247 | | \x10\x06\"\x9e\x01\n\x10EnumValueOptions\x12%\n\ndeprecated\x18\x01\x20\ |
8248 | | \x01(\x08:\x05falseR\ndeprecated\x12X\n\x14uninterpreted_option\x18\xe7\ |
8249 | | \x07\x20\x03(\x0b2$.google.protobuf.UninterpretedOptionR\x13uninterprete\ |
8250 | | dOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\x9c\x01\n\x0eServiceOpt\ |
8251 | | ions\x12%\n\ndeprecated\x18!\x20\x01(\x08:\x05falseR\ndeprecated\x12X\n\ |
8252 | | \x14uninterpreted_option\x18\xe7\x07\x20\x03(\x0b2$.google.protobuf.Unin\ |
8253 | | terpretedOptionR\x13uninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\ |
8254 | | \x80\x02\"\xe0\x02\n\rMethodOptions\x12%\n\ndeprecated\x18!\x20\x01(\x08\ |
8255 | | :\x05falseR\ndeprecated\x12q\n\x11idempotency_level\x18\"\x20\x01(\x0e2/\ |
8256 | | .google.protobuf.MethodOptions.IdempotencyLevel:\x13IDEMPOTENCY_UNKNOWNR\ |
8257 | | \x10idempotencyLevel\x12X\n\x14uninterpreted_option\x18\xe7\x07\x20\x03(\ |
8258 | | \x0b2$.google.protobuf.UninterpretedOptionR\x13uninterpretedOption\"P\n\ |
8259 | | \x10IdempotencyLevel\x12\x17\n\x13IDEMPOTENCY_UNKNOWN\x10\0\x12\x13\n\ |
8260 | | \x0fNO_SIDE_EFFECTS\x10\x01\x12\x0e\n\nIDEMPOTENT\x10\x02*\t\x08\xe8\x07\ |
8261 | | \x10\x80\x80\x80\x80\x02\"\x9a\x03\n\x13UninterpretedOption\x12A\n\x04na\ |
8262 | | me\x18\x02\x20\x03(\x0b2-.google.protobuf.UninterpretedOption.NamePartR\ |
8263 | | \x04name\x12)\n\x10identifier_value\x18\x03\x20\x01(\tR\x0fidentifierVal\ |
8264 | | ue\x12,\n\x12positive_int_value\x18\x04\x20\x01(\x04R\x10positiveIntValu\ |
8265 | | e\x12,\n\x12negative_int_value\x18\x05\x20\x01(\x03R\x10negativeIntValue\ |
8266 | | \x12!\n\x0cdouble_value\x18\x06\x20\x01(\x01R\x0bdoubleValue\x12!\n\x0cs\ |
8267 | | tring_value\x18\x07\x20\x01(\x0cR\x0bstringValue\x12'\n\x0faggregate_val\ |
8268 | | ue\x18\x08\x20\x01(\tR\x0eaggregateValue\x1aJ\n\x08NamePart\x12\x1b\n\tn\ |
8269 | | ame_part\x18\x01\x20\x02(\tR\x08namePart\x12!\n\x0cis_extension\x18\x02\ |
8270 | | \x20\x02(\x08R\x0bisExtension\"\xa7\x02\n\x0eSourceCodeInfo\x12D\n\x08lo\ |
8271 | | cation\x18\x01\x20\x03(\x0b2(.google.protobuf.SourceCodeInfo.LocationR\ |
8272 | | \x08location\x1a\xce\x01\n\x08Location\x12\x16\n\x04path\x18\x01\x20\x03\ |
8273 | | (\x05R\x04pathB\x02\x10\x01\x12\x16\n\x04span\x18\x02\x20\x03(\x05R\x04s\ |
8274 | | panB\x02\x10\x01\x12)\n\x10leading_comments\x18\x03\x20\x01(\tR\x0fleadi\ |
8275 | | ngComments\x12+\n\x11trailing_comments\x18\x04\x20\x01(\tR\x10trailingCo\ |
8276 | | mments\x12:\n\x19leading_detached_comments\x18\x06\x20\x03(\tR\x17leadin\ |
8277 | | gDetachedComments\"\xd1\x01\n\x11GeneratedCodeInfo\x12M\n\nannotation\ |
8278 | | \x18\x01\x20\x03(\x0b2-.google.protobuf.GeneratedCodeInfo.AnnotationR\na\ |
8279 | | nnotation\x1am\n\nAnnotation\x12\x16\n\x04path\x18\x01\x20\x03(\x05R\x04\ |
8280 | | pathB\x02\x10\x01\x12\x1f\n\x0bsource_file\x18\x02\x20\x01(\tR\nsourceFi\ |
8281 | | le\x12\x14\n\x05begin\x18\x03\x20\x01(\x05R\x05begin\x12\x10\n\x03end\ |
8282 | | \x18\x04\x20\x01(\x05R\x03endB~\n\x13com.google.protobufB\x10DescriptorP\ |
8283 | | rotosH\x01Z-google.golang.org/protobuf/types/descriptorpb\xf8\x01\x01\ |
8284 | | \xa2\x02\x03GPB\xaa\x02\x1aGoogle.Protobuf.ReflectionJ\x82\xca\x02\n\x07\ |
8285 | | \x12\x05'\0\x8e\x07\x01\n\xaa\x0f\n\x01\x0c\x12\x03'\0\x122\xc1\x0c\x20P\ |
8286 | | rotocol\x20Buffers\x20-\x20Google's\x20data\x20interchange\x20format\n\ |
8287 | | \x20Copyright\x202008\x20Google\x20Inc.\x20\x20All\x20rights\x20reserved\ |
8288 | | .\n\x20https://developers.google.com/protocol-buffers/\n\n\x20Redistribu\ |
8289 | | tion\x20and\x20use\x20in\x20source\x20and\x20binary\x20forms,\x20with\ |
8290 | | \x20or\x20without\n\x20modification,\x20are\x20permitted\x20provided\x20\ |
8291 | | that\x20the\x20following\x20conditions\x20are\n\x20met:\n\n\x20\x20\x20\ |
8292 | | \x20\x20*\x20Redistributions\x20of\x20source\x20code\x20must\x20retain\ |
8293 | | \x20the\x20above\x20copyright\n\x20notice,\x20this\x20list\x20of\x20cond\ |
8294 | | itions\x20and\x20the\x20following\x20disclaimer.\n\x20\x20\x20\x20\x20*\ |
8295 | | \x20Redistributions\x20in\x20binary\x20form\x20must\x20reproduce\x20the\ |
8296 | | \x20above\n\x20copyright\x20notice,\x20this\x20list\x20of\x20conditions\ |
8297 | | \x20and\x20the\x20following\x20disclaimer\n\x20in\x20the\x20documentatio\ |
8298 | | n\x20and/or\x20other\x20materials\x20provided\x20with\x20the\n\x20distri\ |
8299 | | bution.\n\x20\x20\x20\x20\x20*\x20Neither\x20the\x20name\x20of\x20Google\ |
8300 | | \x20Inc.\x20nor\x20the\x20names\x20of\x20its\n\x20contributors\x20may\ |
8301 | | \x20be\x20used\x20to\x20endorse\x20or\x20promote\x20products\x20derived\ |
8302 | | \x20from\n\x20this\x20software\x20without\x20specific\x20prior\x20writte\ |
8303 | | n\x20permission.\n\n\x20THIS\x20SOFTWARE\x20IS\x20PROVIDED\x20BY\x20THE\ |
8304 | | \x20COPYRIGHT\x20HOLDERS\x20AND\x20CONTRIBUTORS\n\x20\"AS\x20IS\"\x20AND\ |
8305 | | \x20ANY\x20EXPRESS\x20OR\x20IMPLIED\x20WARRANTIES,\x20INCLUDING,\x20BUT\ |
8306 | | \x20NOT\n\x20LIMITED\x20TO,\x20THE\x20IMPLIED\x20WARRANTIES\x20OF\x20MER\ |
8307 | | CHANTABILITY\x20AND\x20FITNESS\x20FOR\n\x20A\x20PARTICULAR\x20PURPOSE\ |
8308 | | \x20ARE\x20DISCLAIMED.\x20IN\x20NO\x20EVENT\x20SHALL\x20THE\x20COPYRIGHT\ |
8309 | | \n\x20OWNER\x20OR\x20CONTRIBUTORS\x20BE\x20LIABLE\x20FOR\x20ANY\x20DIREC\ |
8310 | | T,\x20INDIRECT,\x20INCIDENTAL,\n\x20SPECIAL,\x20EXEMPLARY,\x20OR\x20CONS\ |
8311 | | EQUENTIAL\x20DAMAGES\x20(INCLUDING,\x20BUT\x20NOT\n\x20LIMITED\x20TO,\ |
8312 | | \x20PROCUREMENT\x20OF\x20SUBSTITUTE\x20GOODS\x20OR\x20SERVICES;\x20LOSS\ |
8313 | | \x20OF\x20USE,\n\x20DATA,\x20OR\x20PROFITS;\x20OR\x20BUSINESS\x20INTERRU\ |
8314 | | PTION)\x20HOWEVER\x20CAUSED\x20AND\x20ON\x20ANY\n\x20THEORY\x20OF\x20LIA\ |
8315 | | BILITY,\x20WHETHER\x20IN\x20CONTRACT,\x20STRICT\x20LIABILITY,\x20OR\x20T\ |
8316 | | ORT\n\x20(INCLUDING\x20NEGLIGENCE\x20OR\x20OTHERWISE)\x20ARISING\x20IN\ |
8317 | | \x20ANY\x20WAY\x20OUT\x20OF\x20THE\x20USE\n\x20OF\x20THIS\x20SOFTWARE,\ |
8318 | | \x20EVEN\x20IF\x20ADVISED\x20OF\x20THE\x20POSSIBILITY\x20OF\x20SUCH\x20D\ |
8319 | | AMAGE.\n2\xdb\x02\x20Author:\x20kenton@google.com\x20(Kenton\x20Varda)\n\ |
8320 | | \x20\x20Based\x20on\x20original\x20Protocol\x20Buffers\x20design\x20by\n\ |
8321 | | \x20\x20Sanjay\x20Ghemawat,\x20Jeff\x20Dean,\x20and\x20others.\n\n\x20Th\ |
8322 | | e\x20messages\x20in\x20this\x20file\x20describe\x20the\x20definitions\ |
8323 | | \x20found\x20in\x20.proto\x20files.\n\x20A\x20valid\x20.proto\x20file\ |
8324 | | \x20can\x20be\x20translated\x20directly\x20to\x20a\x20FileDescriptorProt\ |
8325 | | o\n\x20without\x20any\x20other\x20information\x20(e.g.\x20without\x20rea\ |
8326 | | ding\x20its\x20imports).\n\n\x08\n\x01\x02\x12\x03)\0\x18\n\x08\n\x01\ |
8327 | | \x08\x12\x03+\0D\n\t\n\x02\x08\x0b\x12\x03+\0D\n\x08\n\x01\x08\x12\x03,\ |
8328 | | \0,\n\t\n\x02\x08\x01\x12\x03,\0,\n\x08\n\x01\x08\x12\x03-\01\n\t\n\x02\ |
8329 | | \x08\x08\x12\x03-\01\n\x08\n\x01\x08\x12\x03.\07\n\t\n\x02\x08%\x12\x03.\ |
8330 | | \07\n\x08\n\x01\x08\x12\x03/\0!\n\t\n\x02\x08$\x12\x03/\0!\n\x08\n\x01\ |
8331 | | \x08\x12\x030\0\x1f\n\t\n\x02\x08\x1f\x12\x030\0\x1f\n\x08\n\x01\x08\x12\ |
8332 | | \x034\0\x1c\n\x7f\n\x02\x08\t\x12\x034\0\x1c\x1at\x20descriptor.proto\ |
8333 | | \x20must\x20be\x20optimized\x20for\x20speed\x20because\x20reflection-bas\ |
8334 | | ed\n\x20algorithms\x20don't\x20work\x20during\x20bootstrapping.\n\nj\n\ |
8335 | | \x02\x04\0\x12\x048\0:\x01\x1a^\x20The\x20protocol\x20compiler\x20can\ |
8336 | | \x20output\x20a\x20FileDescriptorSet\x20containing\x20the\x20.proto\n\ |
8337 | | \x20files\x20it\x20parses.\n\n\n\n\x03\x04\0\x01\x12\x038\x08\x19\n\x0b\ |
8338 | | \n\x04\x04\0\x02\0\x12\x039\x02(\n\x0c\n\x05\x04\0\x02\0\x04\x12\x039\ |
8339 | | \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x039\x0b\x1e\n\x0c\n\x05\x04\0\ |
8340 | | \x02\0\x01\x12\x039\x1f#\n\x0c\n\x05\x04\0\x02\0\x03\x12\x039&'\n/\n\x02\ |
8341 | | \x04\x01\x12\x04=\0Z\x01\x1a#\x20Describes\x20a\x20complete\x20.proto\ |
8342 | | \x20file.\n\n\n\n\x03\x04\x01\x01\x12\x03=\x08\x1b\n9\n\x04\x04\x01\x02\ |
8343 | | \0\x12\x03>\x02\x1b\",\x20file\x20name,\x20relative\x20to\x20root\x20of\ |
8344 | | \x20source\x20tree\n\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03>\x02\n\n\x0c\ |
8345 | | \n\x05\x04\x01\x02\0\x05\x12\x03>\x0b\x11\n\x0c\n\x05\x04\x01\x02\0\x01\ |
8346 | | \x12\x03>\x12\x16\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03>\x19\x1a\n*\n\ |
8347 | | \x04\x04\x01\x02\x01\x12\x03?\x02\x1e\"\x1d\x20e.g.\x20\"foo\",\x20\"foo\ |
8348 | | .bar\",\x20etc.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03?\x02\n\n\x0c\n\ |
8349 | | \x05\x04\x01\x02\x01\x05\x12\x03?\x0b\x11\n\x0c\n\x05\x04\x01\x02\x01\ |
8350 | | \x01\x12\x03?\x12\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03?\x1c\x1d\n\ |
8351 | | 4\n\x04\x04\x01\x02\x02\x12\x03B\x02!\x1a'\x20Names\x20of\x20files\x20im\ |
8352 | | ported\x20by\x20this\x20file.\n\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x03B\ |
8353 | | \x02\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03B\x0b\x11\n\x0c\n\x05\x04\ |
8354 | | \x01\x02\x02\x01\x12\x03B\x12\x1c\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\ |
8355 | | \x03B\x1f\x20\nQ\n\x04\x04\x01\x02\x03\x12\x03D\x02(\x1aD\x20Indexes\x20\ |
8356 | | of\x20the\x20public\x20imported\x20files\x20in\x20the\x20dependency\x20l\ |
8357 | | ist\x20above.\n\n\x0c\n\x05\x04\x01\x02\x03\x04\x12\x03D\x02\n\n\x0c\n\ |
8358 | | \x05\x04\x01\x02\x03\x05\x12\x03D\x0b\x10\n\x0c\n\x05\x04\x01\x02\x03\ |
8359 | | \x01\x12\x03D\x11\"\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03D%'\nz\n\x04\ |
8360 | | \x04\x01\x02\x04\x12\x03G\x02&\x1am\x20Indexes\x20of\x20the\x20weak\x20i\ |
8361 | | mported\x20files\x20in\x20the\x20dependency\x20list.\n\x20For\x20Google-\ |
8362 | | internal\x20migration\x20only.\x20Do\x20not\x20use.\n\n\x0c\n\x05\x04\ |
8363 | | \x01\x02\x04\x04\x12\x03G\x02\n\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\x03G\ |
8364 | | \x0b\x10\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03G\x11\x20\n\x0c\n\x05\ |
8365 | | \x04\x01\x02\x04\x03\x12\x03G#%\n6\n\x04\x04\x01\x02\x05\x12\x03J\x02,\ |
8366 | | \x1a)\x20All\x20top-level\x20definitions\x20in\x20this\x20file.\n\n\x0c\ |
8367 | | \n\x05\x04\x01\x02\x05\x04\x12\x03J\x02\n\n\x0c\n\x05\x04\x01\x02\x05\ |
8368 | | \x06\x12\x03J\x0b\x1a\n\x0c\n\x05\x04\x01\x02\x05\x01\x12\x03J\x1b'\n\ |
8369 | | \x0c\n\x05\x04\x01\x02\x05\x03\x12\x03J*+\n\x0b\n\x04\x04\x01\x02\x06\ |
8370 | | \x12\x03K\x02-\n\x0c\n\x05\x04\x01\x02\x06\x04\x12\x03K\x02\n\n\x0c\n\ |
8371 | | \x05\x04\x01\x02\x06\x06\x12\x03K\x0b\x1e\n\x0c\n\x05\x04\x01\x02\x06\ |
8372 | | \x01\x12\x03K\x1f(\n\x0c\n\x05\x04\x01\x02\x06\x03\x12\x03K+,\n\x0b\n\ |
8373 | | \x04\x04\x01\x02\x07\x12\x03L\x02.\n\x0c\n\x05\x04\x01\x02\x07\x04\x12\ |
8374 | | \x03L\x02\n\n\x0c\n\x05\x04\x01\x02\x07\x06\x12\x03L\x0b!\n\x0c\n\x05\ |
8375 | | \x04\x01\x02\x07\x01\x12\x03L\")\n\x0c\n\x05\x04\x01\x02\x07\x03\x12\x03\ |
8376 | | L,-\n\x0b\n\x04\x04\x01\x02\x08\x12\x03M\x02.\n\x0c\n\x05\x04\x01\x02\ |
8377 | | \x08\x04\x12\x03M\x02\n\n\x0c\n\x05\x04\x01\x02\x08\x06\x12\x03M\x0b\x1f\ |
8378 | | \n\x0c\n\x05\x04\x01\x02\x08\x01\x12\x03M\x20)\n\x0c\n\x05\x04\x01\x02\ |
8379 | | \x08\x03\x12\x03M,-\n\x0b\n\x04\x04\x01\x02\t\x12\x03O\x02#\n\x0c\n\x05\ |
8380 | | \x04\x01\x02\t\x04\x12\x03O\x02\n\n\x0c\n\x05\x04\x01\x02\t\x06\x12\x03O\ |
8381 | | \x0b\x16\n\x0c\n\x05\x04\x01\x02\t\x01\x12\x03O\x17\x1e\n\x0c\n\x05\x04\ |
8382 | | \x01\x02\t\x03\x12\x03O!\"\n\xf4\x01\n\x04\x04\x01\x02\n\x12\x03U\x02/\ |
8383 | | \x1a\xe6\x01\x20This\x20field\x20contains\x20optional\x20information\x20\ |
8384 | | about\x20the\x20original\x20source\x20code.\n\x20You\x20may\x20safely\ |
8385 | | \x20remove\x20this\x20entire\x20field\x20without\x20harming\x20runtime\n\ |
8386 | | \x20functionality\x20of\x20the\x20descriptors\x20--\x20the\x20informatio\ |
8387 | | n\x20is\x20needed\x20only\x20by\n\x20development\x20tools.\n\n\x0c\n\x05\ |
8388 | | \x04\x01\x02\n\x04\x12\x03U\x02\n\n\x0c\n\x05\x04\x01\x02\n\x06\x12\x03U\ |
8389 | | \x0b\x19\n\x0c\n\x05\x04\x01\x02\n\x01\x12\x03U\x1a*\n\x0c\n\x05\x04\x01\ |
8390 | | \x02\n\x03\x12\x03U-.\n]\n\x04\x04\x01\x02\x0b\x12\x03Y\x02\x1e\x1aP\x20\ |
8391 | | The\x20syntax\x20of\x20the\x20proto\x20file.\n\x20The\x20supported\x20va\ |
8392 | | lues\x20are\x20\"proto2\"\x20and\x20\"proto3\".\n\n\x0c\n\x05\x04\x01\ |
8393 | | \x02\x0b\x04\x12\x03Y\x02\n\n\x0c\n\x05\x04\x01\x02\x0b\x05\x12\x03Y\x0b\ |
8394 | | \x11\n\x0c\n\x05\x04\x01\x02\x0b\x01\x12\x03Y\x12\x18\n\x0c\n\x05\x04\ |
8395 | | \x01\x02\x0b\x03\x12\x03Y\x1b\x1d\n'\n\x02\x04\x02\x12\x04]\0}\x01\x1a\ |
8396 | | \x1b\x20Describes\x20a\x20message\x20type.\n\n\n\n\x03\x04\x02\x01\x12\ |
8397 | | \x03]\x08\x17\n\x0b\n\x04\x04\x02\x02\0\x12\x03^\x02\x1b\n\x0c\n\x05\x04\ |
8398 | | \x02\x02\0\x04\x12\x03^\x02\n\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03^\x0b\ |
8399 | | \x11\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03^\x12\x16\n\x0c\n\x05\x04\x02\ |
8400 | | \x02\0\x03\x12\x03^\x19\x1a\n\x0b\n\x04\x04\x02\x02\x01\x12\x03`\x02*\n\ |
8401 | | \x0c\n\x05\x04\x02\x02\x01\x04\x12\x03`\x02\n\n\x0c\n\x05\x04\x02\x02\ |
8402 | | \x01\x06\x12\x03`\x0b\x1f\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03`\x20%\ |
8403 | | \n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03`()\n\x0b\n\x04\x04\x02\x02\x02\ |
8404 | | \x12\x03a\x02.\n\x0c\n\x05\x04\x02\x02\x02\x04\x12\x03a\x02\n\n\x0c\n\ |
8405 | | \x05\x04\x02\x02\x02\x06\x12\x03a\x0b\x1f\n\x0c\n\x05\x04\x02\x02\x02\ |
8406 | | \x01\x12\x03a\x20)\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03a,-\n\x0b\n\ |
8407 | | \x04\x04\x02\x02\x03\x12\x03c\x02+\n\x0c\n\x05\x04\x02\x02\x03\x04\x12\ |
8408 | | \x03c\x02\n\n\x0c\n\x05\x04\x02\x02\x03\x06\x12\x03c\x0b\x1a\n\x0c\n\x05\ |
8409 | | \x04\x02\x02\x03\x01\x12\x03c\x1b&\n\x0c\n\x05\x04\x02\x02\x03\x03\x12\ |
8410 | | \x03c)*\n\x0b\n\x04\x04\x02\x02\x04\x12\x03d\x02-\n\x0c\n\x05\x04\x02\ |
8411 | | \x02\x04\x04\x12\x03d\x02\n\n\x0c\n\x05\x04\x02\x02\x04\x06\x12\x03d\x0b\ |
8412 | | \x1e\n\x0c\n\x05\x04\x02\x02\x04\x01\x12\x03d\x1f(\n\x0c\n\x05\x04\x02\ |
8413 | | \x02\x04\x03\x12\x03d+,\n\x0c\n\x04\x04\x02\x03\0\x12\x04f\x02k\x03\n\ |
8414 | | \x0c\n\x05\x04\x02\x03\0\x01\x12\x03f\n\x18\n\x1b\n\x06\x04\x02\x03\0\ |
8415 | | \x02\0\x12\x03g\x04\x1d\"\x0c\x20Inclusive.\n\n\x0e\n\x07\x04\x02\x03\0\ |
8416 | | \x02\0\x04\x12\x03g\x04\x0c\n\x0e\n\x07\x04\x02\x03\0\x02\0\x05\x12\x03g\ |
8417 | | \r\x12\n\x0e\n\x07\x04\x02\x03\0\x02\0\x01\x12\x03g\x13\x18\n\x0e\n\x07\ |
8418 | | \x04\x02\x03\0\x02\0\x03\x12\x03g\x1b\x1c\n\x1b\n\x06\x04\x02\x03\0\x02\ |
8419 | | \x01\x12\x03h\x04\x1b\"\x0c\x20Exclusive.\n\n\x0e\n\x07\x04\x02\x03\0\ |
8420 | | \x02\x01\x04\x12\x03h\x04\x0c\n\x0e\n\x07\x04\x02\x03\0\x02\x01\x05\x12\ |
8421 | | \x03h\r\x12\n\x0e\n\x07\x04\x02\x03\0\x02\x01\x01\x12\x03h\x13\x16\n\x0e\ |
8422 | | \n\x07\x04\x02\x03\0\x02\x01\x03\x12\x03h\x19\x1a\n\r\n\x06\x04\x02\x03\ |
8423 | | \0\x02\x02\x12\x03j\x04/\n\x0e\n\x07\x04\x02\x03\0\x02\x02\x04\x12\x03j\ |
8424 | | \x04\x0c\n\x0e\n\x07\x04\x02\x03\0\x02\x02\x06\x12\x03j\r\"\n\x0e\n\x07\ |
8425 | | \x04\x02\x03\0\x02\x02\x01\x12\x03j#*\n\x0e\n\x07\x04\x02\x03\0\x02\x02\ |
8426 | | \x03\x12\x03j-.\n\x0b\n\x04\x04\x02\x02\x05\x12\x03l\x02.\n\x0c\n\x05\ |
8427 | | \x04\x02\x02\x05\x04\x12\x03l\x02\n\n\x0c\n\x05\x04\x02\x02\x05\x06\x12\ |
8428 | | \x03l\x0b\x19\n\x0c\n\x05\x04\x02\x02\x05\x01\x12\x03l\x1a)\n\x0c\n\x05\ |
8429 | | \x04\x02\x02\x05\x03\x12\x03l,-\n\x0b\n\x04\x04\x02\x02\x06\x12\x03n\x02\ |
8430 | | /\n\x0c\n\x05\x04\x02\x02\x06\x04\x12\x03n\x02\n\n\x0c\n\x05\x04\x02\x02\ |
8431 | | \x06\x06\x12\x03n\x0b\x1f\n\x0c\n\x05\x04\x02\x02\x06\x01\x12\x03n\x20*\ |
8432 | | \n\x0c\n\x05\x04\x02\x02\x06\x03\x12\x03n-.\n\x0b\n\x04\x04\x02\x02\x07\ |
8433 | | \x12\x03p\x02&\n\x0c\n\x05\x04\x02\x02\x07\x04\x12\x03p\x02\n\n\x0c\n\ |
8434 | | \x05\x04\x02\x02\x07\x06\x12\x03p\x0b\x19\n\x0c\n\x05\x04\x02\x02\x07\ |
8435 | | \x01\x12\x03p\x1a!\n\x0c\n\x05\x04\x02\x02\x07\x03\x12\x03p$%\n\xaa\x01\ |
8436 | | \n\x04\x04\x02\x03\x01\x12\x04u\x02x\x03\x1a\x9b\x01\x20Range\x20of\x20r\ |
8437 | | eserved\x20tag\x20numbers.\x20Reserved\x20tag\x20numbers\x20may\x20not\ |
8438 | | \x20be\x20used\x20by\n\x20fields\x20or\x20extension\x20ranges\x20in\x20t\ |
8439 | | he\x20same\x20message.\x20Reserved\x20ranges\x20may\n\x20not\x20overlap.\ |
8440 | | \n\n\x0c\n\x05\x04\x02\x03\x01\x01\x12\x03u\n\x17\n\x1b\n\x06\x04\x02\ |
8441 | | \x03\x01\x02\0\x12\x03v\x04\x1d\"\x0c\x20Inclusive.\n\n\x0e\n\x07\x04\ |
8442 | | \x02\x03\x01\x02\0\x04\x12\x03v\x04\x0c\n\x0e\n\x07\x04\x02\x03\x01\x02\ |
8443 | | \0\x05\x12\x03v\r\x12\n\x0e\n\x07\x04\x02\x03\x01\x02\0\x01\x12\x03v\x13\ |
8444 | | \x18\n\x0e\n\x07\x04\x02\x03\x01\x02\0\x03\x12\x03v\x1b\x1c\n\x1b\n\x06\ |
8445 | | \x04\x02\x03\x01\x02\x01\x12\x03w\x04\x1b\"\x0c\x20Exclusive.\n\n\x0e\n\ |
8446 | | \x07\x04\x02\x03\x01\x02\x01\x04\x12\x03w\x04\x0c\n\x0e\n\x07\x04\x02\ |
8447 | | \x03\x01\x02\x01\x05\x12\x03w\r\x12\n\x0e\n\x07\x04\x02\x03\x01\x02\x01\ |
8448 | | \x01\x12\x03w\x13\x16\n\x0e\n\x07\x04\x02\x03\x01\x02\x01\x03\x12\x03w\ |
8449 | | \x19\x1a\n\x0b\n\x04\x04\x02\x02\x08\x12\x03y\x02,\n\x0c\n\x05\x04\x02\ |
8450 | | \x02\x08\x04\x12\x03y\x02\n\n\x0c\n\x05\x04\x02\x02\x08\x06\x12\x03y\x0b\ |
8451 | | \x18\n\x0c\n\x05\x04\x02\x02\x08\x01\x12\x03y\x19'\n\x0c\n\x05\x04\x02\ |
8452 | | \x02\x08\x03\x12\x03y*+\n\x82\x01\n\x04\x04\x02\x02\t\x12\x03|\x02%\x1au\ |
8453 | | \x20Reserved\x20field\x20names,\x20which\x20may\x20not\x20be\x20used\x20\ |
8454 | | by\x20fields\x20in\x20the\x20same\x20message.\n\x20A\x20given\x20name\ |
8455 | | \x20may\x20only\x20be\x20reserved\x20once.\n\n\x0c\n\x05\x04\x02\x02\t\ |
8456 | | \x04\x12\x03|\x02\n\n\x0c\n\x05\x04\x02\x02\t\x05\x12\x03|\x0b\x11\n\x0c\ |
8457 | | \n\x05\x04\x02\x02\t\x01\x12\x03|\x12\x1f\n\x0c\n\x05\x04\x02\x02\t\x03\ |
8458 | | \x12\x03|\"$\n\x0b\n\x02\x04\x03\x12\x05\x7f\0\x86\x01\x01\n\n\n\x03\x04\ |
8459 | | \x03\x01\x12\x03\x7f\x08\x1d\nO\n\x04\x04\x03\x02\0\x12\x04\x81\x01\x02:\ |
8460 | | \x1aA\x20The\x20parser\x20stores\x20options\x20it\x20doesn't\x20recogniz\ |
8461 | | e\x20here.\x20See\x20above.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\x81\ |
8462 | | \x01\x02\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\x81\x01\x0b\x1e\n\r\n\x05\ |
8463 | | \x04\x03\x02\0\x01\x12\x04\x81\x01\x1f3\n\r\n\x05\x04\x03\x02\0\x03\x12\ |
8464 | | \x04\x81\x0169\nZ\n\x03\x04\x03\x05\x12\x04\x85\x01\x02\x19\x1aM\x20Clie\ |
8465 | | nts\x20can\x20define\x20custom\x20options\x20in\x20extensions\x20of\x20t\ |
8466 | | his\x20message.\x20See\x20above.\n\n\x0c\n\x04\x04\x03\x05\0\x12\x04\x85\ |
8467 | | \x01\r\x18\n\r\n\x05\x04\x03\x05\0\x01\x12\x04\x85\x01\r\x11\n\r\n\x05\ |
8468 | | \x04\x03\x05\0\x02\x12\x04\x85\x01\x15\x18\n3\n\x02\x04\x04\x12\x06\x89\ |
8469 | | \x01\0\xee\x01\x01\x1a%\x20Describes\x20a\x20field\x20within\x20a\x20mes\ |
8470 | | sage.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x89\x01\x08\x1c\n\x0e\n\x04\x04\ |
8471 | | \x04\x04\0\x12\x06\x8a\x01\x02\xa9\x01\x03\n\r\n\x05\x04\x04\x04\0\x01\ |
8472 | | \x12\x04\x8a\x01\x07\x0b\nS\n\x06\x04\x04\x04\0\x02\0\x12\x04\x8d\x01\ |
8473 | | \x04\x14\x1aC\x200\x20is\x20reserved\x20for\x20errors.\n\x20Order\x20is\ |
8474 | | \x20weird\x20for\x20historical\x20reasons.\n\n\x0f\n\x07\x04\x04\x04\0\ |
8475 | | \x02\0\x01\x12\x04\x8d\x01\x04\x0f\n\x0f\n\x07\x04\x04\x04\0\x02\0\x02\ |
8476 | | \x12\x04\x8d\x01\x12\x13\n\x0e\n\x06\x04\x04\x04\0\x02\x01\x12\x04\x8e\ |
8477 | | \x01\x04\x13\n\x0f\n\x07\x04\x04\x04\0\x02\x01\x01\x12\x04\x8e\x01\x04\ |
8478 | | \x0e\n\x0f\n\x07\x04\x04\x04\0\x02\x01\x02\x12\x04\x8e\x01\x11\x12\nw\n\ |
8479 | | \x06\x04\x04\x04\0\x02\x02\x12\x04\x91\x01\x04\x13\x1ag\x20Not\x20ZigZag\ |
8480 | | \x20encoded.\x20\x20Negative\x20numbers\x20take\x2010\x20bytes.\x20\x20U\ |
8481 | | se\x20TYPE_SINT64\x20if\n\x20negative\x20values\x20are\x20likely.\n\n\ |
8482 | | \x0f\n\x07\x04\x04\x04\0\x02\x02\x01\x12\x04\x91\x01\x04\x0e\n\x0f\n\x07\ |
8483 | | \x04\x04\x04\0\x02\x02\x02\x12\x04\x91\x01\x11\x12\n\x0e\n\x06\x04\x04\ |
8484 | | \x04\0\x02\x03\x12\x04\x92\x01\x04\x14\n\x0f\n\x07\x04\x04\x04\0\x02\x03\ |
8485 | | \x01\x12\x04\x92\x01\x04\x0f\n\x0f\n\x07\x04\x04\x04\0\x02\x03\x02\x12\ |
8486 | | \x04\x92\x01\x12\x13\nw\n\x06\x04\x04\x04\0\x02\x04\x12\x04\x95\x01\x04\ |
8487 | | \x13\x1ag\x20Not\x20ZigZag\x20encoded.\x20\x20Negative\x20numbers\x20tak\ |
8488 | | e\x2010\x20bytes.\x20\x20Use\x20TYPE_SINT32\x20if\n\x20negative\x20value\ |
8489 | | s\x20are\x20likely.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x04\x01\x12\x04\x95\ |
8490 | | \x01\x04\x0e\n\x0f\n\x07\x04\x04\x04\0\x02\x04\x02\x12\x04\x95\x01\x11\ |
8491 | | \x12\n\x0e\n\x06\x04\x04\x04\0\x02\x05\x12\x04\x96\x01\x04\x15\n\x0f\n\ |
8492 | | \x07\x04\x04\x04\0\x02\x05\x01\x12\x04\x96\x01\x04\x10\n\x0f\n\x07\x04\ |
8493 | | \x04\x04\0\x02\x05\x02\x12\x04\x96\x01\x13\x14\n\x0e\n\x06\x04\x04\x04\0\ |
8494 | | \x02\x06\x12\x04\x97\x01\x04\x15\n\x0f\n\x07\x04\x04\x04\0\x02\x06\x01\ |
8495 | | \x12\x04\x97\x01\x04\x10\n\x0f\n\x07\x04\x04\x04\0\x02\x06\x02\x12\x04\ |
8496 | | \x97\x01\x13\x14\n\x0e\n\x06\x04\x04\x04\0\x02\x07\x12\x04\x98\x01\x04\ |
8497 | | \x12\n\x0f\n\x07\x04\x04\x04\0\x02\x07\x01\x12\x04\x98\x01\x04\r\n\x0f\n\ |
8498 | | \x07\x04\x04\x04\0\x02\x07\x02\x12\x04\x98\x01\x10\x11\n\x0e\n\x06\x04\ |
8499 | | \x04\x04\0\x02\x08\x12\x04\x99\x01\x04\x14\n\x0f\n\x07\x04\x04\x04\0\x02\ |
8500 | | \x08\x01\x12\x04\x99\x01\x04\x0f\n\x0f\n\x07\x04\x04\x04\0\x02\x08\x02\ |
8501 | | \x12\x04\x99\x01\x12\x13\n\xe2\x01\n\x06\x04\x04\x04\0\x02\t\x12\x04\x9e\ |
8502 | | \x01\x04\x14\x1a\xd1\x01\x20Tag-delimited\x20aggregate.\n\x20Group\x20ty\ |
8503 | | pe\x20is\x20deprecated\x20and\x20not\x20supported\x20in\x20proto3.\x20Ho\ |
8504 | | wever,\x20Proto3\n\x20implementations\x20should\x20still\x20be\x20able\ |
8505 | | \x20to\x20parse\x20the\x20group\x20wire\x20format\x20and\n\x20treat\x20g\ |
8506 | | roup\x20fields\x20as\x20unknown\x20fields.\n\n\x0f\n\x07\x04\x04\x04\0\ |
8507 | | \x02\t\x01\x12\x04\x9e\x01\x04\x0e\n\x0f\n\x07\x04\x04\x04\0\x02\t\x02\ |
8508 | | \x12\x04\x9e\x01\x11\x13\n-\n\x06\x04\x04\x04\0\x02\n\x12\x04\x9f\x01\ |
8509 | | \x04\x16\"\x1d\x20Length-delimited\x20aggregate.\n\n\x0f\n\x07\x04\x04\ |
8510 | | \x04\0\x02\n\x01\x12\x04\x9f\x01\x04\x10\n\x0f\n\x07\x04\x04\x04\0\x02\n\ |
8511 | | \x02\x12\x04\x9f\x01\x13\x15\n#\n\x06\x04\x04\x04\0\x02\x0b\x12\x04\xa2\ |
8512 | | \x01\x04\x14\x1a\x13\x20New\x20in\x20version\x202.\n\n\x0f\n\x07\x04\x04\ |
8513 | | \x04\0\x02\x0b\x01\x12\x04\xa2\x01\x04\x0e\n\x0f\n\x07\x04\x04\x04\0\x02\ |
8514 | | \x0b\x02\x12\x04\xa2\x01\x11\x13\n\x0e\n\x06\x04\x04\x04\0\x02\x0c\x12\ |
8515 | | \x04\xa3\x01\x04\x15\n\x0f\n\x07\x04\x04\x04\0\x02\x0c\x01\x12\x04\xa3\ |
8516 | | \x01\x04\x0f\n\x0f\n\x07\x04\x04\x04\0\x02\x0c\x02\x12\x04\xa3\x01\x12\ |
8517 | | \x14\n\x0e\n\x06\x04\x04\x04\0\x02\r\x12\x04\xa4\x01\x04\x13\n\x0f\n\x07\ |
8518 | | \x04\x04\x04\0\x02\r\x01\x12\x04\xa4\x01\x04\r\n\x0f\n\x07\x04\x04\x04\0\ |
8519 | | \x02\r\x02\x12\x04\xa4\x01\x10\x12\n\x0e\n\x06\x04\x04\x04\0\x02\x0e\x12\ |
8520 | | \x04\xa5\x01\x04\x17\n\x0f\n\x07\x04\x04\x04\0\x02\x0e\x01\x12\x04\xa5\ |
8521 | | \x01\x04\x11\n\x0f\n\x07\x04\x04\x04\0\x02\x0e\x02\x12\x04\xa5\x01\x14\ |
8522 | | \x16\n\x0e\n\x06\x04\x04\x04\0\x02\x0f\x12\x04\xa6\x01\x04\x17\n\x0f\n\ |
8523 | | \x07\x04\x04\x04\0\x02\x0f\x01\x12\x04\xa6\x01\x04\x11\n\x0f\n\x07\x04\ |
8524 | | \x04\x04\0\x02\x0f\x02\x12\x04\xa6\x01\x14\x16\n'\n\x06\x04\x04\x04\0\ |
8525 | | \x02\x10\x12\x04\xa7\x01\x04\x15\"\x17\x20Uses\x20ZigZag\x20encoding.\n\ |
8526 | | \n\x0f\n\x07\x04\x04\x04\0\x02\x10\x01\x12\x04\xa7\x01\x04\x0f\n\x0f\n\ |
8527 | | \x07\x04\x04\x04\0\x02\x10\x02\x12\x04\xa7\x01\x12\x14\n'\n\x06\x04\x04\ |
8528 | | \x04\0\x02\x11\x12\x04\xa8\x01\x04\x15\"\x17\x20Uses\x20ZigZag\x20encodi\ |
8529 | | ng.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x11\x01\x12\x04\xa8\x01\x04\x0f\n\ |
8530 | | \x0f\n\x07\x04\x04\x04\0\x02\x11\x02\x12\x04\xa8\x01\x12\x14\n\x0e\n\x04\ |
8531 | | \x04\x04\x04\x01\x12\x06\xab\x01\x02\xb0\x01\x03\n\r\n\x05\x04\x04\x04\ |
8532 | | \x01\x01\x12\x04\xab\x01\x07\x0c\n*\n\x06\x04\x04\x04\x01\x02\0\x12\x04\ |
8533 | | \xad\x01\x04\x17\x1a\x1a\x200\x20is\x20reserved\x20for\x20errors\n\n\x0f\ |
8534 | | \n\x07\x04\x04\x04\x01\x02\0\x01\x12\x04\xad\x01\x04\x12\n\x0f\n\x07\x04\ |
8535 | | \x04\x04\x01\x02\0\x02\x12\x04\xad\x01\x15\x16\n\x0e\n\x06\x04\x04\x04\ |
8536 | | \x01\x02\x01\x12\x04\xae\x01\x04\x17\n\x0f\n\x07\x04\x04\x04\x01\x02\x01\ |
8537 | | \x01\x12\x04\xae\x01\x04\x12\n\x0f\n\x07\x04\x04\x04\x01\x02\x01\x02\x12\ |
8538 | | \x04\xae\x01\x15\x16\n\x0e\n\x06\x04\x04\x04\x01\x02\x02\x12\x04\xaf\x01\ |
8539 | | \x04\x17\n\x0f\n\x07\x04\x04\x04\x01\x02\x02\x01\x12\x04\xaf\x01\x04\x12\ |
8540 | | \n\x0f\n\x07\x04\x04\x04\x01\x02\x02\x02\x12\x04\xaf\x01\x15\x16\n\x0c\n\ |
8541 | | \x04\x04\x04\x02\0\x12\x04\xb2\x01\x02\x1b\n\r\n\x05\x04\x04\x02\0\x04\ |
8542 | | \x12\x04\xb2\x01\x02\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xb2\x01\x0b\ |
8543 | | \x11\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xb2\x01\x12\x16\n\r\n\x05\x04\ |
8544 | | \x04\x02\0\x03\x12\x04\xb2\x01\x19\x1a\n\x0c\n\x04\x04\x04\x02\x01\x12\ |
8545 | | \x04\xb3\x01\x02\x1c\n\r\n\x05\x04\x04\x02\x01\x04\x12\x04\xb3\x01\x02\n\ |
8546 | | \n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xb3\x01\x0b\x10\n\r\n\x05\x04\x04\ |
8547 | | \x02\x01\x01\x12\x04\xb3\x01\x11\x17\n\r\n\x05\x04\x04\x02\x01\x03\x12\ |
8548 | | \x04\xb3\x01\x1a\x1b\n\x0c\n\x04\x04\x04\x02\x02\x12\x04\xb4\x01\x02\x1b\ |
8549 | | \n\r\n\x05\x04\x04\x02\x02\x04\x12\x04\xb4\x01\x02\n\n\r\n\x05\x04\x04\ |
8550 | | \x02\x02\x06\x12\x04\xb4\x01\x0b\x10\n\r\n\x05\x04\x04\x02\x02\x01\x12\ |
8551 | | \x04\xb4\x01\x11\x16\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\xb4\x01\x19\ |
8552 | | \x1a\n\x9c\x01\n\x04\x04\x04\x02\x03\x12\x04\xb8\x01\x02\x19\x1a\x8d\x01\ |
8553 | | \x20If\x20type_name\x20is\x20set,\x20this\x20need\x20not\x20be\x20set.\ |
8554 | | \x20\x20If\x20both\x20this\x20and\x20type_name\n\x20are\x20set,\x20this\ |
8555 | | \x20must\x20be\x20one\x20of\x20TYPE_ENUM,\x20TYPE_MESSAGE\x20or\x20TYPE_\ |
8556 | | GROUP.\n\n\r\n\x05\x04\x04\x02\x03\x04\x12\x04\xb8\x01\x02\n\n\r\n\x05\ |
8557 | | \x04\x04\x02\x03\x06\x12\x04\xb8\x01\x0b\x0f\n\r\n\x05\x04\x04\x02\x03\ |
8558 | | \x01\x12\x04\xb8\x01\x10\x14\n\r\n\x05\x04\x04\x02\x03\x03\x12\x04\xb8\ |
8559 | | \x01\x17\x18\n\xb7\x02\n\x04\x04\x04\x02\x04\x12\x04\xbf\x01\x02\x20\x1a\ |
8560 | | \xa8\x02\x20For\x20message\x20and\x20enum\x20types,\x20this\x20is\x20the\ |
8561 | | \x20name\x20of\x20the\x20type.\x20\x20If\x20the\x20name\n\x20starts\x20w\ |
8562 | | ith\x20a\x20'.',\x20it\x20is\x20fully-qualified.\x20\x20Otherwise,\x20C+\ |
8563 | | +-like\x20scoping\n\x20rules\x20are\x20used\x20to\x20find\x20the\x20type\ |
8564 | | \x20(i.e.\x20first\x20the\x20nested\x20types\x20within\x20this\n\x20mess\ |
8565 | | age\x20are\x20searched,\x20then\x20within\x20the\x20parent,\x20on\x20up\ |
8566 | | \x20to\x20the\x20root\n\x20namespace).\n\n\r\n\x05\x04\x04\x02\x04\x04\ |
8567 | | \x12\x04\xbf\x01\x02\n\n\r\n\x05\x04\x04\x02\x04\x05\x12\x04\xbf\x01\x0b\ |
8568 | | \x11\n\r\n\x05\x04\x04\x02\x04\x01\x12\x04\xbf\x01\x12\x1b\n\r\n\x05\x04\ |
8569 | | \x04\x02\x04\x03\x12\x04\xbf\x01\x1e\x1f\n~\n\x04\x04\x04\x02\x05\x12\ |
8570 | | \x04\xc3\x01\x02\x1f\x1ap\x20For\x20extensions,\x20this\x20is\x20the\x20\ |
8571 | | name\x20of\x20the\x20type\x20being\x20extended.\x20\x20It\x20is\n\x20res\ |
8572 | | olved\x20in\x20the\x20same\x20manner\x20as\x20type_name.\n\n\r\n\x05\x04\ |
8573 | | \x04\x02\x05\x04\x12\x04\xc3\x01\x02\n\n\r\n\x05\x04\x04\x02\x05\x05\x12\ |
8574 | | \x04\xc3\x01\x0b\x11\n\r\n\x05\x04\x04\x02\x05\x01\x12\x04\xc3\x01\x12\ |
8575 | | \x1a\n\r\n\x05\x04\x04\x02\x05\x03\x12\x04\xc3\x01\x1d\x1e\n\xb1\x02\n\ |
8576 | | \x04\x04\x04\x02\x06\x12\x04\xca\x01\x02$\x1a\xa2\x02\x20For\x20numeric\ |
8577 | | \x20types,\x20contains\x20the\x20original\x20text\x20representation\x20o\ |
8578 | | f\x20the\x20value.\n\x20For\x20booleans,\x20\"true\"\x20or\x20\"false\".\ |
8579 | | \n\x20For\x20strings,\x20contains\x20the\x20default\x20text\x20contents\ |
8580 | | \x20(not\x20escaped\x20in\x20any\x20way).\n\x20For\x20bytes,\x20contains\ |
8581 | | \x20the\x20C\x20escaped\x20value.\x20\x20All\x20bytes\x20>=\x20128\x20ar\ |
8582 | | e\x20escaped.\n\x20TODO(kenton):\x20\x20Base-64\x20encode?\n\n\r\n\x05\ |
8583 | | \x04\x04\x02\x06\x04\x12\x04\xca\x01\x02\n\n\r\n\x05\x04\x04\x02\x06\x05\ |
8584 | | \x12\x04\xca\x01\x0b\x11\n\r\n\x05\x04\x04\x02\x06\x01\x12\x04\xca\x01\ |
8585 | | \x12\x1f\n\r\n\x05\x04\x04\x02\x06\x03\x12\x04\xca\x01\"#\n\x84\x01\n\ |
8586 | | \x04\x04\x04\x02\x07\x12\x04\xce\x01\x02!\x1av\x20If\x20set,\x20gives\ |
8587 | | \x20the\x20index\x20of\x20a\x20oneof\x20in\x20the\x20containing\x20type'\ |
8588 | | s\x20oneof_decl\n\x20list.\x20\x20This\x20field\x20is\x20a\x20member\x20\ |
8589 | | of\x20that\x20oneof.\n\n\r\n\x05\x04\x04\x02\x07\x04\x12\x04\xce\x01\x02\ |
8590 | | \n\n\r\n\x05\x04\x04\x02\x07\x05\x12\x04\xce\x01\x0b\x10\n\r\n\x05\x04\ |
8591 | | \x04\x02\x07\x01\x12\x04\xce\x01\x11\x1c\n\r\n\x05\x04\x04\x02\x07\x03\ |
8592 | | \x12\x04\xce\x01\x1f\x20\n\xfa\x01\n\x04\x04\x04\x02\x08\x12\x04\xd4\x01\ |
8593 | | \x02!\x1a\xeb\x01\x20JSON\x20name\x20of\x20this\x20field.\x20The\x20valu\ |
8594 | | e\x20is\x20set\x20by\x20protocol\x20compiler.\x20If\x20the\n\x20user\x20\ |
8595 | | has\x20set\x20a\x20\"json_name\"\x20option\x20on\x20this\x20field,\x20th\ |
8596 | | at\x20option's\x20value\n\x20will\x20be\x20used.\x20Otherwise,\x20it's\ |
8597 | | \x20deduced\x20from\x20the\x20field's\x20name\x20by\x20converting\n\x20i\ |
8598 | | t\x20to\x20camelCase.\n\n\r\n\x05\x04\x04\x02\x08\x04\x12\x04\xd4\x01\ |
8599 | | \x02\n\n\r\n\x05\x04\x04\x02\x08\x05\x12\x04\xd4\x01\x0b\x11\n\r\n\x05\ |
8600 | | \x04\x04\x02\x08\x01\x12\x04\xd4\x01\x12\x1b\n\r\n\x05\x04\x04\x02\x08\ |
8601 | | \x03\x12\x04\xd4\x01\x1e\x20\n\x0c\n\x04\x04\x04\x02\t\x12\x04\xd6\x01\ |
8602 | | \x02$\n\r\n\x05\x04\x04\x02\t\x04\x12\x04\xd6\x01\x02\n\n\r\n\x05\x04\ |
8603 | | \x04\x02\t\x06\x12\x04\xd6\x01\x0b\x17\n\r\n\x05\x04\x04\x02\t\x01\x12\ |
8604 | | \x04\xd6\x01\x18\x1f\n\r\n\x05\x04\x04\x02\t\x03\x12\x04\xd6\x01\"#\n\ |
8605 | | \xb3\t\n\x04\x04\x04\x02\n\x12\x04\xed\x01\x02%\x1a\xa4\t\x20If\x20true,\ |
8606 | | \x20this\x20is\x20a\x20proto3\x20\"optional\".\x20When\x20a\x20proto3\ |
8607 | | \x20field\x20is\x20optional,\x20it\n\x20tracks\x20presence\x20regardless\ |
8608 | | \x20of\x20field\x20type.\n\n\x20When\x20proto3_optional\x20is\x20true,\ |
8609 | | \x20this\x20field\x20must\x20be\x20belong\x20to\x20a\x20oneof\x20to\n\ |
8610 | | \x20signal\x20to\x20old\x20proto3\x20clients\x20that\x20presence\x20is\ |
8611 | | \x20tracked\x20for\x20this\x20field.\x20This\n\x20oneof\x20is\x20known\ |
8612 | | \x20as\x20a\x20\"synthetic\"\x20oneof,\x20and\x20this\x20field\x20must\ |
8613 | | \x20be\x20its\x20sole\n\x20member\x20(each\x20proto3\x20optional\x20fiel\ |
8614 | | d\x20gets\x20its\x20own\x20synthetic\x20oneof).\x20Synthetic\n\x20oneofs\ |
8615 | | \x20exist\x20in\x20the\x20descriptor\x20only,\x20and\x20do\x20not\x20gen\ |
8616 | | erate\x20any\x20API.\x20Synthetic\n\x20oneofs\x20must\x20be\x20ordered\ |
8617 | | \x20after\x20all\x20\"real\"\x20oneofs.\n\n\x20For\x20message\x20fields,\ |
8618 | | \x20proto3_optional\x20doesn't\x20create\x20any\x20semantic\x20change,\n\ |
8619 | | \x20since\x20non-repeated\x20message\x20fields\x20always\x20track\x20pre\ |
8620 | | sence.\x20However\x20it\x20still\n\x20indicates\x20the\x20semantic\x20de\ |
8621 | | tail\x20of\x20whether\x20the\x20user\x20wrote\x20\"optional\"\x20or\x20n\ |
8622 | | ot.\n\x20This\x20can\x20be\x20useful\x20for\x20round-tripping\x20the\x20\ |
8623 | | .proto\x20file.\x20For\x20consistency\x20we\n\x20give\x20message\x20fiel\ |
8624 | | ds\x20a\x20synthetic\x20oneof\x20also,\x20even\x20though\x20it\x20is\x20\ |
8625 | | not\x20required\n\x20to\x20track\x20presence.\x20This\x20is\x20especiall\ |
8626 | | y\x20important\x20because\x20the\x20parser\x20can't\n\x20tell\x20if\x20a\ |
8627 | | \x20field\x20is\x20a\x20message\x20or\x20an\x20enum,\x20so\x20it\x20must\ |
8628 | | \x20always\x20create\x20a\n\x20synthetic\x20oneof.\n\n\x20Proto2\x20opti\ |
8629 | | onal\x20fields\x20do\x20not\x20set\x20this\x20flag,\x20because\x20they\ |
8630 | | \x20already\x20indicate\n\x20optional\x20with\x20`LABEL_OPTIONAL`.\n\n\r\ |
8631 | | \n\x05\x04\x04\x02\n\x04\x12\x04\xed\x01\x02\n\n\r\n\x05\x04\x04\x02\n\ |
8632 | | \x05\x12\x04\xed\x01\x0b\x0f\n\r\n\x05\x04\x04\x02\n\x01\x12\x04\xed\x01\ |
8633 | | \x10\x1f\n\r\n\x05\x04\x04\x02\n\x03\x12\x04\xed\x01\"$\n\"\n\x02\x04\ |
8634 | | \x05\x12\x06\xf1\x01\0\xf4\x01\x01\x1a\x14\x20Describes\x20a\x20oneof.\n\ |
8635 | | \n\x0b\n\x03\x04\x05\x01\x12\x04\xf1\x01\x08\x1c\n\x0c\n\x04\x04\x05\x02\ |
8636 | | \0\x12\x04\xf2\x01\x02\x1b\n\r\n\x05\x04\x05\x02\0\x04\x12\x04\xf2\x01\ |
8637 | | \x02\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xf2\x01\x0b\x11\n\r\n\x05\x04\ |
8638 | | \x05\x02\0\x01\x12\x04\xf2\x01\x12\x16\n\r\n\x05\x04\x05\x02\0\x03\x12\ |
8639 | | \x04\xf2\x01\x19\x1a\n\x0c\n\x04\x04\x05\x02\x01\x12\x04\xf3\x01\x02$\n\ |
8640 | | \r\n\x05\x04\x05\x02\x01\x04\x12\x04\xf3\x01\x02\n\n\r\n\x05\x04\x05\x02\ |
8641 | | \x01\x06\x12\x04\xf3\x01\x0b\x17\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\ |
8642 | | \xf3\x01\x18\x1f\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xf3\x01\"#\n'\n\ |
8643 | | \x02\x04\x06\x12\x06\xf7\x01\0\x91\x02\x01\x1a\x19\x20Describes\x20an\ |
8644 | | \x20enum\x20type.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xf7\x01\x08\x1b\n\ |
8645 | | \x0c\n\x04\x04\x06\x02\0\x12\x04\xf8\x01\x02\x1b\n\r\n\x05\x04\x06\x02\0\ |
8646 | | \x04\x12\x04\xf8\x01\x02\n\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xf8\x01\ |
8647 | | \x0b\x11\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xf8\x01\x12\x16\n\r\n\x05\ |
8648 | | \x04\x06\x02\0\x03\x12\x04\xf8\x01\x19\x1a\n\x0c\n\x04\x04\x06\x02\x01\ |
8649 | | \x12\x04\xfa\x01\x02.\n\r\n\x05\x04\x06\x02\x01\x04\x12\x04\xfa\x01\x02\ |
8650 | | \n\n\r\n\x05\x04\x06\x02\x01\x06\x12\x04\xfa\x01\x0b#\n\r\n\x05\x04\x06\ |
8651 | | \x02\x01\x01\x12\x04\xfa\x01$)\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xfa\ |
8652 | | \x01,-\n\x0c\n\x04\x04\x06\x02\x02\x12\x04\xfc\x01\x02#\n\r\n\x05\x04\ |
8653 | | \x06\x02\x02\x04\x12\x04\xfc\x01\x02\n\n\r\n\x05\x04\x06\x02\x02\x06\x12\ |
8654 | | \x04\xfc\x01\x0b\x16\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\xfc\x01\x17\ |
8655 | | \x1e\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\xfc\x01!\"\n\xaf\x02\n\x04\ |
8656 | | \x04\x06\x03\0\x12\x06\x84\x02\x02\x87\x02\x03\x1a\x9e\x02\x20Range\x20o\ |
8657 | | f\x20reserved\x20numeric\x20values.\x20Reserved\x20values\x20may\x20not\ |
8658 | | \x20be\x20used\x20by\n\x20entries\x20in\x20the\x20same\x20enum.\x20Reser\ |
8659 | | ved\x20ranges\x20may\x20not\x20overlap.\n\n\x20Note\x20that\x20this\x20i\ |
8660 | | s\x20distinct\x20from\x20DescriptorProto.ReservedRange\x20in\x20that\x20\ |
8661 | | it\n\x20is\x20inclusive\x20such\x20that\x20it\x20can\x20appropriately\ |
8662 | | \x20represent\x20the\x20entire\x20int32\n\x20domain.\n\n\r\n\x05\x04\x06\ |
8663 | | \x03\0\x01\x12\x04\x84\x02\n\x1b\n\x1c\n\x06\x04\x06\x03\0\x02\0\x12\x04\ |
8664 | | \x85\x02\x04\x1d\"\x0c\x20Inclusive.\n\n\x0f\n\x07\x04\x06\x03\0\x02\0\ |
8665 | | \x04\x12\x04\x85\x02\x04\x0c\n\x0f\n\x07\x04\x06\x03\0\x02\0\x05\x12\x04\ |
8666 | | \x85\x02\r\x12\n\x0f\n\x07\x04\x06\x03\0\x02\0\x01\x12\x04\x85\x02\x13\ |
8667 | | \x18\n\x0f\n\x07\x04\x06\x03\0\x02\0\x03\x12\x04\x85\x02\x1b\x1c\n\x1c\n\ |
8668 | | \x06\x04\x06\x03\0\x02\x01\x12\x04\x86\x02\x04\x1b\"\x0c\x20Inclusive.\n\ |
8669 | | \n\x0f\n\x07\x04\x06\x03\0\x02\x01\x04\x12\x04\x86\x02\x04\x0c\n\x0f\n\ |
8670 | | \x07\x04\x06\x03\0\x02\x01\x05\x12\x04\x86\x02\r\x12\n\x0f\n\x07\x04\x06\ |
8671 | | \x03\0\x02\x01\x01\x12\x04\x86\x02\x13\x16\n\x0f\n\x07\x04\x06\x03\0\x02\ |
8672 | | \x01\x03\x12\x04\x86\x02\x19\x1a\n\xaa\x01\n\x04\x04\x06\x02\x03\x12\x04\ |
8673 | | \x8c\x02\x020\x1a\x9b\x01\x20Range\x20of\x20reserved\x20numeric\x20value\ |
8674 | | s.\x20Reserved\x20numeric\x20values\x20may\x20not\x20be\x20used\n\x20by\ |
8675 | | \x20enum\x20values\x20in\x20the\x20same\x20enum\x20declaration.\x20Reser\ |
8676 | | ved\x20ranges\x20may\x20not\n\x20overlap.\n\n\r\n\x05\x04\x06\x02\x03\ |
8677 | | \x04\x12\x04\x8c\x02\x02\n\n\r\n\x05\x04\x06\x02\x03\x06\x12\x04\x8c\x02\ |
8678 | | \x0b\x1c\n\r\n\x05\x04\x06\x02\x03\x01\x12\x04\x8c\x02\x1d+\n\r\n\x05\ |
8679 | | \x04\x06\x02\x03\x03\x12\x04\x8c\x02./\nl\n\x04\x04\x06\x02\x04\x12\x04\ |
8680 | | \x90\x02\x02$\x1a^\x20Reserved\x20enum\x20value\x20names,\x20which\x20ma\ |
8681 | | y\x20not\x20be\x20reused.\x20A\x20given\x20name\x20may\x20only\n\x20be\ |
8682 | | \x20reserved\x20once.\n\n\r\n\x05\x04\x06\x02\x04\x04\x12\x04\x90\x02\ |
8683 | | \x02\n\n\r\n\x05\x04\x06\x02\x04\x05\x12\x04\x90\x02\x0b\x11\n\r\n\x05\ |
8684 | | \x04\x06\x02\x04\x01\x12\x04\x90\x02\x12\x1f\n\r\n\x05\x04\x06\x02\x04\ |
8685 | | \x03\x12\x04\x90\x02\"#\n1\n\x02\x04\x07\x12\x06\x94\x02\0\x99\x02\x01\ |
8686 | | \x1a#\x20Describes\x20a\x20value\x20within\x20an\x20enum.\n\n\x0b\n\x03\ |
8687 | | \x04\x07\x01\x12\x04\x94\x02\x08\x20\n\x0c\n\x04\x04\x07\x02\0\x12\x04\ |
8688 | | \x95\x02\x02\x1b\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\x95\x02\x02\n\n\r\n\ |
8689 | | \x05\x04\x07\x02\0\x05\x12\x04\x95\x02\x0b\x11\n\r\n\x05\x04\x07\x02\0\ |
8690 | | \x01\x12\x04\x95\x02\x12\x16\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\x95\x02\ |
8691 | | \x19\x1a\n\x0c\n\x04\x04\x07\x02\x01\x12\x04\x96\x02\x02\x1c\n\r\n\x05\ |
8692 | | \x04\x07\x02\x01\x04\x12\x04\x96\x02\x02\n\n\r\n\x05\x04\x07\x02\x01\x05\ |
8693 | | \x12\x04\x96\x02\x0b\x10\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\x96\x02\ |
8694 | | \x11\x17\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\x96\x02\x1a\x1b\n\x0c\n\ |
8695 | | \x04\x04\x07\x02\x02\x12\x04\x98\x02\x02(\n\r\n\x05\x04\x07\x02\x02\x04\ |
8696 | | \x12\x04\x98\x02\x02\n\n\r\n\x05\x04\x07\x02\x02\x06\x12\x04\x98\x02\x0b\ |
8697 | | \x1b\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\x98\x02\x1c#\n\r\n\x05\x04\ |
8698 | | \x07\x02\x02\x03\x12\x04\x98\x02&'\n$\n\x02\x04\x08\x12\x06\x9c\x02\0\ |
8699 | | \xa1\x02\x01\x1a\x16\x20Describes\x20a\x20service.\n\n\x0b\n\x03\x04\x08\ |
8700 | | \x01\x12\x04\x9c\x02\x08\x1e\n\x0c\n\x04\x04\x08\x02\0\x12\x04\x9d\x02\ |
8701 | | \x02\x1b\n\r\n\x05\x04\x08\x02\0\x04\x12\x04\x9d\x02\x02\n\n\r\n\x05\x04\ |
8702 | | \x08\x02\0\x05\x12\x04\x9d\x02\x0b\x11\n\r\n\x05\x04\x08\x02\0\x01\x12\ |
8703 | | \x04\x9d\x02\x12\x16\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\x9d\x02\x19\x1a\ |
8704 | | \n\x0c\n\x04\x04\x08\x02\x01\x12\x04\x9e\x02\x02,\n\r\n\x05\x04\x08\x02\ |
8705 | | \x01\x04\x12\x04\x9e\x02\x02\n\n\r\n\x05\x04\x08\x02\x01\x06\x12\x04\x9e\ |
8706 | | \x02\x0b\x20\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\x9e\x02!'\n\r\n\x05\ |
8707 | | \x04\x08\x02\x01\x03\x12\x04\x9e\x02*+\n\x0c\n\x04\x04\x08\x02\x02\x12\ |
8708 | | \x04\xa0\x02\x02&\n\r\n\x05\x04\x08\x02\x02\x04\x12\x04\xa0\x02\x02\n\n\ |
8709 | | \r\n\x05\x04\x08\x02\x02\x06\x12\x04\xa0\x02\x0b\x19\n\r\n\x05\x04\x08\ |
8710 | | \x02\x02\x01\x12\x04\xa0\x02\x1a!\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\ |
8711 | | \xa0\x02$%\n0\n\x02\x04\t\x12\x06\xa4\x02\0\xb2\x02\x01\x1a\"\x20Describ\ |
8712 | | es\x20a\x20method\x20of\x20a\x20service.\n\n\x0b\n\x03\x04\t\x01\x12\x04\ |
8713 | | \xa4\x02\x08\x1d\n\x0c\n\x04\x04\t\x02\0\x12\x04\xa5\x02\x02\x1b\n\r\n\ |
8714 | | \x05\x04\t\x02\0\x04\x12\x04\xa5\x02\x02\n\n\r\n\x05\x04\t\x02\0\x05\x12\ |
8715 | | \x04\xa5\x02\x0b\x11\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xa5\x02\x12\x16\n\ |
8716 | | \r\n\x05\x04\t\x02\0\x03\x12\x04\xa5\x02\x19\x1a\n\x97\x01\n\x04\x04\t\ |
8717 | | \x02\x01\x12\x04\xa9\x02\x02!\x1a\x88\x01\x20Input\x20and\x20output\x20t\ |
8718 | | ype\x20names.\x20\x20These\x20are\x20resolved\x20in\x20the\x20same\x20wa\ |
8719 | | y\x20as\n\x20FieldDescriptorProto.type_name,\x20but\x20must\x20refer\x20\ |
8720 | | to\x20a\x20message\x20type.\n\n\r\n\x05\x04\t\x02\x01\x04\x12\x04\xa9\ |
8721 | | \x02\x02\n\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\xa9\x02\x0b\x11\n\r\n\x05\ |
8722 | | \x04\t\x02\x01\x01\x12\x04\xa9\x02\x12\x1c\n\r\n\x05\x04\t\x02\x01\x03\ |
8723 | | \x12\x04\xa9\x02\x1f\x20\n\x0c\n\x04\x04\t\x02\x02\x12\x04\xaa\x02\x02\"\ |
8724 | | \n\r\n\x05\x04\t\x02\x02\x04\x12\x04\xaa\x02\x02\n\n\r\n\x05\x04\t\x02\ |
8725 | | \x02\x05\x12\x04\xaa\x02\x0b\x11\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xaa\ |
8726 | | \x02\x12\x1d\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xaa\x02\x20!\n\x0c\n\ |
8727 | | \x04\x04\t\x02\x03\x12\x04\xac\x02\x02%\n\r\n\x05\x04\t\x02\x03\x04\x12\ |
8728 | | \x04\xac\x02\x02\n\n\r\n\x05\x04\t\x02\x03\x06\x12\x04\xac\x02\x0b\x18\n\ |
8729 | | \r\n\x05\x04\t\x02\x03\x01\x12\x04\xac\x02\x19\x20\n\r\n\x05\x04\t\x02\ |
8730 | | \x03\x03\x12\x04\xac\x02#$\nE\n\x04\x04\t\x02\x04\x12\x04\xaf\x02\x027\ |
8731 | | \x1a7\x20Identifies\x20if\x20client\x20streams\x20multiple\x20client\x20\ |
8732 | | messages\n\n\r\n\x05\x04\t\x02\x04\x04\x12\x04\xaf\x02\x02\n\n\r\n\x05\ |
8733 | | \x04\t\x02\x04\x05\x12\x04\xaf\x02\x0b\x0f\n\r\n\x05\x04\t\x02\x04\x01\ |
8734 | | \x12\x04\xaf\x02\x10\x20\n\r\n\x05\x04\t\x02\x04\x03\x12\x04\xaf\x02#$\n\ |
8735 | | \r\n\x05\x04\t\x02\x04\x08\x12\x04\xaf\x02%6\n\r\n\x05\x04\t\x02\x04\x07\ |
8736 | | \x12\x04\xaf\x0205\nE\n\x04\x04\t\x02\x05\x12\x04\xb1\x02\x027\x1a7\x20I\ |
8737 | | dentifies\x20if\x20server\x20streams\x20multiple\x20server\x20messages\n\ |
8738 | | \n\r\n\x05\x04\t\x02\x05\x04\x12\x04\xb1\x02\x02\n\n\r\n\x05\x04\t\x02\ |
8739 | | \x05\x05\x12\x04\xb1\x02\x0b\x0f\n\r\n\x05\x04\t\x02\x05\x01\x12\x04\xb1\ |
8740 | | \x02\x10\x20\n\r\n\x05\x04\t\x02\x05\x03\x12\x04\xb1\x02#$\n\r\n\x05\x04\ |
8741 | | \t\x02\x05\x08\x12\x04\xb1\x02%6\n\r\n\x05\x04\t\x02\x05\x07\x12\x04\xb1\ |
8742 | | \x0205\n\xaf\x0e\n\x02\x04\n\x12\x06\xd5\x02\0\xd0\x03\x012N\x20========\ |
8743 | | ===========================================================\n\x20Options\ |
8744 | | \n2\xd0\r\x20Each\x20of\x20the\x20definitions\x20above\x20may\x20have\ |
8745 | | \x20\"options\"\x20attached.\x20\x20These\x20are\n\x20just\x20annotation\ |
8746 | | s\x20which\x20may\x20cause\x20code\x20to\x20be\x20generated\x20slightly\ |
8747 | | \x20differently\n\x20or\x20may\x20contain\x20hints\x20for\x20code\x20tha\ |
8748 | | t\x20manipulates\x20protocol\x20messages.\n\n\x20Clients\x20may\x20defin\ |
8749 | | e\x20custom\x20options\x20as\x20extensions\x20of\x20the\x20*Options\x20m\ |
8750 | | essages.\n\x20These\x20extensions\x20may\x20not\x20yet\x20be\x20known\ |
8751 | | \x20at\x20parsing\x20time,\x20so\x20the\x20parser\x20cannot\n\x20store\ |
8752 | | \x20the\x20values\x20in\x20them.\x20\x20Instead\x20it\x20stores\x20them\ |
8753 | | \x20in\x20a\x20field\x20in\x20the\x20*Options\n\x20message\x20called\x20\ |
8754 | | uninterpreted_option.\x20This\x20field\x20must\x20have\x20the\x20same\ |
8755 | | \x20name\n\x20across\x20all\x20*Options\x20messages.\x20We\x20then\x20us\ |
8756 | | e\x20this\x20field\x20to\x20populate\x20the\n\x20extensions\x20when\x20w\ |
8757 | | e\x20build\x20a\x20descriptor,\x20at\x20which\x20point\x20all\x20protos\ |
8758 | | \x20have\x20been\n\x20parsed\x20and\x20so\x20all\x20extensions\x20are\ |
8759 | | \x20known.\n\n\x20Extension\x20numbers\x20for\x20custom\x20options\x20ma\ |
8760 | | y\x20be\x20chosen\x20as\x20follows:\n\x20*\x20For\x20options\x20which\ |
8761 | | \x20will\x20only\x20be\x20used\x20within\x20a\x20single\x20application\ |
8762 | | \x20or\n\x20\x20\x20organization,\x20or\x20for\x20experimental\x20option\ |
8763 | | s,\x20use\x20field\x20numbers\x2050000\n\x20\x20\x20through\x2099999.\ |
8764 | | \x20\x20It\x20is\x20up\x20to\x20you\x20to\x20ensure\x20that\x20you\x20do\ |
8765 | | \x20not\x20use\x20the\n\x20\x20\x20same\x20number\x20for\x20multiple\x20\ |
8766 | | options.\n\x20*\x20For\x20options\x20which\x20will\x20be\x20published\ |
8767 | | \x20and\x20used\x20publicly\x20by\x20multiple\n\x20\x20\x20independent\ |
8768 | | \x20entities,\x20e-mail\x20protobuf-global-extension-registry@google.com\ |
8769 | | \n\x20\x20\x20to\x20reserve\x20extension\x20numbers.\x20Simply\x20provid\ |
8770 | | e\x20your\x20project\x20name\x20(e.g.\n\x20\x20\x20Objective-C\x20plugin\ |
8771 | | )\x20and\x20your\x20project\x20website\x20(if\x20available)\x20--\x20the\ |
8772 | | re's\x20no\n\x20\x20\x20need\x20to\x20explain\x20how\x20you\x20intend\ |
8773 | | \x20to\x20use\x20them.\x20Usually\x20you\x20only\x20need\x20one\n\x20\ |
8774 | | \x20\x20extension\x20number.\x20You\x20can\x20declare\x20multiple\x20opt\ |
8775 | | ions\x20with\x20only\x20one\x20extension\n\x20\x20\x20number\x20by\x20pu\ |
8776 | | tting\x20them\x20in\x20a\x20sub-message.\x20See\x20the\x20Custom\x20Opti\ |
8777 | | ons\x20section\x20of\n\x20\x20\x20the\x20docs\x20for\x20examples:\n\x20\ |
8778 | | \x20\x20https://developers.google.com/protocol-buffers/docs/proto#option\ |
8779 | | s\n\x20\x20\x20If\x20this\x20turns\x20out\x20to\x20be\x20popular,\x20a\ |
8780 | | \x20web\x20service\x20will\x20be\x20set\x20up\n\x20\x20\x20to\x20automat\ |
8781 | | ically\x20assign\x20option\x20numbers.\n\n\x0b\n\x03\x04\n\x01\x12\x04\ |
8782 | | \xd5\x02\x08\x13\n\xf4\x01\n\x04\x04\n\x02\0\x12\x04\xdb\x02\x02#\x1a\ |
8783 | | \xe5\x01\x20Sets\x20the\x20Java\x20package\x20where\x20classes\x20genera\ |
8784 | | ted\x20from\x20this\x20.proto\x20will\x20be\n\x20placed.\x20\x20By\x20de\ |
8785 | | fault,\x20the\x20proto\x20package\x20is\x20used,\x20but\x20this\x20is\ |
8786 | | \x20often\n\x20inappropriate\x20because\x20proto\x20packages\x20do\x20no\ |
8787 | | t\x20normally\x20start\x20with\x20backwards\n\x20domain\x20names.\n\n\r\ |
8788 | | \n\x05\x04\n\x02\0\x04\x12\x04\xdb\x02\x02\n\n\r\n\x05\x04\n\x02\0\x05\ |
8789 | | \x12\x04\xdb\x02\x0b\x11\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xdb\x02\x12\ |
8790 | | \x1e\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xdb\x02!\"\n\xf1\x02\n\x04\x04\n\ |
8791 | | \x02\x01\x12\x04\xe3\x02\x02+\x1a\xe2\x02\x20Controls\x20the\x20name\x20\ |
8792 | | of\x20the\x20wrapper\x20Java\x20class\x20generated\x20for\x20the\x20.pro\ |
8793 | | to\x20file.\n\x20That\x20class\x20will\x20always\x20contain\x20the\x20.p\ |
8794 | | roto\x20file's\x20getDescriptor()\x20method\x20as\n\x20well\x20as\x20any\ |
8795 | | \x20top-level\x20extensions\x20defined\x20in\x20the\x20.proto\x20file.\n\ |
8796 | | \x20If\x20java_multiple_files\x20is\x20disabled,\x20then\x20all\x20the\ |
8797 | | \x20other\x20classes\x20from\x20the\n\x20.proto\x20file\x20will\x20be\ |
8798 | | \x20nested\x20inside\x20the\x20single\x20wrapper\x20outer\x20class.\n\n\ |
8799 | | \r\n\x05\x04\n\x02\x01\x04\x12\x04\xe3\x02\x02\n\n\r\n\x05\x04\n\x02\x01\ |
8800 | | \x05\x12\x04\xe3\x02\x0b\x11\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\xe3\x02\ |
8801 | | \x12&\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xe3\x02)*\n\xa6\x03\n\x04\x04\ |
8802 | | \n\x02\x02\x12\x04\xeb\x02\x02;\x1a\x97\x03\x20If\x20enabled,\x20then\ |
8803 | | \x20the\x20Java\x20code\x20generator\x20will\x20generate\x20a\x20separat\ |
8804 | | e\x20.java\n\x20file\x20for\x20each\x20top-level\x20message,\x20enum,\ |
8805 | | \x20and\x20service\x20defined\x20in\x20the\x20.proto\n\x20file.\x20\x20T\ |
8806 | | hus,\x20these\x20types\x20will\x20*not*\x20be\x20nested\x20inside\x20the\ |
8807 | | \x20wrapper\x20class\n\x20named\x20by\x20java_outer_classname.\x20\x20Ho\ |
8808 | | wever,\x20the\x20wrapper\x20class\x20will\x20still\x20be\n\x20generated\ |
8809 | | \x20to\x20contain\x20the\x20file's\x20getDescriptor()\x20method\x20as\ |
8810 | | \x20well\x20as\x20any\n\x20top-level\x20extensions\x20defined\x20in\x20t\ |
8811 | | he\x20file.\n\n\r\n\x05\x04\n\x02\x02\x04\x12\x04\xeb\x02\x02\n\n\r\n\ |
8812 | | \x05\x04\n\x02\x02\x05\x12\x04\xeb\x02\x0b\x0f\n\r\n\x05\x04\n\x02\x02\ |
8813 | | \x01\x12\x04\xeb\x02\x10#\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\xeb\x02&(\ |
8814 | | \n\r\n\x05\x04\n\x02\x02\x08\x12\x04\xeb\x02):\n\r\n\x05\x04\n\x02\x02\ |
8815 | | \x07\x12\x04\xeb\x0249\n)\n\x04\x04\n\x02\x03\x12\x04\xee\x02\x02E\x1a\ |
8816 | | \x1b\x20This\x20option\x20does\x20nothing.\n\n\r\n\x05\x04\n\x02\x03\x04\ |
8817 | | \x12\x04\xee\x02\x02\n\n\r\n\x05\x04\n\x02\x03\x05\x12\x04\xee\x02\x0b\ |
8818 | | \x0f\n\r\n\x05\x04\n\x02\x03\x01\x12\x04\xee\x02\x10-\n\r\n\x05\x04\n\ |
8819 | | \x02\x03\x03\x12\x04\xee\x0202\n\r\n\x05\x04\n\x02\x03\x08\x12\x04\xee\ |
8820 | | \x023D\n\x0e\n\x06\x04\n\x02\x03\x08\x03\x12\x04\xee\x024C\n\xe6\x02\n\ |
8821 | | \x04\x04\n\x02\x04\x12\x04\xf6\x02\x02>\x1a\xd7\x02\x20If\x20set\x20true\ |
8822 | | ,\x20then\x20the\x20Java2\x20code\x20generator\x20will\x20generate\x20co\ |
8823 | | de\x20that\n\x20throws\x20an\x20exception\x20whenever\x20an\x20attempt\ |
8824 | | \x20is\x20made\x20to\x20assign\x20a\x20non-UTF-8\n\x20byte\x20sequence\ |
8825 | | \x20to\x20a\x20string\x20field.\n\x20Message\x20reflection\x20will\x20do\ |
8826 | | \x20the\x20same.\n\x20However,\x20an\x20extension\x20field\x20still\x20a\ |
8827 | | ccepts\x20non-UTF-8\x20byte\x20sequences.\n\x20This\x20option\x20has\x20\ |
8828 | | no\x20effect\x20on\x20when\x20used\x20with\x20the\x20lite\x20runtime.\n\ |
8829 | | \n\r\n\x05\x04\n\x02\x04\x04\x12\x04\xf6\x02\x02\n\n\r\n\x05\x04\n\x02\ |
8830 | | \x04\x05\x12\x04\xf6\x02\x0b\x0f\n\r\n\x05\x04\n\x02\x04\x01\x12\x04\xf6\ |
8831 | | \x02\x10&\n\r\n\x05\x04\n\x02\x04\x03\x12\x04\xf6\x02)+\n\r\n\x05\x04\n\ |
8832 | | \x02\x04\x08\x12\x04\xf6\x02,=\n\r\n\x05\x04\n\x02\x04\x07\x12\x04\xf6\ |
8833 | | \x027<\nL\n\x04\x04\n\x04\0\x12\x06\xfa\x02\x02\xff\x02\x03\x1a<\x20Gene\ |
8834 | | rated\x20classes\x20can\x20be\x20optimized\x20for\x20speed\x20or\x20code\ |
8835 | | \x20size.\n\n\r\n\x05\x04\n\x04\0\x01\x12\x04\xfa\x02\x07\x13\nD\n\x06\ |
8836 | | \x04\n\x04\0\x02\0\x12\x04\xfb\x02\x04\x0e\"4\x20Generate\x20complete\ |
8837 | | \x20code\x20for\x20parsing,\x20serialization,\n\n\x0f\n\x07\x04\n\x04\0\ |
8838 | | \x02\0\x01\x12\x04\xfb\x02\x04\t\n\x0f\n\x07\x04\n\x04\0\x02\0\x02\x12\ |
8839 | | \x04\xfb\x02\x0c\r\nG\n\x06\x04\n\x04\0\x02\x01\x12\x04\xfd\x02\x04\x12\ |
8840 | | \x1a\x06\x20etc.\n\"/\x20Use\x20ReflectionOps\x20to\x20implement\x20thes\ |
8841 | | e\x20methods.\n\n\x0f\n\x07\x04\n\x04\0\x02\x01\x01\x12\x04\xfd\x02\x04\ |
8842 | | \r\n\x0f\n\x07\x04\n\x04\0\x02\x01\x02\x12\x04\xfd\x02\x10\x11\nG\n\x06\ |
8843 | | \x04\n\x04\0\x02\x02\x12\x04\xfe\x02\x04\x15\"7\x20Generate\x20code\x20u\ |
8844 | | sing\x20MessageLite\x20and\x20the\x20lite\x20runtime.\n\n\x0f\n\x07\x04\ |
8845 | | \n\x04\0\x02\x02\x01\x12\x04\xfe\x02\x04\x10\n\x0f\n\x07\x04\n\x04\0\x02\ |
8846 | | \x02\x02\x12\x04\xfe\x02\x13\x14\n\x0c\n\x04\x04\n\x02\x05\x12\x04\x80\ |
8847 | | \x03\x02;\n\r\n\x05\x04\n\x02\x05\x04\x12\x04\x80\x03\x02\n\n\r\n\x05\ |
8848 | | \x04\n\x02\x05\x06\x12\x04\x80\x03\x0b\x17\n\r\n\x05\x04\n\x02\x05\x01\ |
8849 | | \x12\x04\x80\x03\x18$\n\r\n\x05\x04\n\x02\x05\x03\x12\x04\x80\x03'(\n\r\ |
8850 | | \n\x05\x04\n\x02\x05\x08\x12\x04\x80\x03):\n\r\n\x05\x04\n\x02\x05\x07\ |
8851 | | \x12\x04\x80\x0349\n\xe2\x02\n\x04\x04\n\x02\x06\x12\x04\x87\x03\x02\"\ |
8852 | | \x1a\xd3\x02\x20Sets\x20the\x20Go\x20package\x20where\x20structs\x20gene\ |
8853 | | rated\x20from\x20this\x20.proto\x20will\x20be\n\x20placed.\x20If\x20omit\ |
8854 | | ted,\x20the\x20Go\x20package\x20will\x20be\x20derived\x20from\x20the\x20\ |
8855 | | following:\n\x20\x20\x20-\x20The\x20basename\x20of\x20the\x20package\x20\ |
8856 | | import\x20path,\x20if\x20provided.\n\x20\x20\x20-\x20Otherwise,\x20the\ |
8857 | | \x20package\x20statement\x20in\x20the\x20.proto\x20file,\x20if\x20presen\ |
8858 | | t.\n\x20\x20\x20-\x20Otherwise,\x20the\x20basename\x20of\x20the\x20.prot\ |
8859 | | o\x20file,\x20without\x20extension.\n\n\r\n\x05\x04\n\x02\x06\x04\x12\ |
8860 | | \x04\x87\x03\x02\n\n\r\n\x05\x04\n\x02\x06\x05\x12\x04\x87\x03\x0b\x11\n\ |
8861 | | \r\n\x05\x04\n\x02\x06\x01\x12\x04\x87\x03\x12\x1c\n\r\n\x05\x04\n\x02\ |
8862 | | \x06\x03\x12\x04\x87\x03\x1f!\n\xd4\x04\n\x04\x04\n\x02\x07\x12\x04\x96\ |
8863 | | \x03\x02;\x1a\xc5\x04\x20Should\x20generic\x20services\x20be\x20generate\ |
8864 | | d\x20in\x20each\x20language?\x20\x20\"Generic\"\x20services\n\x20are\x20\ |
8865 | | not\x20specific\x20to\x20any\x20particular\x20RPC\x20system.\x20\x20They\ |
8866 | | \x20are\x20generated\x20by\x20the\n\x20main\x20code\x20generators\x20in\ |
8867 | | \x20each\x20language\x20(without\x20additional\x20plugins).\n\x20Generic\ |
8868 | | \x20services\x20were\x20the\x20only\x20kind\x20of\x20service\x20generati\ |
8869 | | on\x20supported\x20by\n\x20early\x20versions\x20of\x20google.protobuf.\n\ |
8870 | | \n\x20Generic\x20services\x20are\x20now\x20considered\x20deprecated\x20i\ |
8871 | | n\x20favor\x20of\x20using\x20plugins\n\x20that\x20generate\x20code\x20sp\ |
8872 | | ecific\x20to\x20your\x20particular\x20RPC\x20system.\x20\x20Therefore,\n\ |
8873 | | \x20these\x20default\x20to\x20false.\x20\x20Old\x20code\x20which\x20depe\ |
8874 | | nds\x20on\x20generic\x20services\x20should\n\x20explicitly\x20set\x20the\ |
8875 | | m\x20to\x20true.\n\n\r\n\x05\x04\n\x02\x07\x04\x12\x04\x96\x03\x02\n\n\r\ |
8876 | | \n\x05\x04\n\x02\x07\x05\x12\x04\x96\x03\x0b\x0f\n\r\n\x05\x04\n\x02\x07\ |
8877 | | \x01\x12\x04\x96\x03\x10#\n\r\n\x05\x04\n\x02\x07\x03\x12\x04\x96\x03&(\ |
8878 | | \n\r\n\x05\x04\n\x02\x07\x08\x12\x04\x96\x03):\n\r\n\x05\x04\n\x02\x07\ |
8879 | | \x07\x12\x04\x96\x0349\n\x0c\n\x04\x04\n\x02\x08\x12\x04\x97\x03\x02=\n\ |
8880 | | \r\n\x05\x04\n\x02\x08\x04\x12\x04\x97\x03\x02\n\n\r\n\x05\x04\n\x02\x08\ |
8881 | | \x05\x12\x04\x97\x03\x0b\x0f\n\r\n\x05\x04\n\x02\x08\x01\x12\x04\x97\x03\ |
8882 | | \x10%\n\r\n\x05\x04\n\x02\x08\x03\x12\x04\x97\x03(*\n\r\n\x05\x04\n\x02\ |
8883 | | \x08\x08\x12\x04\x97\x03+<\n\r\n\x05\x04\n\x02\x08\x07\x12\x04\x97\x036;\ |
8884 | | \n\x0c\n\x04\x04\n\x02\t\x12\x04\x98\x03\x02;\n\r\n\x05\x04\n\x02\t\x04\ |
8885 | | \x12\x04\x98\x03\x02\n\n\r\n\x05\x04\n\x02\t\x05\x12\x04\x98\x03\x0b\x0f\ |
8886 | | \n\r\n\x05\x04\n\x02\t\x01\x12\x04\x98\x03\x10#\n\r\n\x05\x04\n\x02\t\ |
8887 | | \x03\x12\x04\x98\x03&(\n\r\n\x05\x04\n\x02\t\x08\x12\x04\x98\x03):\n\r\n\ |
8888 | | \x05\x04\n\x02\t\x07\x12\x04\x98\x0349\n\x0c\n\x04\x04\n\x02\n\x12\x04\ |
8889 | | \x99\x03\x02<\n\r\n\x05\x04\n\x02\n\x04\x12\x04\x99\x03\x02\n\n\r\n\x05\ |
8890 | | \x04\n\x02\n\x05\x12\x04\x99\x03\x0b\x0f\n\r\n\x05\x04\n\x02\n\x01\x12\ |
8891 | | \x04\x99\x03\x10$\n\r\n\x05\x04\n\x02\n\x03\x12\x04\x99\x03')\n\r\n\x05\ |
8892 | | \x04\n\x02\n\x08\x12\x04\x99\x03*;\n\r\n\x05\x04\n\x02\n\x07\x12\x04\x99\ |
8893 | | \x035:\n\xf3\x01\n\x04\x04\n\x02\x0b\x12\x04\x9f\x03\x022\x1a\xe4\x01\ |
8894 | | \x20Is\x20this\x20file\x20deprecated?\n\x20Depending\x20on\x20the\x20tar\ |
8895 | | get\x20platform,\x20this\x20can\x20emit\x20Deprecated\x20annotations\n\ |
8896 | | \x20for\x20everything\x20in\x20the\x20file,\x20or\x20it\x20will\x20be\ |
8897 | | \x20completely\x20ignored;\x20in\x20the\x20very\n\x20least,\x20this\x20i\ |
8898 | | s\x20a\x20formalization\x20for\x20deprecating\x20files.\n\n\r\n\x05\x04\ |
8899 | | \n\x02\x0b\x04\x12\x04\x9f\x03\x02\n\n\r\n\x05\x04\n\x02\x0b\x05\x12\x04\ |
8900 | | \x9f\x03\x0b\x0f\n\r\n\x05\x04\n\x02\x0b\x01\x12\x04\x9f\x03\x10\x1a\n\r\ |
8901 | | \n\x05\x04\n\x02\x0b\x03\x12\x04\x9f\x03\x1d\x1f\n\r\n\x05\x04\n\x02\x0b\ |
8902 | | \x08\x12\x04\x9f\x03\x201\n\r\n\x05\x04\n\x02\x0b\x07\x12\x04\x9f\x03+0\ |
8903 | | \n\x7f\n\x04\x04\n\x02\x0c\x12\x04\xa3\x03\x027\x1aq\x20Enables\x20the\ |
8904 | | \x20use\x20of\x20arenas\x20for\x20the\x20proto\x20messages\x20in\x20this\ |
8905 | | \x20file.\x20This\x20applies\n\x20only\x20to\x20generated\x20classes\x20\ |
8906 | | for\x20C++.\n\n\r\n\x05\x04\n\x02\x0c\x04\x12\x04\xa3\x03\x02\n\n\r\n\ |
8907 | | \x05\x04\n\x02\x0c\x05\x12\x04\xa3\x03\x0b\x0f\n\r\n\x05\x04\n\x02\x0c\ |
8908 | | \x01\x12\x04\xa3\x03\x10\x20\n\r\n\x05\x04\n\x02\x0c\x03\x12\x04\xa3\x03\ |
8909 | | #%\n\r\n\x05\x04\n\x02\x0c\x08\x12\x04\xa3\x03&6\n\r\n\x05\x04\n\x02\x0c\ |
8910 | | \x07\x12\x04\xa3\x0315\n\x92\x01\n\x04\x04\n\x02\r\x12\x04\xa8\x03\x02)\ |
8911 | | \x1a\x83\x01\x20Sets\x20the\x20objective\x20c\x20class\x20prefix\x20whic\ |
8912 | | h\x20is\x20prepended\x20to\x20all\x20objective\x20c\n\x20generated\x20cl\ |
8913 | | asses\x20from\x20this\x20.proto.\x20There\x20is\x20no\x20default.\n\n\r\ |
8914 | | \n\x05\x04\n\x02\r\x04\x12\x04\xa8\x03\x02\n\n\r\n\x05\x04\n\x02\r\x05\ |
8915 | | \x12\x04\xa8\x03\x0b\x11\n\r\n\x05\x04\n\x02\r\x01\x12\x04\xa8\x03\x12#\ |
8916 | | \n\r\n\x05\x04\n\x02\r\x03\x12\x04\xa8\x03&(\nI\n\x04\x04\n\x02\x0e\x12\ |
8917 | | \x04\xab\x03\x02(\x1a;\x20Namespace\x20for\x20generated\x20classes;\x20d\ |
8918 | | efaults\x20to\x20the\x20package.\n\n\r\n\x05\x04\n\x02\x0e\x04\x12\x04\ |
8919 | | \xab\x03\x02\n\n\r\n\x05\x04\n\x02\x0e\x05\x12\x04\xab\x03\x0b\x11\n\r\n\ |
8920 | | \x05\x04\n\x02\x0e\x01\x12\x04\xab\x03\x12\"\n\r\n\x05\x04\n\x02\x0e\x03\ |
8921 | | \x12\x04\xab\x03%'\n\x91\x02\n\x04\x04\n\x02\x0f\x12\x04\xb1\x03\x02$\ |
8922 | | \x1a\x82\x02\x20By\x20default\x20Swift\x20generators\x20will\x20take\x20\ |
8923 | | the\x20proto\x20package\x20and\x20CamelCase\x20it\n\x20replacing\x20'.'\ |
8924 | | \x20with\x20underscore\x20and\x20use\x20that\x20to\x20prefix\x20the\x20t\ |
8925 | | ypes/symbols\n\x20defined.\x20When\x20this\x20options\x20is\x20provided,\ |
8926 | | \x20they\x20will\x20use\x20this\x20value\x20instead\n\x20to\x20prefix\ |
8927 | | \x20the\x20types/symbols\x20defined.\n\n\r\n\x05\x04\n\x02\x0f\x04\x12\ |
8928 | | \x04\xb1\x03\x02\n\n\r\n\x05\x04\n\x02\x0f\x05\x12\x04\xb1\x03\x0b\x11\n\ |
8929 | | \r\n\x05\x04\n\x02\x0f\x01\x12\x04\xb1\x03\x12\x1e\n\r\n\x05\x04\n\x02\ |
8930 | | \x0f\x03\x12\x04\xb1\x03!#\n~\n\x04\x04\n\x02\x10\x12\x04\xb5\x03\x02(\ |
8931 | | \x1ap\x20Sets\x20the\x20php\x20class\x20prefix\x20which\x20is\x20prepend\ |
8932 | | ed\x20to\x20all\x20php\x20generated\x20classes\n\x20from\x20this\x20.pro\ |
8933 | | to.\x20Default\x20is\x20empty.\n\n\r\n\x05\x04\n\x02\x10\x04\x12\x04\xb5\ |
8934 | | \x03\x02\n\n\r\n\x05\x04\n\x02\x10\x05\x12\x04\xb5\x03\x0b\x11\n\r\n\x05\ |
8935 | | \x04\n\x02\x10\x01\x12\x04\xb5\x03\x12\"\n\r\n\x05\x04\n\x02\x10\x03\x12\ |
8936 | | \x04\xb5\x03%'\n\xbe\x01\n\x04\x04\n\x02\x11\x12\x04\xba\x03\x02%\x1a\ |
8937 | | \xaf\x01\x20Use\x20this\x20option\x20to\x20change\x20the\x20namespace\ |
8938 | | \x20of\x20php\x20generated\x20classes.\x20Default\n\x20is\x20empty.\x20W\ |
8939 | | hen\x20this\x20option\x20is\x20empty,\x20the\x20package\x20name\x20will\ |
8940 | | \x20be\x20used\x20for\n\x20determining\x20the\x20namespace.\n\n\r\n\x05\ |
8941 | | \x04\n\x02\x11\x04\x12\x04\xba\x03\x02\n\n\r\n\x05\x04\n\x02\x11\x05\x12\ |
8942 | | \x04\xba\x03\x0b\x11\n\r\n\x05\x04\n\x02\x11\x01\x12\x04\xba\x03\x12\x1f\ |
8943 | | \n\r\n\x05\x04\n\x02\x11\x03\x12\x04\xba\x03\"$\n\xca\x01\n\x04\x04\n\ |
8944 | | \x02\x12\x12\x04\xbf\x03\x02.\x1a\xbb\x01\x20Use\x20this\x20option\x20to\ |
8945 | | \x20change\x20the\x20namespace\x20of\x20php\x20generated\x20metadata\x20\ |
8946 | | classes.\n\x20Default\x20is\x20empty.\x20When\x20this\x20option\x20is\ |
8947 | | \x20empty,\x20the\x20proto\x20file\x20name\x20will\x20be\n\x20used\x20fo\ |
8948 | | r\x20determining\x20the\x20namespace.\n\n\r\n\x05\x04\n\x02\x12\x04\x12\ |
8949 | | \x04\xbf\x03\x02\n\n\r\n\x05\x04\n\x02\x12\x05\x12\x04\xbf\x03\x0b\x11\n\ |
8950 | | \r\n\x05\x04\n\x02\x12\x01\x12\x04\xbf\x03\x12(\n\r\n\x05\x04\n\x02\x12\ |
8951 | | \x03\x12\x04\xbf\x03+-\n\xc2\x01\n\x04\x04\n\x02\x13\x12\x04\xc4\x03\x02\ |
8952 | | $\x1a\xb3\x01\x20Use\x20this\x20option\x20to\x20change\x20the\x20package\ |
8953 | | \x20of\x20ruby\x20generated\x20classes.\x20Default\n\x20is\x20empty.\x20\ |
8954 | | When\x20this\x20option\x20is\x20not\x20set,\x20the\x20package\x20name\ |
8955 | | \x20will\x20be\x20used\x20for\n\x20determining\x20the\x20ruby\x20package\ |
8956 | | .\n\n\r\n\x05\x04\n\x02\x13\x04\x12\x04\xc4\x03\x02\n\n\r\n\x05\x04\n\ |
8957 | | \x02\x13\x05\x12\x04\xc4\x03\x0b\x11\n\r\n\x05\x04\n\x02\x13\x01\x12\x04\ |
8958 | | \xc4\x03\x12\x1e\n\r\n\x05\x04\n\x02\x13\x03\x12\x04\xc4\x03!#\n|\n\x04\ |
8959 | | \x04\n\x02\x14\x12\x04\xc9\x03\x02:\x1an\x20The\x20parser\x20stores\x20o\ |
8960 | | ptions\x20it\x20doesn't\x20recognize\x20here.\n\x20See\x20the\x20documen\ |
8961 | | tation\x20for\x20the\x20\"Options\"\x20section\x20above.\n\n\r\n\x05\x04\ |
8962 | | \n\x02\x14\x04\x12\x04\xc9\x03\x02\n\n\r\n\x05\x04\n\x02\x14\x06\x12\x04\ |
8963 | | \xc9\x03\x0b\x1e\n\r\n\x05\x04\n\x02\x14\x01\x12\x04\xc9\x03\x1f3\n\r\n\ |
8964 | | \x05\x04\n\x02\x14\x03\x12\x04\xc9\x0369\n\x87\x01\n\x03\x04\n\x05\x12\ |
8965 | | \x04\xcd\x03\x02\x19\x1az\x20Clients\x20can\x20define\x20custom\x20optio\ |
8966 | | ns\x20in\x20extensions\x20of\x20this\x20message.\n\x20See\x20the\x20docu\ |
8967 | | mentation\x20for\x20the\x20\"Options\"\x20section\x20above.\n\n\x0c\n\ |
8968 | | \x04\x04\n\x05\0\x12\x04\xcd\x03\r\x18\n\r\n\x05\x04\n\x05\0\x01\x12\x04\ |
8969 | | \xcd\x03\r\x11\n\r\n\x05\x04\n\x05\0\x02\x12\x04\xcd\x03\x15\x18\n\x0b\n\ |
8970 | | \x03\x04\n\t\x12\x04\xcf\x03\x02\x0e\n\x0c\n\x04\x04\n\t\0\x12\x04\xcf\ |
8971 | | \x03\x0b\r\n\r\n\x05\x04\n\t\0\x01\x12\x04\xcf\x03\x0b\r\n\r\n\x05\x04\n\ |
8972 | | \t\0\x02\x12\x04\xcf\x03\x0b\r\n\x0c\n\x02\x04\x0b\x12\x06\xd2\x03\0\x94\ |
8973 | | \x04\x01\n\x0b\n\x03\x04\x0b\x01\x12\x04\xd2\x03\x08\x16\n\xd8\x05\n\x04\ |
8974 | | \x04\x0b\x02\0\x12\x04\xe5\x03\x02>\x1a\xc9\x05\x20Set\x20true\x20to\x20\ |
8975 | | use\x20the\x20old\x20proto1\x20MessageSet\x20wire\x20format\x20for\x20ex\ |
8976 | | tensions.\n\x20This\x20is\x20provided\x20for\x20backwards-compatibility\ |
8977 | | \x20with\x20the\x20MessageSet\x20wire\n\x20format.\x20\x20You\x20should\ |
8978 | | \x20not\x20use\x20this\x20for\x20any\x20other\x20reason:\x20\x20It's\x20\ |
8979 | | less\n\x20efficient,\x20has\x20fewer\x20features,\x20and\x20is\x20more\ |
8980 | | \x20complicated.\n\n\x20The\x20message\x20must\x20be\x20defined\x20exact\ |
8981 | | ly\x20as\x20follows:\n\x20\x20\x20message\x20Foo\x20{\n\x20\x20\x20\x20\ |
8982 | | \x20option\x20message_set_wire_format\x20=\x20true;\n\x20\x20\x20\x20\ |
8983 | | \x20extensions\x204\x20to\x20max;\n\x20\x20\x20}\n\x20Note\x20that\x20th\ |
8984 | | e\x20message\x20cannot\x20have\x20any\x20defined\x20fields;\x20MessageSe\ |
8985 | | ts\x20only\n\x20have\x20extensions.\n\n\x20All\x20extensions\x20of\x20yo\ |
8986 | | ur\x20type\x20must\x20be\x20singular\x20messages;\x20e.g.\x20they\x20can\ |
8987 | | not\n\x20be\x20int32s,\x20enums,\x20or\x20repeated\x20messages.\n\n\x20B\ |
8988 | | ecause\x20this\x20is\x20an\x20option,\x20the\x20above\x20two\x20restrict\ |
8989 | | ions\x20are\x20not\x20enforced\x20by\n\x20the\x20protocol\x20compiler.\n\ |
8990 | | \n\r\n\x05\x04\x0b\x02\0\x04\x12\x04\xe5\x03\x02\n\n\r\n\x05\x04\x0b\x02\ |
8991 | | \0\x05\x12\x04\xe5\x03\x0b\x0f\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xe5\ |
8992 | | \x03\x10'\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xe5\x03*+\n\r\n\x05\x04\ |
8993 | | \x0b\x02\0\x08\x12\x04\xe5\x03,=\n\r\n\x05\x04\x0b\x02\0\x07\x12\x04\xe5\ |
8994 | | \x037<\n\xeb\x01\n\x04\x04\x0b\x02\x01\x12\x04\xea\x03\x02F\x1a\xdc\x01\ |
8995 | | \x20Disables\x20the\x20generation\x20of\x20the\x20standard\x20\"descript\ |
8996 | | or()\"\x20accessor,\x20which\x20can\n\x20conflict\x20with\x20a\x20field\ |
8997 | | \x20of\x20the\x20same\x20name.\x20\x20This\x20is\x20meant\x20to\x20make\ |
8998 | | \x20migration\n\x20from\x20proto1\x20easier;\x20new\x20code\x20should\ |
8999 | | \x20avoid\x20fields\x20named\x20\"descriptor\".\n\n\r\n\x05\x04\x0b\x02\ |
9000 | | \x01\x04\x12\x04\xea\x03\x02\n\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\xea\ |
9001 | | \x03\x0b\x0f\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xea\x03\x10/\n\r\n\ |
9002 | | \x05\x04\x0b\x02\x01\x03\x12\x04\xea\x0323\n\r\n\x05\x04\x0b\x02\x01\x08\ |
9003 | | \x12\x04\xea\x034E\n\r\n\x05\x04\x0b\x02\x01\x07\x12\x04\xea\x03?D\n\xee\ |
9004 | | \x01\n\x04\x04\x0b\x02\x02\x12\x04\xf0\x03\x021\x1a\xdf\x01\x20Is\x20thi\ |
9005 | | s\x20message\x20deprecated?\n\x20Depending\x20on\x20the\x20target\x20pla\ |
9006 | | tform,\x20this\x20can\x20emit\x20Deprecated\x20annotations\n\x20for\x20t\ |
9007 | | he\x20message,\x20or\x20it\x20will\x20be\x20completely\x20ignored;\x20in\ |
9008 | | \x20the\x20very\x20least,\n\x20this\x20is\x20a\x20formalization\x20for\ |
9009 | | \x20deprecating\x20messages.\n\n\r\n\x05\x04\x0b\x02\x02\x04\x12\x04\xf0\ |
9010 | | \x03\x02\n\n\r\n\x05\x04\x0b\x02\x02\x05\x12\x04\xf0\x03\x0b\x0f\n\r\n\ |
9011 | | \x05\x04\x0b\x02\x02\x01\x12\x04\xf0\x03\x10\x1a\n\r\n\x05\x04\x0b\x02\ |
9012 | | \x02\x03\x12\x04\xf0\x03\x1d\x1e\n\r\n\x05\x04\x0b\x02\x02\x08\x12\x04\ |
9013 | | \xf0\x03\x1f0\n\r\n\x05\x04\x0b\x02\x02\x07\x12\x04\xf0\x03*/\n\x0b\n\ |
9014 | | \x03\x04\x0b\t\x12\x04\xf2\x03\x02\x13\n\x0c\n\x04\x04\x0b\t\0\x12\x04\ |
9015 | | \xf2\x03\x0b\x0c\n\r\n\x05\x04\x0b\t\0\x01\x12\x04\xf2\x03\x0b\x0c\n\r\n\ |
9016 | | \x05\x04\x0b\t\0\x02\x12\x04\xf2\x03\x0b\x0c\n\x0c\n\x04\x04\x0b\t\x01\ |
9017 | | \x12\x04\xf2\x03\x0e\x0f\n\r\n\x05\x04\x0b\t\x01\x01\x12\x04\xf2\x03\x0e\ |
9018 | | \x0f\n\r\n\x05\x04\x0b\t\x01\x02\x12\x04\xf2\x03\x0e\x0f\n\x0c\n\x04\x04\ |
9019 | | \x0b\t\x02\x12\x04\xf2\x03\x11\x12\n\r\n\x05\x04\x0b\t\x02\x01\x12\x04\ |
9020 | | \xf2\x03\x11\x12\n\r\n\x05\x04\x0b\t\x02\x02\x12\x04\xf2\x03\x11\x12\n\ |
9021 | | \xa0\x06\n\x04\x04\x0b\x02\x03\x12\x04\x89\x04\x02\x1e\x1a\x91\x06\x20Wh\ |
9022 | | ether\x20the\x20message\x20is\x20an\x20automatically\x20generated\x20map\ |
9023 | | \x20entry\x20type\x20for\x20the\n\x20maps\x20field.\n\n\x20For\x20maps\ |
9024 | | \x20fields:\n\x20\x20\x20\x20\x20map<KeyType,\x20ValueType>\x20map_field\ |
9025 | | \x20=\x201;\n\x20The\x20parsed\x20descriptor\x20looks\x20like:\n\x20\x20\ |
9026 | | \x20\x20\x20message\x20MapFieldEntry\x20{\n\x20\x20\x20\x20\x20\x20\x20\ |
9027 | | \x20\x20option\x20map_entry\x20=\x20true;\n\x20\x20\x20\x20\x20\x20\x20\ |
9028 | | \x20\x20optional\x20KeyType\x20key\x20=\x201;\n\x20\x20\x20\x20\x20\x20\ |
9029 | | \x20\x20\x20optional\x20ValueType\x20value\x20=\x202;\n\x20\x20\x20\x20\ |
9030 | | \x20}\n\x20\x20\x20\x20\x20repeated\x20MapFieldEntry\x20map_field\x20=\ |
9031 | | \x201;\n\n\x20Implementations\x20may\x20choose\x20not\x20to\x20generate\ |
9032 | | \x20the\x20map_entry=true\x20message,\x20but\n\x20use\x20a\x20native\x20\ |
9033 | | map\x20in\x20the\x20target\x20language\x20to\x20hold\x20the\x20keys\x20a\ |
9034 | | nd\x20values.\n\x20The\x20reflection\x20APIs\x20in\x20such\x20implementa\ |
9035 | | tions\x20still\x20need\x20to\x20work\x20as\n\x20if\x20the\x20field\x20is\ |
9036 | | \x20a\x20repeated\x20message\x20field.\n\n\x20NOTE:\x20Do\x20not\x20set\ |
9037 | | \x20the\x20option\x20in\x20.proto\x20files.\x20Always\x20use\x20the\x20m\ |
9038 | | aps\x20syntax\n\x20instead.\x20The\x20option\x20should\x20only\x20be\x20\ |
9039 | | implicitly\x20set\x20by\x20the\x20proto\x20compiler\n\x20parser.\n\n\r\n\ |
9040 | | \x05\x04\x0b\x02\x03\x04\x12\x04\x89\x04\x02\n\n\r\n\x05\x04\x0b\x02\x03\ |
9041 | | \x05\x12\x04\x89\x04\x0b\x0f\n\r\n\x05\x04\x0b\x02\x03\x01\x12\x04\x89\ |
9042 | | \x04\x10\x19\n\r\n\x05\x04\x0b\x02\x03\x03\x12\x04\x89\x04\x1c\x1d\n$\n\ |
9043 | | \x03\x04\x0b\t\x12\x04\x8b\x04\x02\r\"\x17\x20javalite_serializable\n\n\ |
9044 | | \x0c\n\x04\x04\x0b\t\x03\x12\x04\x8b\x04\x0b\x0c\n\r\n\x05\x04\x0b\t\x03\ |
9045 | | \x01\x12\x04\x8b\x04\x0b\x0c\n\r\n\x05\x04\x0b\t\x03\x02\x12\x04\x8b\x04\ |
9046 | | \x0b\x0c\n\x1f\n\x03\x04\x0b\t\x12\x04\x8c\x04\x02\r\"\x12\x20javanano_a\ |
9047 | | s_lite\n\n\x0c\n\x04\x04\x0b\t\x04\x12\x04\x8c\x04\x0b\x0c\n\r\n\x05\x04\ |
9048 | | \x0b\t\x04\x01\x12\x04\x8c\x04\x0b\x0c\n\r\n\x05\x04\x0b\t\x04\x02\x12\ |
9049 | | \x04\x8c\x04\x0b\x0c\nO\n\x04\x04\x0b\x02\x04\x12\x04\x90\x04\x02:\x1aA\ |
9050 | | \x20The\x20parser\x20stores\x20options\x20it\x20doesn't\x20recognize\x20\ |
9051 | | here.\x20See\x20above.\n\n\r\n\x05\x04\x0b\x02\x04\x04\x12\x04\x90\x04\ |
9052 | | \x02\n\n\r\n\x05\x04\x0b\x02\x04\x06\x12\x04\x90\x04\x0b\x1e\n\r\n\x05\ |
9053 | | \x04\x0b\x02\x04\x01\x12\x04\x90\x04\x1f3\n\r\n\x05\x04\x0b\x02\x04\x03\ |
9054 | | \x12\x04\x90\x0469\nZ\n\x03\x04\x0b\x05\x12\x04\x93\x04\x02\x19\x1aM\x20\ |
9055 | | Clients\x20can\x20define\x20custom\x20options\x20in\x20extensions\x20of\ |
9056 | | \x20this\x20message.\x20See\x20above.\n\n\x0c\n\x04\x04\x0b\x05\0\x12\ |
9057 | | \x04\x93\x04\r\x18\n\r\n\x05\x04\x0b\x05\0\x01\x12\x04\x93\x04\r\x11\n\r\ |
9058 | | \n\x05\x04\x0b\x05\0\x02\x12\x04\x93\x04\x15\x18\n\x0c\n\x02\x04\x0c\x12\ |
9059 | | \x06\x96\x04\0\xf1\x04\x01\n\x0b\n\x03\x04\x0c\x01\x12\x04\x96\x04\x08\ |
9060 | | \x14\n\xa3\x02\n\x04\x04\x0c\x02\0\x12\x04\x9b\x04\x02.\x1a\x94\x02\x20T\ |
9061 | | he\x20ctype\x20option\x20instructs\x20the\x20C++\x20code\x20generator\ |
9062 | | \x20to\x20use\x20a\x20different\n\x20representation\x20of\x20the\x20fiel\ |
9063 | | d\x20than\x20it\x20normally\x20would.\x20\x20See\x20the\x20specific\n\ |
9064 | | \x20options\x20below.\x20\x20This\x20option\x20is\x20not\x20yet\x20imple\ |
9065 | | mented\x20in\x20the\x20open\x20source\n\x20release\x20--\x20sorry,\x20we\ |
9066 | | 'll\x20try\x20to\x20include\x20it\x20in\x20a\x20future\x20version!\n\n\r\ |
9067 | | \n\x05\x04\x0c\x02\0\x04\x12\x04\x9b\x04\x02\n\n\r\n\x05\x04\x0c\x02\0\ |
9068 | | \x06\x12\x04\x9b\x04\x0b\x10\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\x9b\x04\ |
9069 | | \x11\x16\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\x9b\x04\x19\x1a\n\r\n\x05\ |
9070 | | \x04\x0c\x02\0\x08\x12\x04\x9b\x04\x1b-\n\r\n\x05\x04\x0c\x02\0\x07\x12\ |
9071 | | \x04\x9b\x04&,\n\x0e\n\x04\x04\x0c\x04\0\x12\x06\x9c\x04\x02\xa3\x04\x03\ |
9072 | | \n\r\n\x05\x04\x0c\x04\0\x01\x12\x04\x9c\x04\x07\x0c\n\x1f\n\x06\x04\x0c\ |
9073 | | \x04\0\x02\0\x12\x04\x9e\x04\x04\x0f\x1a\x0f\x20Default\x20mode.\n\n\x0f\ |
9074 | | \n\x07\x04\x0c\x04\0\x02\0\x01\x12\x04\x9e\x04\x04\n\n\x0f\n\x07\x04\x0c\ |
9075 | | \x04\0\x02\0\x02\x12\x04\x9e\x04\r\x0e\n\x0e\n\x06\x04\x0c\x04\0\x02\x01\ |
9076 | | \x12\x04\xa0\x04\x04\r\n\x0f\n\x07\x04\x0c\x04\0\x02\x01\x01\x12\x04\xa0\ |
9077 | | \x04\x04\x08\n\x0f\n\x07\x04\x0c\x04\0\x02\x01\x02\x12\x04\xa0\x04\x0b\ |
9078 | | \x0c\n\x0e\n\x06\x04\x0c\x04\0\x02\x02\x12\x04\xa2\x04\x04\x15\n\x0f\n\ |
9079 | | \x07\x04\x0c\x04\0\x02\x02\x01\x12\x04\xa2\x04\x04\x10\n\x0f\n\x07\x04\ |
9080 | | \x0c\x04\0\x02\x02\x02\x12\x04\xa2\x04\x13\x14\n\xda\x02\n\x04\x04\x0c\ |
9081 | | \x02\x01\x12\x04\xa9\x04\x02\x1b\x1a\xcb\x02\x20The\x20packed\x20option\ |
9082 | | \x20can\x20be\x20enabled\x20for\x20repeated\x20primitive\x20fields\x20to\ |
9083 | | \x20enable\n\x20a\x20more\x20efficient\x20representation\x20on\x20the\ |
9084 | | \x20wire.\x20Rather\x20than\x20repeatedly\n\x20writing\x20the\x20tag\x20\ |
9085 | | and\x20type\x20for\x20each\x20element,\x20the\x20entire\x20array\x20is\ |
9086 | | \x20encoded\x20as\n\x20a\x20single\x20length-delimited\x20blob.\x20In\ |
9087 | | \x20proto3,\x20only\x20explicit\x20setting\x20it\x20to\n\x20false\x20wil\ |
9088 | | l\x20avoid\x20using\x20packed\x20encoding.\n\n\r\n\x05\x04\x0c\x02\x01\ |
9089 | | \x04\x12\x04\xa9\x04\x02\n\n\r\n\x05\x04\x0c\x02\x01\x05\x12\x04\xa9\x04\ |
9090 | | \x0b\x0f\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xa9\x04\x10\x16\n\r\n\x05\ |
9091 | | \x04\x0c\x02\x01\x03\x12\x04\xa9\x04\x19\x1a\n\x9a\x05\n\x04\x04\x0c\x02\ |
9092 | | \x02\x12\x04\xb6\x04\x023\x1a\x8b\x05\x20The\x20jstype\x20option\x20dete\ |
9093 | | rmines\x20the\x20JavaScript\x20type\x20used\x20for\x20values\x20of\x20th\ |
9094 | | e\n\x20field.\x20\x20The\x20option\x20is\x20permitted\x20only\x20for\x20\ |
9095 | | 64\x20bit\x20integral\x20and\x20fixed\x20types\n\x20(int64,\x20uint64,\ |
9096 | | \x20sint64,\x20fixed64,\x20sfixed64).\x20\x20A\x20field\x20with\x20jstyp\ |
9097 | | e\x20JS_STRING\n\x20is\x20represented\x20as\x20JavaScript\x20string,\x20\ |
9098 | | which\x20avoids\x20loss\x20of\x20precision\x20that\n\x20can\x20happen\ |
9099 | | \x20when\x20a\x20large\x20value\x20is\x20converted\x20to\x20a\x20floatin\ |
9100 | | g\x20point\x20JavaScript.\n\x20Specifying\x20JS_NUMBER\x20for\x20the\x20\ |
9101 | | jstype\x20causes\x20the\x20generated\x20JavaScript\x20code\x20to\n\x20us\ |
9102 | | e\x20the\x20JavaScript\x20\"number\"\x20type.\x20\x20The\x20behavior\x20\ |
9103 | | of\x20the\x20default\x20option\n\x20JS_NORMAL\x20is\x20implementation\ |
9104 | | \x20dependent.\n\n\x20This\x20option\x20is\x20an\x20enum\x20to\x20permit\ |
9105 | | \x20additional\x20types\x20to\x20be\x20added,\x20e.g.\n\x20goog.math.Int\ |
9106 | | eger.\n\n\r\n\x05\x04\x0c\x02\x02\x04\x12\x04\xb6\x04\x02\n\n\r\n\x05\ |
9107 | | \x04\x0c\x02\x02\x06\x12\x04\xb6\x04\x0b\x11\n\r\n\x05\x04\x0c\x02\x02\ |
9108 | | \x01\x12\x04\xb6\x04\x12\x18\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xb6\ |
9109 | | \x04\x1b\x1c\n\r\n\x05\x04\x0c\x02\x02\x08\x12\x04\xb6\x04\x1d2\n\r\n\ |
9110 | | \x05\x04\x0c\x02\x02\x07\x12\x04\xb6\x04(1\n\x0e\n\x04\x04\x0c\x04\x01\ |
9111 | | \x12\x06\xb7\x04\x02\xc0\x04\x03\n\r\n\x05\x04\x0c\x04\x01\x01\x12\x04\ |
9112 | | \xb7\x04\x07\r\n'\n\x06\x04\x0c\x04\x01\x02\0\x12\x04\xb9\x04\x04\x12\ |
9113 | | \x1a\x17\x20Use\x20the\x20default\x20type.\n\n\x0f\n\x07\x04\x0c\x04\x01\ |
9114 | | \x02\0\x01\x12\x04\xb9\x04\x04\r\n\x0f\n\x07\x04\x0c\x04\x01\x02\0\x02\ |
9115 | | \x12\x04\xb9\x04\x10\x11\n)\n\x06\x04\x0c\x04\x01\x02\x01\x12\x04\xbc\ |
9116 | | \x04\x04\x12\x1a\x19\x20Use\x20JavaScript\x20strings.\n\n\x0f\n\x07\x04\ |
9117 | | \x0c\x04\x01\x02\x01\x01\x12\x04\xbc\x04\x04\r\n\x0f\n\x07\x04\x0c\x04\ |
9118 | | \x01\x02\x01\x02\x12\x04\xbc\x04\x10\x11\n)\n\x06\x04\x0c\x04\x01\x02\ |
9119 | | \x02\x12\x04\xbf\x04\x04\x12\x1a\x19\x20Use\x20JavaScript\x20numbers.\n\ |
9120 | | \n\x0f\n\x07\x04\x0c\x04\x01\x02\x02\x01\x12\x04\xbf\x04\x04\r\n\x0f\n\ |
9121 | | \x07\x04\x0c\x04\x01\x02\x02\x02\x12\x04\xbf\x04\x10\x11\n\xef\x0c\n\x04\ |
9122 | | \x04\x0c\x02\x03\x12\x04\xde\x04\x02+\x1a\xe0\x0c\x20Should\x20this\x20f\ |
9123 | | ield\x20be\x20parsed\x20lazily?\x20\x20Lazy\x20applies\x20only\x20to\x20\ |
9124 | | message-type\n\x20fields.\x20\x20It\x20means\x20that\x20when\x20the\x20o\ |
9125 | | uter\x20message\x20is\x20initially\x20parsed,\x20the\n\x20inner\x20messa\ |
9126 | | ge's\x20contents\x20will\x20not\x20be\x20parsed\x20but\x20instead\x20sto\ |
9127 | | red\x20in\x20encoded\n\x20form.\x20\x20The\x20inner\x20message\x20will\ |
9128 | | \x20actually\x20be\x20parsed\x20when\x20it\x20is\x20first\x20accessed.\n\ |
9129 | | \n\x20This\x20is\x20only\x20a\x20hint.\x20\x20Implementations\x20are\x20\ |
9130 | | free\x20to\x20choose\x20whether\x20to\x20use\n\x20eager\x20or\x20lazy\ |
9131 | | \x20parsing\x20regardless\x20of\x20the\x20value\x20of\x20this\x20option.\ |
9132 | | \x20\x20However,\n\x20setting\x20this\x20option\x20true\x20suggests\x20t\ |
9133 | | hat\x20the\x20protocol\x20author\x20believes\x20that\n\x20using\x20lazy\ |
9134 | | \x20parsing\x20on\x20this\x20field\x20is\x20worth\x20the\x20additional\ |
9135 | | \x20bookkeeping\n\x20overhead\x20typically\x20needed\x20to\x20implement\ |
9136 | | \x20it.\n\n\x20This\x20option\x20does\x20not\x20affect\x20the\x20public\ |
9137 | | \x20interface\x20of\x20any\x20generated\x20code;\n\x20all\x20method\x20s\ |
9138 | | ignatures\x20remain\x20the\x20same.\x20\x20Furthermore,\x20thread-safety\ |
9139 | | \x20of\x20the\n\x20interface\x20is\x20not\x20affected\x20by\x20this\x20o\ |
9140 | | ption;\x20const\x20methods\x20remain\x20safe\x20to\n\x20call\x20from\x20\ |
9141 | | multiple\x20threads\x20concurrently,\x20while\x20non-const\x20methods\ |
9142 | | \x20continue\n\x20to\x20require\x20exclusive\x20access.\n\n\n\x20Note\ |
9143 | | \x20that\x20implementations\x20may\x20choose\x20not\x20to\x20check\x20re\ |
9144 | | quired\x20fields\x20within\n\x20a\x20lazy\x20sub-message.\x20\x20That\ |
9145 | | \x20is,\x20calling\x20IsInitialized()\x20on\x20the\x20outer\x20message\n\ |
9146 | | \x20may\x20return\x20true\x20even\x20if\x20the\x20inner\x20message\x20ha\ |
9147 | | s\x20missing\x20required\x20fields.\n\x20This\x20is\x20necessary\x20beca\ |
9148 | | use\x20otherwise\x20the\x20inner\x20message\x20would\x20have\x20to\x20be\ |
9149 | | \n\x20parsed\x20in\x20order\x20to\x20perform\x20the\x20check,\x20defeati\ |
9150 | | ng\x20the\x20purpose\x20of\x20lazy\n\x20parsing.\x20\x20An\x20implementa\ |
9151 | | tion\x20which\x20chooses\x20not\x20to\x20check\x20required\x20fields\n\ |
9152 | | \x20must\x20be\x20consistent\x20about\x20it.\x20\x20That\x20is,\x20for\ |
9153 | | \x20any\x20particular\x20sub-message,\x20the\n\x20implementation\x20must\ |
9154 | | \x20either\x20*always*\x20check\x20its\x20required\x20fields,\x20or\x20*\ |
9155 | | never*\n\x20check\x20its\x20required\x20fields,\x20regardless\x20of\x20w\ |
9156 | | hether\x20or\x20not\x20the\x20message\x20has\n\x20been\x20parsed.\n\n\r\ |
9157 | | \n\x05\x04\x0c\x02\x03\x04\x12\x04\xde\x04\x02\n\n\r\n\x05\x04\x0c\x02\ |
9158 | | \x03\x05\x12\x04\xde\x04\x0b\x0f\n\r\n\x05\x04\x0c\x02\x03\x01\x12\x04\ |
9159 | | \xde\x04\x10\x14\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\xde\x04\x17\x18\n\ |
9160 | | \r\n\x05\x04\x0c\x02\x03\x08\x12\x04\xde\x04\x19*\n\r\n\x05\x04\x0c\x02\ |
9161 | | \x03\x07\x12\x04\xde\x04$)\n\xe8\x01\n\x04\x04\x0c\x02\x04\x12\x04\xe4\ |
9162 | | \x04\x021\x1a\xd9\x01\x20Is\x20this\x20field\x20deprecated?\n\x20Dependi\ |
9163 | | ng\x20on\x20the\x20target\x20platform,\x20this\x20can\x20emit\x20Depreca\ |
9164 | | ted\x20annotations\n\x20for\x20accessors,\x20or\x20it\x20will\x20be\x20c\ |
9165 | | ompletely\x20ignored;\x20in\x20the\x20very\x20least,\x20this\n\x20is\x20\ |
9166 | | a\x20formalization\x20for\x20deprecating\x20fields.\n\n\r\n\x05\x04\x0c\ |
9167 | | \x02\x04\x04\x12\x04\xe4\x04\x02\n\n\r\n\x05\x04\x0c\x02\x04\x05\x12\x04\ |
9168 | | \xe4\x04\x0b\x0f\n\r\n\x05\x04\x0c\x02\x04\x01\x12\x04\xe4\x04\x10\x1a\n\ |
9169 | | \r\n\x05\x04\x0c\x02\x04\x03\x12\x04\xe4\x04\x1d\x1e\n\r\n\x05\x04\x0c\ |
9170 | | \x02\x04\x08\x12\x04\xe4\x04\x1f0\n\r\n\x05\x04\x0c\x02\x04\x07\x12\x04\ |
9171 | | \xe4\x04*/\n?\n\x04\x04\x0c\x02\x05\x12\x04\xe7\x04\x02,\x1a1\x20For\x20\ |
9172 | | Google-internal\x20migration\x20only.\x20Do\x20not\x20use.\n\n\r\n\x05\ |
9173 | | \x04\x0c\x02\x05\x04\x12\x04\xe7\x04\x02\n\n\r\n\x05\x04\x0c\x02\x05\x05\ |
9174 | | \x12\x04\xe7\x04\x0b\x0f\n\r\n\x05\x04\x0c\x02\x05\x01\x12\x04\xe7\x04\ |
9175 | | \x10\x14\n\r\n\x05\x04\x0c\x02\x05\x03\x12\x04\xe7\x04\x17\x19\n\r\n\x05\ |
9176 | | \x04\x0c\x02\x05\x08\x12\x04\xe7\x04\x1a+\n\r\n\x05\x04\x0c\x02\x05\x07\ |
9177 | | \x12\x04\xe7\x04%*\nO\n\x04\x04\x0c\x02\x06\x12\x04\xeb\x04\x02:\x1aA\ |
9178 | | \x20The\x20parser\x20stores\x20options\x20it\x20doesn't\x20recognize\x20\ |
9179 | | here.\x20See\x20above.\n\n\r\n\x05\x04\x0c\x02\x06\x04\x12\x04\xeb\x04\ |
9180 | | \x02\n\n\r\n\x05\x04\x0c\x02\x06\x06\x12\x04\xeb\x04\x0b\x1e\n\r\n\x05\ |
9181 | | \x04\x0c\x02\x06\x01\x12\x04\xeb\x04\x1f3\n\r\n\x05\x04\x0c\x02\x06\x03\ |
9182 | | \x12\x04\xeb\x0469\nZ\n\x03\x04\x0c\x05\x12\x04\xee\x04\x02\x19\x1aM\x20\ |
9183 | | Clients\x20can\x20define\x20custom\x20options\x20in\x20extensions\x20of\ |
9184 | | \x20this\x20message.\x20See\x20above.\n\n\x0c\n\x04\x04\x0c\x05\0\x12\ |
9185 | | \x04\xee\x04\r\x18\n\r\n\x05\x04\x0c\x05\0\x01\x12\x04\xee\x04\r\x11\n\r\ |
9186 | | \n\x05\x04\x0c\x05\0\x02\x12\x04\xee\x04\x15\x18\n\x1c\n\x03\x04\x0c\t\ |
9187 | | \x12\x04\xf0\x04\x02\r\"\x0f\x20removed\x20jtype\n\n\x0c\n\x04\x04\x0c\t\ |
9188 | | \0\x12\x04\xf0\x04\x0b\x0c\n\r\n\x05\x04\x0c\t\0\x01\x12\x04\xf0\x04\x0b\ |
9189 | | \x0c\n\r\n\x05\x04\x0c\t\0\x02\x12\x04\xf0\x04\x0b\x0c\n\x0c\n\x02\x04\r\ |
9190 | | \x12\x06\xf3\x04\0\xf9\x04\x01\n\x0b\n\x03\x04\r\x01\x12\x04\xf3\x04\x08\ |
9191 | | \x14\nO\n\x04\x04\r\x02\0\x12\x04\xf5\x04\x02:\x1aA\x20The\x20parser\x20\ |
9192 | | stores\x20options\x20it\x20doesn't\x20recognize\x20here.\x20See\x20above\ |
9193 | | .\n\n\r\n\x05\x04\r\x02\0\x04\x12\x04\xf5\x04\x02\n\n\r\n\x05\x04\r\x02\ |
9194 | | \0\x06\x12\x04\xf5\x04\x0b\x1e\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xf5\x04\ |
9195 | | \x1f3\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xf5\x0469\nZ\n\x03\x04\r\x05\x12\ |
9196 | | \x04\xf8\x04\x02\x19\x1aM\x20Clients\x20can\x20define\x20custom\x20optio\ |
9197 | | ns\x20in\x20extensions\x20of\x20this\x20message.\x20See\x20above.\n\n\ |
9198 | | \x0c\n\x04\x04\r\x05\0\x12\x04\xf8\x04\r\x18\n\r\n\x05\x04\r\x05\0\x01\ |
9199 | | \x12\x04\xf8\x04\r\x11\n\r\n\x05\x04\r\x05\0\x02\x12\x04\xf8\x04\x15\x18\ |
9200 | | \n\x0c\n\x02\x04\x0e\x12\x06\xfb\x04\0\x8e\x05\x01\n\x0b\n\x03\x04\x0e\ |
9201 | | \x01\x12\x04\xfb\x04\x08\x13\n`\n\x04\x04\x0e\x02\0\x12\x04\xff\x04\x02\ |
9202 | | \x20\x1aR\x20Set\x20this\x20option\x20to\x20true\x20to\x20allow\x20mappi\ |
9203 | | ng\x20different\x20tag\x20names\x20to\x20the\x20same\n\x20value.\n\n\r\n\ |
9204 | | \x05\x04\x0e\x02\0\x04\x12\x04\xff\x04\x02\n\n\r\n\x05\x04\x0e\x02\0\x05\ |
9205 | | \x12\x04\xff\x04\x0b\x0f\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\xff\x04\x10\ |
9206 | | \x1b\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xff\x04\x1e\x1f\n\xe5\x01\n\x04\ |
9207 | | \x04\x0e\x02\x01\x12\x04\x85\x05\x021\x1a\xd6\x01\x20Is\x20this\x20enum\ |
9208 | | \x20deprecated?\n\x20Depending\x20on\x20the\x20target\x20platform,\x20th\ |
9209 | | is\x20can\x20emit\x20Deprecated\x20annotations\n\x20for\x20the\x20enum,\ |
9210 | | \x20or\x20it\x20will\x20be\x20completely\x20ignored;\x20in\x20the\x20ver\ |
9211 | | y\x20least,\x20this\n\x20is\x20a\x20formalization\x20for\x20deprecating\ |
9212 | | \x20enums.\n\n\r\n\x05\x04\x0e\x02\x01\x04\x12\x04\x85\x05\x02\n\n\r\n\ |
9213 | | \x05\x04\x0e\x02\x01\x05\x12\x04\x85\x05\x0b\x0f\n\r\n\x05\x04\x0e\x02\ |
9214 | | \x01\x01\x12\x04\x85\x05\x10\x1a\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\ |
9215 | | \x85\x05\x1d\x1e\n\r\n\x05\x04\x0e\x02\x01\x08\x12\x04\x85\x05\x1f0\n\r\ |
9216 | | \n\x05\x04\x0e\x02\x01\x07\x12\x04\x85\x05*/\n\x1f\n\x03\x04\x0e\t\x12\ |
9217 | | \x04\x87\x05\x02\r\"\x12\x20javanano_as_lite\n\n\x0c\n\x04\x04\x0e\t\0\ |
9218 | | \x12\x04\x87\x05\x0b\x0c\n\r\n\x05\x04\x0e\t\0\x01\x12\x04\x87\x05\x0b\ |
9219 | | \x0c\n\r\n\x05\x04\x0e\t\0\x02\x12\x04\x87\x05\x0b\x0c\nO\n\x04\x04\x0e\ |
9220 | | \x02\x02\x12\x04\x8a\x05\x02:\x1aA\x20The\x20parser\x20stores\x20options\ |
9221 | | \x20it\x20doesn't\x20recognize\x20here.\x20See\x20above.\n\n\r\n\x05\x04\ |
9222 | | \x0e\x02\x02\x04\x12\x04\x8a\x05\x02\n\n\r\n\x05\x04\x0e\x02\x02\x06\x12\ |
9223 | | \x04\x8a\x05\x0b\x1e\n\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\x8a\x05\x1f3\ |
9224 | | \n\r\n\x05\x04\x0e\x02\x02\x03\x12\x04\x8a\x0569\nZ\n\x03\x04\x0e\x05\ |
9225 | | \x12\x04\x8d\x05\x02\x19\x1aM\x20Clients\x20can\x20define\x20custom\x20o\ |
9226 | | ptions\x20in\x20extensions\x20of\x20this\x20message.\x20See\x20above.\n\ |
9227 | | \n\x0c\n\x04\x04\x0e\x05\0\x12\x04\x8d\x05\r\x18\n\r\n\x05\x04\x0e\x05\0\ |
9228 | | \x01\x12\x04\x8d\x05\r\x11\n\r\n\x05\x04\x0e\x05\0\x02\x12\x04\x8d\x05\ |
9229 | | \x15\x18\n\x0c\n\x02\x04\x0f\x12\x06\x90\x05\0\x9c\x05\x01\n\x0b\n\x03\ |
9230 | | \x04\x0f\x01\x12\x04\x90\x05\x08\x18\n\xf7\x01\n\x04\x04\x0f\x02\0\x12\ |
9231 | | \x04\x95\x05\x021\x1a\xe8\x01\x20Is\x20this\x20enum\x20value\x20deprecat\ |
9232 | | ed?\n\x20Depending\x20on\x20the\x20target\x20platform,\x20this\x20can\ |
9233 | | \x20emit\x20Deprecated\x20annotations\n\x20for\x20the\x20enum\x20value,\ |
9234 | | \x20or\x20it\x20will\x20be\x20completely\x20ignored;\x20in\x20the\x20ver\ |
9235 | | y\x20least,\n\x20this\x20is\x20a\x20formalization\x20for\x20deprecating\ |
9236 | | \x20enum\x20values.\n\n\r\n\x05\x04\x0f\x02\0\x04\x12\x04\x95\x05\x02\n\ |
9237 | | \n\r\n\x05\x04\x0f\x02\0\x05\x12\x04\x95\x05\x0b\x0f\n\r\n\x05\x04\x0f\ |
9238 | | \x02\0\x01\x12\x04\x95\x05\x10\x1a\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\ |
9239 | | \x95\x05\x1d\x1e\n\r\n\x05\x04\x0f\x02\0\x08\x12\x04\x95\x05\x1f0\n\r\n\ |
9240 | | \x05\x04\x0f\x02\0\x07\x12\x04\x95\x05*/\nO\n\x04\x04\x0f\x02\x01\x12\ |
9241 | | \x04\x98\x05\x02:\x1aA\x20The\x20parser\x20stores\x20options\x20it\x20do\ |
9242 | | esn't\x20recognize\x20here.\x20See\x20above.\n\n\r\n\x05\x04\x0f\x02\x01\ |
9243 | | \x04\x12\x04\x98\x05\x02\n\n\r\n\x05\x04\x0f\x02\x01\x06\x12\x04\x98\x05\ |
9244 | | \x0b\x1e\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\x98\x05\x1f3\n\r\n\x05\ |
9245 | | \x04\x0f\x02\x01\x03\x12\x04\x98\x0569\nZ\n\x03\x04\x0f\x05\x12\x04\x9b\ |
9246 | | \x05\x02\x19\x1aM\x20Clients\x20can\x20define\x20custom\x20options\x20in\ |
9247 | | \x20extensions\x20of\x20this\x20message.\x20See\x20above.\n\n\x0c\n\x04\ |
9248 | | \x04\x0f\x05\0\x12\x04\x9b\x05\r\x18\n\r\n\x05\x04\x0f\x05\0\x01\x12\x04\ |
9249 | | \x9b\x05\r\x11\n\r\n\x05\x04\x0f\x05\0\x02\x12\x04\x9b\x05\x15\x18\n\x0c\ |
9250 | | \n\x02\x04\x10\x12\x06\x9e\x05\0\xb0\x05\x01\n\x0b\n\x03\x04\x10\x01\x12\ |
9251 | | \x04\x9e\x05\x08\x16\n\xd9\x03\n\x04\x04\x10\x02\0\x12\x04\xa9\x05\x022\ |
9252 | | \x1a\xdf\x01\x20Is\x20this\x20service\x20deprecated?\n\x20Depending\x20o\ |
9253 | | n\x20the\x20target\x20platform,\x20this\x20can\x20emit\x20Deprecated\x20\ |
9254 | | annotations\n\x20for\x20the\x20service,\x20or\x20it\x20will\x20be\x20com\ |
9255 | | pletely\x20ignored;\x20in\x20the\x20very\x20least,\n\x20this\x20is\x20a\ |
9256 | | \x20formalization\x20for\x20deprecating\x20services.\n2\xe8\x01\x20Note:\ |
9257 | | \x20\x20Field\x20numbers\x201\x20through\x2032\x20are\x20reserved\x20for\ |
9258 | | \x20Google's\x20internal\x20RPC\n\x20\x20\x20framework.\x20\x20We\x20apo\ |
9259 | | logize\x20for\x20hoarding\x20these\x20numbers\x20to\x20ourselves,\x20but\ |
9260 | | \n\x20\x20\x20we\x20were\x20already\x20using\x20them\x20long\x20before\ |
9261 | | \x20we\x20decided\x20to\x20release\x20Protocol\n\x20\x20\x20Buffers.\n\n\ |
9262 | | \r\n\x05\x04\x10\x02\0\x04\x12\x04\xa9\x05\x02\n\n\r\n\x05\x04\x10\x02\0\ |
9263 | | \x05\x12\x04\xa9\x05\x0b\x0f\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xa9\x05\ |
9264 | | \x10\x1a\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\xa9\x05\x1d\x1f\n\r\n\x05\ |
9265 | | \x04\x10\x02\0\x08\x12\x04\xa9\x05\x201\n\r\n\x05\x04\x10\x02\0\x07\x12\ |
9266 | | \x04\xa9\x05+0\nO\n\x04\x04\x10\x02\x01\x12\x04\xac\x05\x02:\x1aA\x20The\ |
9267 | | \x20parser\x20stores\x20options\x20it\x20doesn't\x20recognize\x20here.\ |
9268 | | \x20See\x20above.\n\n\r\n\x05\x04\x10\x02\x01\x04\x12\x04\xac\x05\x02\n\ |
9269 | | \n\r\n\x05\x04\x10\x02\x01\x06\x12\x04\xac\x05\x0b\x1e\n\r\n\x05\x04\x10\ |
9270 | | \x02\x01\x01\x12\x04\xac\x05\x1f3\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\ |
9271 | | \xac\x0569\nZ\n\x03\x04\x10\x05\x12\x04\xaf\x05\x02\x19\x1aM\x20Clients\ |
9272 | | \x20can\x20define\x20custom\x20options\x20in\x20extensions\x20of\x20this\ |
9273 | | \x20message.\x20See\x20above.\n\n\x0c\n\x04\x04\x10\x05\0\x12\x04\xaf\ |
9274 | | \x05\r\x18\n\r\n\x05\x04\x10\x05\0\x01\x12\x04\xaf\x05\r\x11\n\r\n\x05\ |
9275 | | \x04\x10\x05\0\x02\x12\x04\xaf\x05\x15\x18\n\x0c\n\x02\x04\x11\x12\x06\ |
9276 | | \xb2\x05\0\xcf\x05\x01\n\x0b\n\x03\x04\x11\x01\x12\x04\xb2\x05\x08\x15\n\ |
9277 | | \xd6\x03\n\x04\x04\x11\x02\0\x12\x04\xbd\x05\x022\x1a\xdc\x01\x20Is\x20t\ |
9278 | | his\x20method\x20deprecated?\n\x20Depending\x20on\x20the\x20target\x20pl\ |
9279 | | atform,\x20this\x20can\x20emit\x20Deprecated\x20annotations\n\x20for\x20\ |
9280 | | the\x20method,\x20or\x20it\x20will\x20be\x20completely\x20ignored;\x20in\ |
9281 | | \x20the\x20very\x20least,\n\x20this\x20is\x20a\x20formalization\x20for\ |
9282 | | \x20deprecating\x20methods.\n2\xe8\x01\x20Note:\x20\x20Field\x20numbers\ |
9283 | | \x201\x20through\x2032\x20are\x20reserved\x20for\x20Google's\x20internal\ |
9284 | | \x20RPC\n\x20\x20\x20framework.\x20\x20We\x20apologize\x20for\x20hoardin\ |
9285 | | g\x20these\x20numbers\x20to\x20ourselves,\x20but\n\x20\x20\x20we\x20were\ |
9286 | | \x20already\x20using\x20them\x20long\x20before\x20we\x20decided\x20to\ |
9287 | | \x20release\x20Protocol\n\x20\x20\x20Buffers.\n\n\r\n\x05\x04\x11\x02\0\ |
9288 | | \x04\x12\x04\xbd\x05\x02\n\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\xbd\x05\ |
9289 | | \x0b\x0f\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xbd\x05\x10\x1a\n\r\n\x05\ |
9290 | | \x04\x11\x02\0\x03\x12\x04\xbd\x05\x1d\x1f\n\r\n\x05\x04\x11\x02\0\x08\ |
9291 | | \x12\x04\xbd\x05\x201\n\r\n\x05\x04\x11\x02\0\x07\x12\x04\xbd\x05+0\n\ |
9292 | | \xf0\x01\n\x04\x04\x11\x04\0\x12\x06\xc2\x05\x02\xc6\x05\x03\x1a\xdf\x01\ |
9293 | | \x20Is\x20this\x20method\x20side-effect-free\x20(or\x20safe\x20in\x20HTT\ |
9294 | | P\x20parlance),\x20or\x20idempotent,\n\x20or\x20neither?\x20HTTP\x20base\ |
9295 | | d\x20RPC\x20implementation\x20may\x20choose\x20GET\x20verb\x20for\x20saf\ |
9296 | | e\n\x20methods,\x20and\x20PUT\x20verb\x20for\x20idempotent\x20methods\ |
9297 | | \x20instead\x20of\x20the\x20default\x20POST.\n\n\r\n\x05\x04\x11\x04\0\ |
9298 | | \x01\x12\x04\xc2\x05\x07\x17\n\x0e\n\x06\x04\x11\x04\0\x02\0\x12\x04\xc3\ |
9299 | | \x05\x04\x1c\n\x0f\n\x07\x04\x11\x04\0\x02\0\x01\x12\x04\xc3\x05\x04\x17\ |
9300 | | \n\x0f\n\x07\x04\x11\x04\0\x02\0\x02\x12\x04\xc3\x05\x1a\x1b\n$\n\x06\ |
9301 | | \x04\x11\x04\0\x02\x01\x12\x04\xc4\x05\x04\x18\"\x14\x20implies\x20idemp\ |
9302 | | otent\n\n\x0f\n\x07\x04\x11\x04\0\x02\x01\x01\x12\x04\xc4\x05\x04\x13\n\ |
9303 | | \x0f\n\x07\x04\x11\x04\0\x02\x01\x02\x12\x04\xc4\x05\x16\x17\n7\n\x06\ |
9304 | | \x04\x11\x04\0\x02\x02\x12\x04\xc5\x05\x04\x13\"'\x20idempotent,\x20but\ |
9305 | | \x20may\x20have\x20side\x20effects\n\n\x0f\n\x07\x04\x11\x04\0\x02\x02\ |
9306 | | \x01\x12\x04\xc5\x05\x04\x0e\n\x0f\n\x07\x04\x11\x04\0\x02\x02\x02\x12\ |
9307 | | \x04\xc5\x05\x11\x12\n\x0e\n\x04\x04\x11\x02\x01\x12\x06\xc7\x05\x02\xc8\ |
9308 | | \x05&\n\r\n\x05\x04\x11\x02\x01\x04\x12\x04\xc7\x05\x02\n\n\r\n\x05\x04\ |
9309 | | \x11\x02\x01\x06\x12\x04\xc7\x05\x0b\x1b\n\r\n\x05\x04\x11\x02\x01\x01\ |
9310 | | \x12\x04\xc7\x05\x1c-\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xc7\x0502\n\ |
9311 | | \r\n\x05\x04\x11\x02\x01\x08\x12\x04\xc8\x05\x06%\n\r\n\x05\x04\x11\x02\ |
9312 | | \x01\x07\x12\x04\xc8\x05\x11$\nO\n\x04\x04\x11\x02\x02\x12\x04\xcb\x05\ |
9313 | | \x02:\x1aA\x20The\x20parser\x20stores\x20options\x20it\x20doesn't\x20rec\ |
9314 | | ognize\x20here.\x20See\x20above.\n\n\r\n\x05\x04\x11\x02\x02\x04\x12\x04\ |
9315 | | \xcb\x05\x02\n\n\r\n\x05\x04\x11\x02\x02\x06\x12\x04\xcb\x05\x0b\x1e\n\r\ |
9316 | | \n\x05\x04\x11\x02\x02\x01\x12\x04\xcb\x05\x1f3\n\r\n\x05\x04\x11\x02\ |
9317 | | \x02\x03\x12\x04\xcb\x0569\nZ\n\x03\x04\x11\x05\x12\x04\xce\x05\x02\x19\ |
9318 | | \x1aM\x20Clients\x20can\x20define\x20custom\x20options\x20in\x20extensio\ |
9319 | | ns\x20of\x20this\x20message.\x20See\x20above.\n\n\x0c\n\x04\x04\x11\x05\ |
9320 | | \0\x12\x04\xce\x05\r\x18\n\r\n\x05\x04\x11\x05\0\x01\x12\x04\xce\x05\r\ |
9321 | | \x11\n\r\n\x05\x04\x11\x05\0\x02\x12\x04\xce\x05\x15\x18\n\x8b\x03\n\x02\ |
9322 | | \x04\x12\x12\x06\xd8\x05\0\xec\x05\x01\x1a\xfc\x02\x20A\x20message\x20re\ |
9323 | | presenting\x20a\x20option\x20the\x20parser\x20does\x20not\x20recognize.\ |
9324 | | \x20This\x20only\n\x20appears\x20in\x20options\x20protos\x20created\x20b\ |
9325 | | y\x20the\x20compiler::Parser\x20class.\n\x20DescriptorPool\x20resolves\ |
9326 | | \x20these\x20when\x20building\x20Descriptor\x20objects.\x20Therefore,\n\ |
9327 | | \x20options\x20protos\x20in\x20descriptor\x20objects\x20(e.g.\x20returne\ |
9328 | | d\x20by\x20Descriptor::options(),\n\x20or\x20produced\x20by\x20Descripto\ |
9329 | | r::CopyTo())\x20will\x20never\x20have\x20UninterpretedOptions\n\x20in\ |
9330 | | \x20them.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xd8\x05\x08\x1b\n\xcb\x02\n\ |
9331 | | \x04\x04\x12\x03\0\x12\x06\xde\x05\x02\xe1\x05\x03\x1a\xba\x02\x20The\ |
9332 | | \x20name\x20of\x20the\x20uninterpreted\x20option.\x20\x20Each\x20string\ |
9333 | | \x20represents\x20a\x20segment\x20in\n\x20a\x20dot-separated\x20name.\ |
9334 | | \x20\x20is_extension\x20is\x20true\x20iff\x20a\x20segment\x20represents\ |
9335 | | \x20an\n\x20extension\x20(denoted\x20with\x20parentheses\x20in\x20option\ |
9336 | | s\x20specs\x20in\x20.proto\x20files).\n\x20E.g.,{\x20[\"foo\",\x20false]\ |
9337 | | ,\x20[\"bar.baz\",\x20true],\x20[\"qux\",\x20false]\x20}\x20represents\n\ |
9338 | | \x20\"foo.(bar.baz).qux\".\n\n\r\n\x05\x04\x12\x03\0\x01\x12\x04\xde\x05\ |
9339 | | \n\x12\n\x0e\n\x06\x04\x12\x03\0\x02\0\x12\x04\xdf\x05\x04\"\n\x0f\n\x07\ |
9340 | | \x04\x12\x03\0\x02\0\x04\x12\x04\xdf\x05\x04\x0c\n\x0f\n\x07\x04\x12\x03\ |
9341 | | \0\x02\0\x05\x12\x04\xdf\x05\r\x13\n\x0f\n\x07\x04\x12\x03\0\x02\0\x01\ |
9342 | | \x12\x04\xdf\x05\x14\x1d\n\x0f\n\x07\x04\x12\x03\0\x02\0\x03\x12\x04\xdf\ |
9343 | | \x05\x20!\n\x0e\n\x06\x04\x12\x03\0\x02\x01\x12\x04\xe0\x05\x04#\n\x0f\n\ |
9344 | | \x07\x04\x12\x03\0\x02\x01\x04\x12\x04\xe0\x05\x04\x0c\n\x0f\n\x07\x04\ |
9345 | | \x12\x03\0\x02\x01\x05\x12\x04\xe0\x05\r\x11\n\x0f\n\x07\x04\x12\x03\0\ |
9346 | | \x02\x01\x01\x12\x04\xe0\x05\x12\x1e\n\x0f\n\x07\x04\x12\x03\0\x02\x01\ |
9347 | | \x03\x12\x04\xe0\x05!\"\n\x0c\n\x04\x04\x12\x02\0\x12\x04\xe2\x05\x02\ |
9348 | | \x1d\n\r\n\x05\x04\x12\x02\0\x04\x12\x04\xe2\x05\x02\n\n\r\n\x05\x04\x12\ |
9349 | | \x02\0\x06\x12\x04\xe2\x05\x0b\x13\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\ |
9350 | | \xe2\x05\x14\x18\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\xe2\x05\x1b\x1c\n\ |
9351 | | \x9c\x01\n\x04\x04\x12\x02\x01\x12\x04\xe6\x05\x02'\x1a\x8d\x01\x20The\ |
9352 | | \x20value\x20of\x20the\x20uninterpreted\x20option,\x20in\x20whatever\x20\ |
9353 | | type\x20the\x20tokenizer\n\x20identified\x20it\x20as\x20during\x20parsin\ |
9354 | | g.\x20Exactly\x20one\x20of\x20these\x20should\x20be\x20set.\n\n\r\n\x05\ |
9355 | | \x04\x12\x02\x01\x04\x12\x04\xe6\x05\x02\n\n\r\n\x05\x04\x12\x02\x01\x05\ |
9356 | | \x12\x04\xe6\x05\x0b\x11\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xe6\x05\ |
9357 | | \x12\"\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\xe6\x05%&\n\x0c\n\x04\x04\ |
9358 | | \x12\x02\x02\x12\x04\xe7\x05\x02)\n\r\n\x05\x04\x12\x02\x02\x04\x12\x04\ |
9359 | | \xe7\x05\x02\n\n\r\n\x05\x04\x12\x02\x02\x05\x12\x04\xe7\x05\x0b\x11\n\r\ |
9360 | | \n\x05\x04\x12\x02\x02\x01\x12\x04\xe7\x05\x12$\n\r\n\x05\x04\x12\x02\ |
9361 | | \x02\x03\x12\x04\xe7\x05'(\n\x0c\n\x04\x04\x12\x02\x03\x12\x04\xe8\x05\ |
9362 | | \x02(\n\r\n\x05\x04\x12\x02\x03\x04\x12\x04\xe8\x05\x02\n\n\r\n\x05\x04\ |
9363 | | \x12\x02\x03\x05\x12\x04\xe8\x05\x0b\x10\n\r\n\x05\x04\x12\x02\x03\x01\ |
9364 | | \x12\x04\xe8\x05\x11#\n\r\n\x05\x04\x12\x02\x03\x03\x12\x04\xe8\x05&'\n\ |
9365 | | \x0c\n\x04\x04\x12\x02\x04\x12\x04\xe9\x05\x02#\n\r\n\x05\x04\x12\x02\ |
9366 | | \x04\x04\x12\x04\xe9\x05\x02\n\n\r\n\x05\x04\x12\x02\x04\x05\x12\x04\xe9\ |
9367 | | \x05\x0b\x11\n\r\n\x05\x04\x12\x02\x04\x01\x12\x04\xe9\x05\x12\x1e\n\r\n\ |
9368 | | \x05\x04\x12\x02\x04\x03\x12\x04\xe9\x05!\"\n\x0c\n\x04\x04\x12\x02\x05\ |
9369 | | \x12\x04\xea\x05\x02\"\n\r\n\x05\x04\x12\x02\x05\x04\x12\x04\xea\x05\x02\ |
9370 | | \n\n\r\n\x05\x04\x12\x02\x05\x05\x12\x04\xea\x05\x0b\x10\n\r\n\x05\x04\ |
9371 | | \x12\x02\x05\x01\x12\x04\xea\x05\x11\x1d\n\r\n\x05\x04\x12\x02\x05\x03\ |
9372 | | \x12\x04\xea\x05\x20!\n\x0c\n\x04\x04\x12\x02\x06\x12\x04\xeb\x05\x02&\n\ |
9373 | | \r\n\x05\x04\x12\x02\x06\x04\x12\x04\xeb\x05\x02\n\n\r\n\x05\x04\x12\x02\ |
9374 | | \x06\x05\x12\x04\xeb\x05\x0b\x11\n\r\n\x05\x04\x12\x02\x06\x01\x12\x04\ |
9375 | | \xeb\x05\x12!\n\r\n\x05\x04\x12\x02\x06\x03\x12\x04\xeb\x05$%\n\xda\x01\ |
9376 | | \n\x02\x04\x13\x12\x06\xf3\x05\0\xf4\x06\x01\x1aj\x20Encapsulates\x20inf\ |
9377 | | ormation\x20about\x20the\x20original\x20source\x20file\x20from\x20which\ |
9378 | | \x20a\n\x20FileDescriptorProto\x20was\x20generated.\n2`\x20=============\ |
9379 | | ======================================================\n\x20Optional\x20\ |
9380 | | source\x20code\x20info\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xf3\x05\x08\x16\ |
9381 | | \n\x82\x11\n\x04\x04\x13\x02\0\x12\x04\x9f\x06\x02!\x1a\xf3\x10\x20A\x20\ |
9382 | | Location\x20identifies\x20a\x20piece\x20of\x20source\x20code\x20in\x20a\ |
9383 | | \x20.proto\x20file\x20which\n\x20corresponds\x20to\x20a\x20particular\ |
9384 | | \x20definition.\x20\x20This\x20information\x20is\x20intended\n\x20to\x20\ |
9385 | | be\x20useful\x20to\x20IDEs,\x20code\x20indexers,\x20documentation\x20gen\ |
9386 | | erators,\x20and\x20similar\n\x20tools.\n\n\x20For\x20example,\x20say\x20\ |
9387 | | we\x20have\x20a\x20file\x20like:\n\x20\x20\x20message\x20Foo\x20{\n\x20\ |
9388 | | \x20\x20\x20\x20optional\x20string\x20foo\x20=\x201;\n\x20\x20\x20}\n\ |
9389 | | \x20Let's\x20look\x20at\x20just\x20the\x20field\x20definition:\n\x20\x20\ |
9390 | | \x20optional\x20string\x20foo\x20=\x201;\n\x20\x20\x20^\x20\x20\x20\x20\ |
9391 | | \x20\x20\x20^^\x20\x20\x20\x20\x20^^\x20\x20^\x20\x20^^^\n\x20\x20\x20a\ |
9392 | | \x20\x20\x20\x20\x20\x20\x20bc\x20\x20\x20\x20\x20de\x20\x20f\x20\x20ghi\ |
9393 | | \n\x20We\x20have\x20the\x20following\x20locations:\n\x20\x20\x20span\x20\ |
9394 | | \x20\x20path\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ |
9395 | | represents\n\x20\x20\x20[a,i)\x20\x20[\x204,\x200,\x202,\x200\x20]\x20\ |
9396 | | \x20\x20\x20\x20The\x20whole\x20field\x20definition.\n\x20\x20\x20[a,b)\ |
9397 | | \x20\x20[\x204,\x200,\x202,\x200,\x204\x20]\x20\x20The\x20label\x20(opti\ |
9398 | | onal).\n\x20\x20\x20[c,d)\x20\x20[\x204,\x200,\x202,\x200,\x205\x20]\x20\ |
9399 | | \x20The\x20type\x20(string).\n\x20\x20\x20[e,f)\x20\x20[\x204,\x200,\x20\ |
9400 | | 2,\x200,\x201\x20]\x20\x20The\x20name\x20(foo).\n\x20\x20\x20[g,h)\x20\ |
9401 | | \x20[\x204,\x200,\x202,\x200,\x203\x20]\x20\x20The\x20number\x20(1).\n\n\ |
9402 | | \x20Notes:\n\x20-\x20A\x20location\x20may\x20refer\x20to\x20a\x20repeate\ |
9403 | | d\x20field\x20itself\x20(i.e.\x20not\x20to\x20any\n\x20\x20\x20particula\ |
9404 | | r\x20index\x20within\x20it).\x20\x20This\x20is\x20used\x20whenever\x20a\ |
9405 | | \x20set\x20of\x20elements\x20are\n\x20\x20\x20logically\x20enclosed\x20i\ |
9406 | | n\x20a\x20single\x20code\x20segment.\x20\x20For\x20example,\x20an\x20ent\ |
9407 | | ire\n\x20\x20\x20extend\x20block\x20(possibly\x20containing\x20multiple\ |
9408 | | \x20extension\x20definitions)\x20will\n\x20\x20\x20have\x20an\x20outer\ |
9409 | | \x20location\x20whose\x20path\x20refers\x20to\x20the\x20\"extensions\"\ |
9410 | | \x20repeated\n\x20\x20\x20field\x20without\x20an\x20index.\n\x20-\x20Mul\ |
9411 | | tiple\x20locations\x20may\x20have\x20the\x20same\x20path.\x20\x20This\ |
9412 | | \x20happens\x20when\x20a\x20single\n\x20\x20\x20logical\x20declaration\ |
9413 | | \x20is\x20spread\x20out\x20across\x20multiple\x20places.\x20\x20The\x20m\ |
9414 | | ost\n\x20\x20\x20obvious\x20example\x20is\x20the\x20\"extend\"\x20block\ |
9415 | | \x20again\x20--\x20there\x20may\x20be\x20multiple\n\x20\x20\x20extend\ |
9416 | | \x20blocks\x20in\x20the\x20same\x20scope,\x20each\x20of\x20which\x20will\ |
9417 | | \x20have\x20the\x20same\x20path.\n\x20-\x20A\x20location's\x20span\x20is\ |
9418 | | \x20not\x20always\x20a\x20subset\x20of\x20its\x20parent's\x20span.\x20\ |
9419 | | \x20For\n\x20\x20\x20example,\x20the\x20\"extendee\"\x20of\x20an\x20exte\ |
9420 | | nsion\x20declaration\x20appears\x20at\x20the\n\x20\x20\x20beginning\x20o\ |
9421 | | f\x20the\x20\"extend\"\x20block\x20and\x20is\x20shared\x20by\x20all\x20e\ |
9422 | | xtensions\x20within\n\x20\x20\x20the\x20block.\n\x20-\x20Just\x20because\ |
9423 | | \x20a\x20location's\x20span\x20is\x20a\x20subset\x20of\x20some\x20other\ |
9424 | | \x20location's\x20span\n\x20\x20\x20does\x20not\x20mean\x20that\x20it\ |
9425 | | \x20is\x20a\x20descendant.\x20\x20For\x20example,\x20a\x20\"group\"\x20d\ |
9426 | | efines\n\x20\x20\x20both\x20a\x20type\x20and\x20a\x20field\x20in\x20a\ |
9427 | | \x20single\x20declaration.\x20\x20Thus,\x20the\x20locations\n\x20\x20\ |
9428 | | \x20corresponding\x20to\x20the\x20type\x20and\x20field\x20and\x20their\ |
9429 | | \x20components\x20will\x20overlap.\n\x20-\x20Code\x20which\x20tries\x20t\ |
9430 | | o\x20interpret\x20locations\x20should\x20probably\x20be\x20designed\x20t\ |
9431 | | o\n\x20\x20\x20ignore\x20those\x20that\x20it\x20doesn't\x20understand,\ |
9432 | | \x20as\x20more\x20types\x20of\x20locations\x20could\n\x20\x20\x20be\x20r\ |
9433 | | ecorded\x20in\x20the\x20future.\n\n\r\n\x05\x04\x13\x02\0\x04\x12\x04\ |
9434 | | \x9f\x06\x02\n\n\r\n\x05\x04\x13\x02\0\x06\x12\x04\x9f\x06\x0b\x13\n\r\n\ |
9435 | | \x05\x04\x13\x02\0\x01\x12\x04\x9f\x06\x14\x1c\n\r\n\x05\x04\x13\x02\0\ |
9436 | | \x03\x12\x04\x9f\x06\x1f\x20\n\x0e\n\x04\x04\x13\x03\0\x12\x06\xa0\x06\ |
9437 | | \x02\xf3\x06\x03\n\r\n\x05\x04\x13\x03\0\x01\x12\x04\xa0\x06\n\x12\n\x83\ |
9438 | | \x07\n\x06\x04\x13\x03\0\x02\0\x12\x04\xb8\x06\x04,\x1a\xf2\x06\x20Ident\ |
9439 | | ifies\x20which\x20part\x20of\x20the\x20FileDescriptorProto\x20was\x20def\ |
9440 | | ined\x20at\x20this\n\x20location.\n\n\x20Each\x20element\x20is\x20a\x20f\ |
9441 | | ield\x20number\x20or\x20an\x20index.\x20\x20They\x20form\x20a\x20path\ |
9442 | | \x20from\n\x20the\x20root\x20FileDescriptorProto\x20to\x20the\x20place\ |
9443 | | \x20where\x20the\x20definition.\x20\x20For\n\x20example,\x20this\x20path\ |
9444 | | :\n\x20\x20\x20[\x204,\x203,\x202,\x207,\x201\x20]\n\x20refers\x20to:\n\ |
9445 | | \x20\x20\x20file.message_type(3)\x20\x20//\x204,\x203\n\x20\x20\x20\x20\ |
9446 | | \x20\x20\x20.field(7)\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x202,\x207\n\ |
9447 | | \x20\x20\x20\x20\x20\x20\x20.name()\x20\x20\x20\x20\x20\x20\x20\x20\x20\ |
9448 | | \x20\x20//\x201\n\x20This\x20is\x20because\x20FileDescriptorProto.messag\ |
9449 | | e_type\x20has\x20field\x20number\x204:\n\x20\x20\x20repeated\x20Descript\ |
9450 | | orProto\x20message_type\x20=\x204;\n\x20and\x20DescriptorProto.field\x20\ |
9451 | | has\x20field\x20number\x202:\n\x20\x20\x20repeated\x20FieldDescriptorPro\ |
9452 | | to\x20field\x20=\x202;\n\x20and\x20FieldDescriptorProto.name\x20has\x20f\ |
9453 | | ield\x20number\x201:\n\x20\x20\x20optional\x20string\x20name\x20=\x201;\ |
9454 | | \n\n\x20Thus,\x20the\x20above\x20path\x20gives\x20the\x20location\x20of\ |
9455 | | \x20a\x20field\x20name.\x20\x20If\x20we\x20removed\n\x20the\x20last\x20e\ |
9456 | | lement:\n\x20\x20\x20[\x204,\x203,\x202,\x207\x20]\n\x20this\x20path\x20\ |
9457 | | refers\x20to\x20the\x20whole\x20field\x20declaration\x20(from\x20the\x20\ |
9458 | | beginning\n\x20of\x20the\x20label\x20to\x20the\x20terminating\x20semicol\ |
9459 | | on).\n\n\x0f\n\x07\x04\x13\x03\0\x02\0\x04\x12\x04\xb8\x06\x04\x0c\n\x0f\ |
9460 | | \n\x07\x04\x13\x03\0\x02\0\x05\x12\x04\xb8\x06\r\x12\n\x0f\n\x07\x04\x13\ |
9461 | | \x03\0\x02\0\x01\x12\x04\xb8\x06\x13\x17\n\x0f\n\x07\x04\x13\x03\0\x02\0\ |
9462 | | \x03\x12\x04\xb8\x06\x1a\x1b\n\x0f\n\x07\x04\x13\x03\0\x02\0\x08\x12\x04\ |
9463 | | \xb8\x06\x1c+\n\x10\n\x08\x04\x13\x03\0\x02\0\x08\x02\x12\x04\xb8\x06\ |
9464 | | \x1d*\n\xd2\x02\n\x06\x04\x13\x03\0\x02\x01\x12\x04\xbf\x06\x04,\x1a\xc1\ |
9465 | | \x02\x20Always\x20has\x20exactly\x20three\x20or\x20four\x20elements:\x20\ |
9466 | | start\x20line,\x20start\x20column,\n\x20end\x20line\x20(optional,\x20oth\ |
9467 | | erwise\x20assumed\x20same\x20as\x20start\x20line),\x20end\x20column.\n\ |
9468 | | \x20These\x20are\x20packed\x20into\x20a\x20single\x20field\x20for\x20eff\ |
9469 | | iciency.\x20\x20Note\x20that\x20line\n\x20and\x20column\x20numbers\x20ar\ |
9470 | | e\x20zero-based\x20--\x20typically\x20you\x20will\x20want\x20to\x20add\n\ |
9471 | | \x201\x20to\x20each\x20before\x20displaying\x20to\x20a\x20user.\n\n\x0f\ |
9472 | | \n\x07\x04\x13\x03\0\x02\x01\x04\x12\x04\xbf\x06\x04\x0c\n\x0f\n\x07\x04\ |
9473 | | \x13\x03\0\x02\x01\x05\x12\x04\xbf\x06\r\x12\n\x0f\n\x07\x04\x13\x03\0\ |
9474 | | \x02\x01\x01\x12\x04\xbf\x06\x13\x17\n\x0f\n\x07\x04\x13\x03\0\x02\x01\ |
9475 | | \x03\x12\x04\xbf\x06\x1a\x1b\n\x0f\n\x07\x04\x13\x03\0\x02\x01\x08\x12\ |
9476 | | \x04\xbf\x06\x1c+\n\x10\n\x08\x04\x13\x03\0\x02\x01\x08\x02\x12\x04\xbf\ |
9477 | | \x06\x1d*\n\xa5\x0c\n\x06\x04\x13\x03\0\x02\x02\x12\x04\xf0\x06\x04)\x1a\ |
9478 | | \x94\x0c\x20If\x20this\x20SourceCodeInfo\x20represents\x20a\x20complete\ |
9479 | | \x20declaration,\x20these\x20are\x20any\n\x20comments\x20appearing\x20be\ |
9480 | | fore\x20and\x20after\x20the\x20declaration\x20which\x20appear\x20to\x20b\ |
9481 | | e\n\x20attached\x20to\x20the\x20declaration.\n\n\x20A\x20series\x20of\ |
9482 | | \x20line\x20comments\x20appearing\x20on\x20consecutive\x20lines,\x20with\ |
9483 | | \x20no\x20other\n\x20tokens\x20appearing\x20on\x20those\x20lines,\x20wil\ |
9484 | | l\x20be\x20treated\x20as\x20a\x20single\x20comment.\n\n\x20leading_detac\ |
9485 | | hed_comments\x20will\x20keep\x20paragraphs\x20of\x20comments\x20that\x20\ |
9486 | | appear\n\x20before\x20(but\x20not\x20connected\x20to)\x20the\x20current\ |
9487 | | \x20element.\x20Each\x20paragraph,\n\x20separated\x20by\x20empty\x20line\ |
9488 | | s,\x20will\x20be\x20one\x20comment\x20element\x20in\x20the\x20repeated\n\ |
9489 | | \x20field.\n\n\x20Only\x20the\x20comment\x20content\x20is\x20provided;\ |
9490 | | \x20comment\x20markers\x20(e.g.\x20//)\x20are\n\x20stripped\x20out.\x20\ |
9491 | | \x20For\x20block\x20comments,\x20leading\x20whitespace\x20and\x20an\x20a\ |
9492 | | sterisk\n\x20will\x20be\x20stripped\x20from\x20the\x20beginning\x20of\ |
9493 | | \x20each\x20line\x20other\x20than\x20the\x20first.\n\x20Newlines\x20are\ |
9494 | | \x20included\x20in\x20the\x20output.\n\n\x20Examples:\n\n\x20\x20\x20opt\ |
9495 | | ional\x20int32\x20foo\x20=\x201;\x20\x20//\x20Comment\x20attached\x20to\ |
9496 | | \x20foo.\n\x20\x20\x20//\x20Comment\x20attached\x20to\x20bar.\n\x20\x20\ |
9497 | | \x20optional\x20int32\x20bar\x20=\x202;\n\n\x20\x20\x20optional\x20strin\ |
9498 | | g\x20baz\x20=\x203;\n\x20\x20\x20//\x20Comment\x20attached\x20to\x20baz.\ |
9499 | | \n\x20\x20\x20//\x20Another\x20line\x20attached\x20to\x20baz.\n\n\x20\ |
9500 | | \x20\x20//\x20Comment\x20attached\x20to\x20qux.\n\x20\x20\x20//\n\x20\ |
9501 | | \x20\x20//\x20Another\x20line\x20attached\x20to\x20qux.\n\x20\x20\x20opt\ |
9502 | | ional\x20double\x20qux\x20=\x204;\n\n\x20\x20\x20//\x20Detached\x20comme\ |
9503 | | nt\x20for\x20corge.\x20This\x20is\x20not\x20leading\x20or\x20trailing\ |
9504 | | \x20comments\n\x20\x20\x20//\x20to\x20qux\x20or\x20corge\x20because\x20t\ |
9505 | | here\x20are\x20blank\x20lines\x20separating\x20it\x20from\n\x20\x20\x20/\ |
9506 | | /\x20both.\n\n\x20\x20\x20//\x20Detached\x20comment\x20for\x20corge\x20p\ |
9507 | | aragraph\x202.\n\n\x20\x20\x20optional\x20string\x20corge\x20=\x205;\n\ |
9508 | | \x20\x20\x20/*\x20Block\x20comment\x20attached\n\x20\x20\x20\x20*\x20to\ |
9509 | | \x20corge.\x20\x20Leading\x20asterisks\n\x20\x20\x20\x20*\x20will\x20be\ |
9510 | | \x20removed.\x20*/\n\x20\x20\x20/*\x20Block\x20comment\x20attached\x20to\ |
9511 | | \n\x20\x20\x20\x20*\x20grault.\x20*/\n\x20\x20\x20optional\x20int32\x20g\ |
9512 | | rault\x20=\x206;\n\n\x20\x20\x20//\x20ignored\x20detached\x20comments.\n\ |
9513 | | \n\x0f\n\x07\x04\x13\x03\0\x02\x02\x04\x12\x04\xf0\x06\x04\x0c\n\x0f\n\ |
9514 | | \x07\x04\x13\x03\0\x02\x02\x05\x12\x04\xf0\x06\r\x13\n\x0f\n\x07\x04\x13\ |
9515 | | \x03\0\x02\x02\x01\x12\x04\xf0\x06\x14$\n\x0f\n\x07\x04\x13\x03\0\x02\ |
9516 | | \x02\x03\x12\x04\xf0\x06'(\n\x0e\n\x06\x04\x13\x03\0\x02\x03\x12\x04\xf1\ |
9517 | | \x06\x04*\n\x0f\n\x07\x04\x13\x03\0\x02\x03\x04\x12\x04\xf1\x06\x04\x0c\ |
9518 | | \n\x0f\n\x07\x04\x13\x03\0\x02\x03\x05\x12\x04\xf1\x06\r\x13\n\x0f\n\x07\ |
9519 | | \x04\x13\x03\0\x02\x03\x01\x12\x04\xf1\x06\x14%\n\x0f\n\x07\x04\x13\x03\ |
9520 | | \0\x02\x03\x03\x12\x04\xf1\x06()\n\x0e\n\x06\x04\x13\x03\0\x02\x04\x12\ |
9521 | | \x04\xf2\x06\x042\n\x0f\n\x07\x04\x13\x03\0\x02\x04\x04\x12\x04\xf2\x06\ |
9522 | | \x04\x0c\n\x0f\n\x07\x04\x13\x03\0\x02\x04\x05\x12\x04\xf2\x06\r\x13\n\ |
9523 | | \x0f\n\x07\x04\x13\x03\0\x02\x04\x01\x12\x04\xf2\x06\x14-\n\x0f\n\x07\ |
9524 | | \x04\x13\x03\0\x02\x04\x03\x12\x04\xf2\x0601\n\xee\x01\n\x02\x04\x14\x12\ |
9525 | | \x06\xf9\x06\0\x8e\x07\x01\x1a\xdf\x01\x20Describes\x20the\x20relationsh\ |
9526 | | ip\x20between\x20generated\x20code\x20and\x20its\x20original\x20source\n\ |
9527 | | \x20file.\x20A\x20GeneratedCodeInfo\x20message\x20is\x20associated\x20wi\ |
9528 | | th\x20only\x20one\x20generated\n\x20source\x20file,\x20but\x20may\x20con\ |
9529 | | tain\x20references\x20to\x20different\x20source\x20.proto\x20files.\n\n\ |
9530 | | \x0b\n\x03\x04\x14\x01\x12\x04\xf9\x06\x08\x19\nx\n\x04\x04\x14\x02\0\ |
9531 | | \x12\x04\xfc\x06\x02%\x1aj\x20An\x20Annotation\x20connects\x20some\x20sp\ |
9532 | | an\x20of\x20text\x20in\x20generated\x20code\x20to\x20an\x20element\n\x20\ |
9533 | | of\x20its\x20generating\x20.proto\x20file.\n\n\r\n\x05\x04\x14\x02\0\x04\ |
9534 | | \x12\x04\xfc\x06\x02\n\n\r\n\x05\x04\x14\x02\0\x06\x12\x04\xfc\x06\x0b\ |
9535 | | \x15\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xfc\x06\x16\x20\n\r\n\x05\x04\ |
9536 | | \x14\x02\0\x03\x12\x04\xfc\x06#$\n\x0e\n\x04\x04\x14\x03\0\x12\x06\xfd\ |
9537 | | \x06\x02\x8d\x07\x03\n\r\n\x05\x04\x14\x03\0\x01\x12\x04\xfd\x06\n\x14\n\ |
9538 | | \x8f\x01\n\x06\x04\x14\x03\0\x02\0\x12\x04\x80\x07\x04,\x1a\x7f\x20Ident\ |
9539 | | ifies\x20the\x20element\x20in\x20the\x20original\x20source\x20.proto\x20\ |
9540 | | file.\x20This\x20field\n\x20is\x20formatted\x20the\x20same\x20as\x20Sour\ |
9541 | | ceCodeInfo.Location.path.\n\n\x0f\n\x07\x04\x14\x03\0\x02\0\x04\x12\x04\ |
9542 | | \x80\x07\x04\x0c\n\x0f\n\x07\x04\x14\x03\0\x02\0\x05\x12\x04\x80\x07\r\ |
9543 | | \x12\n\x0f\n\x07\x04\x14\x03\0\x02\0\x01\x12\x04\x80\x07\x13\x17\n\x0f\n\ |
9544 | | \x07\x04\x14\x03\0\x02\0\x03\x12\x04\x80\x07\x1a\x1b\n\x0f\n\x07\x04\x14\ |
9545 | | \x03\0\x02\0\x08\x12\x04\x80\x07\x1c+\n\x10\n\x08\x04\x14\x03\0\x02\0\ |
9546 | | \x08\x02\x12\x04\x80\x07\x1d*\nO\n\x06\x04\x14\x03\0\x02\x01\x12\x04\x83\ |
9547 | | \x07\x04$\x1a?\x20Identifies\x20the\x20filesystem\x20path\x20to\x20the\ |
9548 | | \x20original\x20source\x20.proto.\n\n\x0f\n\x07\x04\x14\x03\0\x02\x01\ |
9549 | | \x04\x12\x04\x83\x07\x04\x0c\n\x0f\n\x07\x04\x14\x03\0\x02\x01\x05\x12\ |
9550 | | \x04\x83\x07\r\x13\n\x0f\n\x07\x04\x14\x03\0\x02\x01\x01\x12\x04\x83\x07\ |
9551 | | \x14\x1f\n\x0f\n\x07\x04\x14\x03\0\x02\x01\x03\x12\x04\x83\x07\"#\nw\n\ |
9552 | | \x06\x04\x14\x03\0\x02\x02\x12\x04\x87\x07\x04\x1d\x1ag\x20Identifies\ |
9553 | | \x20the\x20starting\x20offset\x20in\x20bytes\x20in\x20the\x20generated\ |
9554 | | \x20code\n\x20that\x20relates\x20to\x20the\x20identified\x20object.\n\n\ |
9555 | | \x0f\n\x07\x04\x14\x03\0\x02\x02\x04\x12\x04\x87\x07\x04\x0c\n\x0f\n\x07\ |
9556 | | \x04\x14\x03\0\x02\x02\x05\x12\x04\x87\x07\r\x12\n\x0f\n\x07\x04\x14\x03\ |
9557 | | \0\x02\x02\x01\x12\x04\x87\x07\x13\x18\n\x0f\n\x07\x04\x14\x03\0\x02\x02\ |
9558 | | \x03\x12\x04\x87\x07\x1b\x1c\n\xdb\x01\n\x06\x04\x14\x03\0\x02\x03\x12\ |
9559 | | \x04\x8c\x07\x04\x1b\x1a\xca\x01\x20Identifies\x20the\x20ending\x20offse\ |
9560 | | t\x20in\x20bytes\x20in\x20the\x20generated\x20code\x20that\n\x20relates\ |
9561 | | \x20to\x20the\x20identified\x20offset.\x20The\x20end\x20offset\x20should\ |
9562 | | \x20be\x20one\x20past\n\x20the\x20last\x20relevant\x20byte\x20(so\x20the\ |
9563 | | \x20length\x20of\x20the\x20text\x20=\x20end\x20-\x20begin).\n\n\x0f\n\ |
9564 | | \x07\x04\x14\x03\0\x02\x03\x04\x12\x04\x8c\x07\x04\x0c\n\x0f\n\x07\x04\ |
9565 | | \x14\x03\0\x02\x03\x05\x12\x04\x8c\x07\r\x12\n\x0f\n\x07\x04\x14\x03\0\ |
9566 | | \x02\x03\x01\x12\x04\x8c\x07\x13\x16\n\x0f\n\x07\x04\x14\x03\0\x02\x03\ |
9567 | | \x03\x12\x04\x8c\x07\x19\x1a\ |
9568 | | "; |
9569 | | |
9570 | | /// `FileDescriptorProto` object which was a source for this generated file |
9571 | 0 | fn file_descriptor_proto() -> &'static crate::descriptor::FileDescriptorProto { |
9572 | | static file_descriptor_proto_lazy: crate::rt::Lazy<crate::descriptor::FileDescriptorProto> = crate::rt::Lazy::new(); |
9573 | 0 | file_descriptor_proto_lazy.get(|| { |
9574 | 0 | crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() |
9575 | 0 | }) |
9576 | 0 | } |
9577 | | |
9578 | | /// `FileDescriptor` object which allows dynamic access to files |
9579 | 0 | pub fn file_descriptor() -> &'static crate::reflect::FileDescriptor { |
9580 | | static generated_file_descriptor_lazy: crate::rt::Lazy<crate::reflect::GeneratedFileDescriptor> = crate::rt::Lazy::new(); |
9581 | | static file_descriptor: crate::rt::Lazy<crate::reflect::FileDescriptor> = crate::rt::Lazy::new(); |
9582 | 0 | file_descriptor.get(|| { |
9583 | 0 | let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { |
9584 | 0 | let mut deps = ::std::vec::Vec::with_capacity(0); |
9585 | 0 | let mut messages = ::std::vec::Vec::with_capacity(27); |
9586 | 0 | messages.push(FileDescriptorSet::generated_message_descriptor_data()); |
9587 | 0 | messages.push(FileDescriptorProto::generated_message_descriptor_data()); |
9588 | 0 | messages.push(DescriptorProto::generated_message_descriptor_data()); |
9589 | 0 | messages.push(ExtensionRangeOptions::generated_message_descriptor_data()); |
9590 | 0 | messages.push(FieldDescriptorProto::generated_message_descriptor_data()); |
9591 | 0 | messages.push(OneofDescriptorProto::generated_message_descriptor_data()); |
9592 | 0 | messages.push(EnumDescriptorProto::generated_message_descriptor_data()); |
9593 | 0 | messages.push(EnumValueDescriptorProto::generated_message_descriptor_data()); |
9594 | 0 | messages.push(ServiceDescriptorProto::generated_message_descriptor_data()); |
9595 | 0 | messages.push(MethodDescriptorProto::generated_message_descriptor_data()); |
9596 | 0 | messages.push(FileOptions::generated_message_descriptor_data()); |
9597 | 0 | messages.push(MessageOptions::generated_message_descriptor_data()); |
9598 | 0 | messages.push(FieldOptions::generated_message_descriptor_data()); |
9599 | 0 | messages.push(OneofOptions::generated_message_descriptor_data()); |
9600 | 0 | messages.push(EnumOptions::generated_message_descriptor_data()); |
9601 | 0 | messages.push(EnumValueOptions::generated_message_descriptor_data()); |
9602 | 0 | messages.push(ServiceOptions::generated_message_descriptor_data()); |
9603 | 0 | messages.push(MethodOptions::generated_message_descriptor_data()); |
9604 | 0 | messages.push(UninterpretedOption::generated_message_descriptor_data()); |
9605 | 0 | messages.push(SourceCodeInfo::generated_message_descriptor_data()); |
9606 | 0 | messages.push(GeneratedCodeInfo::generated_message_descriptor_data()); |
9607 | 0 | messages.push(descriptor_proto::ExtensionRange::generated_message_descriptor_data()); |
9608 | 0 | messages.push(descriptor_proto::ReservedRange::generated_message_descriptor_data()); |
9609 | 0 | messages.push(enum_descriptor_proto::EnumReservedRange::generated_message_descriptor_data()); |
9610 | 0 | messages.push(uninterpreted_option::NamePart::generated_message_descriptor_data()); |
9611 | 0 | messages.push(source_code_info::Location::generated_message_descriptor_data()); |
9612 | 0 | messages.push(generated_code_info::Annotation::generated_message_descriptor_data()); |
9613 | 0 | let mut enums = ::std::vec::Vec::with_capacity(6); |
9614 | 0 | enums.push(field_descriptor_proto::Type::generated_enum_descriptor_data()); |
9615 | 0 | enums.push(field_descriptor_proto::Label::generated_enum_descriptor_data()); |
9616 | 0 | enums.push(file_options::OptimizeMode::generated_enum_descriptor_data()); |
9617 | 0 | enums.push(field_options::CType::generated_enum_descriptor_data()); |
9618 | 0 | enums.push(field_options::JSType::generated_enum_descriptor_data()); |
9619 | 0 | enums.push(method_options::IdempotencyLevel::generated_enum_descriptor_data()); |
9620 | 0 | crate::reflect::GeneratedFileDescriptor::new_generated( |
9621 | 0 | file_descriptor_proto(), |
9622 | 0 | deps, |
9623 | 0 | messages, |
9624 | 0 | enums, |
9625 | | ) |
9626 | 0 | }); |
9627 | 0 | crate::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) |
9628 | 0 | }) |
9629 | 0 | } |