protobuf/well_known_types/
field_mask.rs

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/field_mask.proto`
22
23// @@protoc_insertion_point(message:google.protobuf.FieldMask)
24#[derive(PartialEq,Clone,Default,Debug)]
25pub struct FieldMask {
26    // message fields
27    ///  The set of field mask paths.
28    // @@protoc_insertion_point(field:google.protobuf.FieldMask.paths)
29    pub paths: ::std::vec::Vec<::std::string::String>,
30    // special fields
31    // @@protoc_insertion_point(special_field:google.protobuf.FieldMask.special_fields)
32    pub special_fields: crate::SpecialFields,
33}
34
35impl<'a> ::std::default::Default for &'a FieldMask {
36    fn default() -> &'a FieldMask {
37        <FieldMask as crate::Message>::default_instance()
38    }
39}
40
41impl FieldMask {
42    pub fn new() -> FieldMask {
43        ::std::default::Default::default()
44    }
45
46    fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
47        let mut fields = ::std::vec::Vec::with_capacity(1);
48        let mut oneofs = ::std::vec::Vec::with_capacity(0);
49        fields.push(crate::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
50            "paths",
51            |m: &FieldMask| { &m.paths },
52            |m: &mut FieldMask| { &mut m.paths },
53        ));
54        crate::reflect::GeneratedMessageDescriptorData::new_2::<FieldMask>(
55            "FieldMask",
56            fields,
57            oneofs,
58        )
59    }
60}
61
62impl crate::Message for FieldMask {
63    const NAME: &'static str = "FieldMask";
64
65    fn is_initialized(&self) -> bool {
66        true
67    }
68
69    fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
70        while let Some(tag) = is.read_raw_tag_or_eof()? {
71            match tag {
72                10 => {
73                    self.paths.push(is.read_string()?);
74                },
75                tag => {
76                    crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
77                },
78            };
79        }
80        ::std::result::Result::Ok(())
81    }
82
83    // Compute sizes of nested messages
84    #[allow(unused_variables)]
85    fn compute_size(&self) -> u64 {
86        let mut my_size = 0;
87        for value in &self.paths {
88            my_size += crate::rt::string_size(1, &value);
89        };
90        my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
91        self.special_fields.cached_size().set(my_size as u32);
92        my_size
93    }
94
95    fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
96        for v in &self.paths {
97            os.write_string(1, &v)?;
98        };
99        os.write_unknown_fields(self.special_fields.unknown_fields())?;
100        ::std::result::Result::Ok(())
101    }
102
103    fn special_fields(&self) -> &crate::SpecialFields {
104        &self.special_fields
105    }
106
107    fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
108        &mut self.special_fields
109    }
110
111    fn new() -> FieldMask {
112        FieldMask::new()
113    }
114
115    fn clear(&mut self) {
116        self.paths.clear();
117        self.special_fields.clear();
118    }
119
120    fn default_instance() -> &'static FieldMask {
121        static instance: FieldMask = FieldMask {
122            paths: ::std::vec::Vec::new(),
123            special_fields: crate::SpecialFields::new(),
124        };
125        &instance
126    }
127}
128
129impl crate::MessageFull for FieldMask {
130    fn descriptor() -> crate::reflect::MessageDescriptor {
131        static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
132        descriptor.get(|| file_descriptor().message_by_package_relative_name("FieldMask").unwrap()).clone()
133    }
134}
135
136impl ::std::fmt::Display for FieldMask {
137    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
138        crate::text_format::fmt(self, f)
139    }
140}
141
142impl crate::reflect::ProtobufValue for FieldMask {
143    type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
144}
145
146static file_descriptor_proto_data: &'static [u8] = b"\
147    \n\x20google/protobuf/field_mask.proto\x12\x0fgoogle.protobuf\"!\n\tFiel\
148    dMask\x12\x14\n\x05paths\x18\x01\x20\x03(\tR\x05pathsB\x85\x01\n\x13com.\
149    google.protobufB\x0eFieldMaskProtoP\x01Z2google.golang.org/protobuf/type\
150    s/known/fieldmaskpb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobu\
151    f.WellKnownTypesJ\xa1;\n\x07\x12\x05\x1e\0\xf4\x01\x01\n\xcc\x0c\n\x01\
152    \x0c\x12\x03\x1e\0\x122\xc1\x0c\x20Protocol\x20Buffers\x20-\x20Google's\
153    \x20data\x20interchange\x20format\n\x20Copyright\x202008\x20Google\x20In\
154    c.\x20\x20All\x20rights\x20reserved.\n\x20https://developers.google.com/\
155    protocol-buffers/\n\n\x20Redistribution\x20and\x20use\x20in\x20source\
156    \x20and\x20binary\x20forms,\x20with\x20or\x20without\n\x20modification,\
157    \x20are\x20permitted\x20provided\x20that\x20the\x20following\x20conditio\
158    ns\x20are\n\x20met:\n\n\x20\x20\x20\x20\x20*\x20Redistributions\x20of\
159    \x20source\x20code\x20must\x20retain\x20the\x20above\x20copyright\n\x20n\
160    otice,\x20this\x20list\x20of\x20conditions\x20and\x20the\x20following\
161    \x20disclaimer.\n\x20\x20\x20\x20\x20*\x20Redistributions\x20in\x20binar\
162    y\x20form\x20must\x20reproduce\x20the\x20above\n\x20copyright\x20notice,\
163    \x20this\x20list\x20of\x20conditions\x20and\x20the\x20following\x20discl\
164    aimer\n\x20in\x20the\x20documentation\x20and/or\x20other\x20materials\
165    \x20provided\x20with\x20the\n\x20distribution.\n\x20\x20\x20\x20\x20*\
166    \x20Neither\x20the\x20name\x20of\x20Google\x20Inc.\x20nor\x20the\x20name\
167    s\x20of\x20its\n\x20contributors\x20may\x20be\x20used\x20to\x20endorse\
168    \x20or\x20promote\x20products\x20derived\x20from\n\x20this\x20software\
169    \x20without\x20specific\x20prior\x20written\x20permission.\n\n\x20THIS\
170    \x20SOFTWARE\x20IS\x20PROVIDED\x20BY\x20THE\x20COPYRIGHT\x20HOLDERS\x20A\
171    ND\x20CONTRIBUTORS\n\x20\"AS\x20IS\"\x20AND\x20ANY\x20EXPRESS\x20OR\x20I\
172    MPLIED\x20WARRANTIES,\x20INCLUDING,\x20BUT\x20NOT\n\x20LIMITED\x20TO,\
173    \x20THE\x20IMPLIED\x20WARRANTIES\x20OF\x20MERCHANTABILITY\x20AND\x20FITN\
174    ESS\x20FOR\n\x20A\x20PARTICULAR\x20PURPOSE\x20ARE\x20DISCLAIMED.\x20IN\
175    \x20NO\x20EVENT\x20SHALL\x20THE\x20COPYRIGHT\n\x20OWNER\x20OR\x20CONTRIB\
176    UTORS\x20BE\x20LIABLE\x20FOR\x20ANY\x20DIRECT,\x20INDIRECT,\x20INCIDENTA\
177    L,\n\x20SPECIAL,\x20EXEMPLARY,\x20OR\x20CONSEQUENTIAL\x20DAMAGES\x20(INC\
178    LUDING,\x20BUT\x20NOT\n\x20LIMITED\x20TO,\x20PROCUREMENT\x20OF\x20SUBSTI\
179    TUTE\x20GOODS\x20OR\x20SERVICES;\x20LOSS\x20OF\x20USE,\n\x20DATA,\x20OR\
180    \x20PROFITS;\x20OR\x20BUSINESS\x20INTERRUPTION)\x20HOWEVER\x20CAUSED\x20\
181    AND\x20ON\x20ANY\n\x20THEORY\x20OF\x20LIABILITY,\x20WHETHER\x20IN\x20CON\
182    TRACT,\x20STRICT\x20LIABILITY,\x20OR\x20TORT\n\x20(INCLUDING\x20NEGLIGEN\
183    CE\x20OR\x20OTHERWISE)\x20ARISING\x20IN\x20ANY\x20WAY\x20OUT\x20OF\x20TH\
184    E\x20USE\n\x20OF\x20THIS\x20SOFTWARE,\x20EVEN\x20IF\x20ADVISED\x20OF\x20\
185    THE\x20POSSIBILITY\x20OF\x20SUCH\x20DAMAGE.\n\n\x08\n\x01\x02\x12\x03\
186    \x20\0\x18\n\x08\n\x01\x08\x12\x03\"\0;\n\t\n\x02\x08%\x12\x03\"\0;\n\
187    \x08\n\x01\x08\x12\x03#\0,\n\t\n\x02\x08\x01\x12\x03#\0,\n\x08\n\x01\x08\
188    \x12\x03$\0/\n\t\n\x02\x08\x08\x12\x03$\0/\n\x08\n\x01\x08\x12\x03%\0\"\
189    \n\t\n\x02\x08\n\x12\x03%\0\"\n\x08\n\x01\x08\x12\x03&\0!\n\t\n\x02\x08$\
190    \x12\x03&\0!\n\x08\n\x01\x08\x12\x03'\0I\n\t\n\x02\x08\x0b\x12\x03'\0I\n\
191    \x08\n\x01\x08\x12\x03(\0\x1f\n\t\n\x02\x08\x1f\x12\x03(\0\x1f\n\xb2,\n\
192    \x02\x04\0\x12\x06\xf1\x01\0\xf4\x01\x01\x1a\xa3,\x20`FieldMask`\x20repr\
193    esents\x20a\x20set\x20of\x20symbolic\x20field\x20paths,\x20for\x20exampl\
194    e:\n\n\x20\x20\x20\x20\x20paths:\x20\"f.a\"\n\x20\x20\x20\x20\x20paths:\
195    \x20\"f.b.d\"\n\n\x20Here\x20`f`\x20represents\x20a\x20field\x20in\x20so\
196    me\x20root\x20message,\x20`a`\x20and\x20`b`\n\x20fields\x20in\x20the\x20\
197    message\x20found\x20in\x20`f`,\x20and\x20`d`\x20a\x20field\x20found\x20i\
198    n\x20the\n\x20message\x20in\x20`f.b`.\n\n\x20Field\x20masks\x20are\x20us\
199    ed\x20to\x20specify\x20a\x20subset\x20of\x20fields\x20that\x20should\x20\
200    be\n\x20returned\x20by\x20a\x20get\x20operation\x20or\x20modified\x20by\
201    \x20an\x20update\x20operation.\n\x20Field\x20masks\x20also\x20have\x20a\
202    \x20custom\x20JSON\x20encoding\x20(see\x20below).\n\n\x20#\x20Field\x20M\
203    asks\x20in\x20Projections\n\n\x20When\x20used\x20in\x20the\x20context\
204    \x20of\x20a\x20projection,\x20a\x20response\x20message\x20or\n\x20sub-me\
205    ssage\x20is\x20filtered\x20by\x20the\x20API\x20to\x20only\x20contain\x20\
206    those\x20fields\x20as\n\x20specified\x20in\x20the\x20mask.\x20For\x20exa\
207    mple,\x20if\x20the\x20mask\x20in\x20the\x20previous\n\x20example\x20is\
208    \x20applied\x20to\x20a\x20response\x20message\x20as\x20follows:\n\n\x20\
209    \x20\x20\x20\x20f\x20{\n\x20\x20\x20\x20\x20\x20\x20a\x20:\x2022\n\x20\
210    \x20\x20\x20\x20\x20\x20b\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20d\
211    \x20:\x201\n\x20\x20\x20\x20\x20\x20\x20\x20\x20x\x20:\x202\n\x20\x20\
212    \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20y\x20:\x2013\n\x20\
213    \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20z:\x208\n\n\x20The\x20result\x20w\
214    ill\x20not\x20contain\x20specific\x20values\x20for\x20fields\x20x,y\x20a\
215    nd\x20z\n\x20(their\x20value\x20will\x20be\x20set\x20to\x20the\x20defaul\
216    t,\x20and\x20omitted\x20in\x20proto\x20text\n\x20output):\n\n\n\x20\x20\
217    \x20\x20\x20f\x20{\n\x20\x20\x20\x20\x20\x20\x20a\x20:\x2022\n\x20\x20\
218    \x20\x20\x20\x20\x20b\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20d\x20:\
219    \x201\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20A\x20\
220    repeated\x20field\x20is\x20not\x20allowed\x20except\x20at\x20the\x20last\
221    \x20position\x20of\x20a\n\x20paths\x20string.\n\n\x20If\x20a\x20FieldMas\
222    k\x20object\x20is\x20not\x20present\x20in\x20a\x20get\x20operation,\x20t\
223    he\n\x20operation\x20applies\x20to\x20all\x20fields\x20(as\x20if\x20a\
224    \x20FieldMask\x20of\x20all\x20fields\n\x20had\x20been\x20specified).\n\n\
225    \x20Note\x20that\x20a\x20field\x20mask\x20does\x20not\x20necessarily\x20\
226    apply\x20to\x20the\n\x20top-level\x20response\x20message.\x20In\x20case\
227    \x20of\x20a\x20REST\x20get\x20operation,\x20the\n\x20field\x20mask\x20ap\
228    plies\x20directly\x20to\x20the\x20response,\x20but\x20in\x20case\x20of\
229    \x20a\x20REST\n\x20list\x20operation,\x20the\x20mask\x20instead\x20appli\
230    es\x20to\x20each\x20individual\x20message\n\x20in\x20the\x20returned\x20\
231    resource\x20list.\x20In\x20case\x20of\x20a\x20REST\x20custom\x20method,\
232    \n\x20other\x20definitions\x20may\x20be\x20used.\x20Where\x20the\x20mask\
233    \x20applies\x20will\x20be\n\x20clearly\x20documented\x20together\x20with\
234    \x20its\x20declaration\x20in\x20the\x20API.\x20\x20In\n\x20any\x20case,\
235    \x20the\x20effect\x20on\x20the\x20returned\x20resource/resources\x20is\
236    \x20required\n\x20behavior\x20for\x20APIs.\n\n\x20#\x20Field\x20Masks\
237    \x20in\x20Update\x20Operations\n\n\x20A\x20field\x20mask\x20in\x20update\
238    \x20operations\x20specifies\x20which\x20fields\x20of\x20the\n\x20targete\
239    d\x20resource\x20are\x20going\x20to\x20be\x20updated.\x20The\x20API\x20i\
240    s\x20required\n\x20to\x20only\x20change\x20the\x20values\x20of\x20the\
241    \x20fields\x20as\x20specified\x20in\x20the\x20mask\n\x20and\x20leave\x20\
242    the\x20others\x20untouched.\x20If\x20a\x20resource\x20is\x20passed\x20in\
243    \x20to\n\x20describe\x20the\x20updated\x20values,\x20the\x20API\x20ignor\
244    es\x20the\x20values\x20of\x20all\n\x20fields\x20not\x20covered\x20by\x20\
245    the\x20mask.\n\n\x20If\x20a\x20repeated\x20field\x20is\x20specified\x20f\
246    or\x20an\x20update\x20operation,\x20new\x20values\x20will\n\x20be\x20app\
247    ended\x20to\x20the\x20existing\x20repeated\x20field\x20in\x20the\x20targ\
248    et\x20resource.\x20Note\x20that\n\x20a\x20repeated\x20field\x20is\x20onl\
249    y\x20allowed\x20in\x20the\x20last\x20position\x20of\x20a\x20`paths`\x20s\
250    tring.\n\n\x20If\x20a\x20sub-message\x20is\x20specified\x20in\x20the\x20\
251    last\x20position\x20of\x20the\x20field\x20mask\x20for\x20an\n\x20update\
252    \x20operation,\x20then\x20new\x20value\x20will\x20be\x20merged\x20into\
253    \x20the\x20existing\x20sub-message\n\x20in\x20the\x20target\x20resource.\
254    \n\n\x20For\x20example,\x20given\x20the\x20target\x20message:\n\n\x20\
255    \x20\x20\x20\x20f\x20{\n\x20\x20\x20\x20\x20\x20\x20b\x20{\n\x20\x20\x20\
256    \x20\x20\x20\x20\x20\x20d:\x201\n\x20\x20\x20\x20\x20\x20\x20\x20\x20x:\
257    \x202\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20c:\x20\
258    [1]\n\x20\x20\x20\x20\x20}\n\n\x20And\x20an\x20update\x20message:\n\n\
259    \x20\x20\x20\x20\x20f\x20{\n\x20\x20\x20\x20\x20\x20\x20b\x20{\n\x20\x20\
260    \x20\x20\x20\x20\x20\x20\x20d:\x2010\n\x20\x20\x20\x20\x20\x20\x20}\n\
261    \x20\x20\x20\x20\x20\x20\x20c:\x20[2]\n\x20\x20\x20\x20\x20}\n\n\x20then\
262    \x20if\x20the\x20field\x20mask\x20is:\n\n\x20\x20paths:\x20[\"f.b\",\x20\
263    \"f.c\"]\n\n\x20then\x20the\x20result\x20will\x20be:\n\n\x20\x20\x20\x20\
264    \x20f\x20{\n\x20\x20\x20\x20\x20\x20\x20b\x20{\n\x20\x20\x20\x20\x20\x20\
265    \x20\x20\x20d:\x2010\n\x20\x20\x20\x20\x20\x20\x20\x20\x20x:\x202\n\x20\
266    \x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20c:\x20[1,\x202]\n\
267    \x20\x20\x20\x20\x20}\n\n\x20An\x20implementation\x20may\x20provide\x20o\
268    ptions\x20to\x20override\x20this\x20default\x20behavior\x20for\n\x20repe\
269    ated\x20and\x20message\x20fields.\n\n\x20In\x20order\x20to\x20reset\x20a\
270    \x20field's\x20value\x20to\x20the\x20default,\x20the\x20field\x20must\n\
271    \x20be\x20in\x20the\x20mask\x20and\x20set\x20to\x20the\x20default\x20val\
272    ue\x20in\x20the\x20provided\x20resource.\n\x20Hence,\x20in\x20order\x20t\
273    o\x20reset\x20all\x20fields\x20of\x20a\x20resource,\x20provide\x20a\x20d\
274    efault\n\x20instance\x20of\x20the\x20resource\x20and\x20set\x20all\x20fi\
275    elds\x20in\x20the\x20mask,\x20or\x20do\n\x20not\x20provide\x20a\x20mask\
276    \x20as\x20described\x20below.\n\n\x20If\x20a\x20field\x20mask\x20is\x20n\
277    ot\x20present\x20on\x20update,\x20the\x20operation\x20applies\x20to\n\
278    \x20all\x20fields\x20(as\x20if\x20a\x20field\x20mask\x20of\x20all\x20fie\
279    lds\x20has\x20been\x20specified).\n\x20Note\x20that\x20in\x20the\x20pres\
280    ence\x20of\x20schema\x20evolution,\x20this\x20may\x20mean\x20that\n\x20f\
281    ields\x20the\x20client\x20does\x20not\x20know\x20and\x20has\x20therefore\
282    \x20not\x20filled\x20into\n\x20the\x20request\x20will\x20be\x20reset\x20\
283    to\x20their\x20default.\x20If\x20this\x20is\x20unwanted\n\x20behavior,\
284    \x20a\x20specific\x20service\x20may\x20require\x20a\x20client\x20to\x20a\
285    lways\x20specify\n\x20a\x20field\x20mask,\x20producing\x20an\x20error\
286    \x20if\x20not.\n\n\x20As\x20with\x20get\x20operations,\x20the\x20locatio\
287    n\x20of\x20the\x20resource\x20which\n\x20describes\x20the\x20updated\x20\
288    values\x20in\x20the\x20request\x20message\x20depends\x20on\x20the\n\x20o\
289    peration\x20kind.\x20In\x20any\x20case,\x20the\x20effect\x20of\x20the\
290    \x20field\x20mask\x20is\n\x20required\x20to\x20be\x20honored\x20by\x20th\
291    e\x20API.\n\n\x20##\x20Considerations\x20for\x20HTTP\x20REST\n\n\x20The\
292    \x20HTTP\x20kind\x20of\x20an\x20update\x20operation\x20which\x20uses\x20\
293    a\x20field\x20mask\x20must\n\x20be\x20set\x20to\x20PATCH\x20instead\x20o\
294    f\x20PUT\x20in\x20order\x20to\x20satisfy\x20HTTP\x20semantics\n\x20(PUT\
295    \x20must\x20only\x20be\x20used\x20for\x20full\x20updates).\n\n\x20#\x20J\
296    SON\x20Encoding\x20of\x20Field\x20Masks\n\n\x20In\x20JSON,\x20a\x20field\
297    \x20mask\x20is\x20encoded\x20as\x20a\x20single\x20string\x20where\x20pat\
298    hs\x20are\n\x20separated\x20by\x20a\x20comma.\x20Fields\x20name\x20in\
299    \x20each\x20path\x20are\x20converted\n\x20to/from\x20lower-camel\x20nami\
300    ng\x20conventions.\n\n\x20As\x20an\x20example,\x20consider\x20the\x20fol\
301    lowing\x20message\x20declarations:\n\n\x20\x20\x20\x20\x20message\x20Pro\
302    file\x20{\n\x20\x20\x20\x20\x20\x20\x20User\x20user\x20=\x201;\n\x20\x20\
303    \x20\x20\x20\x20\x20Photo\x20photo\x20=\x202;\n\x20\x20\x20\x20\x20}\n\
304    \x20\x20\x20\x20\x20message\x20User\x20{\n\x20\x20\x20\x20\x20\x20\x20st\
305    ring\x20display_name\x20=\x201;\n\x20\x20\x20\x20\x20\x20\x20string\x20a\
306    ddress\x20=\x202;\n\x20\x20\x20\x20\x20}\n\n\x20In\x20proto\x20a\x20fiel\
307    d\x20mask\x20for\x20`Profile`\x20may\x20look\x20as\x20such:\n\n\x20\x20\
308    \x20\x20\x20mask\x20{\n\x20\x20\x20\x20\x20\x20\x20paths:\x20\"user.disp\
309    lay_name\"\n\x20\x20\x20\x20\x20\x20\x20paths:\x20\"photo\"\n\x20\x20\
310    \x20\x20\x20}\n\n\x20In\x20JSON,\x20the\x20same\x20mask\x20is\x20represe\
311    nted\x20as\x20below:\n\n\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\
312    \x20mask:\x20\"user.displayName,photo\"\n\x20\x20\x20\x20\x20}\n\n\x20#\
313    \x20Field\x20Masks\x20and\x20Oneof\x20Fields\n\n\x20Field\x20masks\x20tr\
314    eat\x20fields\x20in\x20oneofs\x20just\x20as\x20regular\x20fields.\x20Con\
315    sider\x20the\n\x20following\x20message:\n\n\x20\x20\x20\x20\x20message\
316    \x20SampleMessage\x20{\n\x20\x20\x20\x20\x20\x20\x20oneof\x20test_oneof\
317    \x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20string\x20name\x20=\x204;\n\
318    \x20\x20\x20\x20\x20\x20\x20\x20\x20SubMessage\x20sub_message\x20=\x209;\
319    \n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20The\x20fie\
320    ld\x20mask\x20can\x20be:\n\n\x20\x20\x20\x20\x20mask\x20{\n\x20\x20\x20\
321    \x20\x20\x20\x20paths:\x20\"name\"\n\x20\x20\x20\x20\x20}\n\n\x20Or:\n\n\
322    \x20\x20\x20\x20\x20mask\x20{\n\x20\x20\x20\x20\x20\x20\x20paths:\x20\"s\
323    ub_message\"\n\x20\x20\x20\x20\x20}\n\n\x20Note\x20that\x20oneof\x20type\
324    \x20names\x20(\"test_oneof\"\x20in\x20this\x20case)\x20cannot\x20be\x20u\
325    sed\x20in\n\x20paths.\n\n\x20##\x20Field\x20Mask\x20Verification\n\n\x20\
326    The\x20implementation\x20of\x20any\x20API\x20method\x20which\x20has\x20a\
327    \x20FieldMask\x20type\x20field\x20in\x20the\n\x20request\x20should\x20ve\
328    rify\x20the\x20included\x20field\x20paths,\x20and\x20return\x20an\n\x20`\
329    INVALID_ARGUMENT`\x20error\x20if\x20any\x20path\x20is\x20unmappable.\n\n\
330    \x0b\n\x03\x04\0\x01\x12\x04\xf1\x01\x08\x11\n,\n\x04\x04\0\x02\0\x12\
331    \x04\xf3\x01\x02\x1c\x1a\x1e\x20The\x20set\x20of\x20field\x20mask\x20pat\
332    hs.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04\xf3\x01\x02\n\n\r\n\x05\x04\0\
333    \x02\0\x05\x12\x04\xf3\x01\x0b\x11\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xf3\
334    \x01\x12\x17\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xf3\x01\x1a\x1bb\x06proto\
335    3\
336";
337
338/// `FileDescriptorProto` object which was a source for this generated file
339fn file_descriptor_proto() -> &'static crate::descriptor::FileDescriptorProto {
340    static file_descriptor_proto_lazy: crate::rt::Lazy<crate::descriptor::FileDescriptorProto> = crate::rt::Lazy::new();
341    file_descriptor_proto_lazy.get(|| {
342        crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
343    })
344}
345
346/// `FileDescriptor` object which allows dynamic access to files
347pub fn file_descriptor() -> &'static crate::reflect::FileDescriptor {
348    static generated_file_descriptor_lazy: crate::rt::Lazy<crate::reflect::GeneratedFileDescriptor> = crate::rt::Lazy::new();
349    static file_descriptor: crate::rt::Lazy<crate::reflect::FileDescriptor> = crate::rt::Lazy::new();
350    file_descriptor.get(|| {
351        let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
352            let mut deps = ::std::vec::Vec::with_capacity(0);
353            let mut messages = ::std::vec::Vec::with_capacity(1);
354            messages.push(FieldMask::generated_message_descriptor_data());
355            let mut enums = ::std::vec::Vec::with_capacity(0);
356            crate::reflect::GeneratedFileDescriptor::new_generated(
357                file_descriptor_proto(),
358                deps,
359                messages,
360                enums,
361            )
362        });
363        crate::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
364    })
365}