google_cloud_rust_raw/api/
resource.rs

1// This file is generated by rust-protobuf 2.28.0. Do not edit
2// @generated
3
4// https://github.com/rust-lang/rust-clippy/issues/702
5#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![allow(unused_attributes)]
9#![cfg_attr(rustfmt, rustfmt::skip)]
10
11#![allow(box_pointers)]
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_imports)]
19#![allow(unused_results)]
20//! Generated file from `google/api/resource.proto`
21
22/// Generated files are compatible only with the same version
23/// of protobuf runtime.
24// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0;
25
26#[derive(PartialEq,Clone,Default)]
27pub struct ResourceDescriptor {
28    // message fields
29    pub field_type: ::std::string::String,
30    pub pattern: ::protobuf::RepeatedField<::std::string::String>,
31    pub name_field: ::std::string::String,
32    pub history: ResourceDescriptor_History,
33    pub plural: ::std::string::String,
34    pub singular: ::std::string::String,
35    pub style: ::std::vec::Vec<ResourceDescriptor_Style>,
36    // special fields
37    pub unknown_fields: ::protobuf::UnknownFields,
38    pub cached_size: ::protobuf::CachedSize,
39}
40
41impl<'a> ::std::default::Default for &'a ResourceDescriptor {
42    fn default() -> &'a ResourceDescriptor {
43        <ResourceDescriptor as ::protobuf::Message>::default_instance()
44    }
45}
46
47impl ResourceDescriptor {
48    pub fn new() -> ResourceDescriptor {
49        ::std::default::Default::default()
50    }
51
52    // string type = 1;
53
54
55    pub fn get_field_type(&self) -> &str {
56        &self.field_type
57    }
58    pub fn clear_field_type(&mut self) {
59        self.field_type.clear();
60    }
61
62    // Param is passed by value, moved
63    pub fn set_field_type(&mut self, v: ::std::string::String) {
64        self.field_type = v;
65    }
66
67    // Mutable pointer to the field.
68    // If field is not initialized, it is initialized with default value first.
69    pub fn mut_field_type(&mut self) -> &mut ::std::string::String {
70        &mut self.field_type
71    }
72
73    // Take field
74    pub fn take_field_type(&mut self) -> ::std::string::String {
75        ::std::mem::replace(&mut self.field_type, ::std::string::String::new())
76    }
77
78    // repeated string pattern = 2;
79
80
81    pub fn get_pattern(&self) -> &[::std::string::String] {
82        &self.pattern
83    }
84    pub fn clear_pattern(&mut self) {
85        self.pattern.clear();
86    }
87
88    // Param is passed by value, moved
89    pub fn set_pattern(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
90        self.pattern = v;
91    }
92
93    // Mutable pointer to the field.
94    pub fn mut_pattern(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
95        &mut self.pattern
96    }
97
98    // Take field
99    pub fn take_pattern(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
100        ::std::mem::replace(&mut self.pattern, ::protobuf::RepeatedField::new())
101    }
102
103    // string name_field = 3;
104
105
106    pub fn get_name_field(&self) -> &str {
107        &self.name_field
108    }
109    pub fn clear_name_field(&mut self) {
110        self.name_field.clear();
111    }
112
113    // Param is passed by value, moved
114    pub fn set_name_field(&mut self, v: ::std::string::String) {
115        self.name_field = v;
116    }
117
118    // Mutable pointer to the field.
119    // If field is not initialized, it is initialized with default value first.
120    pub fn mut_name_field(&mut self) -> &mut ::std::string::String {
121        &mut self.name_field
122    }
123
124    // Take field
125    pub fn take_name_field(&mut self) -> ::std::string::String {
126        ::std::mem::replace(&mut self.name_field, ::std::string::String::new())
127    }
128
129    // .google.api.ResourceDescriptor.History history = 4;
130
131
132    pub fn get_history(&self) -> ResourceDescriptor_History {
133        self.history
134    }
135    pub fn clear_history(&mut self) {
136        self.history = ResourceDescriptor_History::HISTORY_UNSPECIFIED;
137    }
138
139    // Param is passed by value, moved
140    pub fn set_history(&mut self, v: ResourceDescriptor_History) {
141        self.history = v;
142    }
143
144    // string plural = 5;
145
146
147    pub fn get_plural(&self) -> &str {
148        &self.plural
149    }
150    pub fn clear_plural(&mut self) {
151        self.plural.clear();
152    }
153
154    // Param is passed by value, moved
155    pub fn set_plural(&mut self, v: ::std::string::String) {
156        self.plural = v;
157    }
158
159    // Mutable pointer to the field.
160    // If field is not initialized, it is initialized with default value first.
161    pub fn mut_plural(&mut self) -> &mut ::std::string::String {
162        &mut self.plural
163    }
164
165    // Take field
166    pub fn take_plural(&mut self) -> ::std::string::String {
167        ::std::mem::replace(&mut self.plural, ::std::string::String::new())
168    }
169
170    // string singular = 6;
171
172
173    pub fn get_singular(&self) -> &str {
174        &self.singular
175    }
176    pub fn clear_singular(&mut self) {
177        self.singular.clear();
178    }
179
180    // Param is passed by value, moved
181    pub fn set_singular(&mut self, v: ::std::string::String) {
182        self.singular = v;
183    }
184
185    // Mutable pointer to the field.
186    // If field is not initialized, it is initialized with default value first.
187    pub fn mut_singular(&mut self) -> &mut ::std::string::String {
188        &mut self.singular
189    }
190
191    // Take field
192    pub fn take_singular(&mut self) -> ::std::string::String {
193        ::std::mem::replace(&mut self.singular, ::std::string::String::new())
194    }
195
196    // repeated .google.api.ResourceDescriptor.Style style = 10;
197
198
199    pub fn get_style(&self) -> &[ResourceDescriptor_Style] {
200        &self.style
201    }
202    pub fn clear_style(&mut self) {
203        self.style.clear();
204    }
205
206    // Param is passed by value, moved
207    pub fn set_style(&mut self, v: ::std::vec::Vec<ResourceDescriptor_Style>) {
208        self.style = v;
209    }
210
211    // Mutable pointer to the field.
212    pub fn mut_style(&mut self) -> &mut ::std::vec::Vec<ResourceDescriptor_Style> {
213        &mut self.style
214    }
215
216    // Take field
217    pub fn take_style(&mut self) -> ::std::vec::Vec<ResourceDescriptor_Style> {
218        ::std::mem::replace(&mut self.style, ::std::vec::Vec::new())
219    }
220}
221
222impl ::protobuf::Message for ResourceDescriptor {
223    fn is_initialized(&self) -> bool {
224        true
225    }
226
227    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
228        while !is.eof()? {
229            let (field_number, wire_type) = is.read_tag_unpack()?;
230            match field_number {
231                1 => {
232                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?;
233                },
234                2 => {
235                    ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.pattern)?;
236                },
237                3 => {
238                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name_field)?;
239                },
240                4 => {
241                    ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.history, 4, &mut self.unknown_fields)?
242                },
243                5 => {
244                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.plural)?;
245                },
246                6 => {
247                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.singular)?;
248                },
249                10 => {
250                    ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.style, 10, &mut self.unknown_fields)?
251                },
252                _ => {
253                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
254                },
255            };
256        }
257        ::std::result::Result::Ok(())
258    }
259
260    // Compute sizes of nested messages
261    #[allow(unused_variables)]
262    fn compute_size(&self) -> u32 {
263        let mut my_size = 0;
264        if !self.field_type.is_empty() {
265            my_size += ::protobuf::rt::string_size(1, &self.field_type);
266        }
267        for value in &self.pattern {
268            my_size += ::protobuf::rt::string_size(2, &value);
269        };
270        if !self.name_field.is_empty() {
271            my_size += ::protobuf::rt::string_size(3, &self.name_field);
272        }
273        if self.history != ResourceDescriptor_History::HISTORY_UNSPECIFIED {
274            my_size += ::protobuf::rt::enum_size(4, self.history);
275        }
276        if !self.plural.is_empty() {
277            my_size += ::protobuf::rt::string_size(5, &self.plural);
278        }
279        if !self.singular.is_empty() {
280            my_size += ::protobuf::rt::string_size(6, &self.singular);
281        }
282        for value in &self.style {
283            my_size += ::protobuf::rt::enum_size(10, *value);
284        };
285        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
286        self.cached_size.set(my_size);
287        my_size
288    }
289
290    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
291        if !self.field_type.is_empty() {
292            os.write_string(1, &self.field_type)?;
293        }
294        for v in &self.pattern {
295            os.write_string(2, &v)?;
296        };
297        if !self.name_field.is_empty() {
298            os.write_string(3, &self.name_field)?;
299        }
300        if self.history != ResourceDescriptor_History::HISTORY_UNSPECIFIED {
301            os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.history))?;
302        }
303        if !self.plural.is_empty() {
304            os.write_string(5, &self.plural)?;
305        }
306        if !self.singular.is_empty() {
307            os.write_string(6, &self.singular)?;
308        }
309        for v in &self.style {
310            os.write_enum(10, ::protobuf::ProtobufEnum::value(v))?;
311        };
312        os.write_unknown_fields(self.get_unknown_fields())?;
313        ::std::result::Result::Ok(())
314    }
315
316    fn get_cached_size(&self) -> u32 {
317        self.cached_size.get()
318    }
319
320    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
321        &self.unknown_fields
322    }
323
324    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
325        &mut self.unknown_fields
326    }
327
328    fn as_any(&self) -> &dyn (::std::any::Any) {
329        self as &dyn (::std::any::Any)
330    }
331    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
332        self as &mut dyn (::std::any::Any)
333    }
334    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
335        self
336    }
337
338    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
339        Self::descriptor_static()
340    }
341
342    fn new() -> ResourceDescriptor {
343        ResourceDescriptor::new()
344    }
345
346    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
347        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
348        descriptor.get(|| {
349            let mut fields = ::std::vec::Vec::new();
350            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
351                "type",
352                |m: &ResourceDescriptor| { &m.field_type },
353                |m: &mut ResourceDescriptor| { &mut m.field_type },
354            ));
355            fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
356                "pattern",
357                |m: &ResourceDescriptor| { &m.pattern },
358                |m: &mut ResourceDescriptor| { &mut m.pattern },
359            ));
360            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
361                "name_field",
362                |m: &ResourceDescriptor| { &m.name_field },
363                |m: &mut ResourceDescriptor| { &mut m.name_field },
364            ));
365            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ResourceDescriptor_History>>(
366                "history",
367                |m: &ResourceDescriptor| { &m.history },
368                |m: &mut ResourceDescriptor| { &mut m.history },
369            ));
370            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
371                "plural",
372                |m: &ResourceDescriptor| { &m.plural },
373                |m: &mut ResourceDescriptor| { &mut m.plural },
374            ));
375            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
376                "singular",
377                |m: &ResourceDescriptor| { &m.singular },
378                |m: &mut ResourceDescriptor| { &mut m.singular },
379            ));
380            fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ResourceDescriptor_Style>>(
381                "style",
382                |m: &ResourceDescriptor| { &m.style },
383                |m: &mut ResourceDescriptor| { &mut m.style },
384            ));
385            ::protobuf::reflect::MessageDescriptor::new_pb_name::<ResourceDescriptor>(
386                "ResourceDescriptor",
387                fields,
388                file_descriptor_proto()
389            )
390        })
391    }
392
393    fn default_instance() -> &'static ResourceDescriptor {
394        static instance: ::protobuf::rt::LazyV2<ResourceDescriptor> = ::protobuf::rt::LazyV2::INIT;
395        instance.get(ResourceDescriptor::new)
396    }
397}
398
399impl ::protobuf::Clear for ResourceDescriptor {
400    fn clear(&mut self) {
401        self.field_type.clear();
402        self.pattern.clear();
403        self.name_field.clear();
404        self.history = ResourceDescriptor_History::HISTORY_UNSPECIFIED;
405        self.plural.clear();
406        self.singular.clear();
407        self.style.clear();
408        self.unknown_fields.clear();
409    }
410}
411
412impl ::std::fmt::Debug for ResourceDescriptor {
413    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
414        ::protobuf::text_format::fmt(self, f)
415    }
416}
417
418impl ::protobuf::reflect::ProtobufValue for ResourceDescriptor {
419    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
420        ::protobuf::reflect::ReflectValueRef::Message(self)
421    }
422}
423
424#[derive(Clone,PartialEq,Eq,Debug,Hash)]
425pub enum ResourceDescriptor_History {
426    HISTORY_UNSPECIFIED = 0,
427    ORIGINALLY_SINGLE_PATTERN = 1,
428    FUTURE_MULTI_PATTERN = 2,
429}
430
431impl ::protobuf::ProtobufEnum for ResourceDescriptor_History {
432    fn value(&self) -> i32 {
433        *self as i32
434    }
435
436    fn from_i32(value: i32) -> ::std::option::Option<ResourceDescriptor_History> {
437        match value {
438            0 => ::std::option::Option::Some(ResourceDescriptor_History::HISTORY_UNSPECIFIED),
439            1 => ::std::option::Option::Some(ResourceDescriptor_History::ORIGINALLY_SINGLE_PATTERN),
440            2 => ::std::option::Option::Some(ResourceDescriptor_History::FUTURE_MULTI_PATTERN),
441            _ => ::std::option::Option::None
442        }
443    }
444
445    fn values() -> &'static [Self] {
446        static values: &'static [ResourceDescriptor_History] = &[
447            ResourceDescriptor_History::HISTORY_UNSPECIFIED,
448            ResourceDescriptor_History::ORIGINALLY_SINGLE_PATTERN,
449            ResourceDescriptor_History::FUTURE_MULTI_PATTERN,
450        ];
451        values
452    }
453
454    fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
455        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
456        descriptor.get(|| {
457            ::protobuf::reflect::EnumDescriptor::new_pb_name::<ResourceDescriptor_History>("ResourceDescriptor.History", file_descriptor_proto())
458        })
459    }
460}
461
462impl ::std::marker::Copy for ResourceDescriptor_History {
463}
464
465impl ::std::default::Default for ResourceDescriptor_History {
466    fn default() -> Self {
467        ResourceDescriptor_History::HISTORY_UNSPECIFIED
468    }
469}
470
471impl ::protobuf::reflect::ProtobufValue for ResourceDescriptor_History {
472    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
473        ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
474    }
475}
476
477#[derive(Clone,PartialEq,Eq,Debug,Hash)]
478pub enum ResourceDescriptor_Style {
479    STYLE_UNSPECIFIED = 0,
480    DECLARATIVE_FRIENDLY = 1,
481}
482
483impl ::protobuf::ProtobufEnum for ResourceDescriptor_Style {
484    fn value(&self) -> i32 {
485        *self as i32
486    }
487
488    fn from_i32(value: i32) -> ::std::option::Option<ResourceDescriptor_Style> {
489        match value {
490            0 => ::std::option::Option::Some(ResourceDescriptor_Style::STYLE_UNSPECIFIED),
491            1 => ::std::option::Option::Some(ResourceDescriptor_Style::DECLARATIVE_FRIENDLY),
492            _ => ::std::option::Option::None
493        }
494    }
495
496    fn values() -> &'static [Self] {
497        static values: &'static [ResourceDescriptor_Style] = &[
498            ResourceDescriptor_Style::STYLE_UNSPECIFIED,
499            ResourceDescriptor_Style::DECLARATIVE_FRIENDLY,
500        ];
501        values
502    }
503
504    fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
505        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
506        descriptor.get(|| {
507            ::protobuf::reflect::EnumDescriptor::new_pb_name::<ResourceDescriptor_Style>("ResourceDescriptor.Style", file_descriptor_proto())
508        })
509    }
510}
511
512impl ::std::marker::Copy for ResourceDescriptor_Style {
513}
514
515impl ::std::default::Default for ResourceDescriptor_Style {
516    fn default() -> Self {
517        ResourceDescriptor_Style::STYLE_UNSPECIFIED
518    }
519}
520
521impl ::protobuf::reflect::ProtobufValue for ResourceDescriptor_Style {
522    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
523        ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
524    }
525}
526
527#[derive(PartialEq,Clone,Default)]
528pub struct ResourceReference {
529    // message fields
530    pub field_type: ::std::string::String,
531    pub child_type: ::std::string::String,
532    // special fields
533    pub unknown_fields: ::protobuf::UnknownFields,
534    pub cached_size: ::protobuf::CachedSize,
535}
536
537impl<'a> ::std::default::Default for &'a ResourceReference {
538    fn default() -> &'a ResourceReference {
539        <ResourceReference as ::protobuf::Message>::default_instance()
540    }
541}
542
543impl ResourceReference {
544    pub fn new() -> ResourceReference {
545        ::std::default::Default::default()
546    }
547
548    // string type = 1;
549
550
551    pub fn get_field_type(&self) -> &str {
552        &self.field_type
553    }
554    pub fn clear_field_type(&mut self) {
555        self.field_type.clear();
556    }
557
558    // Param is passed by value, moved
559    pub fn set_field_type(&mut self, v: ::std::string::String) {
560        self.field_type = v;
561    }
562
563    // Mutable pointer to the field.
564    // If field is not initialized, it is initialized with default value first.
565    pub fn mut_field_type(&mut self) -> &mut ::std::string::String {
566        &mut self.field_type
567    }
568
569    // Take field
570    pub fn take_field_type(&mut self) -> ::std::string::String {
571        ::std::mem::replace(&mut self.field_type, ::std::string::String::new())
572    }
573
574    // string child_type = 2;
575
576
577    pub fn get_child_type(&self) -> &str {
578        &self.child_type
579    }
580    pub fn clear_child_type(&mut self) {
581        self.child_type.clear();
582    }
583
584    // Param is passed by value, moved
585    pub fn set_child_type(&mut self, v: ::std::string::String) {
586        self.child_type = v;
587    }
588
589    // Mutable pointer to the field.
590    // If field is not initialized, it is initialized with default value first.
591    pub fn mut_child_type(&mut self) -> &mut ::std::string::String {
592        &mut self.child_type
593    }
594
595    // Take field
596    pub fn take_child_type(&mut self) -> ::std::string::String {
597        ::std::mem::replace(&mut self.child_type, ::std::string::String::new())
598    }
599}
600
601impl ::protobuf::Message for ResourceReference {
602    fn is_initialized(&self) -> bool {
603        true
604    }
605
606    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
607        while !is.eof()? {
608            let (field_number, wire_type) = is.read_tag_unpack()?;
609            match field_number {
610                1 => {
611                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?;
612                },
613                2 => {
614                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.child_type)?;
615                },
616                _ => {
617                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
618                },
619            };
620        }
621        ::std::result::Result::Ok(())
622    }
623
624    // Compute sizes of nested messages
625    #[allow(unused_variables)]
626    fn compute_size(&self) -> u32 {
627        let mut my_size = 0;
628        if !self.field_type.is_empty() {
629            my_size += ::protobuf::rt::string_size(1, &self.field_type);
630        }
631        if !self.child_type.is_empty() {
632            my_size += ::protobuf::rt::string_size(2, &self.child_type);
633        }
634        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
635        self.cached_size.set(my_size);
636        my_size
637    }
638
639    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
640        if !self.field_type.is_empty() {
641            os.write_string(1, &self.field_type)?;
642        }
643        if !self.child_type.is_empty() {
644            os.write_string(2, &self.child_type)?;
645        }
646        os.write_unknown_fields(self.get_unknown_fields())?;
647        ::std::result::Result::Ok(())
648    }
649
650    fn get_cached_size(&self) -> u32 {
651        self.cached_size.get()
652    }
653
654    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
655        &self.unknown_fields
656    }
657
658    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
659        &mut self.unknown_fields
660    }
661
662    fn as_any(&self) -> &dyn (::std::any::Any) {
663        self as &dyn (::std::any::Any)
664    }
665    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
666        self as &mut dyn (::std::any::Any)
667    }
668    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
669        self
670    }
671
672    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
673        Self::descriptor_static()
674    }
675
676    fn new() -> ResourceReference {
677        ResourceReference::new()
678    }
679
680    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
681        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
682        descriptor.get(|| {
683            let mut fields = ::std::vec::Vec::new();
684            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
685                "type",
686                |m: &ResourceReference| { &m.field_type },
687                |m: &mut ResourceReference| { &mut m.field_type },
688            ));
689            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
690                "child_type",
691                |m: &ResourceReference| { &m.child_type },
692                |m: &mut ResourceReference| { &mut m.child_type },
693            ));
694            ::protobuf::reflect::MessageDescriptor::new_pb_name::<ResourceReference>(
695                "ResourceReference",
696                fields,
697                file_descriptor_proto()
698            )
699        })
700    }
701
702    fn default_instance() -> &'static ResourceReference {
703        static instance: ::protobuf::rt::LazyV2<ResourceReference> = ::protobuf::rt::LazyV2::INIT;
704        instance.get(ResourceReference::new)
705    }
706}
707
708impl ::protobuf::Clear for ResourceReference {
709    fn clear(&mut self) {
710        self.field_type.clear();
711        self.child_type.clear();
712        self.unknown_fields.clear();
713    }
714}
715
716impl ::std::fmt::Debug for ResourceReference {
717    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
718        ::protobuf::text_format::fmt(self, f)
719    }
720}
721
722impl ::protobuf::reflect::ProtobufValue for ResourceReference {
723    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
724        ::protobuf::reflect::ReflectValueRef::Message(self)
725    }
726}
727
728/// Extension fields
729pub mod exts {
730
731    pub const resource_reference: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::protobuf::types::ProtobufTypeMessage<super::ResourceReference>> = ::protobuf::ext::ExtFieldOptional { field_number: 1055, phantom: ::std::marker::PhantomData };
732
733    pub const resource_definition: ::protobuf::ext::ExtFieldRepeated<::protobuf::descriptor::FileOptions, ::protobuf::types::ProtobufTypeMessage<super::ResourceDescriptor>> = ::protobuf::ext::ExtFieldRepeated { field_number: 1053, phantom: ::std::marker::PhantomData };
734
735    pub const resource: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, ::protobuf::types::ProtobufTypeMessage<super::ResourceDescriptor>> = ::protobuf::ext::ExtFieldOptional { field_number: 1053, phantom: ::std::marker::PhantomData };
736}
737
738static file_descriptor_proto_data: &'static [u8] = b"\
739    \n\x19google/api/resource.proto\x12\ngoogle.api\x1a\x20google/protobuf/d\
740    escriptor.proto\"\xaa\x03\n\x12ResourceDescriptor\x12\x12\n\x04type\x18\
741    \x01\x20\x01(\tR\x04type\x12\x18\n\x07pattern\x18\x02\x20\x03(\tR\x07pat\
742    tern\x12\x1d\n\nname_field\x18\x03\x20\x01(\tR\tnameField\x12@\n\x07hist\
743    ory\x18\x04\x20\x01(\x0e2&.google.api.ResourceDescriptor.HistoryR\x07his\
744    tory\x12\x16\n\x06plural\x18\x05\x20\x01(\tR\x06plural\x12\x1a\n\x08sing\
745    ular\x18\x06\x20\x01(\tR\x08singular\x12:\n\x05style\x18\n\x20\x03(\x0e2\
746    $.google.api.ResourceDescriptor.StyleR\x05style\"[\n\x07History\x12\x17\
747    \n\x13HISTORY_UNSPECIFIED\x10\0\x12\x1d\n\x19ORIGINALLY_SINGLE_PATTERN\
748    \x10\x01\x12\x18\n\x14FUTURE_MULTI_PATTERN\x10\x02\"8\n\x05Style\x12\x15\
749    \n\x11STYLE_UNSPECIFIED\x10\0\x12\x18\n\x14DECLARATIVE_FRIENDLY\x10\x01\
750    \"F\n\x11ResourceReference\x12\x12\n\x04type\x18\x01\x20\x01(\tR\x04type\
751    \x12\x1d\n\nchild_type\x18\x02\x20\x01(\tR\tchildType:l\n\x12resource_re\
752    ference\x18\x9f\x08\x20\x01(\x0b2\x1d.google.api.ResourceReference\x12\
753    \x1d.google.protobuf.FieldOptionsR\x11resourceReference:n\n\x13resource_\
754    definition\x18\x9d\x08\x20\x03(\x0b2\x1e.google.api.ResourceDescriptor\
755    \x12\x1c.google.protobuf.FileOptionsR\x12resourceDefinition:\\\n\x08reso\
756    urce\x18\x9d\x08\x20\x01(\x0b2\x1e.google.api.ResourceDescriptor\x12\x1f\
757    .google.protobuf.MessageOptionsR\x08resourceBn\n\x0ecom.google.apiB\rRes\
758    ourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;a\
759    nnotations\xf8\x01\x01\xa2\x02\x04GAPIJ\x9aA\n\x07\x12\x05\x0e\0\xed\x01\
760    \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\
761    \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\
762    \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\
763    e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\
764    e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\
765    \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\
766    \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\
767    \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\
768    se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\
769    UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\
770    express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\
771    ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\
772    \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\
773    \x02\x03\0\x12\x03\x12\0*\n\x08\n\x01\x08\x12\x03\x14\0\x1f\n\t\n\x02\
774    \x08\x1f\x12\x03\x14\0\x1f\n\x08\n\x01\x08\x12\x03\x15\0X\n\t\n\x02\x08\
775    \x0b\x12\x03\x15\0X\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\
776    \x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\0.\n\t\n\x02\x08\x08\x12\x03\
777    \x17\0.\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\0'\
778    \n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\"\n\t\n\
779    \x01\x07\x12\x04\x1b\0\x1f\x01\n[\n\x02\x07\0\x12\x03\x1e\x029\x1aP\x20A\
780    n\x20annotation\x20that\x20describes\x20a\x20resource\x20reference,\x20s\
781    ee\n\x20[ResourceReference][].\n\n\n\n\x03\x07\0\x02\x12\x03\x1b\x07#\n\
782    \n\n\x03\x07\0\x06\x12\x03\x1e\x02\x1e\n\n\n\x03\x07\0\x01\x12\x03\x1e\
783    \x1f1\n\n\n\x03\x07\0\x03\x12\x03\x1e48\n\t\n\x01\x07\x12\x04!\0%\x01\n}\
784    \n\x02\x07\x01\x12\x03$\x02D\x1ar\x20An\x20annotation\x20that\x20describ\
785    es\x20a\x20resource\x20definition\x20without\x20a\x20corresponding\n\x20\
786    message;\x20see\x20[ResourceDescriptor][].\n\n\n\n\x03\x07\x01\x02\x12\
787    \x03!\x07\"\n\n\n\x03\x07\x01\x04\x12\x03$\x02\n\n\n\n\x03\x07\x01\x06\
788    \x12\x03$\x0b(\n\n\n\x03\x07\x01\x01\x12\x03$)<\n\n\n\x03\x07\x01\x03\
789    \x12\x03$?C\n\t\n\x01\x07\x12\x04'\0+\x01\n]\n\x02\x07\x02\x12\x03*\x020\
790    \x1aR\x20An\x20annotation\x20that\x20describes\x20a\x20resource\x20defin\
791    ition,\x20see\n\x20[ResourceDescriptor][].\n\n\n\n\x03\x07\x02\x02\x12\
792    \x03'\x07%\n\n\n\x03\x07\x02\x06\x12\x03*\x02\x1f\n\n\n\x03\x07\x02\x01\
793    \x12\x03*\x20(\n\n\n\x03\x07\x02\x03\x12\x03*+/\n\xe0\x0c\n\x02\x04\0\
794    \x12\x05\\\0\xc6\x01\x01\x1a\xd2\x0c\x20A\x20simple\x20descriptor\x20of\
795    \x20a\x20resource\x20type.\n\n\x20ResourceDescriptor\x20annotates\x20a\
796    \x20resource\x20message\x20(either\x20by\x20means\x20of\x20a\n\x20protob\
797    uf\x20annotation\x20or\x20use\x20in\x20the\x20service\x20config),\x20and\
798    \x20associates\x20the\n\x20resource's\x20schema,\x20the\x20resource\x20t\
799    ype,\x20and\x20the\x20pattern\x20of\x20the\x20resource\x20name.\n\n\x20E\
800    xample:\n\n\x20\x20\x20\x20\x20message\x20Topic\x20{\n\x20\x20\x20\x20\
801    \x20\x20\x20//\x20Indicates\x20this\x20message\x20defines\x20a\x20resour\
802    ce\x20schema.\n\x20\x20\x20\x20\x20\x20\x20//\x20Declares\x20the\x20reso\
803    urce\x20type\x20in\x20the\x20format\x20of\x20{service}/{kind}.\n\x20\x20\
804    \x20\x20\x20\x20\x20//\x20For\x20Kubernetes\x20resources,\x20the\x20form\
805    at\x20is\x20{api\x20group}/{kind}.\n\x20\x20\x20\x20\x20\x20\x20option\
806    \x20(google.api.resource)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\
807    \x20type:\x20\"pubsub.googleapis.com/Topic\"\n\x20\x20\x20\x20\x20\x20\
808    \x20\x20\x20pattern:\x20\"projects/{project}/topics/{topic}\"\n\x20\x20\
809    \x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20}\n\n\x20The\x20ResourceDesc\
810    riptor\x20Yaml\x20config\x20will\x20look\x20like:\n\n\x20\x20\x20\x20\
811    \x20resources:\n\x20\x20\x20\x20\x20-\x20type:\x20\"pubsub.googleapis.co\
812    m/Topic\"\n\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"projects/{project}/\
813    topics/{topic}\"\n\n\x20Sometimes,\x20resources\x20have\x20multiple\x20p\
814    atterns,\x20typically\x20because\x20they\x20can\n\x20live\x20under\x20mu\
815    ltiple\x20parents.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20message\x20Log\
816    Entry\x20{\n\x20\x20\x20\x20\x20\x20\x20option\x20(google.api.resource)\
817    \x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20type:\x20\"logging.googl\
818    eapis.com/LogEntry\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"\
819    projects/{project}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20pat\
820    tern:\x20\"folders/{folder}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\
821    \x20\x20pattern:\x20\"organizations/{organization}/logs/{log}\"\n\x20\
822    \x20\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"billingAccounts/{billing_a\
823    ccount}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\
824    \x20}\n\n\x20The\x20ResourceDescriptor\x20Yaml\x20config\x20will\x20look\
825    \x20like:\n\n\x20\x20\x20\x20\x20resources:\n\x20\x20\x20\x20\x20-\x20ty\
826    pe:\x20'logging.googleapis.com/LogEntry'\n\x20\x20\x20\x20\x20\x20\x20pa\
827    ttern:\x20\"projects/{project}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\
828    \x20pattern:\x20\"folders/{folder}/logs/{log}\"\n\x20\x20\x20\x20\x20\
829    \x20\x20pattern:\x20\"organizations/{organization}/logs/{log}\"\n\x20\
830    \x20\x20\x20\x20\x20\x20pattern:\x20\"billingAccounts/{billing_account}/\
831    logs/{log}\"\n\n\n\n\x03\x04\0\x01\x12\x03\\\x08\x1a\na\n\x04\x04\0\x04\
832    \0\x12\x04_\x02k\x03\x1aS\x20A\x20description\x20of\x20the\x20historical\
833    \x20or\x20future-looking\x20state\x20of\x20the\n\x20resource\x20pattern.\
834    \n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03_\x07\x0e\n#\n\x06\x04\0\x04\0\x02\
835    \0\x12\x03a\x04\x1c\x1a\x14\x20The\x20\"unset\"\x20value.\n\n\x0e\n\x07\
836    \x04\0\x04\0\x02\0\x01\x12\x03a\x04\x17\n\x0e\n\x07\x04\0\x04\0\x02\0\
837    \x02\x12\x03a\x1a\x1b\ny\n\x06\x04\0\x04\0\x02\x01\x12\x03e\x04\"\x1aj\
838    \x20The\x20resource\x20originally\x20had\x20one\x20pattern\x20and\x20lau\
839    nched\x20as\x20such,\x20and\n\x20additional\x20patterns\x20were\x20added\
840    \x20later.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03e\x04\x1d\n\x0e\
841    \n\x07\x04\0\x04\0\x02\x01\x02\x12\x03e\x20!\n\xdb\x01\n\x06\x04\0\x04\0\
842    \x02\x02\x12\x03j\x04\x1d\x1a\xcb\x01\x20The\x20resource\x20has\x20one\
843    \x20pattern,\x20but\x20the\x20API\x20owner\x20expects\x20to\x20add\x20mo\
844    re\n\x20later.\x20(This\x20is\x20the\x20inverse\x20of\x20ORIGINALLY_SING\
845    LE_PATTERN,\x20and\x20prevents\n\x20that\x20from\x20being\x20necessary\
846    \x20once\x20there\x20are\x20multiple\x20patterns.)\n\n\x0e\n\x07\x04\0\
847    \x04\0\x02\x02\x01\x12\x03j\x04\x18\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\
848    \x12\x03j\x1b\x1c\nZ\n\x04\x04\0\x04\x01\x12\x04n\x02{\x03\x1aL\x20A\x20\
849    flag\x20representing\x20a\x20specific\x20style\x20that\x20a\x20resource\
850    \x20claims\x20to\x20conform\x20to.\n\n\x0c\n\x05\x04\0\x04\x01\x01\x12\
851    \x03n\x07\x0c\n3\n\x06\x04\0\x04\x01\x02\0\x12\x03p\x04\x1a\x1a$\x20The\
852    \x20unspecified\x20value.\x20Do\x20not\x20use.\n\n\x0e\n\x07\x04\0\x04\
853    \x01\x02\0\x01\x12\x03p\x04\x15\n\x0e\n\x07\x04\0\x04\x01\x02\0\x02\x12\
854    \x03p\x18\x19\n\xda\x02\n\x06\x04\0\x04\x01\x02\x01\x12\x03z\x04\x1d\x1a\
855    \xca\x02\x20This\x20resource\x20is\x20intended\x20to\x20be\x20\"declarat\
856    ive-friendly\".\n\n\x20Declarative-friendly\x20resources\x20must\x20be\
857    \x20more\x20strictly\x20consistent,\x20and\n\x20setting\x20this\x20to\
858    \x20true\x20communicates\x20to\x20tools\x20that\x20this\x20resource\x20s\
859    hould\n\x20adhere\x20to\x20declarative-friendly\x20expectations.\n\n\x20\
860    Note:\x20This\x20is\x20used\x20by\x20the\x20API\x20linter\x20(linter.aip\
861    .dev)\x20to\x20enable\n\x20additional\x20checks.\n\n\x0e\n\x07\x04\0\x04\
862    \x01\x02\x01\x01\x12\x03z\x04\x18\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\
863    \x12\x03z\x1b\x1c\n\xec\x03\n\x04\x04\0\x02\0\x12\x04\x87\x01\x02\x12\
864    \x1a\xdd\x03\x20The\x20resource\x20type.\x20It\x20must\x20be\x20in\x20th\
865    e\x20format\x20of\n\x20{service_name}/{resource_type_kind}.\x20The\x20`r\
866    esource_type_kind`\x20must\x20be\n\x20singular\x20and\x20must\x20not\x20\
867    include\x20version\x20numbers.\n\n\x20Example:\x20`storage.googleapis.co\
868    m/Bucket`\n\n\x20The\x20value\x20of\x20the\x20resource_type_kind\x20must\
869    \x20follow\x20the\x20regular\x20expression\n\x20/[A-Za-z][a-zA-Z0-9]+/.\
870    \x20It\x20should\x20start\x20with\x20an\x20upper\x20case\x20character\
871    \x20and\n\x20should\x20use\x20PascalCase\x20(UpperCamelCase).\x20The\x20\
872    maximum\x20number\x20of\n\x20characters\x20allowed\x20for\x20the\x20`res\
873    ource_type_kind`\x20is\x20100.\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\x87\
874    \x01\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x87\x01\t\r\n\r\n\x05\x04\
875    \0\x02\0\x03\x12\x04\x87\x01\x10\x11\n\xc5\x05\n\x04\x04\0\x02\x01\x12\
876    \x04\x9c\x01\x02\x1e\x1a\xb6\x05\x20Optional.\x20The\x20relative\x20reso\
877    urce\x20name\x20pattern\x20associated\x20with\x20this\x20resource\n\x20t\
878    ype.\x20The\x20DNS\x20prefix\x20of\x20the\x20full\x20resource\x20name\
879    \x20shouldn't\x20be\x20specified\x20here.\n\n\x20The\x20path\x20pattern\
880    \x20must\x20follow\x20the\x20syntax,\x20which\x20aligns\x20with\x20HTTP\
881    \x20binding\n\x20syntax:\n\n\x20\x20\x20\x20\x20Template\x20=\x20Segment\
882    \x20{\x20\"/\"\x20Segment\x20}\x20;\n\x20\x20\x20\x20\x20Segment\x20=\
883    \x20LITERAL\x20|\x20Variable\x20;\n\x20\x20\x20\x20\x20Variable\x20=\x20\
884    \"{\"\x20LITERAL\x20\"}\"\x20;\n\n\x20Examples:\n\n\x20\x20\x20\x20\x20-\
885    \x20\"projects/{project}/topics/{topic}\"\n\x20\x20\x20\x20\x20-\x20\"pr\
886    ojects/{project}/knowledgeBases/{knowledge_base}\"\n\n\x20The\x20compone\
887    nts\x20in\x20braces\x20correspond\x20to\x20the\x20IDs\x20for\x20each\x20\
888    resource\x20in\x20the\n\x20hierarchy.\x20It\x20is\x20expected\x20that,\
889    \x20if\x20multiple\x20patterns\x20are\x20provided,\n\x20the\x20same\x20c\
890    omponent\x20name\x20(e.g.\x20\"project\")\x20refers\x20to\x20IDs\x20of\
891    \x20the\x20same\n\x20type\x20of\x20resource.\n\n\r\n\x05\x04\0\x02\x01\
892    \x04\x12\x04\x9c\x01\x02\n\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\x9c\x01\
893    \x0b\x11\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x9c\x01\x12\x19\n\r\n\x05\
894    \x04\0\x02\x01\x03\x12\x04\x9c\x01\x1c\x1d\n\x87\x01\n\x04\x04\0\x02\x02\
895    \x12\x04\xa0\x01\x02\x18\x1ay\x20Optional.\x20The\x20field\x20on\x20the\
896    \x20resource\x20that\x20designates\x20the\x20resource\x20name\n\x20field\
897    .\x20If\x20omitted,\x20this\x20is\x20assumed\x20to\x20be\x20\"name\".\n\
898    \n\r\n\x05\x04\0\x02\x02\x05\x12\x04\xa0\x01\x02\x08\n\r\n\x05\x04\0\x02\
899    \x02\x01\x12\x04\xa0\x01\t\x13\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xa0\
900    \x01\x16\x17\n\xcc\x04\n\x04\x04\0\x02\x03\x12\x04\xb1\x01\x02\x16\x1a\
901    \xbd\x04\x20Optional.\x20The\x20historical\x20or\x20future-looking\x20st\
902    ate\x20of\x20the\x20resource\x20pattern.\n\n\x20Example:\n\n\x20\x20\x20\
903    \x20\x20//\x20The\x20InspectTemplate\x20message\x20originally\x20only\
904    \x20supported\x20resource\n\x20\x20\x20\x20\x20//\x20names\x20with\x20or\
905    ganization,\x20and\x20project\x20was\x20added\x20later.\n\x20\x20\x20\
906    \x20\x20message\x20InspectTemplate\x20{\n\x20\x20\x20\x20\x20\x20\x20opt\
907    ion\x20(google.api.resource)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\
908    \x20type:\x20\"dlp.googleapis.com/InspectTemplate\"\n\x20\x20\x20\x20\
909    \x20\x20\x20\x20\x20pattern:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"orga\
910    nizations/{organization}/inspectTemplates/{inspect_template}\"\n\x20\x20\
911    \x20\x20\x20\x20\x20\x20\x20pattern:\x20\"projects/{project}/inspectTemp\
912    lates/{inspect_template}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20history:\
913    \x20ORIGINALLY_SINGLE_PATTERN\n\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\
914    \x20\x20\x20}\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\xb1\x01\x02\t\n\r\n\
915    \x05\x04\0\x02\x03\x01\x12\x04\xb1\x01\n\x11\n\r\n\x05\x04\0\x02\x03\x03\
916    \x12\x04\xb1\x01\x14\x15\n\xe1\x03\n\x04\x04\0\x02\x04\x12\x04\xbb\x01\
917    \x02\x14\x1a\xd2\x03\x20The\x20plural\x20name\x20used\x20in\x20the\x20re\
918    source\x20name\x20and\x20permission\x20names,\x20such\x20as\n\x20'projec\
919    ts'\x20for\x20the\x20resource\x20name\x20of\x20'projects/{project}'\x20a\
920    nd\x20the\x20permission\n\x20name\x20of\x20'cloudresourcemanager.googlea\
921    pis.com/projects.get'.\x20It\x20is\x20the\x20same\n\x20concept\x20of\x20\
922    the\x20`plural`\x20field\x20in\x20k8s\x20CRD\x20spec\n\x20https://kubern\
923    etes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resourc\
924    e-definitions/\n\n\x20Note:\x20The\x20plural\x20form\x20is\x20required\
925    \x20even\x20for\x20singleton\x20resources.\x20See\n\x20https://aip.dev/1\
926    56\n\n\r\n\x05\x04\0\x02\x04\x05\x12\x04\xbb\x01\x02\x08\n\r\n\x05\x04\0\
927    \x02\x04\x01\x12\x04\xbb\x01\t\x0f\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\
928    \xbb\x01\x12\x13\n\xf9\x01\n\x04\x04\0\x02\x05\x12\x04\xc0\x01\x02\x16\
929    \x1a\xea\x01\x20The\x20same\x20concept\x20of\x20the\x20`singular`\x20fie\
930    ld\x20in\x20k8s\x20CRD\x20spec\n\x20https://kubernetes.io/docs/tasks/acc\
931    ess-kubernetes-api/custom-resources/custom-resource-definitions/\n\x20Su\
932    ch\x20as\x20\"project\"\x20for\x20the\x20`resourcemanager.googleapis.com\
933    /Project`\x20type.\n\n\r\n\x05\x04\0\x02\x05\x05\x12\x04\xc0\x01\x02\x08\
934    \n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xc0\x01\t\x11\n\r\n\x05\x04\0\x02\
935    \x05\x03\x12\x04\xc0\x01\x14\x15\n\xb4\x01\n\x04\x04\0\x02\x06\x12\x04\
936    \xc5\x01\x02\x1c\x1a\xa5\x01\x20Style\x20flag(s)\x20for\x20this\x20resou\
937    rce.\n\x20These\x20indicate\x20that\x20a\x20resource\x20is\x20expected\
938    \x20to\x20conform\x20to\x20a\x20given\n\x20style.\x20See\x20the\x20speci\
939    fic\x20style\x20flags\x20for\x20additional\x20information.\n\n\r\n\x05\
940    \x04\0\x02\x06\x04\x12\x04\xc5\x01\x02\n\n\r\n\x05\x04\0\x02\x06\x06\x12\
941    \x04\xc5\x01\x0b\x10\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\xc5\x01\x11\x16\
942    \n\r\n\x05\x04\0\x02\x06\x03\x12\x04\xc5\x01\x19\x1b\ni\n\x02\x04\x01\
943    \x12\x06\xca\x01\0\xed\x01\x01\x1a[\x20Defines\x20a\x20proto\x20annotati\
944    on\x20that\x20describes\x20a\x20string\x20field\x20that\x20refers\x20to\
945    \n\x20an\x20API\x20resource.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xca\x01\
946    \x08\x19\n\x85\x04\n\x04\x04\x01\x02\0\x12\x04\xdf\x01\x02\x12\x1a\xf6\
947    \x03\x20The\x20resource\x20type\x20that\x20the\x20annotated\x20field\x20\
948    references.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20message\x20Subscripti\
949    on\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20topic\x20=\x202\x20[(goog\
950    le.api.resource_reference)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\
951    \x20type:\x20\"pubsub.googleapis.com/Topic\"\n\x20\x20\x20\x20\x20\x20\
952    \x20}];\n\x20\x20\x20\x20\x20}\n\n\x20Occasionally,\x20a\x20field\x20may\
953    \x20reference\x20an\x20arbitrary\x20resource.\x20In\x20this\x20case,\n\
954    \x20APIs\x20use\x20the\x20special\x20value\x20*\x20in\x20their\x20resour\
955    ce\x20reference.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20message\x20GetIa\
956    mPolicyRequest\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20resource\x20=\
957    \x202\x20[(google.api.resource_reference)\x20=\x20{\n\x20\x20\x20\x20\
958    \x20\x20\x20\x20\x20type:\x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20}];\n\
959    \x20\x20\x20\x20\x20}\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xdf\x01\x02\
960    \x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xdf\x01\t\r\n\r\n\x05\x04\x01\
961    \x02\0\x03\x12\x04\xdf\x01\x10\x11\n\xf0\x02\n\x04\x04\x01\x02\x01\x12\
962    \x04\xec\x01\x02\x18\x1a\xe1\x02\x20The\x20resource\x20type\x20of\x20a\
963    \x20child\x20collection\x20that\x20the\x20annotated\x20field\n\x20refere\
964    nces.\x20This\x20is\x20useful\x20for\x20annotating\x20the\x20`parent`\
965    \x20field\x20that\n\x20doesn't\x20have\x20a\x20fixed\x20resource\x20type\
966    .\n\n\x20Example:\n\n\x20\x20\x20\x20\x20message\x20ListLogEntriesReques\
967    t\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20parent\x20=\x201\x20[(goog\
968    le.api.resource_reference)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\
969    \x20child_type:\x20\"logging.googleapis.com/LogEntry\"\n\x20\x20\x20\x20\
970    \x20\x20\x20};\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x04\x01\x02\x01\x05\
971    \x12\x04\xec\x01\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xec\x01\t\
972    \x13\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xec\x01\x16\x17b\x06proto3\
973";
974
975static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
976
977fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
978    ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
979}
980
981pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
982    file_descriptor_proto_lazy.get(|| {
983        parse_descriptor_proto()
984    })
985}