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/compiler/plugin.proto`
23
24 /// The version number of protocol compiler.
25 #[derive(PartialEq,Clone,Default,Debug)]
26 // @@protoc_insertion_point(message:google.protobuf.compiler.Version)
27 pub struct Version {
28 // message fields
29 // @@protoc_insertion_point(field:google.protobuf.compiler.Version.major)
30 pub major: ::std::option::Option<i32>,
31 // @@protoc_insertion_point(field:google.protobuf.compiler.Version.minor)
32 pub minor: ::std::option::Option<i32>,
33 // @@protoc_insertion_point(field:google.protobuf.compiler.Version.patch)
34 pub patch: ::std::option::Option<i32>,
35 /// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
36 /// be empty for mainline stable releases.
37 // @@protoc_insertion_point(field:google.protobuf.compiler.Version.suffix)
38 pub suffix: ::std::option::Option<::std::string::String>,
39 // special fields
40 // @@protoc_insertion_point(special_field:google.protobuf.compiler.Version.special_fields)
41 pub special_fields: crate::SpecialFields,
42 }
43
44 impl<'a> ::std::default::Default for &'a Version {
default() -> &'a Version45 fn default() -> &'a Version {
46 <Version as crate::Message>::default_instance()
47 }
48 }
49
50 impl Version {
new() -> Version51 pub fn new() -> Version {
52 ::std::default::Default::default()
53 }
54
55 // optional int32 major = 1;
56
major(&self) -> i3257 pub fn major(&self) -> i32 {
58 self.major.unwrap_or(0)
59 }
60
clear_major(&mut self)61 pub fn clear_major(&mut self) {
62 self.major = ::std::option::Option::None;
63 }
64
has_major(&self) -> bool65 pub fn has_major(&self) -> bool {
66 self.major.is_some()
67 }
68
69 // Param is passed by value, moved
set_major(&mut self, v: i32)70 pub fn set_major(&mut self, v: i32) {
71 self.major = ::std::option::Option::Some(v);
72 }
73
74 // optional int32 minor = 2;
75
minor(&self) -> i3276 pub fn minor(&self) -> i32 {
77 self.minor.unwrap_or(0)
78 }
79
clear_minor(&mut self)80 pub fn clear_minor(&mut self) {
81 self.minor = ::std::option::Option::None;
82 }
83
has_minor(&self) -> bool84 pub fn has_minor(&self) -> bool {
85 self.minor.is_some()
86 }
87
88 // Param is passed by value, moved
set_minor(&mut self, v: i32)89 pub fn set_minor(&mut self, v: i32) {
90 self.minor = ::std::option::Option::Some(v);
91 }
92
93 // optional int32 patch = 3;
94
patch(&self) -> i3295 pub fn patch(&self) -> i32 {
96 self.patch.unwrap_or(0)
97 }
98
clear_patch(&mut self)99 pub fn clear_patch(&mut self) {
100 self.patch = ::std::option::Option::None;
101 }
102
has_patch(&self) -> bool103 pub fn has_patch(&self) -> bool {
104 self.patch.is_some()
105 }
106
107 // Param is passed by value, moved
set_patch(&mut self, v: i32)108 pub fn set_patch(&mut self, v: i32) {
109 self.patch = ::std::option::Option::Some(v);
110 }
111
112 // optional string suffix = 4;
113
suffix(&self) -> &str114 pub fn suffix(&self) -> &str {
115 match self.suffix.as_ref() {
116 Some(v) => v,
117 None => "",
118 }
119 }
120
clear_suffix(&mut self)121 pub fn clear_suffix(&mut self) {
122 self.suffix = ::std::option::Option::None;
123 }
124
has_suffix(&self) -> bool125 pub fn has_suffix(&self) -> bool {
126 self.suffix.is_some()
127 }
128
129 // Param is passed by value, moved
set_suffix(&mut self, v: ::std::string::String)130 pub fn set_suffix(&mut self, v: ::std::string::String) {
131 self.suffix = ::std::option::Option::Some(v);
132 }
133
134 // Mutable pointer to the field.
135 // If field is not initialized, it is initialized with default value first.
mut_suffix(&mut self) -> &mut ::std::string::String136 pub fn mut_suffix(&mut self) -> &mut ::std::string::String {
137 if self.suffix.is_none() {
138 self.suffix = ::std::option::Option::Some(::std::string::String::new());
139 }
140 self.suffix.as_mut().unwrap()
141 }
142
143 // Take field
take_suffix(&mut self) -> ::std::string::String144 pub fn take_suffix(&mut self) -> ::std::string::String {
145 self.suffix.take().unwrap_or_else(|| ::std::string::String::new())
146 }
147
generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData148 fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
149 let mut fields = ::std::vec::Vec::with_capacity(4);
150 let mut oneofs = ::std::vec::Vec::with_capacity(0);
151 fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>(
152 "major",
153 |m: &Version| { &m.major },
154 |m: &mut Version| { &mut m.major },
155 ));
156 fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>(
157 "minor",
158 |m: &Version| { &m.minor },
159 |m: &mut Version| { &mut m.minor },
160 ));
161 fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>(
162 "patch",
163 |m: &Version| { &m.patch },
164 |m: &mut Version| { &mut m.patch },
165 ));
166 fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>(
167 "suffix",
168 |m: &Version| { &m.suffix },
169 |m: &mut Version| { &mut m.suffix },
170 ));
171 crate::reflect::GeneratedMessageDescriptorData::new_2::<Version>(
172 "Version",
173 fields,
174 oneofs,
175 )
176 }
177 }
178
179 impl crate::Message for Version {
180 const NAME: &'static str = "Version";
181
is_initialized(&self) -> bool182 fn is_initialized(&self) -> bool {
183 true
184 }
185
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()>186 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
187 while let Some(tag) = is.read_raw_tag_or_eof()? {
188 match tag {
189 8 => {
190 self.major = ::std::option::Option::Some(is.read_int32()?);
191 },
192 16 => {
193 self.minor = ::std::option::Option::Some(is.read_int32()?);
194 },
195 24 => {
196 self.patch = ::std::option::Option::Some(is.read_int32()?);
197 },
198 34 => {
199 self.suffix = ::std::option::Option::Some(is.read_string()?);
200 },
201 tag => {
202 crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
203 },
204 };
205 }
206 ::std::result::Result::Ok(())
207 }
208
209 // Compute sizes of nested messages
210 #[allow(unused_variables)]
compute_size(&self) -> u64211 fn compute_size(&self) -> u64 {
212 let mut my_size = 0;
213 if let Some(v) = self.major {
214 my_size += crate::rt::int32_size(1, v);
215 }
216 if let Some(v) = self.minor {
217 my_size += crate::rt::int32_size(2, v);
218 }
219 if let Some(v) = self.patch {
220 my_size += crate::rt::int32_size(3, v);
221 }
222 if let Some(v) = self.suffix.as_ref() {
223 my_size += crate::rt::string_size(4, &v);
224 }
225 my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
226 self.special_fields.cached_size().set(my_size as u32);
227 my_size
228 }
229
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()>230 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
231 if let Some(v) = self.major {
232 os.write_int32(1, v)?;
233 }
234 if let Some(v) = self.minor {
235 os.write_int32(2, v)?;
236 }
237 if let Some(v) = self.patch {
238 os.write_int32(3, v)?;
239 }
240 if let Some(v) = self.suffix.as_ref() {
241 os.write_string(4, v)?;
242 }
243 os.write_unknown_fields(self.special_fields.unknown_fields())?;
244 ::std::result::Result::Ok(())
245 }
246
special_fields(&self) -> &crate::SpecialFields247 fn special_fields(&self) -> &crate::SpecialFields {
248 &self.special_fields
249 }
250
mut_special_fields(&mut self) -> &mut crate::SpecialFields251 fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
252 &mut self.special_fields
253 }
254
new() -> Version255 fn new() -> Version {
256 Version::new()
257 }
258
clear(&mut self)259 fn clear(&mut self) {
260 self.major = ::std::option::Option::None;
261 self.minor = ::std::option::Option::None;
262 self.patch = ::std::option::Option::None;
263 self.suffix = ::std::option::Option::None;
264 self.special_fields.clear();
265 }
266
default_instance() -> &'static Version267 fn default_instance() -> &'static Version {
268 static instance: Version = Version {
269 major: ::std::option::Option::None,
270 minor: ::std::option::Option::None,
271 patch: ::std::option::Option::None,
272 suffix: ::std::option::Option::None,
273 special_fields: crate::SpecialFields::new(),
274 };
275 &instance
276 }
277 }
278
279 impl crate::MessageFull for Version {
descriptor() -> crate::reflect::MessageDescriptor280 fn descriptor() -> crate::reflect::MessageDescriptor {
281 static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
282 descriptor.get(|| file_descriptor().message_by_package_relative_name("Version").unwrap()).clone()
283 }
284 }
285
286 impl ::std::fmt::Display for Version {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result287 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
288 crate::text_format::fmt(self, f)
289 }
290 }
291
292 impl crate::reflect::ProtobufValue for Version {
293 type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
294 }
295
296 /// An encoded CodeGeneratorRequest is written to the plugin's stdin.
297 #[derive(PartialEq,Clone,Default,Debug)]
298 // @@protoc_insertion_point(message:google.protobuf.compiler.CodeGeneratorRequest)
299 pub struct CodeGeneratorRequest {
300 // message fields
301 /// The .proto files that were explicitly listed on the command-line. The
302 /// code generator should generate code only for these files. Each file's
303 /// descriptor will be included in proto_file, below.
304 // @@protoc_insertion_point(field:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
305 pub file_to_generate: ::std::vec::Vec<::std::string::String>,
306 /// The generator parameter passed on the command-line.
307 // @@protoc_insertion_point(field:google.protobuf.compiler.CodeGeneratorRequest.parameter)
308 pub parameter: ::std::option::Option<::std::string::String>,
309 /// FileDescriptorProtos for all files in files_to_generate and everything
310 /// they import. The files will appear in topological order, so each file
311 /// appears before any file that imports it.
312 ///
313 /// protoc guarantees that all proto_files will be written after
314 /// the fields above, even though this is not technically guaranteed by the
315 /// protobuf wire format. This theoretically could allow a plugin to stream
316 /// in the FileDescriptorProtos and handle them one by one rather than read
317 /// the entire set into memory at once. However, as of this writing, this
318 /// is not similarly optimized on protoc's end -- it will store all fields in
319 /// memory at once before sending them to the plugin.
320 ///
321 /// Type names of fields and extensions in the FileDescriptorProto are always
322 /// fully qualified.
323 // @@protoc_insertion_point(field:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
324 pub proto_file: ::std::vec::Vec<crate::descriptor::FileDescriptorProto>,
325 /// The version number of protocol compiler.
326 // @@protoc_insertion_point(field:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
327 pub compiler_version: crate::MessageField<Version>,
328 // special fields
329 // @@protoc_insertion_point(special_field:google.protobuf.compiler.CodeGeneratorRequest.special_fields)
330 pub special_fields: crate::SpecialFields,
331 }
332
333 impl<'a> ::std::default::Default for &'a CodeGeneratorRequest {
default() -> &'a CodeGeneratorRequest334 fn default() -> &'a CodeGeneratorRequest {
335 <CodeGeneratorRequest as crate::Message>::default_instance()
336 }
337 }
338
339 impl CodeGeneratorRequest {
new() -> CodeGeneratorRequest340 pub fn new() -> CodeGeneratorRequest {
341 ::std::default::Default::default()
342 }
343
344 // optional string parameter = 2;
345
parameter(&self) -> &str346 pub fn parameter(&self) -> &str {
347 match self.parameter.as_ref() {
348 Some(v) => v,
349 None => "",
350 }
351 }
352
clear_parameter(&mut self)353 pub fn clear_parameter(&mut self) {
354 self.parameter = ::std::option::Option::None;
355 }
356
has_parameter(&self) -> bool357 pub fn has_parameter(&self) -> bool {
358 self.parameter.is_some()
359 }
360
361 // Param is passed by value, moved
set_parameter(&mut self, v: ::std::string::String)362 pub fn set_parameter(&mut self, v: ::std::string::String) {
363 self.parameter = ::std::option::Option::Some(v);
364 }
365
366 // Mutable pointer to the field.
367 // If field is not initialized, it is initialized with default value first.
mut_parameter(&mut self) -> &mut ::std::string::String368 pub fn mut_parameter(&mut self) -> &mut ::std::string::String {
369 if self.parameter.is_none() {
370 self.parameter = ::std::option::Option::Some(::std::string::String::new());
371 }
372 self.parameter.as_mut().unwrap()
373 }
374
375 // Take field
take_parameter(&mut self) -> ::std::string::String376 pub fn take_parameter(&mut self) -> ::std::string::String {
377 self.parameter.take().unwrap_or_else(|| ::std::string::String::new())
378 }
379
generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData380 fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
381 let mut fields = ::std::vec::Vec::with_capacity(4);
382 let mut oneofs = ::std::vec::Vec::with_capacity(0);
383 fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
384 "file_to_generate",
385 |m: &CodeGeneratorRequest| { &m.file_to_generate },
386 |m: &mut CodeGeneratorRequest| { &mut m.file_to_generate },
387 ));
388 fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>(
389 "parameter",
390 |m: &CodeGeneratorRequest| { &m.parameter },
391 |m: &mut CodeGeneratorRequest| { &mut m.parameter },
392 ));
393 fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
394 "proto_file",
395 |m: &CodeGeneratorRequest| { &m.proto_file },
396 |m: &mut CodeGeneratorRequest| { &mut m.proto_file },
397 ));
398 fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, Version>(
399 "compiler_version",
400 |m: &CodeGeneratorRequest| { &m.compiler_version },
401 |m: &mut CodeGeneratorRequest| { &mut m.compiler_version },
402 ));
403 crate::reflect::GeneratedMessageDescriptorData::new_2::<CodeGeneratorRequest>(
404 "CodeGeneratorRequest",
405 fields,
406 oneofs,
407 )
408 }
409 }
410
411 impl crate::Message for CodeGeneratorRequest {
412 const NAME: &'static str = "CodeGeneratorRequest";
413
is_initialized(&self) -> bool414 fn is_initialized(&self) -> bool {
415 for v in &self.proto_file {
416 if !v.is_initialized() {
417 return false;
418 }
419 };
420 for v in &self.compiler_version {
421 if !v.is_initialized() {
422 return false;
423 }
424 };
425 true
426 }
427
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()>428 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
429 while let Some(tag) = is.read_raw_tag_or_eof()? {
430 match tag {
431 10 => {
432 self.file_to_generate.push(is.read_string()?);
433 },
434 18 => {
435 self.parameter = ::std::option::Option::Some(is.read_string()?);
436 },
437 122 => {
438 self.proto_file.push(is.read_message()?);
439 },
440 26 => {
441 crate::rt::read_singular_message_into_field(is, &mut self.compiler_version)?;
442 },
443 tag => {
444 crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
445 },
446 };
447 }
448 ::std::result::Result::Ok(())
449 }
450
451 // Compute sizes of nested messages
452 #[allow(unused_variables)]
compute_size(&self) -> u64453 fn compute_size(&self) -> u64 {
454 let mut my_size = 0;
455 for value in &self.file_to_generate {
456 my_size += crate::rt::string_size(1, &value);
457 };
458 if let Some(v) = self.parameter.as_ref() {
459 my_size += crate::rt::string_size(2, &v);
460 }
461 for value in &self.proto_file {
462 let len = value.compute_size();
463 my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len;
464 };
465 if let Some(v) = self.compiler_version.as_ref() {
466 let len = v.compute_size();
467 my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len;
468 }
469 my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
470 self.special_fields.cached_size().set(my_size as u32);
471 my_size
472 }
473
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()>474 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
475 for v in &self.file_to_generate {
476 os.write_string(1, &v)?;
477 };
478 if let Some(v) = self.parameter.as_ref() {
479 os.write_string(2, v)?;
480 }
481 for v in &self.proto_file {
482 crate::rt::write_message_field_with_cached_size(15, v, os)?;
483 };
484 if let Some(v) = self.compiler_version.as_ref() {
485 crate::rt::write_message_field_with_cached_size(3, v, os)?;
486 }
487 os.write_unknown_fields(self.special_fields.unknown_fields())?;
488 ::std::result::Result::Ok(())
489 }
490
special_fields(&self) -> &crate::SpecialFields491 fn special_fields(&self) -> &crate::SpecialFields {
492 &self.special_fields
493 }
494
mut_special_fields(&mut self) -> &mut crate::SpecialFields495 fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
496 &mut self.special_fields
497 }
498
new() -> CodeGeneratorRequest499 fn new() -> CodeGeneratorRequest {
500 CodeGeneratorRequest::new()
501 }
502
clear(&mut self)503 fn clear(&mut self) {
504 self.file_to_generate.clear();
505 self.parameter = ::std::option::Option::None;
506 self.proto_file.clear();
507 self.compiler_version.clear();
508 self.special_fields.clear();
509 }
510
default_instance() -> &'static CodeGeneratorRequest511 fn default_instance() -> &'static CodeGeneratorRequest {
512 static instance: CodeGeneratorRequest = CodeGeneratorRequest {
513 file_to_generate: ::std::vec::Vec::new(),
514 parameter: ::std::option::Option::None,
515 proto_file: ::std::vec::Vec::new(),
516 compiler_version: crate::MessageField::none(),
517 special_fields: crate::SpecialFields::new(),
518 };
519 &instance
520 }
521 }
522
523 impl crate::MessageFull for CodeGeneratorRequest {
descriptor() -> crate::reflect::MessageDescriptor524 fn descriptor() -> crate::reflect::MessageDescriptor {
525 static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
526 descriptor.get(|| file_descriptor().message_by_package_relative_name("CodeGeneratorRequest").unwrap()).clone()
527 }
528 }
529
530 impl ::std::fmt::Display for CodeGeneratorRequest {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result531 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
532 crate::text_format::fmt(self, f)
533 }
534 }
535
536 impl crate::reflect::ProtobufValue for CodeGeneratorRequest {
537 type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
538 }
539
540 /// The plugin writes an encoded CodeGeneratorResponse to stdout.
541 #[derive(PartialEq,Clone,Default,Debug)]
542 // @@protoc_insertion_point(message:google.protobuf.compiler.CodeGeneratorResponse)
543 pub struct CodeGeneratorResponse {
544 // message fields
545 /// Error message. If non-empty, code generation failed. The plugin process
546 /// should exit with status code zero even if it reports an error in this way.
547 ///
548 /// This should be used to indicate errors in .proto files which prevent the
549 /// code generator from generating correct code. Errors which indicate a
550 /// problem in protoc itself -- such as the input CodeGeneratorRequest being
551 /// unparseable -- should be reported by writing a message to stderr and
552 /// exiting with a non-zero status code.
553 // @@protoc_insertion_point(field:google.protobuf.compiler.CodeGeneratorResponse.error)
554 pub error: ::std::option::Option<::std::string::String>,
555 /// A bitmask of supported features that the code generator supports.
556 /// This is a bitwise "or" of values from the Feature enum.
557 // @@protoc_insertion_point(field:google.protobuf.compiler.CodeGeneratorResponse.supported_features)
558 pub supported_features: ::std::option::Option<u64>,
559 // @@protoc_insertion_point(field:google.protobuf.compiler.CodeGeneratorResponse.file)
560 pub file: ::std::vec::Vec<code_generator_response::File>,
561 // special fields
562 // @@protoc_insertion_point(special_field:google.protobuf.compiler.CodeGeneratorResponse.special_fields)
563 pub special_fields: crate::SpecialFields,
564 }
565
566 impl<'a> ::std::default::Default for &'a CodeGeneratorResponse {
default() -> &'a CodeGeneratorResponse567 fn default() -> &'a CodeGeneratorResponse {
568 <CodeGeneratorResponse as crate::Message>::default_instance()
569 }
570 }
571
572 impl CodeGeneratorResponse {
new() -> CodeGeneratorResponse573 pub fn new() -> CodeGeneratorResponse {
574 ::std::default::Default::default()
575 }
576
577 // optional string error = 1;
578
error(&self) -> &str579 pub fn error(&self) -> &str {
580 match self.error.as_ref() {
581 Some(v) => v,
582 None => "",
583 }
584 }
585
clear_error(&mut self)586 pub fn clear_error(&mut self) {
587 self.error = ::std::option::Option::None;
588 }
589
has_error(&self) -> bool590 pub fn has_error(&self) -> bool {
591 self.error.is_some()
592 }
593
594 // Param is passed by value, moved
set_error(&mut self, v: ::std::string::String)595 pub fn set_error(&mut self, v: ::std::string::String) {
596 self.error = ::std::option::Option::Some(v);
597 }
598
599 // Mutable pointer to the field.
600 // If field is not initialized, it is initialized with default value first.
mut_error(&mut self) -> &mut ::std::string::String601 pub fn mut_error(&mut self) -> &mut ::std::string::String {
602 if self.error.is_none() {
603 self.error = ::std::option::Option::Some(::std::string::String::new());
604 }
605 self.error.as_mut().unwrap()
606 }
607
608 // Take field
take_error(&mut self) -> ::std::string::String609 pub fn take_error(&mut self) -> ::std::string::String {
610 self.error.take().unwrap_or_else(|| ::std::string::String::new())
611 }
612
613 // optional uint64 supported_features = 2;
614
supported_features(&self) -> u64615 pub fn supported_features(&self) -> u64 {
616 self.supported_features.unwrap_or(0)
617 }
618
clear_supported_features(&mut self)619 pub fn clear_supported_features(&mut self) {
620 self.supported_features = ::std::option::Option::None;
621 }
622
has_supported_features(&self) -> bool623 pub fn has_supported_features(&self) -> bool {
624 self.supported_features.is_some()
625 }
626
627 // Param is passed by value, moved
set_supported_features(&mut self, v: u64)628 pub fn set_supported_features(&mut self, v: u64) {
629 self.supported_features = ::std::option::Option::Some(v);
630 }
631
generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData632 fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
633 let mut fields = ::std::vec::Vec::with_capacity(3);
634 let mut oneofs = ::std::vec::Vec::with_capacity(0);
635 fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>(
636 "error",
637 |m: &CodeGeneratorResponse| { &m.error },
638 |m: &mut CodeGeneratorResponse| { &mut m.error },
639 ));
640 fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>(
641 "supported_features",
642 |m: &CodeGeneratorResponse| { &m.supported_features },
643 |m: &mut CodeGeneratorResponse| { &mut m.supported_features },
644 ));
645 fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
646 "file",
647 |m: &CodeGeneratorResponse| { &m.file },
648 |m: &mut CodeGeneratorResponse| { &mut m.file },
649 ));
650 crate::reflect::GeneratedMessageDescriptorData::new_2::<CodeGeneratorResponse>(
651 "CodeGeneratorResponse",
652 fields,
653 oneofs,
654 )
655 }
656 }
657
658 impl crate::Message for CodeGeneratorResponse {
659 const NAME: &'static str = "CodeGeneratorResponse";
660
is_initialized(&self) -> bool661 fn is_initialized(&self) -> bool {
662 true
663 }
664
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()>665 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
666 while let Some(tag) = is.read_raw_tag_or_eof()? {
667 match tag {
668 10 => {
669 self.error = ::std::option::Option::Some(is.read_string()?);
670 },
671 16 => {
672 self.supported_features = ::std::option::Option::Some(is.read_uint64()?);
673 },
674 122 => {
675 self.file.push(is.read_message()?);
676 },
677 tag => {
678 crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
679 },
680 };
681 }
682 ::std::result::Result::Ok(())
683 }
684
685 // Compute sizes of nested messages
686 #[allow(unused_variables)]
compute_size(&self) -> u64687 fn compute_size(&self) -> u64 {
688 let mut my_size = 0;
689 if let Some(v) = self.error.as_ref() {
690 my_size += crate::rt::string_size(1, &v);
691 }
692 if let Some(v) = self.supported_features {
693 my_size += crate::rt::uint64_size(2, v);
694 }
695 for value in &self.file {
696 let len = value.compute_size();
697 my_size += 1 + crate::rt::compute_raw_varint64_size(len) + len;
698 };
699 my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
700 self.special_fields.cached_size().set(my_size as u32);
701 my_size
702 }
703
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()>704 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
705 if let Some(v) = self.error.as_ref() {
706 os.write_string(1, v)?;
707 }
708 if let Some(v) = self.supported_features {
709 os.write_uint64(2, v)?;
710 }
711 for v in &self.file {
712 crate::rt::write_message_field_with_cached_size(15, v, os)?;
713 };
714 os.write_unknown_fields(self.special_fields.unknown_fields())?;
715 ::std::result::Result::Ok(())
716 }
717
special_fields(&self) -> &crate::SpecialFields718 fn special_fields(&self) -> &crate::SpecialFields {
719 &self.special_fields
720 }
721
mut_special_fields(&mut self) -> &mut crate::SpecialFields722 fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
723 &mut self.special_fields
724 }
725
new() -> CodeGeneratorResponse726 fn new() -> CodeGeneratorResponse {
727 CodeGeneratorResponse::new()
728 }
729
clear(&mut self)730 fn clear(&mut self) {
731 self.error = ::std::option::Option::None;
732 self.supported_features = ::std::option::Option::None;
733 self.file.clear();
734 self.special_fields.clear();
735 }
736
default_instance() -> &'static CodeGeneratorResponse737 fn default_instance() -> &'static CodeGeneratorResponse {
738 static instance: CodeGeneratorResponse = CodeGeneratorResponse {
739 error: ::std::option::Option::None,
740 supported_features: ::std::option::Option::None,
741 file: ::std::vec::Vec::new(),
742 special_fields: crate::SpecialFields::new(),
743 };
744 &instance
745 }
746 }
747
748 impl crate::MessageFull for CodeGeneratorResponse {
descriptor() -> crate::reflect::MessageDescriptor749 fn descriptor() -> crate::reflect::MessageDescriptor {
750 static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
751 descriptor.get(|| file_descriptor().message_by_package_relative_name("CodeGeneratorResponse").unwrap()).clone()
752 }
753 }
754
755 impl ::std::fmt::Display for CodeGeneratorResponse {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result756 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
757 crate::text_format::fmt(self, f)
758 }
759 }
760
761 impl crate::reflect::ProtobufValue for CodeGeneratorResponse {
762 type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
763 }
764
765 /// Nested message and enums of message `CodeGeneratorResponse`
766 pub mod code_generator_response {
767 /// Represents a single generated file.
768 #[derive(PartialEq,Clone,Default,Debug)]
769 // @@protoc_insertion_point(message:google.protobuf.compiler.CodeGeneratorResponse.File)
770 pub struct File {
771 // message fields
772 /// The file name, relative to the output directory. The name must not
773 /// contain "." or ".." components and must be relative, not be absolute (so,
774 /// the file cannot lie outside the output directory). "/" must be used as
775 /// the path separator, not "\".
776 ///
777 /// If the name is omitted, the content will be appended to the previous
778 /// file. This allows the generator to break large files into small chunks,
779 /// and allows the generated text to be streamed back to protoc so that large
780 /// files need not reside completely in memory at one time. Note that as of
781 /// this writing protoc does not optimize for this -- it will read the entire
782 /// CodeGeneratorResponse before writing files to disk.
783 // @@protoc_insertion_point(field:google.protobuf.compiler.CodeGeneratorResponse.File.name)
784 pub name: ::std::option::Option<::std::string::String>,
785 /// If non-empty, indicates that the named file should already exist, and the
786 /// content here is to be inserted into that file at a defined insertion
787 /// point. This feature allows a code generator to extend the output
788 /// produced by another code generator. The original generator may provide
789 /// insertion points by placing special annotations in the file that look
790 /// like:
791 /// @@protoc_insertion_point(NAME)
792 /// The annotation can have arbitrary text before and after it on the line,
793 /// which allows it to be placed in a comment. NAME should be replaced with
794 /// an identifier naming the point -- this is what other generators will use
795 /// as the insertion_point. Code inserted at this point will be placed
796 /// immediately above the line containing the insertion point (thus multiple
797 /// insertions to the same point will come out in the order they were added).
798 /// The double-@ is intended to make it unlikely that the generated code
799 /// could contain things that look like insertion points by accident.
800 ///
801 /// For example, the C++ code generator places the following line in the
802 /// .pb.h files that it generates:
803 /// // @@protoc_insertion_point(namespace_scope)
804 /// This line appears within the scope of the file's package namespace, but
805 /// outside of any particular class. Another plugin can then specify the
806 /// insertion_point "namespace_scope" to generate additional classes or
807 /// other declarations that should be placed in this scope.
808 ///
809 /// Note that if the line containing the insertion point begins with
810 /// whitespace, the same whitespace will be added to every line of the
811 /// inserted text. This is useful for languages like Python, where
812 /// indentation matters. In these languages, the insertion point comment
813 /// should be indented the same amount as any inserted code will need to be
814 /// in order to work correctly in that context.
815 ///
816 /// The code generator that generates the initial file and the one which
817 /// inserts into it must both run as part of a single invocation of protoc.
818 /// Code generators are executed in the order in which they appear on the
819 /// command line.
820 ///
821 /// If |insertion_point| is present, |name| must also be present.
822 // @@protoc_insertion_point(field:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
823 pub insertion_point: ::std::option::Option<::std::string::String>,
824 /// The file contents.
825 // @@protoc_insertion_point(field:google.protobuf.compiler.CodeGeneratorResponse.File.content)
826 pub content: ::std::option::Option<::std::string::String>,
827 /// Information describing the file content being inserted. If an insertion
828 /// point is used, this information will be appropriately offset and inserted
829 /// into the code generation metadata for the generated files.
830 // @@protoc_insertion_point(field:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
831 pub generated_code_info: crate::MessageField<crate::descriptor::GeneratedCodeInfo>,
832 // special fields
833 // @@protoc_insertion_point(special_field:google.protobuf.compiler.CodeGeneratorResponse.File.special_fields)
834 pub special_fields: crate::SpecialFields,
835 }
836
837 impl<'a> ::std::default::Default for &'a File {
default() -> &'a File838 fn default() -> &'a File {
839 <File as crate::Message>::default_instance()
840 }
841 }
842
843 impl File {
new() -> File844 pub fn new() -> File {
845 ::std::default::Default::default()
846 }
847
848 // optional string name = 1;
849
name(&self) -> &str850 pub fn name(&self) -> &str {
851 match self.name.as_ref() {
852 Some(v) => v,
853 None => "",
854 }
855 }
856
clear_name(&mut self)857 pub fn clear_name(&mut self) {
858 self.name = ::std::option::Option::None;
859 }
860
has_name(&self) -> bool861 pub fn has_name(&self) -> bool {
862 self.name.is_some()
863 }
864
865 // Param is passed by value, moved
set_name(&mut self, v: ::std::string::String)866 pub fn set_name(&mut self, v: ::std::string::String) {
867 self.name = ::std::option::Option::Some(v);
868 }
869
870 // Mutable pointer to the field.
871 // If field is not initialized, it is initialized with default value first.
mut_name(&mut self) -> &mut ::std::string::String872 pub fn mut_name(&mut self) -> &mut ::std::string::String {
873 if self.name.is_none() {
874 self.name = ::std::option::Option::Some(::std::string::String::new());
875 }
876 self.name.as_mut().unwrap()
877 }
878
879 // Take field
take_name(&mut self) -> ::std::string::String880 pub fn take_name(&mut self) -> ::std::string::String {
881 self.name.take().unwrap_or_else(|| ::std::string::String::new())
882 }
883
884 // optional string insertion_point = 2;
885
insertion_point(&self) -> &str886 pub fn insertion_point(&self) -> &str {
887 match self.insertion_point.as_ref() {
888 Some(v) => v,
889 None => "",
890 }
891 }
892
clear_insertion_point(&mut self)893 pub fn clear_insertion_point(&mut self) {
894 self.insertion_point = ::std::option::Option::None;
895 }
896
has_insertion_point(&self) -> bool897 pub fn has_insertion_point(&self) -> bool {
898 self.insertion_point.is_some()
899 }
900
901 // Param is passed by value, moved
set_insertion_point(&mut self, v: ::std::string::String)902 pub fn set_insertion_point(&mut self, v: ::std::string::String) {
903 self.insertion_point = ::std::option::Option::Some(v);
904 }
905
906 // Mutable pointer to the field.
907 // If field is not initialized, it is initialized with default value first.
mut_insertion_point(&mut self) -> &mut ::std::string::String908 pub fn mut_insertion_point(&mut self) -> &mut ::std::string::String {
909 if self.insertion_point.is_none() {
910 self.insertion_point = ::std::option::Option::Some(::std::string::String::new());
911 }
912 self.insertion_point.as_mut().unwrap()
913 }
914
915 // Take field
take_insertion_point(&mut self) -> ::std::string::String916 pub fn take_insertion_point(&mut self) -> ::std::string::String {
917 self.insertion_point.take().unwrap_or_else(|| ::std::string::String::new())
918 }
919
920 // optional string content = 15;
921
content(&self) -> &str922 pub fn content(&self) -> &str {
923 match self.content.as_ref() {
924 Some(v) => v,
925 None => "",
926 }
927 }
928
clear_content(&mut self)929 pub fn clear_content(&mut self) {
930 self.content = ::std::option::Option::None;
931 }
932
has_content(&self) -> bool933 pub fn has_content(&self) -> bool {
934 self.content.is_some()
935 }
936
937 // Param is passed by value, moved
set_content(&mut self, v: ::std::string::String)938 pub fn set_content(&mut self, v: ::std::string::String) {
939 self.content = ::std::option::Option::Some(v);
940 }
941
942 // Mutable pointer to the field.
943 // If field is not initialized, it is initialized with default value first.
mut_content(&mut self) -> &mut ::std::string::String944 pub fn mut_content(&mut self) -> &mut ::std::string::String {
945 if self.content.is_none() {
946 self.content = ::std::option::Option::Some(::std::string::String::new());
947 }
948 self.content.as_mut().unwrap()
949 }
950
951 // Take field
take_content(&mut self) -> ::std::string::String952 pub fn take_content(&mut self) -> ::std::string::String {
953 self.content.take().unwrap_or_else(|| ::std::string::String::new())
954 }
955
generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData956 pub(in super) fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
957 let mut fields = ::std::vec::Vec::with_capacity(4);
958 let mut oneofs = ::std::vec::Vec::with_capacity(0);
959 fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>(
960 "name",
961 |m: &File| { &m.name },
962 |m: &mut File| { &mut m.name },
963 ));
964 fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>(
965 "insertion_point",
966 |m: &File| { &m.insertion_point },
967 |m: &mut File| { &mut m.insertion_point },
968 ));
969 fields.push(crate::reflect::rt::v2::make_option_accessor::<_, _>(
970 "content",
971 |m: &File| { &m.content },
972 |m: &mut File| { &mut m.content },
973 ));
974 fields.push(crate::reflect::rt::v2::make_message_field_accessor::<_, crate::descriptor::GeneratedCodeInfo>(
975 "generated_code_info",
976 |m: &File| { &m.generated_code_info },
977 |m: &mut File| { &mut m.generated_code_info },
978 ));
979 crate::reflect::GeneratedMessageDescriptorData::new_2::<File>(
980 "CodeGeneratorResponse.File",
981 fields,
982 oneofs,
983 )
984 }
985 }
986
987 impl crate::Message for File {
988 const NAME: &'static str = "File";
989
is_initialized(&self) -> bool990 fn is_initialized(&self) -> bool {
991 true
992 }
993
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()>994 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
995 while let Some(tag) = is.read_raw_tag_or_eof()? {
996 match tag {
997 10 => {
998 self.name = ::std::option::Option::Some(is.read_string()?);
999 },
1000 18 => {
1001 self.insertion_point = ::std::option::Option::Some(is.read_string()?);
1002 },
1003 122 => {
1004 self.content = ::std::option::Option::Some(is.read_string()?);
1005 },
1006 130 => {
1007 crate::rt::read_singular_message_into_field(is, &mut self.generated_code_info)?;
1008 },
1009 tag => {
1010 crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1011 },
1012 };
1013 }
1014 ::std::result::Result::Ok(())
1015 }
1016
1017 // Compute sizes of nested messages
1018 #[allow(unused_variables)]
compute_size(&self) -> u641019 fn compute_size(&self) -> u64 {
1020 let mut my_size = 0;
1021 if let Some(v) = self.name.as_ref() {
1022 my_size += crate::rt::string_size(1, &v);
1023 }
1024 if let Some(v) = self.insertion_point.as_ref() {
1025 my_size += crate::rt::string_size(2, &v);
1026 }
1027 if let Some(v) = self.content.as_ref() {
1028 my_size += crate::rt::string_size(15, &v);
1029 }
1030 if let Some(v) = self.generated_code_info.as_ref() {
1031 let len = v.compute_size();
1032 my_size += 2 + crate::rt::compute_raw_varint64_size(len) + len;
1033 }
1034 my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
1035 self.special_fields.cached_size().set(my_size as u32);
1036 my_size
1037 }
1038
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()>1039 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
1040 if let Some(v) = self.name.as_ref() {
1041 os.write_string(1, v)?;
1042 }
1043 if let Some(v) = self.insertion_point.as_ref() {
1044 os.write_string(2, v)?;
1045 }
1046 if let Some(v) = self.content.as_ref() {
1047 os.write_string(15, v)?;
1048 }
1049 if let Some(v) = self.generated_code_info.as_ref() {
1050 crate::rt::write_message_field_with_cached_size(16, v, os)?;
1051 }
1052 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1053 ::std::result::Result::Ok(())
1054 }
1055
special_fields(&self) -> &crate::SpecialFields1056 fn special_fields(&self) -> &crate::SpecialFields {
1057 &self.special_fields
1058 }
1059
mut_special_fields(&mut self) -> &mut crate::SpecialFields1060 fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
1061 &mut self.special_fields
1062 }
1063
new() -> File1064 fn new() -> File {
1065 File::new()
1066 }
1067
clear(&mut self)1068 fn clear(&mut self) {
1069 self.name = ::std::option::Option::None;
1070 self.insertion_point = ::std::option::Option::None;
1071 self.content = ::std::option::Option::None;
1072 self.generated_code_info.clear();
1073 self.special_fields.clear();
1074 }
1075
default_instance() -> &'static File1076 fn default_instance() -> &'static File {
1077 static instance: File = File {
1078 name: ::std::option::Option::None,
1079 insertion_point: ::std::option::Option::None,
1080 content: ::std::option::Option::None,
1081 generated_code_info: crate::MessageField::none(),
1082 special_fields: crate::SpecialFields::new(),
1083 };
1084 &instance
1085 }
1086 }
1087
1088 impl crate::MessageFull for File {
descriptor() -> crate::reflect::MessageDescriptor1089 fn descriptor() -> crate::reflect::MessageDescriptor {
1090 static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
1091 descriptor.get(|| super::file_descriptor().message_by_package_relative_name("CodeGeneratorResponse.File").unwrap()).clone()
1092 }
1093 }
1094
1095 impl ::std::fmt::Display for File {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1096 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1097 crate::text_format::fmt(self, f)
1098 }
1099 }
1100
1101 impl crate::reflect::ProtobufValue for File {
1102 type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
1103 }
1104
1105 /// Sync with code_generator.h.
1106 #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
1107 // @@protoc_insertion_point(enum:google.protobuf.compiler.CodeGeneratorResponse.Feature)
1108 pub enum Feature {
1109 // @@protoc_insertion_point(enum_value:google.protobuf.compiler.CodeGeneratorResponse.Feature.FEATURE_NONE)
1110 FEATURE_NONE = 0,
1111 // @@protoc_insertion_point(enum_value:google.protobuf.compiler.CodeGeneratorResponse.Feature.FEATURE_PROTO3_OPTIONAL)
1112 FEATURE_PROTO3_OPTIONAL = 1,
1113 }
1114
1115 impl crate::Enum for Feature {
1116 const NAME: &'static str = "Feature";
1117
value(&self) -> i321118 fn value(&self) -> i32 {
1119 *self as i32
1120 }
1121
from_i32(value: i32) -> ::std::option::Option<Feature>1122 fn from_i32(value: i32) -> ::std::option::Option<Feature> {
1123 match value {
1124 0 => ::std::option::Option::Some(Feature::FEATURE_NONE),
1125 1 => ::std::option::Option::Some(Feature::FEATURE_PROTO3_OPTIONAL),
1126 _ => ::std::option::Option::None
1127 }
1128 }
1129
1130 const VALUES: &'static [Feature] = &[
1131 Feature::FEATURE_NONE,
1132 Feature::FEATURE_PROTO3_OPTIONAL,
1133 ];
1134 }
1135
1136 impl crate::EnumFull for Feature {
enum_descriptor() -> crate::reflect::EnumDescriptor1137 fn enum_descriptor() -> crate::reflect::EnumDescriptor {
1138 static descriptor: crate::rt::Lazy<crate::reflect::EnumDescriptor> = crate::rt::Lazy::new();
1139 descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("CodeGeneratorResponse.Feature").unwrap()).clone()
1140 }
1141
descriptor(&self) -> crate::reflect::EnumValueDescriptor1142 fn descriptor(&self) -> crate::reflect::EnumValueDescriptor {
1143 let index = *self as usize;
1144 Self::enum_descriptor().value_by_index(index)
1145 }
1146 }
1147
1148 impl ::std::default::Default for Feature {
default() -> Self1149 fn default() -> Self {
1150 Feature::FEATURE_NONE
1151 }
1152 }
1153
1154 impl Feature {
generated_enum_descriptor_data() -> crate::reflect::GeneratedEnumDescriptorData1155 pub(in super) fn generated_enum_descriptor_data() -> crate::reflect::GeneratedEnumDescriptorData {
1156 crate::reflect::GeneratedEnumDescriptorData::new::<Feature>("CodeGeneratorResponse.Feature")
1157 }
1158 }
1159 }
1160
1161 static file_descriptor_proto_data: &'static [u8] = b"\
1162 \n%google/protobuf/compiler/plugin.proto\x12\x18google.protobuf.compiler\
1163 \x1a\x20google/protobuf/descriptor.proto\"c\n\x07Version\x12\x14\n\x05ma\
1164 jor\x18\x01\x20\x01(\x05R\x05major\x12\x14\n\x05minor\x18\x02\x20\x01(\
1165 \x05R\x05minor\x12\x14\n\x05patch\x18\x03\x20\x01(\x05R\x05patch\x12\x16\
1166 \n\x06suffix\x18\x04\x20\x01(\tR\x06suffix\"\xf1\x01\n\x14CodeGeneratorR\
1167 equest\x12(\n\x10file_to_generate\x18\x01\x20\x03(\tR\x0efileToGenerate\
1168 \x12\x1c\n\tparameter\x18\x02\x20\x01(\tR\tparameter\x12C\n\nproto_file\
1169 \x18\x0f\x20\x03(\x0b2$.google.protobuf.FileDescriptorProtoR\tprotoFile\
1170 \x12L\n\x10compiler_version\x18\x03\x20\x01(\x0b2!.google.protobuf.compi\
1171 ler.VersionR\x0fcompilerVersion\"\x94\x03\n\x15CodeGeneratorResponse\x12\
1172 \x14\n\x05error\x18\x01\x20\x01(\tR\x05error\x12-\n\x12supported_feature\
1173 s\x18\x02\x20\x01(\x04R\x11supportedFeatures\x12H\n\x04file\x18\x0f\x20\
1174 \x03(\x0b24.google.protobuf.compiler.CodeGeneratorResponse.FileR\x04file\
1175 \x1a\xb1\x01\n\x04File\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\
1176 '\n\x0finsertion_point\x18\x02\x20\x01(\tR\x0einsertionPoint\x12\x18\n\
1177 \x07content\x18\x0f\x20\x01(\tR\x07content\x12R\n\x13generated_code_info\
1178 \x18\x10\x20\x01(\x0b2\".google.protobuf.GeneratedCodeInfoR\x11generated\
1179 CodeInfo\"8\n\x07Feature\x12\x10\n\x0cFEATURE_NONE\x10\0\x12\x1b\n\x17FE\
1180 ATURE_PROTO3_OPTIONAL\x10\x01BW\n\x1ccom.google.protobuf.compilerB\x0cPl\
1181 uginProtosZ)google.golang.org/protobuf/types/pluginpbJ\xf9C\n\x07\x12\
1182 \x05.\0\xb6\x01\x01\n\xca\x11\n\x01\x0c\x12\x03.\0\x122\xc1\x0c\x20Proto\
1183 col\x20Buffers\x20-\x20Google's\x20data\x20interchange\x20format\n\x20Co\
1184 pyright\x202008\x20Google\x20Inc.\x20\x20All\x20rights\x20reserved.\n\
1185 \x20https://developers.google.com/protocol-buffers/\n\n\x20Redistributio\
1186 n\x20and\x20use\x20in\x20source\x20and\x20binary\x20forms,\x20with\x20or\
1187 \x20without\n\x20modification,\x20are\x20permitted\x20provided\x20that\
1188 \x20the\x20following\x20conditions\x20are\n\x20met:\n\n\x20\x20\x20\x20\
1189 \x20*\x20Redistributions\x20of\x20source\x20code\x20must\x20retain\x20th\
1190 e\x20above\x20copyright\n\x20notice,\x20this\x20list\x20of\x20conditions\
1191 \x20and\x20the\x20following\x20disclaimer.\n\x20\x20\x20\x20\x20*\x20Red\
1192 istributions\x20in\x20binary\x20form\x20must\x20reproduce\x20the\x20abov\
1193 e\n\x20copyright\x20notice,\x20this\x20list\x20of\x20conditions\x20and\
1194 \x20the\x20following\x20disclaimer\n\x20in\x20the\x20documentation\x20an\
1195 d/or\x20other\x20materials\x20provided\x20with\x20the\n\x20distribution.\
1196 \n\x20\x20\x20\x20\x20*\x20Neither\x20the\x20name\x20of\x20Google\x20Inc\
1197 .\x20nor\x20the\x20names\x20of\x20its\n\x20contributors\x20may\x20be\x20\
1198 used\x20to\x20endorse\x20or\x20promote\x20products\x20derived\x20from\n\
1199 \x20this\x20software\x20without\x20specific\x20prior\x20written\x20permi\
1200 ssion.\n\n\x20THIS\x20SOFTWARE\x20IS\x20PROVIDED\x20BY\x20THE\x20COPYRIG\
1201 HT\x20HOLDERS\x20AND\x20CONTRIBUTORS\n\x20\"AS\x20IS\"\x20AND\x20ANY\x20\
1202 EXPRESS\x20OR\x20IMPLIED\x20WARRANTIES,\x20INCLUDING,\x20BUT\x20NOT\n\
1203 \x20LIMITED\x20TO,\x20THE\x20IMPLIED\x20WARRANTIES\x20OF\x20MERCHANTABIL\
1204 ITY\x20AND\x20FITNESS\x20FOR\n\x20A\x20PARTICULAR\x20PURPOSE\x20ARE\x20D\
1205 ISCLAIMED.\x20IN\x20NO\x20EVENT\x20SHALL\x20THE\x20COPYRIGHT\n\x20OWNER\
1206 \x20OR\x20CONTRIBUTORS\x20BE\x20LIABLE\x20FOR\x20ANY\x20DIRECT,\x20INDIR\
1207 ECT,\x20INCIDENTAL,\n\x20SPECIAL,\x20EXEMPLARY,\x20OR\x20CONSEQUENTIAL\
1208 \x20DAMAGES\x20(INCLUDING,\x20BUT\x20NOT\n\x20LIMITED\x20TO,\x20PROCUREM\
1209 ENT\x20OF\x20SUBSTITUTE\x20GOODS\x20OR\x20SERVICES;\x20LOSS\x20OF\x20USE\
1210 ,\n\x20DATA,\x20OR\x20PROFITS;\x20OR\x20BUSINESS\x20INTERRUPTION)\x20HOW\
1211 EVER\x20CAUSED\x20AND\x20ON\x20ANY\n\x20THEORY\x20OF\x20LIABILITY,\x20WH\
1212 ETHER\x20IN\x20CONTRACT,\x20STRICT\x20LIABILITY,\x20OR\x20TORT\n\x20(INC\
1213 LUDING\x20NEGLIGENCE\x20OR\x20OTHERWISE)\x20ARISING\x20IN\x20ANY\x20WAY\
1214 \x20OUT\x20OF\x20THE\x20USE\n\x20OF\x20THIS\x20SOFTWARE,\x20EVEN\x20IF\
1215 \x20ADVISED\x20OF\x20THE\x20POSSIBILITY\x20OF\x20SUCH\x20DAMAGE.\n2\xfb\
1216 \x04\x20Author:\x20kenton@google.com\x20(Kenton\x20Varda)\n\n\x20WARNING\
1217 :\x20\x20The\x20plugin\x20interface\x20is\x20currently\x20EXPERIMENTAL\
1218 \x20and\x20is\x20subject\x20to\n\x20\x20\x20change.\n\n\x20protoc\x20(ak\
1219 a\x20the\x20Protocol\x20Compiler)\x20can\x20be\x20extended\x20via\x20plu\
1220 gins.\x20\x20A\x20plugin\x20is\n\x20just\x20a\x20program\x20that\x20read\
1221 s\x20a\x20CodeGeneratorRequest\x20from\x20stdin\x20and\x20writes\x20a\n\
1222 \x20CodeGeneratorResponse\x20to\x20stdout.\n\n\x20Plugins\x20written\x20\
1223 using\x20C++\x20can\x20use\x20google/protobuf/compiler/plugin.h\x20inste\
1224 ad\n\x20of\x20dealing\x20with\x20the\x20raw\x20protocol\x20defined\x20he\
1225 re.\n\n\x20A\x20plugin\x20executable\x20needs\x20only\x20to\x20be\x20pla\
1226 ced\x20somewhere\x20in\x20the\x20path.\x20\x20The\n\x20plugin\x20should\
1227 \x20be\x20named\x20\"protoc-gen-$NAME\",\x20and\x20will\x20then\x20be\
1228 \x20used\x20when\x20the\n\x20flag\x20\"--${NAME}_out\"\x20is\x20passed\
1229 \x20to\x20protoc.\n\n\x08\n\x01\x02\x12\x030\0!\n\x08\n\x01\x08\x12\x031\
1230 \05\n\t\n\x02\x08\x01\x12\x031\05\n\x08\n\x01\x08\x12\x032\0-\n\t\n\x02\
1231 \x08\x08\x12\x032\0-\n\x08\n\x01\x08\x12\x034\0@\n\t\n\x02\x08\x0b\x12\
1232 \x034\0@\n\t\n\x02\x03\0\x12\x036\0*\n6\n\x02\x04\0\x12\x049\0@\x01\x1a*\
1233 \x20The\x20version\x20number\x20of\x20protocol\x20compiler.\n\n\n\n\x03\
1234 \x04\0\x01\x12\x039\x08\x0f\n\x0b\n\x04\x04\0\x02\0\x12\x03:\x02\x1b\n\
1235 \x0c\n\x05\x04\0\x02\0\x04\x12\x03:\x02\n\n\x0c\n\x05\x04\0\x02\0\x05\
1236 \x12\x03:\x0b\x10\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03:\x11\x16\n\x0c\n\
1237 \x05\x04\0\x02\0\x03\x12\x03:\x19\x1a\n\x0b\n\x04\x04\0\x02\x01\x12\x03;\
1238 \x02\x1b\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03;\x02\n\n\x0c\n\x05\x04\0\
1239 \x02\x01\x05\x12\x03;\x0b\x10\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03;\x11\
1240 \x16\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03;\x19\x1a\n\x0b\n\x04\x04\0\
1241 \x02\x02\x12\x03<\x02\x1b\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03<\x02\n\n\
1242 \x0c\n\x05\x04\0\x02\x02\x05\x12\x03<\x0b\x10\n\x0c\n\x05\x04\0\x02\x02\
1243 \x01\x12\x03<\x11\x16\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03<\x19\x1a\n\
1244 \x80\x01\n\x04\x04\0\x02\x03\x12\x03?\x02\x1d\x1as\x20A\x20suffix\x20for\
1245 \x20alpha,\x20beta\x20or\x20rc\x20release,\x20e.g.,\x20\"alpha-1\",\x20\
1246 \"rc2\".\x20It\x20should\n\x20be\x20empty\x20for\x20mainline\x20stable\
1247 \x20releases.\n\n\x0c\n\x05\x04\0\x02\x03\x04\x12\x03?\x02\n\n\x0c\n\x05\
1248 \x04\0\x02\x03\x05\x12\x03?\x0b\x11\n\x0c\n\x05\x04\0\x02\x03\x01\x12\
1249 \x03?\x12\x18\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03?\x1b\x1c\nO\n\x02\
1250 \x04\x01\x12\x04C\0_\x01\x1aC\x20An\x20encoded\x20CodeGeneratorRequest\
1251 \x20is\x20written\x20to\x20the\x20plugin's\x20stdin.\n\n\n\n\x03\x04\x01\
1252 \x01\x12\x03C\x08\x1c\n\xd1\x01\n\x04\x04\x01\x02\0\x12\x03G\x02'\x1a\
1253 \xc3\x01\x20The\x20.proto\x20files\x20that\x20were\x20explicitly\x20list\
1254 ed\x20on\x20the\x20command-line.\x20\x20The\n\x20code\x20generator\x20sh\
1255 ould\x20generate\x20code\x20only\x20for\x20these\x20files.\x20\x20Each\
1256 \x20file's\n\x20descriptor\x20will\x20be\x20included\x20in\x20proto_file\
1257 ,\x20below.\n\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03G\x02\n\n\x0c\n\x05\
1258 \x04\x01\x02\0\x05\x12\x03G\x0b\x11\n\x0c\n\x05\x04\x01\x02\0\x01\x12\
1259 \x03G\x12\"\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03G%&\nB\n\x04\x04\x01\
1260 \x02\x01\x12\x03J\x02\x20\x1a5\x20The\x20generator\x20parameter\x20passe\
1261 d\x20on\x20the\x20command-line.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\
1262 \x03J\x02\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03J\x0b\x11\n\x0c\n\x05\
1263 \x04\x01\x02\x01\x01\x12\x03J\x12\x1b\n\x0c\n\x05\x04\x01\x02\x01\x03\
1264 \x12\x03J\x1e\x1f\n\x87\x06\n\x04\x04\x01\x02\x02\x12\x03Z\x02/\x1a\xf9\
1265 \x05\x20FileDescriptorProtos\x20for\x20all\x20files\x20in\x20files_to_ge\
1266 nerate\x20and\x20everything\n\x20they\x20import.\x20\x20The\x20files\x20\
1267 will\x20appear\x20in\x20topological\x20order,\x20so\x20each\x20file\n\
1268 \x20appears\x20before\x20any\x20file\x20that\x20imports\x20it.\n\n\x20pr\
1269 otoc\x20guarantees\x20that\x20all\x20proto_files\x20will\x20be\x20writte\
1270 n\x20after\n\x20the\x20fields\x20above,\x20even\x20though\x20this\x20is\
1271 \x20not\x20technically\x20guaranteed\x20by\x20the\n\x20protobuf\x20wire\
1272 \x20format.\x20\x20This\x20theoretically\x20could\x20allow\x20a\x20plugi\
1273 n\x20to\x20stream\n\x20in\x20the\x20FileDescriptorProtos\x20and\x20handl\
1274 e\x20them\x20one\x20by\x20one\x20rather\x20than\x20read\n\x20the\x20enti\
1275 re\x20set\x20into\x20memory\x20at\x20once.\x20\x20However,\x20as\x20of\
1276 \x20this\x20writing,\x20this\n\x20is\x20not\x20similarly\x20optimized\
1277 \x20on\x20protoc's\x20end\x20--\x20it\x20will\x20store\x20all\x20fields\
1278 \x20in\n\x20memory\x20at\x20once\x20before\x20sending\x20them\x20to\x20t\
1279 he\x20plugin.\n\n\x20Type\x20names\x20of\x20fields\x20and\x20extensions\
1280 \x20in\x20the\x20FileDescriptorProto\x20are\x20always\n\x20fully\x20qual\
1281 ified.\n\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x03Z\x02\n\n\x0c\n\x05\x04\
1282 \x01\x02\x02\x06\x12\x03Z\x0b\x1e\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\
1283 \x03Z\x1f)\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03Z,.\n7\n\x04\x04\x01\
1284 \x02\x03\x12\x03]\x02(\x1a*\x20The\x20version\x20number\x20of\x20protoco\
1285 l\x20compiler.\n\n\x0c\n\x05\x04\x01\x02\x03\x04\x12\x03]\x02\n\n\x0c\n\
1286 \x05\x04\x01\x02\x03\x06\x12\x03]\x0b\x12\n\x0c\n\x05\x04\x01\x02\x03\
1287 \x01\x12\x03]\x13#\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03]&'\nL\n\x02\
1288 \x04\x02\x12\x05b\0\xb6\x01\x01\x1a?\x20The\x20plugin\x20writes\x20an\
1289 \x20encoded\x20CodeGeneratorResponse\x20to\x20stdout.\n\n\n\n\x03\x04\
1290 \x02\x01\x12\x03b\x08\x1d\n\xed\x03\n\x04\x04\x02\x02\0\x12\x03k\x02\x1c\
1291 \x1a\xdf\x03\x20Error\x20message.\x20\x20If\x20non-empty,\x20code\x20gen\
1292 eration\x20failed.\x20\x20The\x20plugin\x20process\n\x20should\x20exit\
1293 \x20with\x20status\x20code\x20zero\x20even\x20if\x20it\x20reports\x20an\
1294 \x20error\x20in\x20this\x20way.\n\n\x20This\x20should\x20be\x20used\x20t\
1295 o\x20indicate\x20errors\x20in\x20.proto\x20files\x20which\x20prevent\x20\
1296 the\n\x20code\x20generator\x20from\x20generating\x20correct\x20code.\x20\
1297 \x20Errors\x20which\x20indicate\x20a\n\x20problem\x20in\x20protoc\x20its\
1298 elf\x20--\x20such\x20as\x20the\x20input\x20CodeGeneratorRequest\x20being\
1299 \n\x20unparseable\x20--\x20should\x20be\x20reported\x20by\x20writing\x20\
1300 a\x20message\x20to\x20stderr\x20and\n\x20exiting\x20with\x20a\x20non-zer\
1301 o\x20status\x20code.\n\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03k\x02\n\n\
1302 \x0c\n\x05\x04\x02\x02\0\x05\x12\x03k\x0b\x11\n\x0c\n\x05\x04\x02\x02\0\
1303 \x01\x12\x03k\x12\x17\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03k\x1a\x1b\n\
1304 \x89\x01\n\x04\x04\x02\x02\x01\x12\x03o\x02)\x1a|\x20A\x20bitmask\x20of\
1305 \x20supported\x20features\x20that\x20the\x20code\x20generator\x20support\
1306 s.\n\x20This\x20is\x20a\x20bitwise\x20\"or\"\x20of\x20values\x20from\x20\
1307 the\x20Feature\x20enum.\n\n\x0c\n\x05\x04\x02\x02\x01\x04\x12\x03o\x02\n\
1308 \n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03o\x0b\x11\n\x0c\n\x05\x04\x02\
1309 \x02\x01\x01\x12\x03o\x12$\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03o'(\n+\
1310 \n\x04\x04\x02\x04\0\x12\x04r\x02u\x03\x1a\x1d\x20Sync\x20with\x20code_g\
1311 enerator.h.\n\n\x0c\n\x05\x04\x02\x04\0\x01\x12\x03r\x07\x0e\n\r\n\x06\
1312 \x04\x02\x04\0\x02\0\x12\x03s\x04\x15\n\x0e\n\x07\x04\x02\x04\0\x02\0\
1313 \x01\x12\x03s\x04\x10\n\x0e\n\x07\x04\x02\x04\0\x02\0\x02\x12\x03s\x13\
1314 \x14\n\r\n\x06\x04\x02\x04\0\x02\x01\x12\x03t\x04\x20\n\x0e\n\x07\x04\
1315 \x02\x04\0\x02\x01\x01\x12\x03t\x04\x1b\n\x0e\n\x07\x04\x02\x04\0\x02\
1316 \x01\x02\x12\x03t\x1e\x1f\n4\n\x04\x04\x02\x03\0\x12\x05x\x02\xb4\x01\
1317 \x03\x1a%\x20Represents\x20a\x20single\x20generated\x20file.\n\n\x0c\n\
1318 \x05\x04\x02\x03\0\x01\x12\x03x\n\x0e\n\xae\x05\n\x06\x04\x02\x03\0\x02\
1319 \0\x12\x04\x84\x01\x04\x1d\x1a\x9d\x05\x20The\x20file\x20name,\x20relati\
1320 ve\x20to\x20the\x20output\x20directory.\x20\x20The\x20name\x20must\x20no\
1321 t\n\x20contain\x20\".\"\x20or\x20\"..\"\x20components\x20and\x20must\x20\
1322 be\x20relative,\x20not\x20be\x20absolute\x20(so,\n\x20the\x20file\x20can\
1323 not\x20lie\x20outside\x20the\x20output\x20directory).\x20\x20\"/\"\x20mu\
1324 st\x20be\x20used\x20as\n\x20the\x20path\x20separator,\x20not\x20\"\\\".\
1325 \n\n\x20If\x20the\x20name\x20is\x20omitted,\x20the\x20content\x20will\
1326 \x20be\x20appended\x20to\x20the\x20previous\n\x20file.\x20\x20This\x20al\
1327 lows\x20the\x20generator\x20to\x20break\x20large\x20files\x20into\x20sma\
1328 ll\x20chunks,\n\x20and\x20allows\x20the\x20generated\x20text\x20to\x20be\
1329 \x20streamed\x20back\x20to\x20protoc\x20so\x20that\x20large\n\x20files\
1330 \x20need\x20not\x20reside\x20completely\x20in\x20memory\x20at\x20one\x20\
1331 time.\x20\x20Note\x20that\x20as\x20of\n\x20this\x20writing\x20protoc\x20\
1332 does\x20not\x20optimize\x20for\x20this\x20--\x20it\x20will\x20read\x20th\
1333 e\x20entire\n\x20CodeGeneratorResponse\x20before\x20writing\x20files\x20\
1334 to\x20disk.\n\n\x0f\n\x07\x04\x02\x03\0\x02\0\x04\x12\x04\x84\x01\x04\
1335 \x0c\n\x0f\n\x07\x04\x02\x03\0\x02\0\x05\x12\x04\x84\x01\r\x13\n\x0f\n\
1336 \x07\x04\x02\x03\0\x02\0\x01\x12\x04\x84\x01\x14\x18\n\x0f\n\x07\x04\x02\
1337 \x03\0\x02\0\x03\x12\x04\x84\x01\x1b\x1c\n\xae\x10\n\x06\x04\x02\x03\0\
1338 \x02\x01\x12\x04\xab\x01\x04(\x1a\x9d\x10\x20If\x20non-empty,\x20indicat\
1339 es\x20that\x20the\x20named\x20file\x20should\x20already\x20exist,\x20and\
1340 \x20the\n\x20content\x20here\x20is\x20to\x20be\x20inserted\x20into\x20th\
1341 at\x20file\x20at\x20a\x20defined\x20insertion\n\x20point.\x20\x20This\
1342 \x20feature\x20allows\x20a\x20code\x20generator\x20to\x20extend\x20the\
1343 \x20output\n\x20produced\x20by\x20another\x20code\x20generator.\x20\x20T\
1344 he\x20original\x20generator\x20may\x20provide\n\x20insertion\x20points\
1345 \x20by\x20placing\x20special\x20annotations\x20in\x20the\x20file\x20that\
1346 \x20look\n\x20like:\n\x20\x20\x20@@protoc_insertion_point(NAME)\n\x20The\
1347 \x20annotation\x20can\x20have\x20arbitrary\x20text\x20before\x20and\x20a\
1348 fter\x20it\x20on\x20the\x20line,\n\x20which\x20allows\x20it\x20to\x20be\
1349 \x20placed\x20in\x20a\x20comment.\x20\x20NAME\x20should\x20be\x20replace\
1350 d\x20with\n\x20an\x20identifier\x20naming\x20the\x20point\x20--\x20this\
1351 \x20is\x20what\x20other\x20generators\x20will\x20use\n\x20as\x20the\x20i\
1352 nsertion_point.\x20\x20Code\x20inserted\x20at\x20this\x20point\x20will\
1353 \x20be\x20placed\n\x20immediately\x20above\x20the\x20line\x20containing\
1354 \x20the\x20insertion\x20point\x20(thus\x20multiple\n\x20insertions\x20to\
1355 \x20the\x20same\x20point\x20will\x20come\x20out\x20in\x20the\x20order\
1356 \x20they\x20were\x20added).\n\x20The\x20double-@\x20is\x20intended\x20to\
1357 \x20make\x20it\x20unlikely\x20that\x20the\x20generated\x20code\n\x20coul\
1358 d\x20contain\x20things\x20that\x20look\x20like\x20insertion\x20points\
1359 \x20by\x20accident.\n\n\x20For\x20example,\x20the\x20C++\x20code\x20gene\
1360 rator\x20places\x20the\x20following\x20line\x20in\x20the\n\x20.pb.h\x20f\
1361 iles\x20that\x20it\x20generates:\n\x20\x20\x20//\x20@@protoc_insertion_p\
1362 oint(namespace_scope)\n\x20This\x20line\x20appears\x20within\x20the\x20s\
1363 cope\x20of\x20the\x20file's\x20package\x20namespace,\x20but\n\x20outside\
1364 \x20of\x20any\x20particular\x20class.\x20\x20Another\x20plugin\x20can\
1365 \x20then\x20specify\x20the\n\x20insertion_point\x20\"namespace_scope\"\
1366 \x20to\x20generate\x20additional\x20classes\x20or\n\x20other\x20declarat\
1367 ions\x20that\x20should\x20be\x20placed\x20in\x20this\x20scope.\n\n\x20No\
1368 te\x20that\x20if\x20the\x20line\x20containing\x20the\x20insertion\x20poi\
1369 nt\x20begins\x20with\n\x20whitespace,\x20the\x20same\x20whitespace\x20wi\
1370 ll\x20be\x20added\x20to\x20every\x20line\x20of\x20the\n\x20inserted\x20t\
1371 ext.\x20\x20This\x20is\x20useful\x20for\x20languages\x20like\x20Python,\
1372 \x20where\n\x20indentation\x20matters.\x20\x20In\x20these\x20languages,\
1373 \x20the\x20insertion\x20point\x20comment\n\x20should\x20be\x20indented\
1374 \x20the\x20same\x20amount\x20as\x20any\x20inserted\x20code\x20will\x20ne\
1375 ed\x20to\x20be\n\x20in\x20order\x20to\x20work\x20correctly\x20in\x20that\
1376 \x20context.\n\n\x20The\x20code\x20generator\x20that\x20generates\x20the\
1377 \x20initial\x20file\x20and\x20the\x20one\x20which\n\x20inserts\x20into\
1378 \x20it\x20must\x20both\x20run\x20as\x20part\x20of\x20a\x20single\x20invo\
1379 cation\x20of\x20protoc.\n\x20Code\x20generators\x20are\x20executed\x20in\
1380 \x20the\x20order\x20in\x20which\x20they\x20appear\x20on\x20the\n\x20comm\
1381 and\x20line.\n\n\x20If\x20|insertion_point|\x20is\x20present,\x20|name|\
1382 \x20must\x20also\x20be\x20present.\n\n\x0f\n\x07\x04\x02\x03\0\x02\x01\
1383 \x04\x12\x04\xab\x01\x04\x0c\n\x0f\n\x07\x04\x02\x03\0\x02\x01\x05\x12\
1384 \x04\xab\x01\r\x13\n\x0f\n\x07\x04\x02\x03\0\x02\x01\x01\x12\x04\xab\x01\
1385 \x14#\n\x0f\n\x07\x04\x02\x03\0\x02\x01\x03\x12\x04\xab\x01&'\n$\n\x06\
1386 \x04\x02\x03\0\x02\x02\x12\x04\xae\x01\x04!\x1a\x14\x20The\x20file\x20co\
1387 ntents.\n\n\x0f\n\x07\x04\x02\x03\0\x02\x02\x04\x12\x04\xae\x01\x04\x0c\
1388 \n\x0f\n\x07\x04\x02\x03\0\x02\x02\x05\x12\x04\xae\x01\r\x13\n\x0f\n\x07\
1389 \x04\x02\x03\0\x02\x02\x01\x12\x04\xae\x01\x14\x1b\n\x0f\n\x07\x04\x02\
1390 \x03\0\x02\x02\x03\x12\x04\xae\x01\x1e\x20\n\xe1\x01\n\x06\x04\x02\x03\0\
1391 \x02\x03\x12\x04\xb3\x01\x048\x1a\xd0\x01\x20Information\x20describing\
1392 \x20the\x20file\x20content\x20being\x20inserted.\x20If\x20an\x20insertio\
1393 n\n\x20point\x20is\x20used,\x20this\x20information\x20will\x20be\x20appr\
1394 opriately\x20offset\x20and\x20inserted\n\x20into\x20the\x20code\x20gener\
1395 ation\x20metadata\x20for\x20the\x20generated\x20files.\n\n\x0f\n\x07\x04\
1396 \x02\x03\0\x02\x03\x04\x12\x04\xb3\x01\x04\x0c\n\x0f\n\x07\x04\x02\x03\0\
1397 \x02\x03\x06\x12\x04\xb3\x01\r\x1e\n\x0f\n\x07\x04\x02\x03\0\x02\x03\x01\
1398 \x12\x04\xb3\x01\x1f2\n\x0f\n\x07\x04\x02\x03\0\x02\x03\x03\x12\x04\xb3\
1399 \x0157\n\x0c\n\x04\x04\x02\x02\x02\x12\x04\xb5\x01\x02\x1a\n\r\n\x05\x04\
1400 \x02\x02\x02\x04\x12\x04\xb5\x01\x02\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\
1401 \x04\xb5\x01\x0b\x0f\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xb5\x01\x10\
1402 \x14\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xb5\x01\x17\x19\
1403 ";
1404
1405 /// `FileDescriptorProto` object which was a source for this generated file
file_descriptor_proto() -> &'static crate::descriptor::FileDescriptorProto1406 fn file_descriptor_proto() -> &'static crate::descriptor::FileDescriptorProto {
1407 static file_descriptor_proto_lazy: crate::rt::Lazy<crate::descriptor::FileDescriptorProto> = crate::rt::Lazy::new();
1408 file_descriptor_proto_lazy.get(|| {
1409 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1410 })
1411 }
1412
1413 /// `FileDescriptor` object which allows dynamic access to files
file_descriptor() -> &'static crate::reflect::FileDescriptor1414 pub fn file_descriptor() -> &'static crate::reflect::FileDescriptor {
1415 static generated_file_descriptor_lazy: crate::rt::Lazy<crate::reflect::GeneratedFileDescriptor> = crate::rt::Lazy::new();
1416 static file_descriptor: crate::rt::Lazy<crate::reflect::FileDescriptor> = crate::rt::Lazy::new();
1417 file_descriptor.get(|| {
1418 let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
1419 let mut deps = ::std::vec::Vec::with_capacity(1);
1420 deps.push(crate::descriptor::file_descriptor().clone());
1421 let mut messages = ::std::vec::Vec::with_capacity(4);
1422 messages.push(Version::generated_message_descriptor_data());
1423 messages.push(CodeGeneratorRequest::generated_message_descriptor_data());
1424 messages.push(CodeGeneratorResponse::generated_message_descriptor_data());
1425 messages.push(code_generator_response::File::generated_message_descriptor_data());
1426 let mut enums = ::std::vec::Vec::with_capacity(1);
1427 enums.push(code_generator_response::Feature::generated_enum_descriptor_data());
1428 crate::reflect::GeneratedFileDescriptor::new_generated(
1429 file_descriptor_proto(),
1430 deps,
1431 messages,
1432 enums,
1433 )
1434 });
1435 crate::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
1436 })
1437 }
1438