Coverage Report

Created: 2025-11-16 06:37

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