xref: /aosp_15_r20/external/crosvm/system_api/src/protos/spaced.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1 // This file is generated by rust-protobuf 3.6.0. Do not edit
2 // .proto file is parsed by protoc 3.21.12
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 `spaced.proto`
22 // Generated for lite runtime
23 
24 /// Generated files are compatible only with the same version
25 /// of protobuf runtime.
26 const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_6_0;
27 
28 // @@protoc_insertion_point(message:spaced.SetProjectIdReply)
29 #[derive(PartialEq,Clone,Default,Debug)]
30 pub struct SetProjectIdReply {
31     // message fields
32     // @@protoc_insertion_point(field:spaced.SetProjectIdReply.success)
33     pub success: bool,
34     // @@protoc_insertion_point(field:spaced.SetProjectIdReply.error)
35     pub error: i32,
36     // special fields
37     // @@protoc_insertion_point(special_field:spaced.SetProjectIdReply.special_fields)
38     pub special_fields: ::protobuf::SpecialFields,
39 }
40 
41 impl<'a> ::std::default::Default for &'a SetProjectIdReply {
default() -> &'a SetProjectIdReply42     fn default() -> &'a SetProjectIdReply {
43         <SetProjectIdReply as ::protobuf::Message>::default_instance()
44     }
45 }
46 
47 impl SetProjectIdReply {
new() -> SetProjectIdReply48     pub fn new() -> SetProjectIdReply {
49         ::std::default::Default::default()
50     }
51 }
52 
53 impl ::protobuf::Message for SetProjectIdReply {
54     const NAME: &'static str = "SetProjectIdReply";
55 
is_initialized(&self) -> bool56     fn is_initialized(&self) -> bool {
57         true
58     }
59 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>60     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
61         while let Some(tag) = is.read_raw_tag_or_eof()? {
62             match tag {
63                 8 => {
64                     self.success = is.read_bool()?;
65                 },
66                 16 => {
67                     self.error = is.read_int32()?;
68                 },
69                 tag => {
70                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
71                 },
72             };
73         }
74         ::std::result::Result::Ok(())
75     }
76 
77     // Compute sizes of nested messages
78     #[allow(unused_variables)]
compute_size(&self) -> u6479     fn compute_size(&self) -> u64 {
80         let mut my_size = 0;
81         if self.success != false {
82             my_size += 1 + 1;
83         }
84         if self.error != 0 {
85             my_size += ::protobuf::rt::int32_size(2, self.error);
86         }
87         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
88         self.special_fields.cached_size().set(my_size as u32);
89         my_size
90     }
91 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>92     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
93         if self.success != false {
94             os.write_bool(1, self.success)?;
95         }
96         if self.error != 0 {
97             os.write_int32(2, self.error)?;
98         }
99         os.write_unknown_fields(self.special_fields.unknown_fields())?;
100         ::std::result::Result::Ok(())
101     }
102 
special_fields(&self) -> &::protobuf::SpecialFields103     fn special_fields(&self) -> &::protobuf::SpecialFields {
104         &self.special_fields
105     }
106 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields107     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
108         &mut self.special_fields
109     }
110 
new() -> SetProjectIdReply111     fn new() -> SetProjectIdReply {
112         SetProjectIdReply::new()
113     }
114 
clear(&mut self)115     fn clear(&mut self) {
116         self.success = false;
117         self.error = 0;
118         self.special_fields.clear();
119     }
120 
default_instance() -> &'static SetProjectIdReply121     fn default_instance() -> &'static SetProjectIdReply {
122         static instance: SetProjectIdReply = SetProjectIdReply {
123             success: false,
124             error: 0,
125             special_fields: ::protobuf::SpecialFields::new(),
126         };
127         &instance
128     }
129 }
130 
131 // @@protoc_insertion_point(message:spaced.SetProjectInheritanceFlagReply)
132 #[derive(PartialEq,Clone,Default,Debug)]
133 pub struct SetProjectInheritanceFlagReply {
134     // message fields
135     // @@protoc_insertion_point(field:spaced.SetProjectInheritanceFlagReply.success)
136     pub success: bool,
137     // @@protoc_insertion_point(field:spaced.SetProjectInheritanceFlagReply.error)
138     pub error: i32,
139     // special fields
140     // @@protoc_insertion_point(special_field:spaced.SetProjectInheritanceFlagReply.special_fields)
141     pub special_fields: ::protobuf::SpecialFields,
142 }
143 
144 impl<'a> ::std::default::Default for &'a SetProjectInheritanceFlagReply {
default() -> &'a SetProjectInheritanceFlagReply145     fn default() -> &'a SetProjectInheritanceFlagReply {
146         <SetProjectInheritanceFlagReply as ::protobuf::Message>::default_instance()
147     }
148 }
149 
150 impl SetProjectInheritanceFlagReply {
new() -> SetProjectInheritanceFlagReply151     pub fn new() -> SetProjectInheritanceFlagReply {
152         ::std::default::Default::default()
153     }
154 }
155 
156 impl ::protobuf::Message for SetProjectInheritanceFlagReply {
157     const NAME: &'static str = "SetProjectInheritanceFlagReply";
158 
is_initialized(&self) -> bool159     fn is_initialized(&self) -> bool {
160         true
161     }
162 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>163     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
164         while let Some(tag) = is.read_raw_tag_or_eof()? {
165             match tag {
166                 8 => {
167                     self.success = is.read_bool()?;
168                 },
169                 16 => {
170                     self.error = is.read_int32()?;
171                 },
172                 tag => {
173                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
174                 },
175             };
176         }
177         ::std::result::Result::Ok(())
178     }
179 
180     // Compute sizes of nested messages
181     #[allow(unused_variables)]
compute_size(&self) -> u64182     fn compute_size(&self) -> u64 {
183         let mut my_size = 0;
184         if self.success != false {
185             my_size += 1 + 1;
186         }
187         if self.error != 0 {
188             my_size += ::protobuf::rt::int32_size(2, self.error);
189         }
190         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
191         self.special_fields.cached_size().set(my_size as u32);
192         my_size
193     }
194 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>195     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
196         if self.success != false {
197             os.write_bool(1, self.success)?;
198         }
199         if self.error != 0 {
200             os.write_int32(2, self.error)?;
201         }
202         os.write_unknown_fields(self.special_fields.unknown_fields())?;
203         ::std::result::Result::Ok(())
204     }
205 
special_fields(&self) -> &::protobuf::SpecialFields206     fn special_fields(&self) -> &::protobuf::SpecialFields {
207         &self.special_fields
208     }
209 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields210     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
211         &mut self.special_fields
212     }
213 
new() -> SetProjectInheritanceFlagReply214     fn new() -> SetProjectInheritanceFlagReply {
215         SetProjectInheritanceFlagReply::new()
216     }
217 
clear(&mut self)218     fn clear(&mut self) {
219         self.success = false;
220         self.error = 0;
221         self.special_fields.clear();
222     }
223 
default_instance() -> &'static SetProjectInheritanceFlagReply224     fn default_instance() -> &'static SetProjectInheritanceFlagReply {
225         static instance: SetProjectInheritanceFlagReply = SetProjectInheritanceFlagReply {
226             success: false,
227             error: 0,
228             special_fields: ::protobuf::SpecialFields::new(),
229         };
230         &instance
231     }
232 }
233 
234 // @@protoc_insertion_point(message:spaced.StatefulDiskSpaceUpdate)
235 #[derive(PartialEq,Clone,Default,Debug)]
236 pub struct StatefulDiskSpaceUpdate {
237     // message fields
238     // @@protoc_insertion_point(field:spaced.StatefulDiskSpaceUpdate.state)
239     pub state: ::protobuf::EnumOrUnknown<StatefulDiskSpaceState>,
240     // @@protoc_insertion_point(field:spaced.StatefulDiskSpaceUpdate.free_space_bytes)
241     pub free_space_bytes: i64,
242     // special fields
243     // @@protoc_insertion_point(special_field:spaced.StatefulDiskSpaceUpdate.special_fields)
244     pub special_fields: ::protobuf::SpecialFields,
245 }
246 
247 impl<'a> ::std::default::Default for &'a StatefulDiskSpaceUpdate {
default() -> &'a StatefulDiskSpaceUpdate248     fn default() -> &'a StatefulDiskSpaceUpdate {
249         <StatefulDiskSpaceUpdate as ::protobuf::Message>::default_instance()
250     }
251 }
252 
253 impl StatefulDiskSpaceUpdate {
new() -> StatefulDiskSpaceUpdate254     pub fn new() -> StatefulDiskSpaceUpdate {
255         ::std::default::Default::default()
256     }
257 }
258 
259 impl ::protobuf::Message for StatefulDiskSpaceUpdate {
260     const NAME: &'static str = "StatefulDiskSpaceUpdate";
261 
is_initialized(&self) -> bool262     fn is_initialized(&self) -> bool {
263         true
264     }
265 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>266     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
267         while let Some(tag) = is.read_raw_tag_or_eof()? {
268             match tag {
269                 8 => {
270                     self.state = is.read_enum_or_unknown()?;
271                 },
272                 16 => {
273                     self.free_space_bytes = is.read_int64()?;
274                 },
275                 tag => {
276                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
277                 },
278             };
279         }
280         ::std::result::Result::Ok(())
281     }
282 
283     // Compute sizes of nested messages
284     #[allow(unused_variables)]
compute_size(&self) -> u64285     fn compute_size(&self) -> u64 {
286         let mut my_size = 0;
287         if self.state != ::protobuf::EnumOrUnknown::new(StatefulDiskSpaceState::NONE) {
288             my_size += ::protobuf::rt::int32_size(1, self.state.value());
289         }
290         if self.free_space_bytes != 0 {
291             my_size += ::protobuf::rt::int64_size(2, self.free_space_bytes);
292         }
293         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
294         self.special_fields.cached_size().set(my_size as u32);
295         my_size
296     }
297 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>298     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
299         if self.state != ::protobuf::EnumOrUnknown::new(StatefulDiskSpaceState::NONE) {
300             os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.state))?;
301         }
302         if self.free_space_bytes != 0 {
303             os.write_int64(2, self.free_space_bytes)?;
304         }
305         os.write_unknown_fields(self.special_fields.unknown_fields())?;
306         ::std::result::Result::Ok(())
307     }
308 
special_fields(&self) -> &::protobuf::SpecialFields309     fn special_fields(&self) -> &::protobuf::SpecialFields {
310         &self.special_fields
311     }
312 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields313     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
314         &mut self.special_fields
315     }
316 
new() -> StatefulDiskSpaceUpdate317     fn new() -> StatefulDiskSpaceUpdate {
318         StatefulDiskSpaceUpdate::new()
319     }
320 
clear(&mut self)321     fn clear(&mut self) {
322         self.state = ::protobuf::EnumOrUnknown::new(StatefulDiskSpaceState::NONE);
323         self.free_space_bytes = 0;
324         self.special_fields.clear();
325     }
326 
default_instance() -> &'static StatefulDiskSpaceUpdate327     fn default_instance() -> &'static StatefulDiskSpaceUpdate {
328         static instance: StatefulDiskSpaceUpdate = StatefulDiskSpaceUpdate {
329             state: ::protobuf::EnumOrUnknown::from_i32(0),
330             free_space_bytes: 0,
331             special_fields: ::protobuf::SpecialFields::new(),
332         };
333         &instance
334     }
335 }
336 
337 // @@protoc_insertion_point(message:spaced.GetQuotaCurrentSpacesForIdsRequest)
338 #[derive(PartialEq,Clone,Default,Debug)]
339 pub struct GetQuotaCurrentSpacesForIdsRequest {
340     // message fields
341     // @@protoc_insertion_point(field:spaced.GetQuotaCurrentSpacesForIdsRequest.path)
342     pub path: ::std::string::String,
343     // @@protoc_insertion_point(field:spaced.GetQuotaCurrentSpacesForIdsRequest.uids)
344     pub uids: ::std::vec::Vec<u32>,
345     // @@protoc_insertion_point(field:spaced.GetQuotaCurrentSpacesForIdsRequest.gids)
346     pub gids: ::std::vec::Vec<u32>,
347     // @@protoc_insertion_point(field:spaced.GetQuotaCurrentSpacesForIdsRequest.project_ids)
348     pub project_ids: ::std::vec::Vec<u32>,
349     // special fields
350     // @@protoc_insertion_point(special_field:spaced.GetQuotaCurrentSpacesForIdsRequest.special_fields)
351     pub special_fields: ::protobuf::SpecialFields,
352 }
353 
354 impl<'a> ::std::default::Default for &'a GetQuotaCurrentSpacesForIdsRequest {
default() -> &'a GetQuotaCurrentSpacesForIdsRequest355     fn default() -> &'a GetQuotaCurrentSpacesForIdsRequest {
356         <GetQuotaCurrentSpacesForIdsRequest as ::protobuf::Message>::default_instance()
357     }
358 }
359 
360 impl GetQuotaCurrentSpacesForIdsRequest {
new() -> GetQuotaCurrentSpacesForIdsRequest361     pub fn new() -> GetQuotaCurrentSpacesForIdsRequest {
362         ::std::default::Default::default()
363     }
364 }
365 
366 impl ::protobuf::Message for GetQuotaCurrentSpacesForIdsRequest {
367     const NAME: &'static str = "GetQuotaCurrentSpacesForIdsRequest";
368 
is_initialized(&self) -> bool369     fn is_initialized(&self) -> bool {
370         true
371     }
372 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>373     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
374         while let Some(tag) = is.read_raw_tag_or_eof()? {
375             match tag {
376                 10 => {
377                     self.path = is.read_string()?;
378                 },
379                 18 => {
380                     is.read_repeated_packed_uint32_into(&mut self.uids)?;
381                 },
382                 16 => {
383                     self.uids.push(is.read_uint32()?);
384                 },
385                 26 => {
386                     is.read_repeated_packed_uint32_into(&mut self.gids)?;
387                 },
388                 24 => {
389                     self.gids.push(is.read_uint32()?);
390                 },
391                 34 => {
392                     is.read_repeated_packed_uint32_into(&mut self.project_ids)?;
393                 },
394                 32 => {
395                     self.project_ids.push(is.read_uint32()?);
396                 },
397                 tag => {
398                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
399                 },
400             };
401         }
402         ::std::result::Result::Ok(())
403     }
404 
405     // Compute sizes of nested messages
406     #[allow(unused_variables)]
compute_size(&self) -> u64407     fn compute_size(&self) -> u64 {
408         let mut my_size = 0;
409         if !self.path.is_empty() {
410             my_size += ::protobuf::rt::string_size(1, &self.path);
411         }
412         my_size += ::protobuf::rt::vec_packed_uint32_size(2, &self.uids);
413         my_size += ::protobuf::rt::vec_packed_uint32_size(3, &self.gids);
414         my_size += ::protobuf::rt::vec_packed_uint32_size(4, &self.project_ids);
415         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
416         self.special_fields.cached_size().set(my_size as u32);
417         my_size
418     }
419 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>420     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
421         if !self.path.is_empty() {
422             os.write_string(1, &self.path)?;
423         }
424         os.write_repeated_packed_uint32(2, &self.uids)?;
425         os.write_repeated_packed_uint32(3, &self.gids)?;
426         os.write_repeated_packed_uint32(4, &self.project_ids)?;
427         os.write_unknown_fields(self.special_fields.unknown_fields())?;
428         ::std::result::Result::Ok(())
429     }
430 
special_fields(&self) -> &::protobuf::SpecialFields431     fn special_fields(&self) -> &::protobuf::SpecialFields {
432         &self.special_fields
433     }
434 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields435     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
436         &mut self.special_fields
437     }
438 
new() -> GetQuotaCurrentSpacesForIdsRequest439     fn new() -> GetQuotaCurrentSpacesForIdsRequest {
440         GetQuotaCurrentSpacesForIdsRequest::new()
441     }
442 
clear(&mut self)443     fn clear(&mut self) {
444         self.path.clear();
445         self.uids.clear();
446         self.gids.clear();
447         self.project_ids.clear();
448         self.special_fields.clear();
449     }
450 
default_instance() -> &'static GetQuotaCurrentSpacesForIdsRequest451     fn default_instance() -> &'static GetQuotaCurrentSpacesForIdsRequest {
452         static instance: GetQuotaCurrentSpacesForIdsRequest = GetQuotaCurrentSpacesForIdsRequest {
453             path: ::std::string::String::new(),
454             uids: ::std::vec::Vec::new(),
455             gids: ::std::vec::Vec::new(),
456             project_ids: ::std::vec::Vec::new(),
457             special_fields: ::protobuf::SpecialFields::new(),
458         };
459         &instance
460     }
461 }
462 
463 // @@protoc_insertion_point(message:spaced.GetQuotaCurrentSpacesForIdsReply)
464 #[derive(PartialEq,Clone,Default,Debug)]
465 pub struct GetQuotaCurrentSpacesForIdsReply {
466     // message fields
467     // @@protoc_insertion_point(field:spaced.GetQuotaCurrentSpacesForIdsReply.curspaces_for_uids)
468     pub curspaces_for_uids: ::std::collections::HashMap<u32, i64>,
469     // @@protoc_insertion_point(field:spaced.GetQuotaCurrentSpacesForIdsReply.curspaces_for_gids)
470     pub curspaces_for_gids: ::std::collections::HashMap<u32, i64>,
471     // @@protoc_insertion_point(field:spaced.GetQuotaCurrentSpacesForIdsReply.curspaces_for_project_ids)
472     pub curspaces_for_project_ids: ::std::collections::HashMap<u32, i64>,
473     // special fields
474     // @@protoc_insertion_point(special_field:spaced.GetQuotaCurrentSpacesForIdsReply.special_fields)
475     pub special_fields: ::protobuf::SpecialFields,
476 }
477 
478 impl<'a> ::std::default::Default for &'a GetQuotaCurrentSpacesForIdsReply {
default() -> &'a GetQuotaCurrentSpacesForIdsReply479     fn default() -> &'a GetQuotaCurrentSpacesForIdsReply {
480         <GetQuotaCurrentSpacesForIdsReply as ::protobuf::Message>::default_instance()
481     }
482 }
483 
484 impl GetQuotaCurrentSpacesForIdsReply {
new() -> GetQuotaCurrentSpacesForIdsReply485     pub fn new() -> GetQuotaCurrentSpacesForIdsReply {
486         ::std::default::Default::default()
487     }
488 }
489 
490 impl ::protobuf::Message for GetQuotaCurrentSpacesForIdsReply {
491     const NAME: &'static str = "GetQuotaCurrentSpacesForIdsReply";
492 
is_initialized(&self) -> bool493     fn is_initialized(&self) -> bool {
494         true
495     }
496 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>497     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
498         while let Some(tag) = is.read_raw_tag_or_eof()? {
499             match tag {
500                 10 => {
501                     let len = is.read_raw_varint32()?;
502                     let old_limit = is.push_limit(len as u64)?;
503                     let mut key = ::std::default::Default::default();
504                     let mut value = ::std::default::Default::default();
505                     while let Some(tag) = is.read_raw_tag_or_eof()? {
506                         match tag {
507                             8 => key = is.read_uint32()?,
508                             16 => value = is.read_int64()?,
509                             _ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
510                         };
511                     }
512                     is.pop_limit(old_limit);
513                     self.curspaces_for_uids.insert(key, value);
514                 },
515                 18 => {
516                     let len = is.read_raw_varint32()?;
517                     let old_limit = is.push_limit(len as u64)?;
518                     let mut key = ::std::default::Default::default();
519                     let mut value = ::std::default::Default::default();
520                     while let Some(tag) = is.read_raw_tag_or_eof()? {
521                         match tag {
522                             8 => key = is.read_uint32()?,
523                             16 => value = is.read_int64()?,
524                             _ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
525                         };
526                     }
527                     is.pop_limit(old_limit);
528                     self.curspaces_for_gids.insert(key, value);
529                 },
530                 26 => {
531                     let len = is.read_raw_varint32()?;
532                     let old_limit = is.push_limit(len as u64)?;
533                     let mut key = ::std::default::Default::default();
534                     let mut value = ::std::default::Default::default();
535                     while let Some(tag) = is.read_raw_tag_or_eof()? {
536                         match tag {
537                             8 => key = is.read_uint32()?,
538                             16 => value = is.read_int64()?,
539                             _ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
540                         };
541                     }
542                     is.pop_limit(old_limit);
543                     self.curspaces_for_project_ids.insert(key, value);
544                 },
545                 tag => {
546                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
547                 },
548             };
549         }
550         ::std::result::Result::Ok(())
551     }
552 
553     // Compute sizes of nested messages
554     #[allow(unused_variables)]
compute_size(&self) -> u64555     fn compute_size(&self) -> u64 {
556         let mut my_size = 0;
557         for (k, v) in &self.curspaces_for_uids {
558             let mut entry_size = 0;
559             entry_size += ::protobuf::rt::uint32_size(1, *k);
560             entry_size += ::protobuf::rt::int64_size(2, *v);
561             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
562         };
563         for (k, v) in &self.curspaces_for_gids {
564             let mut entry_size = 0;
565             entry_size += ::protobuf::rt::uint32_size(1, *k);
566             entry_size += ::protobuf::rt::int64_size(2, *v);
567             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
568         };
569         for (k, v) in &self.curspaces_for_project_ids {
570             let mut entry_size = 0;
571             entry_size += ::protobuf::rt::uint32_size(1, *k);
572             entry_size += ::protobuf::rt::int64_size(2, *v);
573             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
574         };
575         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
576         self.special_fields.cached_size().set(my_size as u32);
577         my_size
578     }
579 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>580     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
581         for (k, v) in &self.curspaces_for_uids {
582             let mut entry_size = 0;
583             entry_size += ::protobuf::rt::uint32_size(1, *k);
584             entry_size += ::protobuf::rt::int64_size(2, *v);
585             os.write_raw_varint32(10)?; // Tag.
586             os.write_raw_varint32(entry_size as u32)?;
587             os.write_uint32(1, *k)?;
588             os.write_int64(2, *v)?;
589         };
590         for (k, v) in &self.curspaces_for_gids {
591             let mut entry_size = 0;
592             entry_size += ::protobuf::rt::uint32_size(1, *k);
593             entry_size += ::protobuf::rt::int64_size(2, *v);
594             os.write_raw_varint32(18)?; // Tag.
595             os.write_raw_varint32(entry_size as u32)?;
596             os.write_uint32(1, *k)?;
597             os.write_int64(2, *v)?;
598         };
599         for (k, v) in &self.curspaces_for_project_ids {
600             let mut entry_size = 0;
601             entry_size += ::protobuf::rt::uint32_size(1, *k);
602             entry_size += ::protobuf::rt::int64_size(2, *v);
603             os.write_raw_varint32(26)?; // Tag.
604             os.write_raw_varint32(entry_size as u32)?;
605             os.write_uint32(1, *k)?;
606             os.write_int64(2, *v)?;
607         };
608         os.write_unknown_fields(self.special_fields.unknown_fields())?;
609         ::std::result::Result::Ok(())
610     }
611 
special_fields(&self) -> &::protobuf::SpecialFields612     fn special_fields(&self) -> &::protobuf::SpecialFields {
613         &self.special_fields
614     }
615 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields616     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
617         &mut self.special_fields
618     }
619 
new() -> GetQuotaCurrentSpacesForIdsReply620     fn new() -> GetQuotaCurrentSpacesForIdsReply {
621         GetQuotaCurrentSpacesForIdsReply::new()
622     }
623 
clear(&mut self)624     fn clear(&mut self) {
625         self.curspaces_for_uids.clear();
626         self.curspaces_for_gids.clear();
627         self.curspaces_for_project_ids.clear();
628         self.special_fields.clear();
629     }
630 
default_instance() -> &'static GetQuotaCurrentSpacesForIdsReply631     fn default_instance() -> &'static GetQuotaCurrentSpacesForIdsReply {
632         static instance: ::protobuf::rt::Lazy<GetQuotaCurrentSpacesForIdsReply> = ::protobuf::rt::Lazy::new();
633         instance.get(GetQuotaCurrentSpacesForIdsReply::new)
634     }
635 }
636 
637 #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
638 // @@protoc_insertion_point(enum:spaced.StatefulDiskSpaceState)
639 pub enum StatefulDiskSpaceState {
640     // @@protoc_insertion_point(enum_value:spaced.StatefulDiskSpaceState.NONE)
641     NONE = 0,
642     // @@protoc_insertion_point(enum_value:spaced.StatefulDiskSpaceState.NORMAL)
643     NORMAL = 1,
644     // @@protoc_insertion_point(enum_value:spaced.StatefulDiskSpaceState.LOW)
645     LOW = 2,
646     // @@protoc_insertion_point(enum_value:spaced.StatefulDiskSpaceState.CRITICAL)
647     CRITICAL = 3,
648 }
649 
650 impl ::protobuf::Enum for StatefulDiskSpaceState {
651     const NAME: &'static str = "StatefulDiskSpaceState";
652 
value(&self) -> i32653     fn value(&self) -> i32 {
654         *self as i32
655     }
656 
from_i32(value: i32) -> ::std::option::Option<StatefulDiskSpaceState>657     fn from_i32(value: i32) -> ::std::option::Option<StatefulDiskSpaceState> {
658         match value {
659             0 => ::std::option::Option::Some(StatefulDiskSpaceState::NONE),
660             1 => ::std::option::Option::Some(StatefulDiskSpaceState::NORMAL),
661             2 => ::std::option::Option::Some(StatefulDiskSpaceState::LOW),
662             3 => ::std::option::Option::Some(StatefulDiskSpaceState::CRITICAL),
663             _ => ::std::option::Option::None
664         }
665     }
666 
from_str(str: &str) -> ::std::option::Option<StatefulDiskSpaceState>667     fn from_str(str: &str) -> ::std::option::Option<StatefulDiskSpaceState> {
668         match str {
669             "NONE" => ::std::option::Option::Some(StatefulDiskSpaceState::NONE),
670             "NORMAL" => ::std::option::Option::Some(StatefulDiskSpaceState::NORMAL),
671             "LOW" => ::std::option::Option::Some(StatefulDiskSpaceState::LOW),
672             "CRITICAL" => ::std::option::Option::Some(StatefulDiskSpaceState::CRITICAL),
673             _ => ::std::option::Option::None
674         }
675     }
676 
677     const VALUES: &'static [StatefulDiskSpaceState] = &[
678         StatefulDiskSpaceState::NONE,
679         StatefulDiskSpaceState::NORMAL,
680         StatefulDiskSpaceState::LOW,
681         StatefulDiskSpaceState::CRITICAL,
682     ];
683 }
684 
685 impl ::std::default::Default for StatefulDiskSpaceState {
default() -> Self686     fn default() -> Self {
687         StatefulDiskSpaceState::NONE
688     }
689 }
690 
691