• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // This file is generated by rust-protobuf 2.27.1. 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 `UserDataAuth.proto`
21 
22 /// Generated files are compatible only with the same version
23 /// of protobuf runtime.
24 // const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_27_1;
25 
26 #[derive(PartialEq,Clone,Default,Debug)]
27 pub struct CreateRequest {
28     // message fields
29     pub keys: ::protobuf::RepeatedField<super::key::Key>,
30     pub copy_authorization_key: bool,
31     pub force_ecryptfs: bool,
32     // special fields
33     pub unknown_fields: ::protobuf::UnknownFields,
34     pub cached_size: ::protobuf::CachedSize,
35 }
36 
37 impl<'a> ::std::default::Default for &'a CreateRequest {
default() -> &'a CreateRequest38     fn default() -> &'a CreateRequest {
39         <CreateRequest as ::protobuf::Message>::default_instance()
40     }
41 }
42 
43 impl CreateRequest {
new() -> CreateRequest44     pub fn new() -> CreateRequest {
45         ::std::default::Default::default()
46     }
47 
48     // repeated .cryptohome.Key keys = 1;
49 
50 
get_keys(&self) -> &[super::key::Key]51     pub fn get_keys(&self) -> &[super::key::Key] {
52         &self.keys
53     }
clear_keys(&mut self)54     pub fn clear_keys(&mut self) {
55         self.keys.clear();
56     }
57 
58     // Param is passed by value, moved
set_keys(&mut self, v: ::protobuf::RepeatedField<super::key::Key>)59     pub fn set_keys(&mut self, v: ::protobuf::RepeatedField<super::key::Key>) {
60         self.keys = v;
61     }
62 
63     // Mutable pointer to the field.
mut_keys(&mut self) -> &mut ::protobuf::RepeatedField<super::key::Key>64     pub fn mut_keys(&mut self) -> &mut ::protobuf::RepeatedField<super::key::Key> {
65         &mut self.keys
66     }
67 
68     // Take field
take_keys(&mut self) -> ::protobuf::RepeatedField<super::key::Key>69     pub fn take_keys(&mut self) -> ::protobuf::RepeatedField<super::key::Key> {
70         ::std::mem::replace(&mut self.keys, ::protobuf::RepeatedField::new())
71     }
72 
73     // bool copy_authorization_key = 2;
74 
75 
get_copy_authorization_key(&self) -> bool76     pub fn get_copy_authorization_key(&self) -> bool {
77         self.copy_authorization_key
78     }
clear_copy_authorization_key(&mut self)79     pub fn clear_copy_authorization_key(&mut self) {
80         self.copy_authorization_key = false;
81     }
82 
83     // Param is passed by value, moved
set_copy_authorization_key(&mut self, v: bool)84     pub fn set_copy_authorization_key(&mut self, v: bool) {
85         self.copy_authorization_key = v;
86     }
87 
88     // bool force_ecryptfs = 3;
89 
90 
get_force_ecryptfs(&self) -> bool91     pub fn get_force_ecryptfs(&self) -> bool {
92         self.force_ecryptfs
93     }
clear_force_ecryptfs(&mut self)94     pub fn clear_force_ecryptfs(&mut self) {
95         self.force_ecryptfs = false;
96     }
97 
98     // Param is passed by value, moved
set_force_ecryptfs(&mut self, v: bool)99     pub fn set_force_ecryptfs(&mut self, v: bool) {
100         self.force_ecryptfs = v;
101     }
102 }
103 
104 impl ::protobuf::Message for CreateRequest {
is_initialized(&self) -> bool105     fn is_initialized(&self) -> bool {
106         for v in &self.keys {
107             if !v.is_initialized() {
108                 return false;
109             }
110         };
111         true
112     }
113 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>114     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
115         while !is.eof()? {
116             let (field_number, wire_type) = is.read_tag_unpack()?;
117             match field_number {
118                 1 => {
119                     ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.keys)?;
120                 },
121                 2 => {
122                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
123                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
124                     }
125                     let tmp = is.read_bool()?;
126                     self.copy_authorization_key = tmp;
127                 },
128                 3 => {
129                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
130                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
131                     }
132                     let tmp = is.read_bool()?;
133                     self.force_ecryptfs = tmp;
134                 },
135                 _ => {
136                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
137                 },
138             };
139         }
140         ::std::result::Result::Ok(())
141     }
142 
143     // Compute sizes of nested messages
144     #[allow(unused_variables)]
compute_size(&self) -> u32145     fn compute_size(&self) -> u32 {
146         let mut my_size = 0;
147         for value in &self.keys {
148             let len = value.compute_size();
149             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
150         };
151         if self.copy_authorization_key != false {
152             my_size += 2;
153         }
154         if self.force_ecryptfs != false {
155             my_size += 2;
156         }
157         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
158         self.cached_size.set(my_size);
159         my_size
160     }
161 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>162     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
163         for v in &self.keys {
164             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
165             os.write_raw_varint32(v.get_cached_size())?;
166             v.write_to_with_cached_sizes(os)?;
167         };
168         if self.copy_authorization_key != false {
169             os.write_bool(2, self.copy_authorization_key)?;
170         }
171         if self.force_ecryptfs != false {
172             os.write_bool(3, self.force_ecryptfs)?;
173         }
174         os.write_unknown_fields(self.get_unknown_fields())?;
175         ::std::result::Result::Ok(())
176     }
177 
get_cached_size(&self) -> u32178     fn get_cached_size(&self) -> u32 {
179         self.cached_size.get()
180     }
181 
get_unknown_fields(&self) -> &::protobuf::UnknownFields182     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
183         &self.unknown_fields
184     }
185 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields186     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
187         &mut self.unknown_fields
188     }
189 
as_any(&self) -> &dyn (::std::any::Any)190     fn as_any(&self) -> &dyn (::std::any::Any) {
191         self as &dyn (::std::any::Any)
192     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)193     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
194         self as &mut dyn (::std::any::Any)
195     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>196     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
197         self
198     }
199 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor200     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
201         Self::descriptor_static()
202     }
203 
new() -> CreateRequest204     fn new() -> CreateRequest {
205         CreateRequest::new()
206     }
207 
default_instance() -> &'static CreateRequest208     fn default_instance() -> &'static CreateRequest {
209         static instance: ::protobuf::rt::LazyV2<CreateRequest> = ::protobuf::rt::LazyV2::INIT;
210         instance.get(CreateRequest::new)
211     }
212 }
213 
214 impl ::protobuf::Clear for CreateRequest {
clear(&mut self)215     fn clear(&mut self) {
216         self.keys.clear();
217         self.copy_authorization_key = false;
218         self.force_ecryptfs = false;
219         self.unknown_fields.clear();
220     }
221 }
222 
223 impl ::protobuf::reflect::ProtobufValue for CreateRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef224     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
225         ::protobuf::reflect::ReflectValueRef::Message(self)
226     }
227 }
228 
229 #[derive(PartialEq,Clone,Default,Debug)]
230 pub struct CryptohomeErrorInfo {
231     // message fields
232     pub error_id: ::std::string::String,
233     pub readable_error_id: ::std::string::String,
234     pub primary_action: PrimaryAction,
235     pub possible_actions: ::std::vec::Vec<PossibleAction>,
236     // special fields
237     pub unknown_fields: ::protobuf::UnknownFields,
238     pub cached_size: ::protobuf::CachedSize,
239 }
240 
241 impl<'a> ::std::default::Default for &'a CryptohomeErrorInfo {
default() -> &'a CryptohomeErrorInfo242     fn default() -> &'a CryptohomeErrorInfo {
243         <CryptohomeErrorInfo as ::protobuf::Message>::default_instance()
244     }
245 }
246 
247 impl CryptohomeErrorInfo {
new() -> CryptohomeErrorInfo248     pub fn new() -> CryptohomeErrorInfo {
249         ::std::default::Default::default()
250     }
251 
252     // string error_id = 1;
253 
254 
get_error_id(&self) -> &str255     pub fn get_error_id(&self) -> &str {
256         &self.error_id
257     }
clear_error_id(&mut self)258     pub fn clear_error_id(&mut self) {
259         self.error_id.clear();
260     }
261 
262     // Param is passed by value, moved
set_error_id(&mut self, v: ::std::string::String)263     pub fn set_error_id(&mut self, v: ::std::string::String) {
264         self.error_id = v;
265     }
266 
267     // Mutable pointer to the field.
268     // If field is not initialized, it is initialized with default value first.
mut_error_id(&mut self) -> &mut ::std::string::String269     pub fn mut_error_id(&mut self) -> &mut ::std::string::String {
270         &mut self.error_id
271     }
272 
273     // Take field
take_error_id(&mut self) -> ::std::string::String274     pub fn take_error_id(&mut self) -> ::std::string::String {
275         ::std::mem::replace(&mut self.error_id, ::std::string::String::new())
276     }
277 
278     // string readable_error_id = 2;
279 
280 
get_readable_error_id(&self) -> &str281     pub fn get_readable_error_id(&self) -> &str {
282         &self.readable_error_id
283     }
clear_readable_error_id(&mut self)284     pub fn clear_readable_error_id(&mut self) {
285         self.readable_error_id.clear();
286     }
287 
288     // Param is passed by value, moved
set_readable_error_id(&mut self, v: ::std::string::String)289     pub fn set_readable_error_id(&mut self, v: ::std::string::String) {
290         self.readable_error_id = v;
291     }
292 
293     // Mutable pointer to the field.
294     // If field is not initialized, it is initialized with default value first.
mut_readable_error_id(&mut self) -> &mut ::std::string::String295     pub fn mut_readable_error_id(&mut self) -> &mut ::std::string::String {
296         &mut self.readable_error_id
297     }
298 
299     // Take field
take_readable_error_id(&mut self) -> ::std::string::String300     pub fn take_readable_error_id(&mut self) -> ::std::string::String {
301         ::std::mem::replace(&mut self.readable_error_id, ::std::string::String::new())
302     }
303 
304     // .user_data_auth.PrimaryAction primary_action = 3;
305 
306 
get_primary_action(&self) -> PrimaryAction307     pub fn get_primary_action(&self) -> PrimaryAction {
308         self.primary_action
309     }
clear_primary_action(&mut self)310     pub fn clear_primary_action(&mut self) {
311         self.primary_action = PrimaryAction::PRIMARY_NO_ERROR;
312     }
313 
314     // Param is passed by value, moved
set_primary_action(&mut self, v: PrimaryAction)315     pub fn set_primary_action(&mut self, v: PrimaryAction) {
316         self.primary_action = v;
317     }
318 
319     // repeated .user_data_auth.PossibleAction possible_actions = 4;
320 
321 
get_possible_actions(&self) -> &[PossibleAction]322     pub fn get_possible_actions(&self) -> &[PossibleAction] {
323         &self.possible_actions
324     }
clear_possible_actions(&mut self)325     pub fn clear_possible_actions(&mut self) {
326         self.possible_actions.clear();
327     }
328 
329     // Param is passed by value, moved
set_possible_actions(&mut self, v: ::std::vec::Vec<PossibleAction>)330     pub fn set_possible_actions(&mut self, v: ::std::vec::Vec<PossibleAction>) {
331         self.possible_actions = v;
332     }
333 
334     // Mutable pointer to the field.
mut_possible_actions(&mut self) -> &mut ::std::vec::Vec<PossibleAction>335     pub fn mut_possible_actions(&mut self) -> &mut ::std::vec::Vec<PossibleAction> {
336         &mut self.possible_actions
337     }
338 
339     // Take field
take_possible_actions(&mut self) -> ::std::vec::Vec<PossibleAction>340     pub fn take_possible_actions(&mut self) -> ::std::vec::Vec<PossibleAction> {
341         ::std::mem::replace(&mut self.possible_actions, ::std::vec::Vec::new())
342     }
343 }
344 
345 impl ::protobuf::Message for CryptohomeErrorInfo {
is_initialized(&self) -> bool346     fn is_initialized(&self) -> bool {
347         true
348     }
349 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>350     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
351         while !is.eof()? {
352             let (field_number, wire_type) = is.read_tag_unpack()?;
353             match field_number {
354                 1 => {
355                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error_id)?;
356                 },
357                 2 => {
358                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.readable_error_id)?;
359                 },
360                 3 => {
361                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.primary_action, 3, &mut self.unknown_fields)?
362                 },
363                 4 => {
364                     ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.possible_actions, 4, &mut self.unknown_fields)?
365                 },
366                 _ => {
367                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
368                 },
369             };
370         }
371         ::std::result::Result::Ok(())
372     }
373 
374     // Compute sizes of nested messages
375     #[allow(unused_variables)]
compute_size(&self) -> u32376     fn compute_size(&self) -> u32 {
377         let mut my_size = 0;
378         if !self.error_id.is_empty() {
379             my_size += ::protobuf::rt::string_size(1, &self.error_id);
380         }
381         if !self.readable_error_id.is_empty() {
382             my_size += ::protobuf::rt::string_size(2, &self.readable_error_id);
383         }
384         if self.primary_action != PrimaryAction::PRIMARY_NO_ERROR {
385             my_size += ::protobuf::rt::enum_size(3, self.primary_action);
386         }
387         for value in &self.possible_actions {
388             my_size += ::protobuf::rt::enum_size(4, *value);
389         };
390         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
391         self.cached_size.set(my_size);
392         my_size
393     }
394 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>395     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
396         if !self.error_id.is_empty() {
397             os.write_string(1, &self.error_id)?;
398         }
399         if !self.readable_error_id.is_empty() {
400             os.write_string(2, &self.readable_error_id)?;
401         }
402         if self.primary_action != PrimaryAction::PRIMARY_NO_ERROR {
403             os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.primary_action))?;
404         }
405         for v in &self.possible_actions {
406             os.write_enum(4, ::protobuf::ProtobufEnum::value(v))?;
407         };
408         os.write_unknown_fields(self.get_unknown_fields())?;
409         ::std::result::Result::Ok(())
410     }
411 
get_cached_size(&self) -> u32412     fn get_cached_size(&self) -> u32 {
413         self.cached_size.get()
414     }
415 
get_unknown_fields(&self) -> &::protobuf::UnknownFields416     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
417         &self.unknown_fields
418     }
419 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields420     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
421         &mut self.unknown_fields
422     }
423 
as_any(&self) -> &dyn (::std::any::Any)424     fn as_any(&self) -> &dyn (::std::any::Any) {
425         self as &dyn (::std::any::Any)
426     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)427     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
428         self as &mut dyn (::std::any::Any)
429     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>430     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
431         self
432     }
433 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor434     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
435         Self::descriptor_static()
436     }
437 
new() -> CryptohomeErrorInfo438     fn new() -> CryptohomeErrorInfo {
439         CryptohomeErrorInfo::new()
440     }
441 
default_instance() -> &'static CryptohomeErrorInfo442     fn default_instance() -> &'static CryptohomeErrorInfo {
443         static instance: ::protobuf::rt::LazyV2<CryptohomeErrorInfo> = ::protobuf::rt::LazyV2::INIT;
444         instance.get(CryptohomeErrorInfo::new)
445     }
446 }
447 
448 impl ::protobuf::Clear for CryptohomeErrorInfo {
clear(&mut self)449     fn clear(&mut self) {
450         self.error_id.clear();
451         self.readable_error_id.clear();
452         self.primary_action = PrimaryAction::PRIMARY_NO_ERROR;
453         self.possible_actions.clear();
454         self.unknown_fields.clear();
455     }
456 }
457 
458 impl ::protobuf::reflect::ProtobufValue for CryptohomeErrorInfo {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef459     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
460         ::protobuf::reflect::ReflectValueRef::Message(self)
461     }
462 }
463 
464 #[derive(PartialEq,Clone,Default,Debug)]
465 pub struct IsMountedRequest {
466     // message fields
467     pub username: ::std::string::String,
468     // special fields
469     pub unknown_fields: ::protobuf::UnknownFields,
470     pub cached_size: ::protobuf::CachedSize,
471 }
472 
473 impl<'a> ::std::default::Default for &'a IsMountedRequest {
default() -> &'a IsMountedRequest474     fn default() -> &'a IsMountedRequest {
475         <IsMountedRequest as ::protobuf::Message>::default_instance()
476     }
477 }
478 
479 impl IsMountedRequest {
new() -> IsMountedRequest480     pub fn new() -> IsMountedRequest {
481         ::std::default::Default::default()
482     }
483 
484     // string username = 1;
485 
486 
get_username(&self) -> &str487     pub fn get_username(&self) -> &str {
488         &self.username
489     }
clear_username(&mut self)490     pub fn clear_username(&mut self) {
491         self.username.clear();
492     }
493 
494     // Param is passed by value, moved
set_username(&mut self, v: ::std::string::String)495     pub fn set_username(&mut self, v: ::std::string::String) {
496         self.username = v;
497     }
498 
499     // Mutable pointer to the field.
500     // If field is not initialized, it is initialized with default value first.
mut_username(&mut self) -> &mut ::std::string::String501     pub fn mut_username(&mut self) -> &mut ::std::string::String {
502         &mut self.username
503     }
504 
505     // Take field
take_username(&mut self) -> ::std::string::String506     pub fn take_username(&mut self) -> ::std::string::String {
507         ::std::mem::replace(&mut self.username, ::std::string::String::new())
508     }
509 }
510 
511 impl ::protobuf::Message for IsMountedRequest {
is_initialized(&self) -> bool512     fn is_initialized(&self) -> bool {
513         true
514     }
515 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>516     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
517         while !is.eof()? {
518             let (field_number, wire_type) = is.read_tag_unpack()?;
519             match field_number {
520                 1 => {
521                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.username)?;
522                 },
523                 _ => {
524                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
525                 },
526             };
527         }
528         ::std::result::Result::Ok(())
529     }
530 
531     // Compute sizes of nested messages
532     #[allow(unused_variables)]
compute_size(&self) -> u32533     fn compute_size(&self) -> u32 {
534         let mut my_size = 0;
535         if !self.username.is_empty() {
536             my_size += ::protobuf::rt::string_size(1, &self.username);
537         }
538         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
539         self.cached_size.set(my_size);
540         my_size
541     }
542 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>543     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
544         if !self.username.is_empty() {
545             os.write_string(1, &self.username)?;
546         }
547         os.write_unknown_fields(self.get_unknown_fields())?;
548         ::std::result::Result::Ok(())
549     }
550 
get_cached_size(&self) -> u32551     fn get_cached_size(&self) -> u32 {
552         self.cached_size.get()
553     }
554 
get_unknown_fields(&self) -> &::protobuf::UnknownFields555     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
556         &self.unknown_fields
557     }
558 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields559     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
560         &mut self.unknown_fields
561     }
562 
as_any(&self) -> &dyn (::std::any::Any)563     fn as_any(&self) -> &dyn (::std::any::Any) {
564         self as &dyn (::std::any::Any)
565     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)566     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
567         self as &mut dyn (::std::any::Any)
568     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>569     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
570         self
571     }
572 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor573     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
574         Self::descriptor_static()
575     }
576 
new() -> IsMountedRequest577     fn new() -> IsMountedRequest {
578         IsMountedRequest::new()
579     }
580 
default_instance() -> &'static IsMountedRequest581     fn default_instance() -> &'static IsMountedRequest {
582         static instance: ::protobuf::rt::LazyV2<IsMountedRequest> = ::protobuf::rt::LazyV2::INIT;
583         instance.get(IsMountedRequest::new)
584     }
585 }
586 
587 impl ::protobuf::Clear for IsMountedRequest {
clear(&mut self)588     fn clear(&mut self) {
589         self.username.clear();
590         self.unknown_fields.clear();
591     }
592 }
593 
594 impl ::protobuf::reflect::ProtobufValue for IsMountedRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef595     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
596         ::protobuf::reflect::ReflectValueRef::Message(self)
597     }
598 }
599 
600 #[derive(PartialEq,Clone,Default,Debug)]
601 pub struct IsMountedReply {
602     // message fields
603     pub is_mounted: bool,
604     pub is_ephemeral_mount: bool,
605     // special fields
606     pub unknown_fields: ::protobuf::UnknownFields,
607     pub cached_size: ::protobuf::CachedSize,
608 }
609 
610 impl<'a> ::std::default::Default for &'a IsMountedReply {
default() -> &'a IsMountedReply611     fn default() -> &'a IsMountedReply {
612         <IsMountedReply as ::protobuf::Message>::default_instance()
613     }
614 }
615 
616 impl IsMountedReply {
new() -> IsMountedReply617     pub fn new() -> IsMountedReply {
618         ::std::default::Default::default()
619     }
620 
621     // bool is_mounted = 1;
622 
623 
get_is_mounted(&self) -> bool624     pub fn get_is_mounted(&self) -> bool {
625         self.is_mounted
626     }
clear_is_mounted(&mut self)627     pub fn clear_is_mounted(&mut self) {
628         self.is_mounted = false;
629     }
630 
631     // Param is passed by value, moved
set_is_mounted(&mut self, v: bool)632     pub fn set_is_mounted(&mut self, v: bool) {
633         self.is_mounted = v;
634     }
635 
636     // bool is_ephemeral_mount = 2;
637 
638 
get_is_ephemeral_mount(&self) -> bool639     pub fn get_is_ephemeral_mount(&self) -> bool {
640         self.is_ephemeral_mount
641     }
clear_is_ephemeral_mount(&mut self)642     pub fn clear_is_ephemeral_mount(&mut self) {
643         self.is_ephemeral_mount = false;
644     }
645 
646     // Param is passed by value, moved
set_is_ephemeral_mount(&mut self, v: bool)647     pub fn set_is_ephemeral_mount(&mut self, v: bool) {
648         self.is_ephemeral_mount = v;
649     }
650 }
651 
652 impl ::protobuf::Message for IsMountedReply {
is_initialized(&self) -> bool653     fn is_initialized(&self) -> bool {
654         true
655     }
656 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>657     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
658         while !is.eof()? {
659             let (field_number, wire_type) = is.read_tag_unpack()?;
660             match field_number {
661                 1 => {
662                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
663                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
664                     }
665                     let tmp = is.read_bool()?;
666                     self.is_mounted = tmp;
667                 },
668                 2 => {
669                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
670                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
671                     }
672                     let tmp = is.read_bool()?;
673                     self.is_ephemeral_mount = tmp;
674                 },
675                 _ => {
676                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
677                 },
678             };
679         }
680         ::std::result::Result::Ok(())
681     }
682 
683     // Compute sizes of nested messages
684     #[allow(unused_variables)]
compute_size(&self) -> u32685     fn compute_size(&self) -> u32 {
686         let mut my_size = 0;
687         if self.is_mounted != false {
688             my_size += 2;
689         }
690         if self.is_ephemeral_mount != false {
691             my_size += 2;
692         }
693         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
694         self.cached_size.set(my_size);
695         my_size
696     }
697 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>698     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
699         if self.is_mounted != false {
700             os.write_bool(1, self.is_mounted)?;
701         }
702         if self.is_ephemeral_mount != false {
703             os.write_bool(2, self.is_ephemeral_mount)?;
704         }
705         os.write_unknown_fields(self.get_unknown_fields())?;
706         ::std::result::Result::Ok(())
707     }
708 
get_cached_size(&self) -> u32709     fn get_cached_size(&self) -> u32 {
710         self.cached_size.get()
711     }
712 
get_unknown_fields(&self) -> &::protobuf::UnknownFields713     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
714         &self.unknown_fields
715     }
716 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields717     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
718         &mut self.unknown_fields
719     }
720 
as_any(&self) -> &dyn (::std::any::Any)721     fn as_any(&self) -> &dyn (::std::any::Any) {
722         self as &dyn (::std::any::Any)
723     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)724     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
725         self as &mut dyn (::std::any::Any)
726     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>727     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
728         self
729     }
730 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor731     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
732         Self::descriptor_static()
733     }
734 
new() -> IsMountedReply735     fn new() -> IsMountedReply {
736         IsMountedReply::new()
737     }
738 
default_instance() -> &'static IsMountedReply739     fn default_instance() -> &'static IsMountedReply {
740         static instance: ::protobuf::rt::LazyV2<IsMountedReply> = ::protobuf::rt::LazyV2::INIT;
741         instance.get(IsMountedReply::new)
742     }
743 }
744 
745 impl ::protobuf::Clear for IsMountedReply {
clear(&mut self)746     fn clear(&mut self) {
747         self.is_mounted = false;
748         self.is_ephemeral_mount = false;
749         self.unknown_fields.clear();
750     }
751 }
752 
753 impl ::protobuf::reflect::ProtobufValue for IsMountedReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef754     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
755         ::protobuf::reflect::ReflectValueRef::Message(self)
756     }
757 }
758 
759 #[derive(PartialEq,Clone,Default,Debug)]
760 pub struct UnmountRequest {
761     // special fields
762     pub unknown_fields: ::protobuf::UnknownFields,
763     pub cached_size: ::protobuf::CachedSize,
764 }
765 
766 impl<'a> ::std::default::Default for &'a UnmountRequest {
default() -> &'a UnmountRequest767     fn default() -> &'a UnmountRequest {
768         <UnmountRequest as ::protobuf::Message>::default_instance()
769     }
770 }
771 
772 impl UnmountRequest {
new() -> UnmountRequest773     pub fn new() -> UnmountRequest {
774         ::std::default::Default::default()
775     }
776 }
777 
778 impl ::protobuf::Message for UnmountRequest {
is_initialized(&self) -> bool779     fn is_initialized(&self) -> bool {
780         true
781     }
782 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>783     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
784         while !is.eof()? {
785             let (field_number, wire_type) = is.read_tag_unpack()?;
786             match field_number {
787                 _ => {
788                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
789                 },
790             };
791         }
792         ::std::result::Result::Ok(())
793     }
794 
795     // Compute sizes of nested messages
796     #[allow(unused_variables)]
compute_size(&self) -> u32797     fn compute_size(&self) -> u32 {
798         let mut my_size = 0;
799         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
800         self.cached_size.set(my_size);
801         my_size
802     }
803 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>804     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
805         os.write_unknown_fields(self.get_unknown_fields())?;
806         ::std::result::Result::Ok(())
807     }
808 
get_cached_size(&self) -> u32809     fn get_cached_size(&self) -> u32 {
810         self.cached_size.get()
811     }
812 
get_unknown_fields(&self) -> &::protobuf::UnknownFields813     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
814         &self.unknown_fields
815     }
816 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields817     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
818         &mut self.unknown_fields
819     }
820 
as_any(&self) -> &dyn (::std::any::Any)821     fn as_any(&self) -> &dyn (::std::any::Any) {
822         self as &dyn (::std::any::Any)
823     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)824     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
825         self as &mut dyn (::std::any::Any)
826     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>827     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
828         self
829     }
830 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor831     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
832         Self::descriptor_static()
833     }
834 
new() -> UnmountRequest835     fn new() -> UnmountRequest {
836         UnmountRequest::new()
837     }
838 
default_instance() -> &'static UnmountRequest839     fn default_instance() -> &'static UnmountRequest {
840         static instance: ::protobuf::rt::LazyV2<UnmountRequest> = ::protobuf::rt::LazyV2::INIT;
841         instance.get(UnmountRequest::new)
842     }
843 }
844 
845 impl ::protobuf::Clear for UnmountRequest {
clear(&mut self)846     fn clear(&mut self) {
847         self.unknown_fields.clear();
848     }
849 }
850 
851 impl ::protobuf::reflect::ProtobufValue for UnmountRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef852     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
853         ::protobuf::reflect::ReflectValueRef::Message(self)
854     }
855 }
856 
857 #[derive(PartialEq,Clone,Default,Debug)]
858 pub struct UnmountReply {
859     // message fields
860     pub error: CryptohomeErrorCode,
861     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
862     // special fields
863     pub unknown_fields: ::protobuf::UnknownFields,
864     pub cached_size: ::protobuf::CachedSize,
865 }
866 
867 impl<'a> ::std::default::Default for &'a UnmountReply {
default() -> &'a UnmountReply868     fn default() -> &'a UnmountReply {
869         <UnmountReply as ::protobuf::Message>::default_instance()
870     }
871 }
872 
873 impl UnmountReply {
new() -> UnmountReply874     pub fn new() -> UnmountReply {
875         ::std::default::Default::default()
876     }
877 
878     // .user_data_auth.CryptohomeErrorCode error = 1;
879 
880 
get_error(&self) -> CryptohomeErrorCode881     pub fn get_error(&self) -> CryptohomeErrorCode {
882         self.error
883     }
clear_error(&mut self)884     pub fn clear_error(&mut self) {
885         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
886     }
887 
888     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)889     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
890         self.error = v;
891     }
892 
893     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
894 
895 
get_error_info(&self) -> &CryptohomeErrorInfo896     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
897         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
898     }
clear_error_info(&mut self)899     pub fn clear_error_info(&mut self) {
900         self.error_info.clear();
901     }
902 
has_error_info(&self) -> bool903     pub fn has_error_info(&self) -> bool {
904         self.error_info.is_some()
905     }
906 
907     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)908     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
909         self.error_info = ::protobuf::SingularPtrField::some(v);
910     }
911 
912     // Mutable pointer to the field.
913     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo914     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
915         if self.error_info.is_none() {
916             self.error_info.set_default();
917         }
918         self.error_info.as_mut().unwrap()
919     }
920 
921     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo922     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
923         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
924     }
925 }
926 
927 impl ::protobuf::Message for UnmountReply {
is_initialized(&self) -> bool928     fn is_initialized(&self) -> bool {
929         for v in &self.error_info {
930             if !v.is_initialized() {
931                 return false;
932             }
933         };
934         true
935     }
936 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>937     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
938         while !is.eof()? {
939             let (field_number, wire_type) = is.read_tag_unpack()?;
940             match field_number {
941                 1 => {
942                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
943                 },
944                 2 => {
945                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
946                 },
947                 _ => {
948                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
949                 },
950             };
951         }
952         ::std::result::Result::Ok(())
953     }
954 
955     // Compute sizes of nested messages
956     #[allow(unused_variables)]
compute_size(&self) -> u32957     fn compute_size(&self) -> u32 {
958         let mut my_size = 0;
959         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
960             my_size += ::protobuf::rt::enum_size(1, self.error);
961         }
962         if let Some(ref v) = self.error_info.as_ref() {
963             let len = v.compute_size();
964             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
965         }
966         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
967         self.cached_size.set(my_size);
968         my_size
969     }
970 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>971     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
972         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
973             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
974         }
975         if let Some(ref v) = self.error_info.as_ref() {
976             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
977             os.write_raw_varint32(v.get_cached_size())?;
978             v.write_to_with_cached_sizes(os)?;
979         }
980         os.write_unknown_fields(self.get_unknown_fields())?;
981         ::std::result::Result::Ok(())
982     }
983 
get_cached_size(&self) -> u32984     fn get_cached_size(&self) -> u32 {
985         self.cached_size.get()
986     }
987 
get_unknown_fields(&self) -> &::protobuf::UnknownFields988     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
989         &self.unknown_fields
990     }
991 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields992     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
993         &mut self.unknown_fields
994     }
995 
as_any(&self) -> &dyn (::std::any::Any)996     fn as_any(&self) -> &dyn (::std::any::Any) {
997         self as &dyn (::std::any::Any)
998     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)999     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1000         self as &mut dyn (::std::any::Any)
1001     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1002     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1003         self
1004     }
1005 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1006     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1007         Self::descriptor_static()
1008     }
1009 
new() -> UnmountReply1010     fn new() -> UnmountReply {
1011         UnmountReply::new()
1012     }
1013 
default_instance() -> &'static UnmountReply1014     fn default_instance() -> &'static UnmountReply {
1015         static instance: ::protobuf::rt::LazyV2<UnmountReply> = ::protobuf::rt::LazyV2::INIT;
1016         instance.get(UnmountReply::new)
1017     }
1018 }
1019 
1020 impl ::protobuf::Clear for UnmountReply {
clear(&mut self)1021     fn clear(&mut self) {
1022         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
1023         self.error_info.clear();
1024         self.unknown_fields.clear();
1025     }
1026 }
1027 
1028 impl ::protobuf::reflect::ProtobufValue for UnmountReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1029     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1030         ::protobuf::reflect::ReflectValueRef::Message(self)
1031     }
1032 }
1033 
1034 #[derive(PartialEq,Clone,Default,Debug)]
1035 pub struct MountRequest {
1036     // message fields
1037     pub account: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
1038     pub authorization: ::protobuf::SingularPtrField<super::rpc::AuthorizationRequest>,
1039     pub require_ephemeral: bool,
1040     pub create: ::protobuf::SingularPtrField<CreateRequest>,
1041     pub force_dircrypto_if_available: bool,
1042     pub to_migrate_from_ecryptfs: bool,
1043     pub public_mount: bool,
1044     pub guest_mount: bool,
1045     pub auth_session_id: ::std::vec::Vec<u8>,
1046     // special fields
1047     pub unknown_fields: ::protobuf::UnknownFields,
1048     pub cached_size: ::protobuf::CachedSize,
1049 }
1050 
1051 impl<'a> ::std::default::Default for &'a MountRequest {
default() -> &'a MountRequest1052     fn default() -> &'a MountRequest {
1053         <MountRequest as ::protobuf::Message>::default_instance()
1054     }
1055 }
1056 
1057 impl MountRequest {
new() -> MountRequest1058     pub fn new() -> MountRequest {
1059         ::std::default::Default::default()
1060     }
1061 
1062     // .cryptohome.AccountIdentifier account = 1;
1063 
1064 
get_account(&self) -> &super::rpc::AccountIdentifier1065     pub fn get_account(&self) -> &super::rpc::AccountIdentifier {
1066         self.account.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
1067     }
clear_account(&mut self)1068     pub fn clear_account(&mut self) {
1069         self.account.clear();
1070     }
1071 
has_account(&self) -> bool1072     pub fn has_account(&self) -> bool {
1073         self.account.is_some()
1074     }
1075 
1076     // Param is passed by value, moved
set_account(&mut self, v: super::rpc::AccountIdentifier)1077     pub fn set_account(&mut self, v: super::rpc::AccountIdentifier) {
1078         self.account = ::protobuf::SingularPtrField::some(v);
1079     }
1080 
1081     // Mutable pointer to the field.
1082     // If field is not initialized, it is initialized with default value first.
mut_account(&mut self) -> &mut super::rpc::AccountIdentifier1083     pub fn mut_account(&mut self) -> &mut super::rpc::AccountIdentifier {
1084         if self.account.is_none() {
1085             self.account.set_default();
1086         }
1087         self.account.as_mut().unwrap()
1088     }
1089 
1090     // Take field
take_account(&mut self) -> super::rpc::AccountIdentifier1091     pub fn take_account(&mut self) -> super::rpc::AccountIdentifier {
1092         self.account.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
1093     }
1094 
1095     // .cryptohome.AuthorizationRequest authorization = 2;
1096 
1097 
get_authorization(&self) -> &super::rpc::AuthorizationRequest1098     pub fn get_authorization(&self) -> &super::rpc::AuthorizationRequest {
1099         self.authorization.as_ref().unwrap_or_else(|| <super::rpc::AuthorizationRequest as ::protobuf::Message>::default_instance())
1100     }
clear_authorization(&mut self)1101     pub fn clear_authorization(&mut self) {
1102         self.authorization.clear();
1103     }
1104 
has_authorization(&self) -> bool1105     pub fn has_authorization(&self) -> bool {
1106         self.authorization.is_some()
1107     }
1108 
1109     // Param is passed by value, moved
set_authorization(&mut self, v: super::rpc::AuthorizationRequest)1110     pub fn set_authorization(&mut self, v: super::rpc::AuthorizationRequest) {
1111         self.authorization = ::protobuf::SingularPtrField::some(v);
1112     }
1113 
1114     // Mutable pointer to the field.
1115     // If field is not initialized, it is initialized with default value first.
mut_authorization(&mut self) -> &mut super::rpc::AuthorizationRequest1116     pub fn mut_authorization(&mut self) -> &mut super::rpc::AuthorizationRequest {
1117         if self.authorization.is_none() {
1118             self.authorization.set_default();
1119         }
1120         self.authorization.as_mut().unwrap()
1121     }
1122 
1123     // Take field
take_authorization(&mut self) -> super::rpc::AuthorizationRequest1124     pub fn take_authorization(&mut self) -> super::rpc::AuthorizationRequest {
1125         self.authorization.take().unwrap_or_else(|| super::rpc::AuthorizationRequest::new())
1126     }
1127 
1128     // bool require_ephemeral = 3;
1129 
1130 
get_require_ephemeral(&self) -> bool1131     pub fn get_require_ephemeral(&self) -> bool {
1132         self.require_ephemeral
1133     }
clear_require_ephemeral(&mut self)1134     pub fn clear_require_ephemeral(&mut self) {
1135         self.require_ephemeral = false;
1136     }
1137 
1138     // Param is passed by value, moved
set_require_ephemeral(&mut self, v: bool)1139     pub fn set_require_ephemeral(&mut self, v: bool) {
1140         self.require_ephemeral = v;
1141     }
1142 
1143     // .user_data_auth.CreateRequest create = 4;
1144 
1145 
get_create(&self) -> &CreateRequest1146     pub fn get_create(&self) -> &CreateRequest {
1147         self.create.as_ref().unwrap_or_else(|| <CreateRequest as ::protobuf::Message>::default_instance())
1148     }
clear_create(&mut self)1149     pub fn clear_create(&mut self) {
1150         self.create.clear();
1151     }
1152 
has_create(&self) -> bool1153     pub fn has_create(&self) -> bool {
1154         self.create.is_some()
1155     }
1156 
1157     // Param is passed by value, moved
set_create(&mut self, v: CreateRequest)1158     pub fn set_create(&mut self, v: CreateRequest) {
1159         self.create = ::protobuf::SingularPtrField::some(v);
1160     }
1161 
1162     // Mutable pointer to the field.
1163     // If field is not initialized, it is initialized with default value first.
mut_create(&mut self) -> &mut CreateRequest1164     pub fn mut_create(&mut self) -> &mut CreateRequest {
1165         if self.create.is_none() {
1166             self.create.set_default();
1167         }
1168         self.create.as_mut().unwrap()
1169     }
1170 
1171     // Take field
take_create(&mut self) -> CreateRequest1172     pub fn take_create(&mut self) -> CreateRequest {
1173         self.create.take().unwrap_or_else(|| CreateRequest::new())
1174     }
1175 
1176     // bool force_dircrypto_if_available = 5;
1177 
1178 
get_force_dircrypto_if_available(&self) -> bool1179     pub fn get_force_dircrypto_if_available(&self) -> bool {
1180         self.force_dircrypto_if_available
1181     }
clear_force_dircrypto_if_available(&mut self)1182     pub fn clear_force_dircrypto_if_available(&mut self) {
1183         self.force_dircrypto_if_available = false;
1184     }
1185 
1186     // Param is passed by value, moved
set_force_dircrypto_if_available(&mut self, v: bool)1187     pub fn set_force_dircrypto_if_available(&mut self, v: bool) {
1188         self.force_dircrypto_if_available = v;
1189     }
1190 
1191     // bool to_migrate_from_ecryptfs = 6;
1192 
1193 
get_to_migrate_from_ecryptfs(&self) -> bool1194     pub fn get_to_migrate_from_ecryptfs(&self) -> bool {
1195         self.to_migrate_from_ecryptfs
1196     }
clear_to_migrate_from_ecryptfs(&mut self)1197     pub fn clear_to_migrate_from_ecryptfs(&mut self) {
1198         self.to_migrate_from_ecryptfs = false;
1199     }
1200 
1201     // Param is passed by value, moved
set_to_migrate_from_ecryptfs(&mut self, v: bool)1202     pub fn set_to_migrate_from_ecryptfs(&mut self, v: bool) {
1203         self.to_migrate_from_ecryptfs = v;
1204     }
1205 
1206     // bool public_mount = 7;
1207 
1208 
get_public_mount(&self) -> bool1209     pub fn get_public_mount(&self) -> bool {
1210         self.public_mount
1211     }
clear_public_mount(&mut self)1212     pub fn clear_public_mount(&mut self) {
1213         self.public_mount = false;
1214     }
1215 
1216     // Param is passed by value, moved
set_public_mount(&mut self, v: bool)1217     pub fn set_public_mount(&mut self, v: bool) {
1218         self.public_mount = v;
1219     }
1220 
1221     // bool guest_mount = 8;
1222 
1223 
get_guest_mount(&self) -> bool1224     pub fn get_guest_mount(&self) -> bool {
1225         self.guest_mount
1226     }
clear_guest_mount(&mut self)1227     pub fn clear_guest_mount(&mut self) {
1228         self.guest_mount = false;
1229     }
1230 
1231     // Param is passed by value, moved
set_guest_mount(&mut self, v: bool)1232     pub fn set_guest_mount(&mut self, v: bool) {
1233         self.guest_mount = v;
1234     }
1235 
1236     // bytes auth_session_id = 9;
1237 
1238 
get_auth_session_id(&self) -> &[u8]1239     pub fn get_auth_session_id(&self) -> &[u8] {
1240         &self.auth_session_id
1241     }
clear_auth_session_id(&mut self)1242     pub fn clear_auth_session_id(&mut self) {
1243         self.auth_session_id.clear();
1244     }
1245 
1246     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)1247     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
1248         self.auth_session_id = v;
1249     }
1250 
1251     // Mutable pointer to the field.
1252     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>1253     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
1254         &mut self.auth_session_id
1255     }
1256 
1257     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>1258     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
1259         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
1260     }
1261 }
1262 
1263 impl ::protobuf::Message for MountRequest {
is_initialized(&self) -> bool1264     fn is_initialized(&self) -> bool {
1265         for v in &self.account {
1266             if !v.is_initialized() {
1267                 return false;
1268             }
1269         };
1270         for v in &self.authorization {
1271             if !v.is_initialized() {
1272                 return false;
1273             }
1274         };
1275         for v in &self.create {
1276             if !v.is_initialized() {
1277                 return false;
1278             }
1279         };
1280         true
1281     }
1282 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1283     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1284         while !is.eof()? {
1285             let (field_number, wire_type) = is.read_tag_unpack()?;
1286             match field_number {
1287                 1 => {
1288                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account)?;
1289                 },
1290                 2 => {
1291                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authorization)?;
1292                 },
1293                 3 => {
1294                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
1295                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1296                     }
1297                     let tmp = is.read_bool()?;
1298                     self.require_ephemeral = tmp;
1299                 },
1300                 4 => {
1301                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create)?;
1302                 },
1303                 5 => {
1304                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
1305                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1306                     }
1307                     let tmp = is.read_bool()?;
1308                     self.force_dircrypto_if_available = tmp;
1309                 },
1310                 6 => {
1311                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
1312                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1313                     }
1314                     let tmp = is.read_bool()?;
1315                     self.to_migrate_from_ecryptfs = tmp;
1316                 },
1317                 7 => {
1318                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
1319                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1320                     }
1321                     let tmp = is.read_bool()?;
1322                     self.public_mount = tmp;
1323                 },
1324                 8 => {
1325                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
1326                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1327                     }
1328                     let tmp = is.read_bool()?;
1329                     self.guest_mount = tmp;
1330                 },
1331                 9 => {
1332                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
1333                 },
1334                 _ => {
1335                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1336                 },
1337             };
1338         }
1339         ::std::result::Result::Ok(())
1340     }
1341 
1342     // Compute sizes of nested messages
1343     #[allow(unused_variables)]
compute_size(&self) -> u321344     fn compute_size(&self) -> u32 {
1345         let mut my_size = 0;
1346         if let Some(ref v) = self.account.as_ref() {
1347             let len = v.compute_size();
1348             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1349         }
1350         if let Some(ref v) = self.authorization.as_ref() {
1351             let len = v.compute_size();
1352             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1353         }
1354         if self.require_ephemeral != false {
1355             my_size += 2;
1356         }
1357         if let Some(ref v) = self.create.as_ref() {
1358             let len = v.compute_size();
1359             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1360         }
1361         if self.force_dircrypto_if_available != false {
1362             my_size += 2;
1363         }
1364         if self.to_migrate_from_ecryptfs != false {
1365             my_size += 2;
1366         }
1367         if self.public_mount != false {
1368             my_size += 2;
1369         }
1370         if self.guest_mount != false {
1371             my_size += 2;
1372         }
1373         if !self.auth_session_id.is_empty() {
1374             my_size += ::protobuf::rt::bytes_size(9, &self.auth_session_id);
1375         }
1376         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1377         self.cached_size.set(my_size);
1378         my_size
1379     }
1380 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1381     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1382         if let Some(ref v) = self.account.as_ref() {
1383             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1384             os.write_raw_varint32(v.get_cached_size())?;
1385             v.write_to_with_cached_sizes(os)?;
1386         }
1387         if let Some(ref v) = self.authorization.as_ref() {
1388             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1389             os.write_raw_varint32(v.get_cached_size())?;
1390             v.write_to_with_cached_sizes(os)?;
1391         }
1392         if self.require_ephemeral != false {
1393             os.write_bool(3, self.require_ephemeral)?;
1394         }
1395         if let Some(ref v) = self.create.as_ref() {
1396             os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1397             os.write_raw_varint32(v.get_cached_size())?;
1398             v.write_to_with_cached_sizes(os)?;
1399         }
1400         if self.force_dircrypto_if_available != false {
1401             os.write_bool(5, self.force_dircrypto_if_available)?;
1402         }
1403         if self.to_migrate_from_ecryptfs != false {
1404             os.write_bool(6, self.to_migrate_from_ecryptfs)?;
1405         }
1406         if self.public_mount != false {
1407             os.write_bool(7, self.public_mount)?;
1408         }
1409         if self.guest_mount != false {
1410             os.write_bool(8, self.guest_mount)?;
1411         }
1412         if !self.auth_session_id.is_empty() {
1413             os.write_bytes(9, &self.auth_session_id)?;
1414         }
1415         os.write_unknown_fields(self.get_unknown_fields())?;
1416         ::std::result::Result::Ok(())
1417     }
1418 
get_cached_size(&self) -> u321419     fn get_cached_size(&self) -> u32 {
1420         self.cached_size.get()
1421     }
1422 
get_unknown_fields(&self) -> &::protobuf::UnknownFields1423     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1424         &self.unknown_fields
1425     }
1426 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1427     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1428         &mut self.unknown_fields
1429     }
1430 
as_any(&self) -> &dyn (::std::any::Any)1431     fn as_any(&self) -> &dyn (::std::any::Any) {
1432         self as &dyn (::std::any::Any)
1433     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1434     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1435         self as &mut dyn (::std::any::Any)
1436     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1437     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1438         self
1439     }
1440 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1441     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1442         Self::descriptor_static()
1443     }
1444 
new() -> MountRequest1445     fn new() -> MountRequest {
1446         MountRequest::new()
1447     }
1448 
default_instance() -> &'static MountRequest1449     fn default_instance() -> &'static MountRequest {
1450         static instance: ::protobuf::rt::LazyV2<MountRequest> = ::protobuf::rt::LazyV2::INIT;
1451         instance.get(MountRequest::new)
1452     }
1453 }
1454 
1455 impl ::protobuf::Clear for MountRequest {
clear(&mut self)1456     fn clear(&mut self) {
1457         self.account.clear();
1458         self.authorization.clear();
1459         self.require_ephemeral = false;
1460         self.create.clear();
1461         self.force_dircrypto_if_available = false;
1462         self.to_migrate_from_ecryptfs = false;
1463         self.public_mount = false;
1464         self.guest_mount = false;
1465         self.auth_session_id.clear();
1466         self.unknown_fields.clear();
1467     }
1468 }
1469 
1470 impl ::protobuf::reflect::ProtobufValue for MountRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1471     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1472         ::protobuf::reflect::ReflectValueRef::Message(self)
1473     }
1474 }
1475 
1476 #[derive(PartialEq,Clone,Default,Debug)]
1477 pub struct MountReply {
1478     // message fields
1479     pub error: CryptohomeErrorCode,
1480     pub recreated: bool,
1481     pub sanitized_username: ::std::string::String,
1482     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
1483     // special fields
1484     pub unknown_fields: ::protobuf::UnknownFields,
1485     pub cached_size: ::protobuf::CachedSize,
1486 }
1487 
1488 impl<'a> ::std::default::Default for &'a MountReply {
default() -> &'a MountReply1489     fn default() -> &'a MountReply {
1490         <MountReply as ::protobuf::Message>::default_instance()
1491     }
1492 }
1493 
1494 impl MountReply {
new() -> MountReply1495     pub fn new() -> MountReply {
1496         ::std::default::Default::default()
1497     }
1498 
1499     // .user_data_auth.CryptohomeErrorCode error = 1;
1500 
1501 
get_error(&self) -> CryptohomeErrorCode1502     pub fn get_error(&self) -> CryptohomeErrorCode {
1503         self.error
1504     }
clear_error(&mut self)1505     pub fn clear_error(&mut self) {
1506         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
1507     }
1508 
1509     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)1510     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
1511         self.error = v;
1512     }
1513 
1514     // bool recreated = 2;
1515 
1516 
get_recreated(&self) -> bool1517     pub fn get_recreated(&self) -> bool {
1518         self.recreated
1519     }
clear_recreated(&mut self)1520     pub fn clear_recreated(&mut self) {
1521         self.recreated = false;
1522     }
1523 
1524     // Param is passed by value, moved
set_recreated(&mut self, v: bool)1525     pub fn set_recreated(&mut self, v: bool) {
1526         self.recreated = v;
1527     }
1528 
1529     // string sanitized_username = 3;
1530 
1531 
get_sanitized_username(&self) -> &str1532     pub fn get_sanitized_username(&self) -> &str {
1533         &self.sanitized_username
1534     }
clear_sanitized_username(&mut self)1535     pub fn clear_sanitized_username(&mut self) {
1536         self.sanitized_username.clear();
1537     }
1538 
1539     // Param is passed by value, moved
set_sanitized_username(&mut self, v: ::std::string::String)1540     pub fn set_sanitized_username(&mut self, v: ::std::string::String) {
1541         self.sanitized_username = v;
1542     }
1543 
1544     // Mutable pointer to the field.
1545     // If field is not initialized, it is initialized with default value first.
mut_sanitized_username(&mut self) -> &mut ::std::string::String1546     pub fn mut_sanitized_username(&mut self) -> &mut ::std::string::String {
1547         &mut self.sanitized_username
1548     }
1549 
1550     // Take field
take_sanitized_username(&mut self) -> ::std::string::String1551     pub fn take_sanitized_username(&mut self) -> ::std::string::String {
1552         ::std::mem::replace(&mut self.sanitized_username, ::std::string::String::new())
1553     }
1554 
1555     // .user_data_auth.CryptohomeErrorInfo error_info = 4;
1556 
1557 
get_error_info(&self) -> &CryptohomeErrorInfo1558     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
1559         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
1560     }
clear_error_info(&mut self)1561     pub fn clear_error_info(&mut self) {
1562         self.error_info.clear();
1563     }
1564 
has_error_info(&self) -> bool1565     pub fn has_error_info(&self) -> bool {
1566         self.error_info.is_some()
1567     }
1568 
1569     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)1570     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
1571         self.error_info = ::protobuf::SingularPtrField::some(v);
1572     }
1573 
1574     // Mutable pointer to the field.
1575     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo1576     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
1577         if self.error_info.is_none() {
1578             self.error_info.set_default();
1579         }
1580         self.error_info.as_mut().unwrap()
1581     }
1582 
1583     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo1584     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
1585         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
1586     }
1587 }
1588 
1589 impl ::protobuf::Message for MountReply {
is_initialized(&self) -> bool1590     fn is_initialized(&self) -> bool {
1591         for v in &self.error_info {
1592             if !v.is_initialized() {
1593                 return false;
1594             }
1595         };
1596         true
1597     }
1598 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1599     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1600         while !is.eof()? {
1601             let (field_number, wire_type) = is.read_tag_unpack()?;
1602             match field_number {
1603                 1 => {
1604                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
1605                 },
1606                 2 => {
1607                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
1608                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1609                     }
1610                     let tmp = is.read_bool()?;
1611                     self.recreated = tmp;
1612                 },
1613                 3 => {
1614                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sanitized_username)?;
1615                 },
1616                 4 => {
1617                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
1618                 },
1619                 _ => {
1620                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1621                 },
1622             };
1623         }
1624         ::std::result::Result::Ok(())
1625     }
1626 
1627     // Compute sizes of nested messages
1628     #[allow(unused_variables)]
compute_size(&self) -> u321629     fn compute_size(&self) -> u32 {
1630         let mut my_size = 0;
1631         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
1632             my_size += ::protobuf::rt::enum_size(1, self.error);
1633         }
1634         if self.recreated != false {
1635             my_size += 2;
1636         }
1637         if !self.sanitized_username.is_empty() {
1638             my_size += ::protobuf::rt::string_size(3, &self.sanitized_username);
1639         }
1640         if let Some(ref v) = self.error_info.as_ref() {
1641             let len = v.compute_size();
1642             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1643         }
1644         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1645         self.cached_size.set(my_size);
1646         my_size
1647     }
1648 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1649     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1650         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
1651             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
1652         }
1653         if self.recreated != false {
1654             os.write_bool(2, self.recreated)?;
1655         }
1656         if !self.sanitized_username.is_empty() {
1657             os.write_string(3, &self.sanitized_username)?;
1658         }
1659         if let Some(ref v) = self.error_info.as_ref() {
1660             os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1661             os.write_raw_varint32(v.get_cached_size())?;
1662             v.write_to_with_cached_sizes(os)?;
1663         }
1664         os.write_unknown_fields(self.get_unknown_fields())?;
1665         ::std::result::Result::Ok(())
1666     }
1667 
get_cached_size(&self) -> u321668     fn get_cached_size(&self) -> u32 {
1669         self.cached_size.get()
1670     }
1671 
get_unknown_fields(&self) -> &::protobuf::UnknownFields1672     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1673         &self.unknown_fields
1674     }
1675 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1676     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1677         &mut self.unknown_fields
1678     }
1679 
as_any(&self) -> &dyn (::std::any::Any)1680     fn as_any(&self) -> &dyn (::std::any::Any) {
1681         self as &dyn (::std::any::Any)
1682     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1683     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1684         self as &mut dyn (::std::any::Any)
1685     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1686     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1687         self
1688     }
1689 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1690     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1691         Self::descriptor_static()
1692     }
1693 
new() -> MountReply1694     fn new() -> MountReply {
1695         MountReply::new()
1696     }
1697 
default_instance() -> &'static MountReply1698     fn default_instance() -> &'static MountReply {
1699         static instance: ::protobuf::rt::LazyV2<MountReply> = ::protobuf::rt::LazyV2::INIT;
1700         instance.get(MountReply::new)
1701     }
1702 }
1703 
1704 impl ::protobuf::Clear for MountReply {
clear(&mut self)1705     fn clear(&mut self) {
1706         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
1707         self.recreated = false;
1708         self.sanitized_username.clear();
1709         self.error_info.clear();
1710         self.unknown_fields.clear();
1711     }
1712 }
1713 
1714 impl ::protobuf::reflect::ProtobufValue for MountReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1715     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1716         ::protobuf::reflect::ReflectValueRef::Message(self)
1717     }
1718 }
1719 
1720 #[derive(PartialEq,Clone,Default,Debug)]
1721 pub struct RemoveRequest {
1722     // message fields
1723     pub identifier: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
1724     pub auth_session_id: ::std::vec::Vec<u8>,
1725     // special fields
1726     pub unknown_fields: ::protobuf::UnknownFields,
1727     pub cached_size: ::protobuf::CachedSize,
1728 }
1729 
1730 impl<'a> ::std::default::Default for &'a RemoveRequest {
default() -> &'a RemoveRequest1731     fn default() -> &'a RemoveRequest {
1732         <RemoveRequest as ::protobuf::Message>::default_instance()
1733     }
1734 }
1735 
1736 impl RemoveRequest {
new() -> RemoveRequest1737     pub fn new() -> RemoveRequest {
1738         ::std::default::Default::default()
1739     }
1740 
1741     // .cryptohome.AccountIdentifier identifier = 1;
1742 
1743 
get_identifier(&self) -> &super::rpc::AccountIdentifier1744     pub fn get_identifier(&self) -> &super::rpc::AccountIdentifier {
1745         self.identifier.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
1746     }
clear_identifier(&mut self)1747     pub fn clear_identifier(&mut self) {
1748         self.identifier.clear();
1749     }
1750 
has_identifier(&self) -> bool1751     pub fn has_identifier(&self) -> bool {
1752         self.identifier.is_some()
1753     }
1754 
1755     // Param is passed by value, moved
set_identifier(&mut self, v: super::rpc::AccountIdentifier)1756     pub fn set_identifier(&mut self, v: super::rpc::AccountIdentifier) {
1757         self.identifier = ::protobuf::SingularPtrField::some(v);
1758     }
1759 
1760     // Mutable pointer to the field.
1761     // If field is not initialized, it is initialized with default value first.
mut_identifier(&mut self) -> &mut super::rpc::AccountIdentifier1762     pub fn mut_identifier(&mut self) -> &mut super::rpc::AccountIdentifier {
1763         if self.identifier.is_none() {
1764             self.identifier.set_default();
1765         }
1766         self.identifier.as_mut().unwrap()
1767     }
1768 
1769     // Take field
take_identifier(&mut self) -> super::rpc::AccountIdentifier1770     pub fn take_identifier(&mut self) -> super::rpc::AccountIdentifier {
1771         self.identifier.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
1772     }
1773 
1774     // bytes auth_session_id = 2;
1775 
1776 
get_auth_session_id(&self) -> &[u8]1777     pub fn get_auth_session_id(&self) -> &[u8] {
1778         &self.auth_session_id
1779     }
clear_auth_session_id(&mut self)1780     pub fn clear_auth_session_id(&mut self) {
1781         self.auth_session_id.clear();
1782     }
1783 
1784     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)1785     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
1786         self.auth_session_id = v;
1787     }
1788 
1789     // Mutable pointer to the field.
1790     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>1791     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
1792         &mut self.auth_session_id
1793     }
1794 
1795     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>1796     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
1797         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
1798     }
1799 }
1800 
1801 impl ::protobuf::Message for RemoveRequest {
is_initialized(&self) -> bool1802     fn is_initialized(&self) -> bool {
1803         for v in &self.identifier {
1804             if !v.is_initialized() {
1805                 return false;
1806             }
1807         };
1808         true
1809     }
1810 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1811     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1812         while !is.eof()? {
1813             let (field_number, wire_type) = is.read_tag_unpack()?;
1814             match field_number {
1815                 1 => {
1816                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.identifier)?;
1817                 },
1818                 2 => {
1819                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
1820                 },
1821                 _ => {
1822                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1823                 },
1824             };
1825         }
1826         ::std::result::Result::Ok(())
1827     }
1828 
1829     // Compute sizes of nested messages
1830     #[allow(unused_variables)]
compute_size(&self) -> u321831     fn compute_size(&self) -> u32 {
1832         let mut my_size = 0;
1833         if let Some(ref v) = self.identifier.as_ref() {
1834             let len = v.compute_size();
1835             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1836         }
1837         if !self.auth_session_id.is_empty() {
1838             my_size += ::protobuf::rt::bytes_size(2, &self.auth_session_id);
1839         }
1840         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1841         self.cached_size.set(my_size);
1842         my_size
1843     }
1844 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1845     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1846         if let Some(ref v) = self.identifier.as_ref() {
1847             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1848             os.write_raw_varint32(v.get_cached_size())?;
1849             v.write_to_with_cached_sizes(os)?;
1850         }
1851         if !self.auth_session_id.is_empty() {
1852             os.write_bytes(2, &self.auth_session_id)?;
1853         }
1854         os.write_unknown_fields(self.get_unknown_fields())?;
1855         ::std::result::Result::Ok(())
1856     }
1857 
get_cached_size(&self) -> u321858     fn get_cached_size(&self) -> u32 {
1859         self.cached_size.get()
1860     }
1861 
get_unknown_fields(&self) -> &::protobuf::UnknownFields1862     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1863         &self.unknown_fields
1864     }
1865 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1866     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1867         &mut self.unknown_fields
1868     }
1869 
as_any(&self) -> &dyn (::std::any::Any)1870     fn as_any(&self) -> &dyn (::std::any::Any) {
1871         self as &dyn (::std::any::Any)
1872     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1873     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1874         self as &mut dyn (::std::any::Any)
1875     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1876     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1877         self
1878     }
1879 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1880     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1881         Self::descriptor_static()
1882     }
1883 
new() -> RemoveRequest1884     fn new() -> RemoveRequest {
1885         RemoveRequest::new()
1886     }
1887 
default_instance() -> &'static RemoveRequest1888     fn default_instance() -> &'static RemoveRequest {
1889         static instance: ::protobuf::rt::LazyV2<RemoveRequest> = ::protobuf::rt::LazyV2::INIT;
1890         instance.get(RemoveRequest::new)
1891     }
1892 }
1893 
1894 impl ::protobuf::Clear for RemoveRequest {
clear(&mut self)1895     fn clear(&mut self) {
1896         self.identifier.clear();
1897         self.auth_session_id.clear();
1898         self.unknown_fields.clear();
1899     }
1900 }
1901 
1902 impl ::protobuf::reflect::ProtobufValue for RemoveRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1903     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1904         ::protobuf::reflect::ReflectValueRef::Message(self)
1905     }
1906 }
1907 
1908 #[derive(PartialEq,Clone,Default,Debug)]
1909 pub struct RemoveReply {
1910     // message fields
1911     pub error: CryptohomeErrorCode,
1912     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
1913     // special fields
1914     pub unknown_fields: ::protobuf::UnknownFields,
1915     pub cached_size: ::protobuf::CachedSize,
1916 }
1917 
1918 impl<'a> ::std::default::Default for &'a RemoveReply {
default() -> &'a RemoveReply1919     fn default() -> &'a RemoveReply {
1920         <RemoveReply as ::protobuf::Message>::default_instance()
1921     }
1922 }
1923 
1924 impl RemoveReply {
new() -> RemoveReply1925     pub fn new() -> RemoveReply {
1926         ::std::default::Default::default()
1927     }
1928 
1929     // .user_data_auth.CryptohomeErrorCode error = 1;
1930 
1931 
get_error(&self) -> CryptohomeErrorCode1932     pub fn get_error(&self) -> CryptohomeErrorCode {
1933         self.error
1934     }
clear_error(&mut self)1935     pub fn clear_error(&mut self) {
1936         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
1937     }
1938 
1939     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)1940     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
1941         self.error = v;
1942     }
1943 
1944     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
1945 
1946 
get_error_info(&self) -> &CryptohomeErrorInfo1947     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
1948         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
1949     }
clear_error_info(&mut self)1950     pub fn clear_error_info(&mut self) {
1951         self.error_info.clear();
1952     }
1953 
has_error_info(&self) -> bool1954     pub fn has_error_info(&self) -> bool {
1955         self.error_info.is_some()
1956     }
1957 
1958     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)1959     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
1960         self.error_info = ::protobuf::SingularPtrField::some(v);
1961     }
1962 
1963     // Mutable pointer to the field.
1964     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo1965     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
1966         if self.error_info.is_none() {
1967             self.error_info.set_default();
1968         }
1969         self.error_info.as_mut().unwrap()
1970     }
1971 
1972     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo1973     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
1974         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
1975     }
1976 }
1977 
1978 impl ::protobuf::Message for RemoveReply {
is_initialized(&self) -> bool1979     fn is_initialized(&self) -> bool {
1980         for v in &self.error_info {
1981             if !v.is_initialized() {
1982                 return false;
1983             }
1984         };
1985         true
1986     }
1987 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1988     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1989         while !is.eof()? {
1990             let (field_number, wire_type) = is.read_tag_unpack()?;
1991             match field_number {
1992                 1 => {
1993                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
1994                 },
1995                 2 => {
1996                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
1997                 },
1998                 _ => {
1999                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2000                 },
2001             };
2002         }
2003         ::std::result::Result::Ok(())
2004     }
2005 
2006     // Compute sizes of nested messages
2007     #[allow(unused_variables)]
compute_size(&self) -> u322008     fn compute_size(&self) -> u32 {
2009         let mut my_size = 0;
2010         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
2011             my_size += ::protobuf::rt::enum_size(1, self.error);
2012         }
2013         if let Some(ref v) = self.error_info.as_ref() {
2014             let len = v.compute_size();
2015             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2016         }
2017         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2018         self.cached_size.set(my_size);
2019         my_size
2020     }
2021 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>2022     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2023         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
2024             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
2025         }
2026         if let Some(ref v) = self.error_info.as_ref() {
2027             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2028             os.write_raw_varint32(v.get_cached_size())?;
2029             v.write_to_with_cached_sizes(os)?;
2030         }
2031         os.write_unknown_fields(self.get_unknown_fields())?;
2032         ::std::result::Result::Ok(())
2033     }
2034 
get_cached_size(&self) -> u322035     fn get_cached_size(&self) -> u32 {
2036         self.cached_size.get()
2037     }
2038 
get_unknown_fields(&self) -> &::protobuf::UnknownFields2039     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2040         &self.unknown_fields
2041     }
2042 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields2043     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2044         &mut self.unknown_fields
2045     }
2046 
as_any(&self) -> &dyn (::std::any::Any)2047     fn as_any(&self) -> &dyn (::std::any::Any) {
2048         self as &dyn (::std::any::Any)
2049     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)2050     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2051         self as &mut dyn (::std::any::Any)
2052     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>2053     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2054         self
2055     }
2056 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor2057     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2058         Self::descriptor_static()
2059     }
2060 
new() -> RemoveReply2061     fn new() -> RemoveReply {
2062         RemoveReply::new()
2063     }
2064 
default_instance() -> &'static RemoveReply2065     fn default_instance() -> &'static RemoveReply {
2066         static instance: ::protobuf::rt::LazyV2<RemoveReply> = ::protobuf::rt::LazyV2::INIT;
2067         instance.get(RemoveReply::new)
2068     }
2069 }
2070 
2071 impl ::protobuf::Clear for RemoveReply {
clear(&mut self)2072     fn clear(&mut self) {
2073         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
2074         self.error_info.clear();
2075         self.unknown_fields.clear();
2076     }
2077 }
2078 
2079 impl ::protobuf::reflect::ProtobufValue for RemoveReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef2080     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2081         ::protobuf::reflect::ReflectValueRef::Message(self)
2082     }
2083 }
2084 
2085 #[derive(PartialEq,Clone,Default,Debug)]
2086 pub struct ListKeysRequest {
2087     // message fields
2088     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
2089     pub authorization_request: ::protobuf::SingularPtrField<super::rpc::AuthorizationRequest>,
2090     // special fields
2091     pub unknown_fields: ::protobuf::UnknownFields,
2092     pub cached_size: ::protobuf::CachedSize,
2093 }
2094 
2095 impl<'a> ::std::default::Default for &'a ListKeysRequest {
default() -> &'a ListKeysRequest2096     fn default() -> &'a ListKeysRequest {
2097         <ListKeysRequest as ::protobuf::Message>::default_instance()
2098     }
2099 }
2100 
2101 impl ListKeysRequest {
new() -> ListKeysRequest2102     pub fn new() -> ListKeysRequest {
2103         ::std::default::Default::default()
2104     }
2105 
2106     // .cryptohome.AccountIdentifier account_id = 1;
2107 
2108 
get_account_id(&self) -> &super::rpc::AccountIdentifier2109     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
2110         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
2111     }
clear_account_id(&mut self)2112     pub fn clear_account_id(&mut self) {
2113         self.account_id.clear();
2114     }
2115 
has_account_id(&self) -> bool2116     pub fn has_account_id(&self) -> bool {
2117         self.account_id.is_some()
2118     }
2119 
2120     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)2121     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
2122         self.account_id = ::protobuf::SingularPtrField::some(v);
2123     }
2124 
2125     // Mutable pointer to the field.
2126     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier2127     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
2128         if self.account_id.is_none() {
2129             self.account_id.set_default();
2130         }
2131         self.account_id.as_mut().unwrap()
2132     }
2133 
2134     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier2135     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
2136         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
2137     }
2138 
2139     // .cryptohome.AuthorizationRequest authorization_request = 2;
2140 
2141 
get_authorization_request(&self) -> &super::rpc::AuthorizationRequest2142     pub fn get_authorization_request(&self) -> &super::rpc::AuthorizationRequest {
2143         self.authorization_request.as_ref().unwrap_or_else(|| <super::rpc::AuthorizationRequest as ::protobuf::Message>::default_instance())
2144     }
clear_authorization_request(&mut self)2145     pub fn clear_authorization_request(&mut self) {
2146         self.authorization_request.clear();
2147     }
2148 
has_authorization_request(&self) -> bool2149     pub fn has_authorization_request(&self) -> bool {
2150         self.authorization_request.is_some()
2151     }
2152 
2153     // Param is passed by value, moved
set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest)2154     pub fn set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest) {
2155         self.authorization_request = ::protobuf::SingularPtrField::some(v);
2156     }
2157 
2158     // Mutable pointer to the field.
2159     // If field is not initialized, it is initialized with default value first.
mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest2160     pub fn mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest {
2161         if self.authorization_request.is_none() {
2162             self.authorization_request.set_default();
2163         }
2164         self.authorization_request.as_mut().unwrap()
2165     }
2166 
2167     // Take field
take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest2168     pub fn take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest {
2169         self.authorization_request.take().unwrap_or_else(|| super::rpc::AuthorizationRequest::new())
2170     }
2171 }
2172 
2173 impl ::protobuf::Message for ListKeysRequest {
is_initialized(&self) -> bool2174     fn is_initialized(&self) -> bool {
2175         for v in &self.account_id {
2176             if !v.is_initialized() {
2177                 return false;
2178             }
2179         };
2180         for v in &self.authorization_request {
2181             if !v.is_initialized() {
2182                 return false;
2183             }
2184         };
2185         true
2186     }
2187 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>2188     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2189         while !is.eof()? {
2190             let (field_number, wire_type) = is.read_tag_unpack()?;
2191             match field_number {
2192                 1 => {
2193                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
2194                 },
2195                 2 => {
2196                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authorization_request)?;
2197                 },
2198                 _ => {
2199                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2200                 },
2201             };
2202         }
2203         ::std::result::Result::Ok(())
2204     }
2205 
2206     // Compute sizes of nested messages
2207     #[allow(unused_variables)]
compute_size(&self) -> u322208     fn compute_size(&self) -> u32 {
2209         let mut my_size = 0;
2210         if let Some(ref v) = self.account_id.as_ref() {
2211             let len = v.compute_size();
2212             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2213         }
2214         if let Some(ref v) = self.authorization_request.as_ref() {
2215             let len = v.compute_size();
2216             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2217         }
2218         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2219         self.cached_size.set(my_size);
2220         my_size
2221     }
2222 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>2223     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2224         if let Some(ref v) = self.account_id.as_ref() {
2225             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2226             os.write_raw_varint32(v.get_cached_size())?;
2227             v.write_to_with_cached_sizes(os)?;
2228         }
2229         if let Some(ref v) = self.authorization_request.as_ref() {
2230             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2231             os.write_raw_varint32(v.get_cached_size())?;
2232             v.write_to_with_cached_sizes(os)?;
2233         }
2234         os.write_unknown_fields(self.get_unknown_fields())?;
2235         ::std::result::Result::Ok(())
2236     }
2237 
get_cached_size(&self) -> u322238     fn get_cached_size(&self) -> u32 {
2239         self.cached_size.get()
2240     }
2241 
get_unknown_fields(&self) -> &::protobuf::UnknownFields2242     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2243         &self.unknown_fields
2244     }
2245 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields2246     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2247         &mut self.unknown_fields
2248     }
2249 
as_any(&self) -> &dyn (::std::any::Any)2250     fn as_any(&self) -> &dyn (::std::any::Any) {
2251         self as &dyn (::std::any::Any)
2252     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)2253     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2254         self as &mut dyn (::std::any::Any)
2255     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>2256     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2257         self
2258     }
2259 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor2260     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2261         Self::descriptor_static()
2262     }
2263 
new() -> ListKeysRequest2264     fn new() -> ListKeysRequest {
2265         ListKeysRequest::new()
2266     }
2267 
default_instance() -> &'static ListKeysRequest2268     fn default_instance() -> &'static ListKeysRequest {
2269         static instance: ::protobuf::rt::LazyV2<ListKeysRequest> = ::protobuf::rt::LazyV2::INIT;
2270         instance.get(ListKeysRequest::new)
2271     }
2272 }
2273 
2274 impl ::protobuf::Clear for ListKeysRequest {
clear(&mut self)2275     fn clear(&mut self) {
2276         self.account_id.clear();
2277         self.authorization_request.clear();
2278         self.unknown_fields.clear();
2279     }
2280 }
2281 
2282 impl ::protobuf::reflect::ProtobufValue for ListKeysRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef2283     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2284         ::protobuf::reflect::ReflectValueRef::Message(self)
2285     }
2286 }
2287 
2288 #[derive(PartialEq,Clone,Default,Debug)]
2289 pub struct ListKeysReply {
2290     // message fields
2291     pub error: CryptohomeErrorCode,
2292     pub labels: ::protobuf::RepeatedField<::std::string::String>,
2293     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
2294     // special fields
2295     pub unknown_fields: ::protobuf::UnknownFields,
2296     pub cached_size: ::protobuf::CachedSize,
2297 }
2298 
2299 impl<'a> ::std::default::Default for &'a ListKeysReply {
default() -> &'a ListKeysReply2300     fn default() -> &'a ListKeysReply {
2301         <ListKeysReply as ::protobuf::Message>::default_instance()
2302     }
2303 }
2304 
2305 impl ListKeysReply {
new() -> ListKeysReply2306     pub fn new() -> ListKeysReply {
2307         ::std::default::Default::default()
2308     }
2309 
2310     // .user_data_auth.CryptohomeErrorCode error = 1;
2311 
2312 
get_error(&self) -> CryptohomeErrorCode2313     pub fn get_error(&self) -> CryptohomeErrorCode {
2314         self.error
2315     }
clear_error(&mut self)2316     pub fn clear_error(&mut self) {
2317         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
2318     }
2319 
2320     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)2321     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
2322         self.error = v;
2323     }
2324 
2325     // repeated string labels = 2;
2326 
2327 
get_labels(&self) -> &[::std::string::String]2328     pub fn get_labels(&self) -> &[::std::string::String] {
2329         &self.labels
2330     }
clear_labels(&mut self)2331     pub fn clear_labels(&mut self) {
2332         self.labels.clear();
2333     }
2334 
2335     // Param is passed by value, moved
set_labels(&mut self, v: ::protobuf::RepeatedField<::std::string::String>)2336     pub fn set_labels(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
2337         self.labels = v;
2338     }
2339 
2340     // Mutable pointer to the field.
mut_labels(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String>2341     pub fn mut_labels(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
2342         &mut self.labels
2343     }
2344 
2345     // Take field
take_labels(&mut self) -> ::protobuf::RepeatedField<::std::string::String>2346     pub fn take_labels(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
2347         ::std::mem::replace(&mut self.labels, ::protobuf::RepeatedField::new())
2348     }
2349 
2350     // .user_data_auth.CryptohomeErrorInfo error_info = 3;
2351 
2352 
get_error_info(&self) -> &CryptohomeErrorInfo2353     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
2354         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
2355     }
clear_error_info(&mut self)2356     pub fn clear_error_info(&mut self) {
2357         self.error_info.clear();
2358     }
2359 
has_error_info(&self) -> bool2360     pub fn has_error_info(&self) -> bool {
2361         self.error_info.is_some()
2362     }
2363 
2364     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)2365     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
2366         self.error_info = ::protobuf::SingularPtrField::some(v);
2367     }
2368 
2369     // Mutable pointer to the field.
2370     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo2371     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
2372         if self.error_info.is_none() {
2373             self.error_info.set_default();
2374         }
2375         self.error_info.as_mut().unwrap()
2376     }
2377 
2378     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo2379     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
2380         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
2381     }
2382 }
2383 
2384 impl ::protobuf::Message for ListKeysReply {
is_initialized(&self) -> bool2385     fn is_initialized(&self) -> bool {
2386         for v in &self.error_info {
2387             if !v.is_initialized() {
2388                 return false;
2389             }
2390         };
2391         true
2392     }
2393 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>2394     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2395         while !is.eof()? {
2396             let (field_number, wire_type) = is.read_tag_unpack()?;
2397             match field_number {
2398                 1 => {
2399                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
2400                 },
2401                 2 => {
2402                     ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.labels)?;
2403                 },
2404                 3 => {
2405                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
2406                 },
2407                 _ => {
2408                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2409                 },
2410             };
2411         }
2412         ::std::result::Result::Ok(())
2413     }
2414 
2415     // Compute sizes of nested messages
2416     #[allow(unused_variables)]
compute_size(&self) -> u322417     fn compute_size(&self) -> u32 {
2418         let mut my_size = 0;
2419         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
2420             my_size += ::protobuf::rt::enum_size(1, self.error);
2421         }
2422         for value in &self.labels {
2423             my_size += ::protobuf::rt::string_size(2, &value);
2424         };
2425         if let Some(ref v) = self.error_info.as_ref() {
2426             let len = v.compute_size();
2427             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2428         }
2429         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2430         self.cached_size.set(my_size);
2431         my_size
2432     }
2433 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>2434     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2435         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
2436             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
2437         }
2438         for v in &self.labels {
2439             os.write_string(2, &v)?;
2440         };
2441         if let Some(ref v) = self.error_info.as_ref() {
2442             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2443             os.write_raw_varint32(v.get_cached_size())?;
2444             v.write_to_with_cached_sizes(os)?;
2445         }
2446         os.write_unknown_fields(self.get_unknown_fields())?;
2447         ::std::result::Result::Ok(())
2448     }
2449 
get_cached_size(&self) -> u322450     fn get_cached_size(&self) -> u32 {
2451         self.cached_size.get()
2452     }
2453 
get_unknown_fields(&self) -> &::protobuf::UnknownFields2454     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2455         &self.unknown_fields
2456     }
2457 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields2458     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2459         &mut self.unknown_fields
2460     }
2461 
as_any(&self) -> &dyn (::std::any::Any)2462     fn as_any(&self) -> &dyn (::std::any::Any) {
2463         self as &dyn (::std::any::Any)
2464     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)2465     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2466         self as &mut dyn (::std::any::Any)
2467     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>2468     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2469         self
2470     }
2471 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor2472     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2473         Self::descriptor_static()
2474     }
2475 
new() -> ListKeysReply2476     fn new() -> ListKeysReply {
2477         ListKeysReply::new()
2478     }
2479 
default_instance() -> &'static ListKeysReply2480     fn default_instance() -> &'static ListKeysReply {
2481         static instance: ::protobuf::rt::LazyV2<ListKeysReply> = ::protobuf::rt::LazyV2::INIT;
2482         instance.get(ListKeysReply::new)
2483     }
2484 }
2485 
2486 impl ::protobuf::Clear for ListKeysReply {
clear(&mut self)2487     fn clear(&mut self) {
2488         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
2489         self.labels.clear();
2490         self.error_info.clear();
2491         self.unknown_fields.clear();
2492     }
2493 }
2494 
2495 impl ::protobuf::reflect::ProtobufValue for ListKeysReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef2496     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2497         ::protobuf::reflect::ReflectValueRef::Message(self)
2498     }
2499 }
2500 
2501 #[derive(PartialEq,Clone,Default,Debug)]
2502 pub struct GetKeyDataRequest {
2503     // message fields
2504     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
2505     pub authorization_request: ::protobuf::SingularPtrField<super::rpc::AuthorizationRequest>,
2506     pub key: ::protobuf::SingularPtrField<super::key::Key>,
2507     // special fields
2508     pub unknown_fields: ::protobuf::UnknownFields,
2509     pub cached_size: ::protobuf::CachedSize,
2510 }
2511 
2512 impl<'a> ::std::default::Default for &'a GetKeyDataRequest {
default() -> &'a GetKeyDataRequest2513     fn default() -> &'a GetKeyDataRequest {
2514         <GetKeyDataRequest as ::protobuf::Message>::default_instance()
2515     }
2516 }
2517 
2518 impl GetKeyDataRequest {
new() -> GetKeyDataRequest2519     pub fn new() -> GetKeyDataRequest {
2520         ::std::default::Default::default()
2521     }
2522 
2523     // .cryptohome.AccountIdentifier account_id = 1;
2524 
2525 
get_account_id(&self) -> &super::rpc::AccountIdentifier2526     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
2527         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
2528     }
clear_account_id(&mut self)2529     pub fn clear_account_id(&mut self) {
2530         self.account_id.clear();
2531     }
2532 
has_account_id(&self) -> bool2533     pub fn has_account_id(&self) -> bool {
2534         self.account_id.is_some()
2535     }
2536 
2537     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)2538     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
2539         self.account_id = ::protobuf::SingularPtrField::some(v);
2540     }
2541 
2542     // Mutable pointer to the field.
2543     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier2544     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
2545         if self.account_id.is_none() {
2546             self.account_id.set_default();
2547         }
2548         self.account_id.as_mut().unwrap()
2549     }
2550 
2551     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier2552     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
2553         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
2554     }
2555 
2556     // .cryptohome.AuthorizationRequest authorization_request = 2;
2557 
2558 
get_authorization_request(&self) -> &super::rpc::AuthorizationRequest2559     pub fn get_authorization_request(&self) -> &super::rpc::AuthorizationRequest {
2560         self.authorization_request.as_ref().unwrap_or_else(|| <super::rpc::AuthorizationRequest as ::protobuf::Message>::default_instance())
2561     }
clear_authorization_request(&mut self)2562     pub fn clear_authorization_request(&mut self) {
2563         self.authorization_request.clear();
2564     }
2565 
has_authorization_request(&self) -> bool2566     pub fn has_authorization_request(&self) -> bool {
2567         self.authorization_request.is_some()
2568     }
2569 
2570     // Param is passed by value, moved
set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest)2571     pub fn set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest) {
2572         self.authorization_request = ::protobuf::SingularPtrField::some(v);
2573     }
2574 
2575     // Mutable pointer to the field.
2576     // If field is not initialized, it is initialized with default value first.
mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest2577     pub fn mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest {
2578         if self.authorization_request.is_none() {
2579             self.authorization_request.set_default();
2580         }
2581         self.authorization_request.as_mut().unwrap()
2582     }
2583 
2584     // Take field
take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest2585     pub fn take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest {
2586         self.authorization_request.take().unwrap_or_else(|| super::rpc::AuthorizationRequest::new())
2587     }
2588 
2589     // .cryptohome.Key key = 3;
2590 
2591 
get_key(&self) -> &super::key::Key2592     pub fn get_key(&self) -> &super::key::Key {
2593         self.key.as_ref().unwrap_or_else(|| <super::key::Key as ::protobuf::Message>::default_instance())
2594     }
clear_key(&mut self)2595     pub fn clear_key(&mut self) {
2596         self.key.clear();
2597     }
2598 
has_key(&self) -> bool2599     pub fn has_key(&self) -> bool {
2600         self.key.is_some()
2601     }
2602 
2603     // Param is passed by value, moved
set_key(&mut self, v: super::key::Key)2604     pub fn set_key(&mut self, v: super::key::Key) {
2605         self.key = ::protobuf::SingularPtrField::some(v);
2606     }
2607 
2608     // Mutable pointer to the field.
2609     // If field is not initialized, it is initialized with default value first.
mut_key(&mut self) -> &mut super::key::Key2610     pub fn mut_key(&mut self) -> &mut super::key::Key {
2611         if self.key.is_none() {
2612             self.key.set_default();
2613         }
2614         self.key.as_mut().unwrap()
2615     }
2616 
2617     // Take field
take_key(&mut self) -> super::key::Key2618     pub fn take_key(&mut self) -> super::key::Key {
2619         self.key.take().unwrap_or_else(|| super::key::Key::new())
2620     }
2621 }
2622 
2623 impl ::protobuf::Message for GetKeyDataRequest {
is_initialized(&self) -> bool2624     fn is_initialized(&self) -> bool {
2625         for v in &self.account_id {
2626             if !v.is_initialized() {
2627                 return false;
2628             }
2629         };
2630         for v in &self.authorization_request {
2631             if !v.is_initialized() {
2632                 return false;
2633             }
2634         };
2635         for v in &self.key {
2636             if !v.is_initialized() {
2637                 return false;
2638             }
2639         };
2640         true
2641     }
2642 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>2643     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2644         while !is.eof()? {
2645             let (field_number, wire_type) = is.read_tag_unpack()?;
2646             match field_number {
2647                 1 => {
2648                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
2649                 },
2650                 2 => {
2651                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authorization_request)?;
2652                 },
2653                 3 => {
2654                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.key)?;
2655                 },
2656                 _ => {
2657                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2658                 },
2659             };
2660         }
2661         ::std::result::Result::Ok(())
2662     }
2663 
2664     // Compute sizes of nested messages
2665     #[allow(unused_variables)]
compute_size(&self) -> u322666     fn compute_size(&self) -> u32 {
2667         let mut my_size = 0;
2668         if let Some(ref v) = self.account_id.as_ref() {
2669             let len = v.compute_size();
2670             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2671         }
2672         if let Some(ref v) = self.authorization_request.as_ref() {
2673             let len = v.compute_size();
2674             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2675         }
2676         if let Some(ref v) = self.key.as_ref() {
2677             let len = v.compute_size();
2678             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2679         }
2680         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2681         self.cached_size.set(my_size);
2682         my_size
2683     }
2684 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>2685     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2686         if let Some(ref v) = self.account_id.as_ref() {
2687             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2688             os.write_raw_varint32(v.get_cached_size())?;
2689             v.write_to_with_cached_sizes(os)?;
2690         }
2691         if let Some(ref v) = self.authorization_request.as_ref() {
2692             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2693             os.write_raw_varint32(v.get_cached_size())?;
2694             v.write_to_with_cached_sizes(os)?;
2695         }
2696         if let Some(ref v) = self.key.as_ref() {
2697             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2698             os.write_raw_varint32(v.get_cached_size())?;
2699             v.write_to_with_cached_sizes(os)?;
2700         }
2701         os.write_unknown_fields(self.get_unknown_fields())?;
2702         ::std::result::Result::Ok(())
2703     }
2704 
get_cached_size(&self) -> u322705     fn get_cached_size(&self) -> u32 {
2706         self.cached_size.get()
2707     }
2708 
get_unknown_fields(&self) -> &::protobuf::UnknownFields2709     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2710         &self.unknown_fields
2711     }
2712 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields2713     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2714         &mut self.unknown_fields
2715     }
2716 
as_any(&self) -> &dyn (::std::any::Any)2717     fn as_any(&self) -> &dyn (::std::any::Any) {
2718         self as &dyn (::std::any::Any)
2719     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)2720     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2721         self as &mut dyn (::std::any::Any)
2722     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>2723     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2724         self
2725     }
2726 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor2727     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2728         Self::descriptor_static()
2729     }
2730 
new() -> GetKeyDataRequest2731     fn new() -> GetKeyDataRequest {
2732         GetKeyDataRequest::new()
2733     }
2734 
default_instance() -> &'static GetKeyDataRequest2735     fn default_instance() -> &'static GetKeyDataRequest {
2736         static instance: ::protobuf::rt::LazyV2<GetKeyDataRequest> = ::protobuf::rt::LazyV2::INIT;
2737         instance.get(GetKeyDataRequest::new)
2738     }
2739 }
2740 
2741 impl ::protobuf::Clear for GetKeyDataRequest {
clear(&mut self)2742     fn clear(&mut self) {
2743         self.account_id.clear();
2744         self.authorization_request.clear();
2745         self.key.clear();
2746         self.unknown_fields.clear();
2747     }
2748 }
2749 
2750 impl ::protobuf::reflect::ProtobufValue for GetKeyDataRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef2751     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2752         ::protobuf::reflect::ReflectValueRef::Message(self)
2753     }
2754 }
2755 
2756 #[derive(PartialEq,Clone,Default,Debug)]
2757 pub struct GetKeyDataReply {
2758     // message fields
2759     pub error: CryptohomeErrorCode,
2760     pub key_data: ::protobuf::RepeatedField<super::key::KeyData>,
2761     // special fields
2762     pub unknown_fields: ::protobuf::UnknownFields,
2763     pub cached_size: ::protobuf::CachedSize,
2764 }
2765 
2766 impl<'a> ::std::default::Default for &'a GetKeyDataReply {
default() -> &'a GetKeyDataReply2767     fn default() -> &'a GetKeyDataReply {
2768         <GetKeyDataReply as ::protobuf::Message>::default_instance()
2769     }
2770 }
2771 
2772 impl GetKeyDataReply {
new() -> GetKeyDataReply2773     pub fn new() -> GetKeyDataReply {
2774         ::std::default::Default::default()
2775     }
2776 
2777     // .user_data_auth.CryptohomeErrorCode error = 1;
2778 
2779 
get_error(&self) -> CryptohomeErrorCode2780     pub fn get_error(&self) -> CryptohomeErrorCode {
2781         self.error
2782     }
clear_error(&mut self)2783     pub fn clear_error(&mut self) {
2784         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
2785     }
2786 
2787     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)2788     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
2789         self.error = v;
2790     }
2791 
2792     // repeated .cryptohome.KeyData key_data = 2;
2793 
2794 
get_key_data(&self) -> &[super::key::KeyData]2795     pub fn get_key_data(&self) -> &[super::key::KeyData] {
2796         &self.key_data
2797     }
clear_key_data(&mut self)2798     pub fn clear_key_data(&mut self) {
2799         self.key_data.clear();
2800     }
2801 
2802     // Param is passed by value, moved
set_key_data(&mut self, v: ::protobuf::RepeatedField<super::key::KeyData>)2803     pub fn set_key_data(&mut self, v: ::protobuf::RepeatedField<super::key::KeyData>) {
2804         self.key_data = v;
2805     }
2806 
2807     // Mutable pointer to the field.
mut_key_data(&mut self) -> &mut ::protobuf::RepeatedField<super::key::KeyData>2808     pub fn mut_key_data(&mut self) -> &mut ::protobuf::RepeatedField<super::key::KeyData> {
2809         &mut self.key_data
2810     }
2811 
2812     // Take field
take_key_data(&mut self) -> ::protobuf::RepeatedField<super::key::KeyData>2813     pub fn take_key_data(&mut self) -> ::protobuf::RepeatedField<super::key::KeyData> {
2814         ::std::mem::replace(&mut self.key_data, ::protobuf::RepeatedField::new())
2815     }
2816 }
2817 
2818 impl ::protobuf::Message for GetKeyDataReply {
is_initialized(&self) -> bool2819     fn is_initialized(&self) -> bool {
2820         for v in &self.key_data {
2821             if !v.is_initialized() {
2822                 return false;
2823             }
2824         };
2825         true
2826     }
2827 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>2828     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2829         while !is.eof()? {
2830             let (field_number, wire_type) = is.read_tag_unpack()?;
2831             match field_number {
2832                 1 => {
2833                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
2834                 },
2835                 2 => {
2836                     ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.key_data)?;
2837                 },
2838                 _ => {
2839                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2840                 },
2841             };
2842         }
2843         ::std::result::Result::Ok(())
2844     }
2845 
2846     // Compute sizes of nested messages
2847     #[allow(unused_variables)]
compute_size(&self) -> u322848     fn compute_size(&self) -> u32 {
2849         let mut my_size = 0;
2850         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
2851             my_size += ::protobuf::rt::enum_size(1, self.error);
2852         }
2853         for value in &self.key_data {
2854             let len = value.compute_size();
2855             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2856         };
2857         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2858         self.cached_size.set(my_size);
2859         my_size
2860     }
2861 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>2862     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2863         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
2864             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
2865         }
2866         for v in &self.key_data {
2867             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2868             os.write_raw_varint32(v.get_cached_size())?;
2869             v.write_to_with_cached_sizes(os)?;
2870         };
2871         os.write_unknown_fields(self.get_unknown_fields())?;
2872         ::std::result::Result::Ok(())
2873     }
2874 
get_cached_size(&self) -> u322875     fn get_cached_size(&self) -> u32 {
2876         self.cached_size.get()
2877     }
2878 
get_unknown_fields(&self) -> &::protobuf::UnknownFields2879     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2880         &self.unknown_fields
2881     }
2882 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields2883     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2884         &mut self.unknown_fields
2885     }
2886 
as_any(&self) -> &dyn (::std::any::Any)2887     fn as_any(&self) -> &dyn (::std::any::Any) {
2888         self as &dyn (::std::any::Any)
2889     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)2890     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2891         self as &mut dyn (::std::any::Any)
2892     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>2893     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2894         self
2895     }
2896 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor2897     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2898         Self::descriptor_static()
2899     }
2900 
new() -> GetKeyDataReply2901     fn new() -> GetKeyDataReply {
2902         GetKeyDataReply::new()
2903     }
2904 
default_instance() -> &'static GetKeyDataReply2905     fn default_instance() -> &'static GetKeyDataReply {
2906         static instance: ::protobuf::rt::LazyV2<GetKeyDataReply> = ::protobuf::rt::LazyV2::INIT;
2907         instance.get(GetKeyDataReply::new)
2908     }
2909 }
2910 
2911 impl ::protobuf::Clear for GetKeyDataReply {
clear(&mut self)2912     fn clear(&mut self) {
2913         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
2914         self.key_data.clear();
2915         self.unknown_fields.clear();
2916     }
2917 }
2918 
2919 impl ::protobuf::reflect::ProtobufValue for GetKeyDataReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef2920     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2921         ::protobuf::reflect::ReflectValueRef::Message(self)
2922     }
2923 }
2924 
2925 #[derive(PartialEq,Clone,Default,Debug)]
2926 pub struct CheckKeyRequest {
2927     // message fields
2928     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
2929     pub authorization_request: ::protobuf::SingularPtrField<super::rpc::AuthorizationRequest>,
2930     pub unlock_webauthn_secret: bool,
2931     // special fields
2932     pub unknown_fields: ::protobuf::UnknownFields,
2933     pub cached_size: ::protobuf::CachedSize,
2934 }
2935 
2936 impl<'a> ::std::default::Default for &'a CheckKeyRequest {
default() -> &'a CheckKeyRequest2937     fn default() -> &'a CheckKeyRequest {
2938         <CheckKeyRequest as ::protobuf::Message>::default_instance()
2939     }
2940 }
2941 
2942 impl CheckKeyRequest {
new() -> CheckKeyRequest2943     pub fn new() -> CheckKeyRequest {
2944         ::std::default::Default::default()
2945     }
2946 
2947     // .cryptohome.AccountIdentifier account_id = 1;
2948 
2949 
get_account_id(&self) -> &super::rpc::AccountIdentifier2950     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
2951         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
2952     }
clear_account_id(&mut self)2953     pub fn clear_account_id(&mut self) {
2954         self.account_id.clear();
2955     }
2956 
has_account_id(&self) -> bool2957     pub fn has_account_id(&self) -> bool {
2958         self.account_id.is_some()
2959     }
2960 
2961     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)2962     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
2963         self.account_id = ::protobuf::SingularPtrField::some(v);
2964     }
2965 
2966     // Mutable pointer to the field.
2967     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier2968     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
2969         if self.account_id.is_none() {
2970             self.account_id.set_default();
2971         }
2972         self.account_id.as_mut().unwrap()
2973     }
2974 
2975     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier2976     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
2977         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
2978     }
2979 
2980     // .cryptohome.AuthorizationRequest authorization_request = 2;
2981 
2982 
get_authorization_request(&self) -> &super::rpc::AuthorizationRequest2983     pub fn get_authorization_request(&self) -> &super::rpc::AuthorizationRequest {
2984         self.authorization_request.as_ref().unwrap_or_else(|| <super::rpc::AuthorizationRequest as ::protobuf::Message>::default_instance())
2985     }
clear_authorization_request(&mut self)2986     pub fn clear_authorization_request(&mut self) {
2987         self.authorization_request.clear();
2988     }
2989 
has_authorization_request(&self) -> bool2990     pub fn has_authorization_request(&self) -> bool {
2991         self.authorization_request.is_some()
2992     }
2993 
2994     // Param is passed by value, moved
set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest)2995     pub fn set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest) {
2996         self.authorization_request = ::protobuf::SingularPtrField::some(v);
2997     }
2998 
2999     // Mutable pointer to the field.
3000     // If field is not initialized, it is initialized with default value first.
mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest3001     pub fn mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest {
3002         if self.authorization_request.is_none() {
3003             self.authorization_request.set_default();
3004         }
3005         self.authorization_request.as_mut().unwrap()
3006     }
3007 
3008     // Take field
take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest3009     pub fn take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest {
3010         self.authorization_request.take().unwrap_or_else(|| super::rpc::AuthorizationRequest::new())
3011     }
3012 
3013     // bool unlock_webauthn_secret = 3;
3014 
3015 
get_unlock_webauthn_secret(&self) -> bool3016     pub fn get_unlock_webauthn_secret(&self) -> bool {
3017         self.unlock_webauthn_secret
3018     }
clear_unlock_webauthn_secret(&mut self)3019     pub fn clear_unlock_webauthn_secret(&mut self) {
3020         self.unlock_webauthn_secret = false;
3021     }
3022 
3023     // Param is passed by value, moved
set_unlock_webauthn_secret(&mut self, v: bool)3024     pub fn set_unlock_webauthn_secret(&mut self, v: bool) {
3025         self.unlock_webauthn_secret = v;
3026     }
3027 }
3028 
3029 impl ::protobuf::Message for CheckKeyRequest {
is_initialized(&self) -> bool3030     fn is_initialized(&self) -> bool {
3031         for v in &self.account_id {
3032             if !v.is_initialized() {
3033                 return false;
3034             }
3035         };
3036         for v in &self.authorization_request {
3037             if !v.is_initialized() {
3038                 return false;
3039             }
3040         };
3041         true
3042     }
3043 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>3044     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3045         while !is.eof()? {
3046             let (field_number, wire_type) = is.read_tag_unpack()?;
3047             match field_number {
3048                 1 => {
3049                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
3050                 },
3051                 2 => {
3052                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authorization_request)?;
3053                 },
3054                 3 => {
3055                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
3056                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
3057                     }
3058                     let tmp = is.read_bool()?;
3059                     self.unlock_webauthn_secret = tmp;
3060                 },
3061                 _ => {
3062                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
3063                 },
3064             };
3065         }
3066         ::std::result::Result::Ok(())
3067     }
3068 
3069     // Compute sizes of nested messages
3070     #[allow(unused_variables)]
compute_size(&self) -> u323071     fn compute_size(&self) -> u32 {
3072         let mut my_size = 0;
3073         if let Some(ref v) = self.account_id.as_ref() {
3074             let len = v.compute_size();
3075             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3076         }
3077         if let Some(ref v) = self.authorization_request.as_ref() {
3078             let len = v.compute_size();
3079             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3080         }
3081         if self.unlock_webauthn_secret != false {
3082             my_size += 2;
3083         }
3084         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
3085         self.cached_size.set(my_size);
3086         my_size
3087     }
3088 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>3089     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3090         if let Some(ref v) = self.account_id.as_ref() {
3091             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3092             os.write_raw_varint32(v.get_cached_size())?;
3093             v.write_to_with_cached_sizes(os)?;
3094         }
3095         if let Some(ref v) = self.authorization_request.as_ref() {
3096             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3097             os.write_raw_varint32(v.get_cached_size())?;
3098             v.write_to_with_cached_sizes(os)?;
3099         }
3100         if self.unlock_webauthn_secret != false {
3101             os.write_bool(3, self.unlock_webauthn_secret)?;
3102         }
3103         os.write_unknown_fields(self.get_unknown_fields())?;
3104         ::std::result::Result::Ok(())
3105     }
3106 
get_cached_size(&self) -> u323107     fn get_cached_size(&self) -> u32 {
3108         self.cached_size.get()
3109     }
3110 
get_unknown_fields(&self) -> &::protobuf::UnknownFields3111     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
3112         &self.unknown_fields
3113     }
3114 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields3115     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
3116         &mut self.unknown_fields
3117     }
3118 
as_any(&self) -> &dyn (::std::any::Any)3119     fn as_any(&self) -> &dyn (::std::any::Any) {
3120         self as &dyn (::std::any::Any)
3121     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)3122     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
3123         self as &mut dyn (::std::any::Any)
3124     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>3125     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
3126         self
3127     }
3128 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor3129     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
3130         Self::descriptor_static()
3131     }
3132 
new() -> CheckKeyRequest3133     fn new() -> CheckKeyRequest {
3134         CheckKeyRequest::new()
3135     }
3136 
default_instance() -> &'static CheckKeyRequest3137     fn default_instance() -> &'static CheckKeyRequest {
3138         static instance: ::protobuf::rt::LazyV2<CheckKeyRequest> = ::protobuf::rt::LazyV2::INIT;
3139         instance.get(CheckKeyRequest::new)
3140     }
3141 }
3142 
3143 impl ::protobuf::Clear for CheckKeyRequest {
clear(&mut self)3144     fn clear(&mut self) {
3145         self.account_id.clear();
3146         self.authorization_request.clear();
3147         self.unlock_webauthn_secret = false;
3148         self.unknown_fields.clear();
3149     }
3150 }
3151 
3152 impl ::protobuf::reflect::ProtobufValue for CheckKeyRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3153     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3154         ::protobuf::reflect::ReflectValueRef::Message(self)
3155     }
3156 }
3157 
3158 #[derive(PartialEq,Clone,Default,Debug)]
3159 pub struct CheckKeyReply {
3160     // message fields
3161     pub error: CryptohomeErrorCode,
3162     // special fields
3163     pub unknown_fields: ::protobuf::UnknownFields,
3164     pub cached_size: ::protobuf::CachedSize,
3165 }
3166 
3167 impl<'a> ::std::default::Default for &'a CheckKeyReply {
default() -> &'a CheckKeyReply3168     fn default() -> &'a CheckKeyReply {
3169         <CheckKeyReply as ::protobuf::Message>::default_instance()
3170     }
3171 }
3172 
3173 impl CheckKeyReply {
new() -> CheckKeyReply3174     pub fn new() -> CheckKeyReply {
3175         ::std::default::Default::default()
3176     }
3177 
3178     // .user_data_auth.CryptohomeErrorCode error = 1;
3179 
3180 
get_error(&self) -> CryptohomeErrorCode3181     pub fn get_error(&self) -> CryptohomeErrorCode {
3182         self.error
3183     }
clear_error(&mut self)3184     pub fn clear_error(&mut self) {
3185         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
3186     }
3187 
3188     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)3189     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
3190         self.error = v;
3191     }
3192 }
3193 
3194 impl ::protobuf::Message for CheckKeyReply {
is_initialized(&self) -> bool3195     fn is_initialized(&self) -> bool {
3196         true
3197     }
3198 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>3199     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3200         while !is.eof()? {
3201             let (field_number, wire_type) = is.read_tag_unpack()?;
3202             match field_number {
3203                 1 => {
3204                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
3205                 },
3206                 _ => {
3207                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
3208                 },
3209             };
3210         }
3211         ::std::result::Result::Ok(())
3212     }
3213 
3214     // Compute sizes of nested messages
3215     #[allow(unused_variables)]
compute_size(&self) -> u323216     fn compute_size(&self) -> u32 {
3217         let mut my_size = 0;
3218         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
3219             my_size += ::protobuf::rt::enum_size(1, self.error);
3220         }
3221         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
3222         self.cached_size.set(my_size);
3223         my_size
3224     }
3225 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>3226     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3227         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
3228             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
3229         }
3230         os.write_unknown_fields(self.get_unknown_fields())?;
3231         ::std::result::Result::Ok(())
3232     }
3233 
get_cached_size(&self) -> u323234     fn get_cached_size(&self) -> u32 {
3235         self.cached_size.get()
3236     }
3237 
get_unknown_fields(&self) -> &::protobuf::UnknownFields3238     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
3239         &self.unknown_fields
3240     }
3241 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields3242     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
3243         &mut self.unknown_fields
3244     }
3245 
as_any(&self) -> &dyn (::std::any::Any)3246     fn as_any(&self) -> &dyn (::std::any::Any) {
3247         self as &dyn (::std::any::Any)
3248     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)3249     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
3250         self as &mut dyn (::std::any::Any)
3251     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>3252     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
3253         self
3254     }
3255 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor3256     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
3257         Self::descriptor_static()
3258     }
3259 
new() -> CheckKeyReply3260     fn new() -> CheckKeyReply {
3261         CheckKeyReply::new()
3262     }
3263 
default_instance() -> &'static CheckKeyReply3264     fn default_instance() -> &'static CheckKeyReply {
3265         static instance: ::protobuf::rt::LazyV2<CheckKeyReply> = ::protobuf::rt::LazyV2::INIT;
3266         instance.get(CheckKeyReply::new)
3267     }
3268 }
3269 
3270 impl ::protobuf::Clear for CheckKeyReply {
clear(&mut self)3271     fn clear(&mut self) {
3272         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
3273         self.unknown_fields.clear();
3274     }
3275 }
3276 
3277 impl ::protobuf::reflect::ProtobufValue for CheckKeyReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3278     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3279         ::protobuf::reflect::ReflectValueRef::Message(self)
3280     }
3281 }
3282 
3283 #[derive(PartialEq,Clone,Default,Debug)]
3284 pub struct AddKeyRequest {
3285     // message fields
3286     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
3287     pub authorization_request: ::protobuf::SingularPtrField<super::rpc::AuthorizationRequest>,
3288     pub key: ::protobuf::SingularPtrField<super::key::Key>,
3289     pub clobber_if_exists: bool,
3290     // special fields
3291     pub unknown_fields: ::protobuf::UnknownFields,
3292     pub cached_size: ::protobuf::CachedSize,
3293 }
3294 
3295 impl<'a> ::std::default::Default for &'a AddKeyRequest {
default() -> &'a AddKeyRequest3296     fn default() -> &'a AddKeyRequest {
3297         <AddKeyRequest as ::protobuf::Message>::default_instance()
3298     }
3299 }
3300 
3301 impl AddKeyRequest {
new() -> AddKeyRequest3302     pub fn new() -> AddKeyRequest {
3303         ::std::default::Default::default()
3304     }
3305 
3306     // .cryptohome.AccountIdentifier account_id = 1;
3307 
3308 
get_account_id(&self) -> &super::rpc::AccountIdentifier3309     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
3310         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
3311     }
clear_account_id(&mut self)3312     pub fn clear_account_id(&mut self) {
3313         self.account_id.clear();
3314     }
3315 
has_account_id(&self) -> bool3316     pub fn has_account_id(&self) -> bool {
3317         self.account_id.is_some()
3318     }
3319 
3320     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)3321     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
3322         self.account_id = ::protobuf::SingularPtrField::some(v);
3323     }
3324 
3325     // Mutable pointer to the field.
3326     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier3327     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
3328         if self.account_id.is_none() {
3329             self.account_id.set_default();
3330         }
3331         self.account_id.as_mut().unwrap()
3332     }
3333 
3334     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier3335     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
3336         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
3337     }
3338 
3339     // .cryptohome.AuthorizationRequest authorization_request = 2;
3340 
3341 
get_authorization_request(&self) -> &super::rpc::AuthorizationRequest3342     pub fn get_authorization_request(&self) -> &super::rpc::AuthorizationRequest {
3343         self.authorization_request.as_ref().unwrap_or_else(|| <super::rpc::AuthorizationRequest as ::protobuf::Message>::default_instance())
3344     }
clear_authorization_request(&mut self)3345     pub fn clear_authorization_request(&mut self) {
3346         self.authorization_request.clear();
3347     }
3348 
has_authorization_request(&self) -> bool3349     pub fn has_authorization_request(&self) -> bool {
3350         self.authorization_request.is_some()
3351     }
3352 
3353     // Param is passed by value, moved
set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest)3354     pub fn set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest) {
3355         self.authorization_request = ::protobuf::SingularPtrField::some(v);
3356     }
3357 
3358     // Mutable pointer to the field.
3359     // If field is not initialized, it is initialized with default value first.
mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest3360     pub fn mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest {
3361         if self.authorization_request.is_none() {
3362             self.authorization_request.set_default();
3363         }
3364         self.authorization_request.as_mut().unwrap()
3365     }
3366 
3367     // Take field
take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest3368     pub fn take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest {
3369         self.authorization_request.take().unwrap_or_else(|| super::rpc::AuthorizationRequest::new())
3370     }
3371 
3372     // .cryptohome.Key key = 3;
3373 
3374 
get_key(&self) -> &super::key::Key3375     pub fn get_key(&self) -> &super::key::Key {
3376         self.key.as_ref().unwrap_or_else(|| <super::key::Key as ::protobuf::Message>::default_instance())
3377     }
clear_key(&mut self)3378     pub fn clear_key(&mut self) {
3379         self.key.clear();
3380     }
3381 
has_key(&self) -> bool3382     pub fn has_key(&self) -> bool {
3383         self.key.is_some()
3384     }
3385 
3386     // Param is passed by value, moved
set_key(&mut self, v: super::key::Key)3387     pub fn set_key(&mut self, v: super::key::Key) {
3388         self.key = ::protobuf::SingularPtrField::some(v);
3389     }
3390 
3391     // Mutable pointer to the field.
3392     // If field is not initialized, it is initialized with default value first.
mut_key(&mut self) -> &mut super::key::Key3393     pub fn mut_key(&mut self) -> &mut super::key::Key {
3394         if self.key.is_none() {
3395             self.key.set_default();
3396         }
3397         self.key.as_mut().unwrap()
3398     }
3399 
3400     // Take field
take_key(&mut self) -> super::key::Key3401     pub fn take_key(&mut self) -> super::key::Key {
3402         self.key.take().unwrap_or_else(|| super::key::Key::new())
3403     }
3404 
3405     // bool clobber_if_exists = 4;
3406 
3407 
get_clobber_if_exists(&self) -> bool3408     pub fn get_clobber_if_exists(&self) -> bool {
3409         self.clobber_if_exists
3410     }
clear_clobber_if_exists(&mut self)3411     pub fn clear_clobber_if_exists(&mut self) {
3412         self.clobber_if_exists = false;
3413     }
3414 
3415     // Param is passed by value, moved
set_clobber_if_exists(&mut self, v: bool)3416     pub fn set_clobber_if_exists(&mut self, v: bool) {
3417         self.clobber_if_exists = v;
3418     }
3419 }
3420 
3421 impl ::protobuf::Message for AddKeyRequest {
is_initialized(&self) -> bool3422     fn is_initialized(&self) -> bool {
3423         for v in &self.account_id {
3424             if !v.is_initialized() {
3425                 return false;
3426             }
3427         };
3428         for v in &self.authorization_request {
3429             if !v.is_initialized() {
3430                 return false;
3431             }
3432         };
3433         for v in &self.key {
3434             if !v.is_initialized() {
3435                 return false;
3436             }
3437         };
3438         true
3439     }
3440 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>3441     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3442         while !is.eof()? {
3443             let (field_number, wire_type) = is.read_tag_unpack()?;
3444             match field_number {
3445                 1 => {
3446                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
3447                 },
3448                 2 => {
3449                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authorization_request)?;
3450                 },
3451                 3 => {
3452                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.key)?;
3453                 },
3454                 4 => {
3455                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
3456                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
3457                     }
3458                     let tmp = is.read_bool()?;
3459                     self.clobber_if_exists = tmp;
3460                 },
3461                 _ => {
3462                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
3463                 },
3464             };
3465         }
3466         ::std::result::Result::Ok(())
3467     }
3468 
3469     // Compute sizes of nested messages
3470     #[allow(unused_variables)]
compute_size(&self) -> u323471     fn compute_size(&self) -> u32 {
3472         let mut my_size = 0;
3473         if let Some(ref v) = self.account_id.as_ref() {
3474             let len = v.compute_size();
3475             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3476         }
3477         if let Some(ref v) = self.authorization_request.as_ref() {
3478             let len = v.compute_size();
3479             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3480         }
3481         if let Some(ref v) = self.key.as_ref() {
3482             let len = v.compute_size();
3483             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3484         }
3485         if self.clobber_if_exists != false {
3486             my_size += 2;
3487         }
3488         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
3489         self.cached_size.set(my_size);
3490         my_size
3491     }
3492 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>3493     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3494         if let Some(ref v) = self.account_id.as_ref() {
3495             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3496             os.write_raw_varint32(v.get_cached_size())?;
3497             v.write_to_with_cached_sizes(os)?;
3498         }
3499         if let Some(ref v) = self.authorization_request.as_ref() {
3500             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3501             os.write_raw_varint32(v.get_cached_size())?;
3502             v.write_to_with_cached_sizes(os)?;
3503         }
3504         if let Some(ref v) = self.key.as_ref() {
3505             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3506             os.write_raw_varint32(v.get_cached_size())?;
3507             v.write_to_with_cached_sizes(os)?;
3508         }
3509         if self.clobber_if_exists != false {
3510             os.write_bool(4, self.clobber_if_exists)?;
3511         }
3512         os.write_unknown_fields(self.get_unknown_fields())?;
3513         ::std::result::Result::Ok(())
3514     }
3515 
get_cached_size(&self) -> u323516     fn get_cached_size(&self) -> u32 {
3517         self.cached_size.get()
3518     }
3519 
get_unknown_fields(&self) -> &::protobuf::UnknownFields3520     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
3521         &self.unknown_fields
3522     }
3523 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields3524     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
3525         &mut self.unknown_fields
3526     }
3527 
as_any(&self) -> &dyn (::std::any::Any)3528     fn as_any(&self) -> &dyn (::std::any::Any) {
3529         self as &dyn (::std::any::Any)
3530     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)3531     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
3532         self as &mut dyn (::std::any::Any)
3533     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>3534     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
3535         self
3536     }
3537 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor3538     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
3539         Self::descriptor_static()
3540     }
3541 
new() -> AddKeyRequest3542     fn new() -> AddKeyRequest {
3543         AddKeyRequest::new()
3544     }
3545 
default_instance() -> &'static AddKeyRequest3546     fn default_instance() -> &'static AddKeyRequest {
3547         static instance: ::protobuf::rt::LazyV2<AddKeyRequest> = ::protobuf::rt::LazyV2::INIT;
3548         instance.get(AddKeyRequest::new)
3549     }
3550 }
3551 
3552 impl ::protobuf::Clear for AddKeyRequest {
clear(&mut self)3553     fn clear(&mut self) {
3554         self.account_id.clear();
3555         self.authorization_request.clear();
3556         self.key.clear();
3557         self.clobber_if_exists = false;
3558         self.unknown_fields.clear();
3559     }
3560 }
3561 
3562 impl ::protobuf::reflect::ProtobufValue for AddKeyRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3563     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3564         ::protobuf::reflect::ReflectValueRef::Message(self)
3565     }
3566 }
3567 
3568 #[derive(PartialEq,Clone,Default,Debug)]
3569 pub struct AddKeyReply {
3570     // message fields
3571     pub error: CryptohomeErrorCode,
3572     // special fields
3573     pub unknown_fields: ::protobuf::UnknownFields,
3574     pub cached_size: ::protobuf::CachedSize,
3575 }
3576 
3577 impl<'a> ::std::default::Default for &'a AddKeyReply {
default() -> &'a AddKeyReply3578     fn default() -> &'a AddKeyReply {
3579         <AddKeyReply as ::protobuf::Message>::default_instance()
3580     }
3581 }
3582 
3583 impl AddKeyReply {
new() -> AddKeyReply3584     pub fn new() -> AddKeyReply {
3585         ::std::default::Default::default()
3586     }
3587 
3588     // .user_data_auth.CryptohomeErrorCode error = 1;
3589 
3590 
get_error(&self) -> CryptohomeErrorCode3591     pub fn get_error(&self) -> CryptohomeErrorCode {
3592         self.error
3593     }
clear_error(&mut self)3594     pub fn clear_error(&mut self) {
3595         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
3596     }
3597 
3598     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)3599     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
3600         self.error = v;
3601     }
3602 }
3603 
3604 impl ::protobuf::Message for AddKeyReply {
is_initialized(&self) -> bool3605     fn is_initialized(&self) -> bool {
3606         true
3607     }
3608 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>3609     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3610         while !is.eof()? {
3611             let (field_number, wire_type) = is.read_tag_unpack()?;
3612             match field_number {
3613                 1 => {
3614                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
3615                 },
3616                 _ => {
3617                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
3618                 },
3619             };
3620         }
3621         ::std::result::Result::Ok(())
3622     }
3623 
3624     // Compute sizes of nested messages
3625     #[allow(unused_variables)]
compute_size(&self) -> u323626     fn compute_size(&self) -> u32 {
3627         let mut my_size = 0;
3628         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
3629             my_size += ::protobuf::rt::enum_size(1, self.error);
3630         }
3631         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
3632         self.cached_size.set(my_size);
3633         my_size
3634     }
3635 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>3636     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3637         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
3638             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
3639         }
3640         os.write_unknown_fields(self.get_unknown_fields())?;
3641         ::std::result::Result::Ok(())
3642     }
3643 
get_cached_size(&self) -> u323644     fn get_cached_size(&self) -> u32 {
3645         self.cached_size.get()
3646     }
3647 
get_unknown_fields(&self) -> &::protobuf::UnknownFields3648     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
3649         &self.unknown_fields
3650     }
3651 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields3652     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
3653         &mut self.unknown_fields
3654     }
3655 
as_any(&self) -> &dyn (::std::any::Any)3656     fn as_any(&self) -> &dyn (::std::any::Any) {
3657         self as &dyn (::std::any::Any)
3658     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)3659     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
3660         self as &mut dyn (::std::any::Any)
3661     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>3662     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
3663         self
3664     }
3665 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor3666     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
3667         Self::descriptor_static()
3668     }
3669 
new() -> AddKeyReply3670     fn new() -> AddKeyReply {
3671         AddKeyReply::new()
3672     }
3673 
default_instance() -> &'static AddKeyReply3674     fn default_instance() -> &'static AddKeyReply {
3675         static instance: ::protobuf::rt::LazyV2<AddKeyReply> = ::protobuf::rt::LazyV2::INIT;
3676         instance.get(AddKeyReply::new)
3677     }
3678 }
3679 
3680 impl ::protobuf::Clear for AddKeyReply {
clear(&mut self)3681     fn clear(&mut self) {
3682         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
3683         self.unknown_fields.clear();
3684     }
3685 }
3686 
3687 impl ::protobuf::reflect::ProtobufValue for AddKeyReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3688     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3689         ::protobuf::reflect::ReflectValueRef::Message(self)
3690     }
3691 }
3692 
3693 #[derive(PartialEq,Clone,Default,Debug)]
3694 pub struct RemoveKeyRequest {
3695     // message fields
3696     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
3697     pub authorization_request: ::protobuf::SingularPtrField<super::rpc::AuthorizationRequest>,
3698     pub key: ::protobuf::SingularPtrField<super::key::Key>,
3699     // special fields
3700     pub unknown_fields: ::protobuf::UnknownFields,
3701     pub cached_size: ::protobuf::CachedSize,
3702 }
3703 
3704 impl<'a> ::std::default::Default for &'a RemoveKeyRequest {
default() -> &'a RemoveKeyRequest3705     fn default() -> &'a RemoveKeyRequest {
3706         <RemoveKeyRequest as ::protobuf::Message>::default_instance()
3707     }
3708 }
3709 
3710 impl RemoveKeyRequest {
new() -> RemoveKeyRequest3711     pub fn new() -> RemoveKeyRequest {
3712         ::std::default::Default::default()
3713     }
3714 
3715     // .cryptohome.AccountIdentifier account_id = 1;
3716 
3717 
get_account_id(&self) -> &super::rpc::AccountIdentifier3718     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
3719         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
3720     }
clear_account_id(&mut self)3721     pub fn clear_account_id(&mut self) {
3722         self.account_id.clear();
3723     }
3724 
has_account_id(&self) -> bool3725     pub fn has_account_id(&self) -> bool {
3726         self.account_id.is_some()
3727     }
3728 
3729     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)3730     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
3731         self.account_id = ::protobuf::SingularPtrField::some(v);
3732     }
3733 
3734     // Mutable pointer to the field.
3735     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier3736     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
3737         if self.account_id.is_none() {
3738             self.account_id.set_default();
3739         }
3740         self.account_id.as_mut().unwrap()
3741     }
3742 
3743     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier3744     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
3745         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
3746     }
3747 
3748     // .cryptohome.AuthorizationRequest authorization_request = 2;
3749 
3750 
get_authorization_request(&self) -> &super::rpc::AuthorizationRequest3751     pub fn get_authorization_request(&self) -> &super::rpc::AuthorizationRequest {
3752         self.authorization_request.as_ref().unwrap_or_else(|| <super::rpc::AuthorizationRequest as ::protobuf::Message>::default_instance())
3753     }
clear_authorization_request(&mut self)3754     pub fn clear_authorization_request(&mut self) {
3755         self.authorization_request.clear();
3756     }
3757 
has_authorization_request(&self) -> bool3758     pub fn has_authorization_request(&self) -> bool {
3759         self.authorization_request.is_some()
3760     }
3761 
3762     // Param is passed by value, moved
set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest)3763     pub fn set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest) {
3764         self.authorization_request = ::protobuf::SingularPtrField::some(v);
3765     }
3766 
3767     // Mutable pointer to the field.
3768     // If field is not initialized, it is initialized with default value first.
mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest3769     pub fn mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest {
3770         if self.authorization_request.is_none() {
3771             self.authorization_request.set_default();
3772         }
3773         self.authorization_request.as_mut().unwrap()
3774     }
3775 
3776     // Take field
take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest3777     pub fn take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest {
3778         self.authorization_request.take().unwrap_or_else(|| super::rpc::AuthorizationRequest::new())
3779     }
3780 
3781     // .cryptohome.Key key = 3;
3782 
3783 
get_key(&self) -> &super::key::Key3784     pub fn get_key(&self) -> &super::key::Key {
3785         self.key.as_ref().unwrap_or_else(|| <super::key::Key as ::protobuf::Message>::default_instance())
3786     }
clear_key(&mut self)3787     pub fn clear_key(&mut self) {
3788         self.key.clear();
3789     }
3790 
has_key(&self) -> bool3791     pub fn has_key(&self) -> bool {
3792         self.key.is_some()
3793     }
3794 
3795     // Param is passed by value, moved
set_key(&mut self, v: super::key::Key)3796     pub fn set_key(&mut self, v: super::key::Key) {
3797         self.key = ::protobuf::SingularPtrField::some(v);
3798     }
3799 
3800     // Mutable pointer to the field.
3801     // If field is not initialized, it is initialized with default value first.
mut_key(&mut self) -> &mut super::key::Key3802     pub fn mut_key(&mut self) -> &mut super::key::Key {
3803         if self.key.is_none() {
3804             self.key.set_default();
3805         }
3806         self.key.as_mut().unwrap()
3807     }
3808 
3809     // Take field
take_key(&mut self) -> super::key::Key3810     pub fn take_key(&mut self) -> super::key::Key {
3811         self.key.take().unwrap_or_else(|| super::key::Key::new())
3812     }
3813 }
3814 
3815 impl ::protobuf::Message for RemoveKeyRequest {
is_initialized(&self) -> bool3816     fn is_initialized(&self) -> bool {
3817         for v in &self.account_id {
3818             if !v.is_initialized() {
3819                 return false;
3820             }
3821         };
3822         for v in &self.authorization_request {
3823             if !v.is_initialized() {
3824                 return false;
3825             }
3826         };
3827         for v in &self.key {
3828             if !v.is_initialized() {
3829                 return false;
3830             }
3831         };
3832         true
3833     }
3834 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>3835     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3836         while !is.eof()? {
3837             let (field_number, wire_type) = is.read_tag_unpack()?;
3838             match field_number {
3839                 1 => {
3840                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
3841                 },
3842                 2 => {
3843                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authorization_request)?;
3844                 },
3845                 3 => {
3846                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.key)?;
3847                 },
3848                 _ => {
3849                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
3850                 },
3851             };
3852         }
3853         ::std::result::Result::Ok(())
3854     }
3855 
3856     // Compute sizes of nested messages
3857     #[allow(unused_variables)]
compute_size(&self) -> u323858     fn compute_size(&self) -> u32 {
3859         let mut my_size = 0;
3860         if let Some(ref v) = self.account_id.as_ref() {
3861             let len = v.compute_size();
3862             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3863         }
3864         if let Some(ref v) = self.authorization_request.as_ref() {
3865             let len = v.compute_size();
3866             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3867         }
3868         if let Some(ref v) = self.key.as_ref() {
3869             let len = v.compute_size();
3870             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3871         }
3872         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
3873         self.cached_size.set(my_size);
3874         my_size
3875     }
3876 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>3877     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3878         if let Some(ref v) = self.account_id.as_ref() {
3879             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3880             os.write_raw_varint32(v.get_cached_size())?;
3881             v.write_to_with_cached_sizes(os)?;
3882         }
3883         if let Some(ref v) = self.authorization_request.as_ref() {
3884             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3885             os.write_raw_varint32(v.get_cached_size())?;
3886             v.write_to_with_cached_sizes(os)?;
3887         }
3888         if let Some(ref v) = self.key.as_ref() {
3889             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3890             os.write_raw_varint32(v.get_cached_size())?;
3891             v.write_to_with_cached_sizes(os)?;
3892         }
3893         os.write_unknown_fields(self.get_unknown_fields())?;
3894         ::std::result::Result::Ok(())
3895     }
3896 
get_cached_size(&self) -> u323897     fn get_cached_size(&self) -> u32 {
3898         self.cached_size.get()
3899     }
3900 
get_unknown_fields(&self) -> &::protobuf::UnknownFields3901     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
3902         &self.unknown_fields
3903     }
3904 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields3905     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
3906         &mut self.unknown_fields
3907     }
3908 
as_any(&self) -> &dyn (::std::any::Any)3909     fn as_any(&self) -> &dyn (::std::any::Any) {
3910         self as &dyn (::std::any::Any)
3911     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)3912     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
3913         self as &mut dyn (::std::any::Any)
3914     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>3915     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
3916         self
3917     }
3918 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor3919     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
3920         Self::descriptor_static()
3921     }
3922 
new() -> RemoveKeyRequest3923     fn new() -> RemoveKeyRequest {
3924         RemoveKeyRequest::new()
3925     }
3926 
default_instance() -> &'static RemoveKeyRequest3927     fn default_instance() -> &'static RemoveKeyRequest {
3928         static instance: ::protobuf::rt::LazyV2<RemoveKeyRequest> = ::protobuf::rt::LazyV2::INIT;
3929         instance.get(RemoveKeyRequest::new)
3930     }
3931 }
3932 
3933 impl ::protobuf::Clear for RemoveKeyRequest {
clear(&mut self)3934     fn clear(&mut self) {
3935         self.account_id.clear();
3936         self.authorization_request.clear();
3937         self.key.clear();
3938         self.unknown_fields.clear();
3939     }
3940 }
3941 
3942 impl ::protobuf::reflect::ProtobufValue for RemoveKeyRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3943     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3944         ::protobuf::reflect::ReflectValueRef::Message(self)
3945     }
3946 }
3947 
3948 #[derive(PartialEq,Clone,Default,Debug)]
3949 pub struct RemoveKeyReply {
3950     // message fields
3951     pub error: CryptohomeErrorCode,
3952     // special fields
3953     pub unknown_fields: ::protobuf::UnknownFields,
3954     pub cached_size: ::protobuf::CachedSize,
3955 }
3956 
3957 impl<'a> ::std::default::Default for &'a RemoveKeyReply {
default() -> &'a RemoveKeyReply3958     fn default() -> &'a RemoveKeyReply {
3959         <RemoveKeyReply as ::protobuf::Message>::default_instance()
3960     }
3961 }
3962 
3963 impl RemoveKeyReply {
new() -> RemoveKeyReply3964     pub fn new() -> RemoveKeyReply {
3965         ::std::default::Default::default()
3966     }
3967 
3968     // .user_data_auth.CryptohomeErrorCode error = 1;
3969 
3970 
get_error(&self) -> CryptohomeErrorCode3971     pub fn get_error(&self) -> CryptohomeErrorCode {
3972         self.error
3973     }
clear_error(&mut self)3974     pub fn clear_error(&mut self) {
3975         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
3976     }
3977 
3978     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)3979     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
3980         self.error = v;
3981     }
3982 }
3983 
3984 impl ::protobuf::Message for RemoveKeyReply {
is_initialized(&self) -> bool3985     fn is_initialized(&self) -> bool {
3986         true
3987     }
3988 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>3989     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3990         while !is.eof()? {
3991             let (field_number, wire_type) = is.read_tag_unpack()?;
3992             match field_number {
3993                 1 => {
3994                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
3995                 },
3996                 _ => {
3997                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
3998                 },
3999             };
4000         }
4001         ::std::result::Result::Ok(())
4002     }
4003 
4004     // Compute sizes of nested messages
4005     #[allow(unused_variables)]
compute_size(&self) -> u324006     fn compute_size(&self) -> u32 {
4007         let mut my_size = 0;
4008         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
4009             my_size += ::protobuf::rt::enum_size(1, self.error);
4010         }
4011         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
4012         self.cached_size.set(my_size);
4013         my_size
4014     }
4015 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>4016     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4017         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
4018             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
4019         }
4020         os.write_unknown_fields(self.get_unknown_fields())?;
4021         ::std::result::Result::Ok(())
4022     }
4023 
get_cached_size(&self) -> u324024     fn get_cached_size(&self) -> u32 {
4025         self.cached_size.get()
4026     }
4027 
get_unknown_fields(&self) -> &::protobuf::UnknownFields4028     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
4029         &self.unknown_fields
4030     }
4031 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields4032     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
4033         &mut self.unknown_fields
4034     }
4035 
as_any(&self) -> &dyn (::std::any::Any)4036     fn as_any(&self) -> &dyn (::std::any::Any) {
4037         self as &dyn (::std::any::Any)
4038     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)4039     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
4040         self as &mut dyn (::std::any::Any)
4041     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>4042     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
4043         self
4044     }
4045 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor4046     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
4047         Self::descriptor_static()
4048     }
4049 
new() -> RemoveKeyReply4050     fn new() -> RemoveKeyReply {
4051         RemoveKeyReply::new()
4052     }
4053 
default_instance() -> &'static RemoveKeyReply4054     fn default_instance() -> &'static RemoveKeyReply {
4055         static instance: ::protobuf::rt::LazyV2<RemoveKeyReply> = ::protobuf::rt::LazyV2::INIT;
4056         instance.get(RemoveKeyReply::new)
4057     }
4058 }
4059 
4060 impl ::protobuf::Clear for RemoveKeyReply {
clear(&mut self)4061     fn clear(&mut self) {
4062         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
4063         self.unknown_fields.clear();
4064     }
4065 }
4066 
4067 impl ::protobuf::reflect::ProtobufValue for RemoveKeyReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef4068     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
4069         ::protobuf::reflect::ReflectValueRef::Message(self)
4070     }
4071 }
4072 
4073 #[derive(PartialEq,Clone,Default,Debug)]
4074 pub struct MassRemoveKeysRequest {
4075     // message fields
4076     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
4077     pub authorization_request: ::protobuf::SingularPtrField<super::rpc::AuthorizationRequest>,
4078     pub exempt_key_data: ::protobuf::RepeatedField<super::key::KeyData>,
4079     // special fields
4080     pub unknown_fields: ::protobuf::UnknownFields,
4081     pub cached_size: ::protobuf::CachedSize,
4082 }
4083 
4084 impl<'a> ::std::default::Default for &'a MassRemoveKeysRequest {
default() -> &'a MassRemoveKeysRequest4085     fn default() -> &'a MassRemoveKeysRequest {
4086         <MassRemoveKeysRequest as ::protobuf::Message>::default_instance()
4087     }
4088 }
4089 
4090 impl MassRemoveKeysRequest {
new() -> MassRemoveKeysRequest4091     pub fn new() -> MassRemoveKeysRequest {
4092         ::std::default::Default::default()
4093     }
4094 
4095     // .cryptohome.AccountIdentifier account_id = 1;
4096 
4097 
get_account_id(&self) -> &super::rpc::AccountIdentifier4098     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
4099         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
4100     }
clear_account_id(&mut self)4101     pub fn clear_account_id(&mut self) {
4102         self.account_id.clear();
4103     }
4104 
has_account_id(&self) -> bool4105     pub fn has_account_id(&self) -> bool {
4106         self.account_id.is_some()
4107     }
4108 
4109     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)4110     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
4111         self.account_id = ::protobuf::SingularPtrField::some(v);
4112     }
4113 
4114     // Mutable pointer to the field.
4115     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier4116     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
4117         if self.account_id.is_none() {
4118             self.account_id.set_default();
4119         }
4120         self.account_id.as_mut().unwrap()
4121     }
4122 
4123     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier4124     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
4125         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
4126     }
4127 
4128     // .cryptohome.AuthorizationRequest authorization_request = 2;
4129 
4130 
get_authorization_request(&self) -> &super::rpc::AuthorizationRequest4131     pub fn get_authorization_request(&self) -> &super::rpc::AuthorizationRequest {
4132         self.authorization_request.as_ref().unwrap_or_else(|| <super::rpc::AuthorizationRequest as ::protobuf::Message>::default_instance())
4133     }
clear_authorization_request(&mut self)4134     pub fn clear_authorization_request(&mut self) {
4135         self.authorization_request.clear();
4136     }
4137 
has_authorization_request(&self) -> bool4138     pub fn has_authorization_request(&self) -> bool {
4139         self.authorization_request.is_some()
4140     }
4141 
4142     // Param is passed by value, moved
set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest)4143     pub fn set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest) {
4144         self.authorization_request = ::protobuf::SingularPtrField::some(v);
4145     }
4146 
4147     // Mutable pointer to the field.
4148     // If field is not initialized, it is initialized with default value first.
mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest4149     pub fn mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest {
4150         if self.authorization_request.is_none() {
4151             self.authorization_request.set_default();
4152         }
4153         self.authorization_request.as_mut().unwrap()
4154     }
4155 
4156     // Take field
take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest4157     pub fn take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest {
4158         self.authorization_request.take().unwrap_or_else(|| super::rpc::AuthorizationRequest::new())
4159     }
4160 
4161     // repeated .cryptohome.KeyData exempt_key_data = 3;
4162 
4163 
get_exempt_key_data(&self) -> &[super::key::KeyData]4164     pub fn get_exempt_key_data(&self) -> &[super::key::KeyData] {
4165         &self.exempt_key_data
4166     }
clear_exempt_key_data(&mut self)4167     pub fn clear_exempt_key_data(&mut self) {
4168         self.exempt_key_data.clear();
4169     }
4170 
4171     // Param is passed by value, moved
set_exempt_key_data(&mut self, v: ::protobuf::RepeatedField<super::key::KeyData>)4172     pub fn set_exempt_key_data(&mut self, v: ::protobuf::RepeatedField<super::key::KeyData>) {
4173         self.exempt_key_data = v;
4174     }
4175 
4176     // Mutable pointer to the field.
mut_exempt_key_data(&mut self) -> &mut ::protobuf::RepeatedField<super::key::KeyData>4177     pub fn mut_exempt_key_data(&mut self) -> &mut ::protobuf::RepeatedField<super::key::KeyData> {
4178         &mut self.exempt_key_data
4179     }
4180 
4181     // Take field
take_exempt_key_data(&mut self) -> ::protobuf::RepeatedField<super::key::KeyData>4182     pub fn take_exempt_key_data(&mut self) -> ::protobuf::RepeatedField<super::key::KeyData> {
4183         ::std::mem::replace(&mut self.exempt_key_data, ::protobuf::RepeatedField::new())
4184     }
4185 }
4186 
4187 impl ::protobuf::Message for MassRemoveKeysRequest {
is_initialized(&self) -> bool4188     fn is_initialized(&self) -> bool {
4189         for v in &self.account_id {
4190             if !v.is_initialized() {
4191                 return false;
4192             }
4193         };
4194         for v in &self.authorization_request {
4195             if !v.is_initialized() {
4196                 return false;
4197             }
4198         };
4199         for v in &self.exempt_key_data {
4200             if !v.is_initialized() {
4201                 return false;
4202             }
4203         };
4204         true
4205     }
4206 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>4207     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4208         while !is.eof()? {
4209             let (field_number, wire_type) = is.read_tag_unpack()?;
4210             match field_number {
4211                 1 => {
4212                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
4213                 },
4214                 2 => {
4215                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authorization_request)?;
4216                 },
4217                 3 => {
4218                     ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.exempt_key_data)?;
4219                 },
4220                 _ => {
4221                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
4222                 },
4223             };
4224         }
4225         ::std::result::Result::Ok(())
4226     }
4227 
4228     // Compute sizes of nested messages
4229     #[allow(unused_variables)]
compute_size(&self) -> u324230     fn compute_size(&self) -> u32 {
4231         let mut my_size = 0;
4232         if let Some(ref v) = self.account_id.as_ref() {
4233             let len = v.compute_size();
4234             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
4235         }
4236         if let Some(ref v) = self.authorization_request.as_ref() {
4237             let len = v.compute_size();
4238             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
4239         }
4240         for value in &self.exempt_key_data {
4241             let len = value.compute_size();
4242             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
4243         };
4244         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
4245         self.cached_size.set(my_size);
4246         my_size
4247     }
4248 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>4249     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4250         if let Some(ref v) = self.account_id.as_ref() {
4251             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
4252             os.write_raw_varint32(v.get_cached_size())?;
4253             v.write_to_with_cached_sizes(os)?;
4254         }
4255         if let Some(ref v) = self.authorization_request.as_ref() {
4256             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
4257             os.write_raw_varint32(v.get_cached_size())?;
4258             v.write_to_with_cached_sizes(os)?;
4259         }
4260         for v in &self.exempt_key_data {
4261             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
4262             os.write_raw_varint32(v.get_cached_size())?;
4263             v.write_to_with_cached_sizes(os)?;
4264         };
4265         os.write_unknown_fields(self.get_unknown_fields())?;
4266         ::std::result::Result::Ok(())
4267     }
4268 
get_cached_size(&self) -> u324269     fn get_cached_size(&self) -> u32 {
4270         self.cached_size.get()
4271     }
4272 
get_unknown_fields(&self) -> &::protobuf::UnknownFields4273     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
4274         &self.unknown_fields
4275     }
4276 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields4277     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
4278         &mut self.unknown_fields
4279     }
4280 
as_any(&self) -> &dyn (::std::any::Any)4281     fn as_any(&self) -> &dyn (::std::any::Any) {
4282         self as &dyn (::std::any::Any)
4283     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)4284     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
4285         self as &mut dyn (::std::any::Any)
4286     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>4287     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
4288         self
4289     }
4290 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor4291     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
4292         Self::descriptor_static()
4293     }
4294 
new() -> MassRemoveKeysRequest4295     fn new() -> MassRemoveKeysRequest {
4296         MassRemoveKeysRequest::new()
4297     }
4298 
default_instance() -> &'static MassRemoveKeysRequest4299     fn default_instance() -> &'static MassRemoveKeysRequest {
4300         static instance: ::protobuf::rt::LazyV2<MassRemoveKeysRequest> = ::protobuf::rt::LazyV2::INIT;
4301         instance.get(MassRemoveKeysRequest::new)
4302     }
4303 }
4304 
4305 impl ::protobuf::Clear for MassRemoveKeysRequest {
clear(&mut self)4306     fn clear(&mut self) {
4307         self.account_id.clear();
4308         self.authorization_request.clear();
4309         self.exempt_key_data.clear();
4310         self.unknown_fields.clear();
4311     }
4312 }
4313 
4314 impl ::protobuf::reflect::ProtobufValue for MassRemoveKeysRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef4315     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
4316         ::protobuf::reflect::ReflectValueRef::Message(self)
4317     }
4318 }
4319 
4320 #[derive(PartialEq,Clone,Default,Debug)]
4321 pub struct MassRemoveKeysReply {
4322     // message fields
4323     pub error: CryptohomeErrorCode,
4324     // special fields
4325     pub unknown_fields: ::protobuf::UnknownFields,
4326     pub cached_size: ::protobuf::CachedSize,
4327 }
4328 
4329 impl<'a> ::std::default::Default for &'a MassRemoveKeysReply {
default() -> &'a MassRemoveKeysReply4330     fn default() -> &'a MassRemoveKeysReply {
4331         <MassRemoveKeysReply as ::protobuf::Message>::default_instance()
4332     }
4333 }
4334 
4335 impl MassRemoveKeysReply {
new() -> MassRemoveKeysReply4336     pub fn new() -> MassRemoveKeysReply {
4337         ::std::default::Default::default()
4338     }
4339 
4340     // .user_data_auth.CryptohomeErrorCode error = 1;
4341 
4342 
get_error(&self) -> CryptohomeErrorCode4343     pub fn get_error(&self) -> CryptohomeErrorCode {
4344         self.error
4345     }
clear_error(&mut self)4346     pub fn clear_error(&mut self) {
4347         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
4348     }
4349 
4350     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)4351     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
4352         self.error = v;
4353     }
4354 }
4355 
4356 impl ::protobuf::Message for MassRemoveKeysReply {
is_initialized(&self) -> bool4357     fn is_initialized(&self) -> bool {
4358         true
4359     }
4360 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>4361     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4362         while !is.eof()? {
4363             let (field_number, wire_type) = is.read_tag_unpack()?;
4364             match field_number {
4365                 1 => {
4366                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
4367                 },
4368                 _ => {
4369                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
4370                 },
4371             };
4372         }
4373         ::std::result::Result::Ok(())
4374     }
4375 
4376     // Compute sizes of nested messages
4377     #[allow(unused_variables)]
compute_size(&self) -> u324378     fn compute_size(&self) -> u32 {
4379         let mut my_size = 0;
4380         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
4381             my_size += ::protobuf::rt::enum_size(1, self.error);
4382         }
4383         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
4384         self.cached_size.set(my_size);
4385         my_size
4386     }
4387 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>4388     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4389         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
4390             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
4391         }
4392         os.write_unknown_fields(self.get_unknown_fields())?;
4393         ::std::result::Result::Ok(())
4394     }
4395 
get_cached_size(&self) -> u324396     fn get_cached_size(&self) -> u32 {
4397         self.cached_size.get()
4398     }
4399 
get_unknown_fields(&self) -> &::protobuf::UnknownFields4400     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
4401         &self.unknown_fields
4402     }
4403 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields4404     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
4405         &mut self.unknown_fields
4406     }
4407 
as_any(&self) -> &dyn (::std::any::Any)4408     fn as_any(&self) -> &dyn (::std::any::Any) {
4409         self as &dyn (::std::any::Any)
4410     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)4411     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
4412         self as &mut dyn (::std::any::Any)
4413     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>4414     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
4415         self
4416     }
4417 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor4418     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
4419         Self::descriptor_static()
4420     }
4421 
new() -> MassRemoveKeysReply4422     fn new() -> MassRemoveKeysReply {
4423         MassRemoveKeysReply::new()
4424     }
4425 
default_instance() -> &'static MassRemoveKeysReply4426     fn default_instance() -> &'static MassRemoveKeysReply {
4427         static instance: ::protobuf::rt::LazyV2<MassRemoveKeysReply> = ::protobuf::rt::LazyV2::INIT;
4428         instance.get(MassRemoveKeysReply::new)
4429     }
4430 }
4431 
4432 impl ::protobuf::Clear for MassRemoveKeysReply {
clear(&mut self)4433     fn clear(&mut self) {
4434         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
4435         self.unknown_fields.clear();
4436     }
4437 }
4438 
4439 impl ::protobuf::reflect::ProtobufValue for MassRemoveKeysReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef4440     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
4441         ::protobuf::reflect::ReflectValueRef::Message(self)
4442     }
4443 }
4444 
4445 #[derive(PartialEq,Clone,Default,Debug)]
4446 pub struct MigrateKeyRequest {
4447     // message fields
4448     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
4449     pub authorization_request: ::protobuf::SingularPtrField<super::rpc::AuthorizationRequest>,
4450     pub secret: ::std::vec::Vec<u8>,
4451     // special fields
4452     pub unknown_fields: ::protobuf::UnknownFields,
4453     pub cached_size: ::protobuf::CachedSize,
4454 }
4455 
4456 impl<'a> ::std::default::Default for &'a MigrateKeyRequest {
default() -> &'a MigrateKeyRequest4457     fn default() -> &'a MigrateKeyRequest {
4458         <MigrateKeyRequest as ::protobuf::Message>::default_instance()
4459     }
4460 }
4461 
4462 impl MigrateKeyRequest {
new() -> MigrateKeyRequest4463     pub fn new() -> MigrateKeyRequest {
4464         ::std::default::Default::default()
4465     }
4466 
4467     // .cryptohome.AccountIdentifier account_id = 1;
4468 
4469 
get_account_id(&self) -> &super::rpc::AccountIdentifier4470     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
4471         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
4472     }
clear_account_id(&mut self)4473     pub fn clear_account_id(&mut self) {
4474         self.account_id.clear();
4475     }
4476 
has_account_id(&self) -> bool4477     pub fn has_account_id(&self) -> bool {
4478         self.account_id.is_some()
4479     }
4480 
4481     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)4482     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
4483         self.account_id = ::protobuf::SingularPtrField::some(v);
4484     }
4485 
4486     // Mutable pointer to the field.
4487     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier4488     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
4489         if self.account_id.is_none() {
4490             self.account_id.set_default();
4491         }
4492         self.account_id.as_mut().unwrap()
4493     }
4494 
4495     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier4496     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
4497         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
4498     }
4499 
4500     // .cryptohome.AuthorizationRequest authorization_request = 2;
4501 
4502 
get_authorization_request(&self) -> &super::rpc::AuthorizationRequest4503     pub fn get_authorization_request(&self) -> &super::rpc::AuthorizationRequest {
4504         self.authorization_request.as_ref().unwrap_or_else(|| <super::rpc::AuthorizationRequest as ::protobuf::Message>::default_instance())
4505     }
clear_authorization_request(&mut self)4506     pub fn clear_authorization_request(&mut self) {
4507         self.authorization_request.clear();
4508     }
4509 
has_authorization_request(&self) -> bool4510     pub fn has_authorization_request(&self) -> bool {
4511         self.authorization_request.is_some()
4512     }
4513 
4514     // Param is passed by value, moved
set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest)4515     pub fn set_authorization_request(&mut self, v: super::rpc::AuthorizationRequest) {
4516         self.authorization_request = ::protobuf::SingularPtrField::some(v);
4517     }
4518 
4519     // Mutable pointer to the field.
4520     // If field is not initialized, it is initialized with default value first.
mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest4521     pub fn mut_authorization_request(&mut self) -> &mut super::rpc::AuthorizationRequest {
4522         if self.authorization_request.is_none() {
4523             self.authorization_request.set_default();
4524         }
4525         self.authorization_request.as_mut().unwrap()
4526     }
4527 
4528     // Take field
take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest4529     pub fn take_authorization_request(&mut self) -> super::rpc::AuthorizationRequest {
4530         self.authorization_request.take().unwrap_or_else(|| super::rpc::AuthorizationRequest::new())
4531     }
4532 
4533     // bytes secret = 3;
4534 
4535 
get_secret(&self) -> &[u8]4536     pub fn get_secret(&self) -> &[u8] {
4537         &self.secret
4538     }
clear_secret(&mut self)4539     pub fn clear_secret(&mut self) {
4540         self.secret.clear();
4541     }
4542 
4543     // Param is passed by value, moved
set_secret(&mut self, v: ::std::vec::Vec<u8>)4544     pub fn set_secret(&mut self, v: ::std::vec::Vec<u8>) {
4545         self.secret = v;
4546     }
4547 
4548     // Mutable pointer to the field.
4549     // If field is not initialized, it is initialized with default value first.
mut_secret(&mut self) -> &mut ::std::vec::Vec<u8>4550     pub fn mut_secret(&mut self) -> &mut ::std::vec::Vec<u8> {
4551         &mut self.secret
4552     }
4553 
4554     // Take field
take_secret(&mut self) -> ::std::vec::Vec<u8>4555     pub fn take_secret(&mut self) -> ::std::vec::Vec<u8> {
4556         ::std::mem::replace(&mut self.secret, ::std::vec::Vec::new())
4557     }
4558 }
4559 
4560 impl ::protobuf::Message for MigrateKeyRequest {
is_initialized(&self) -> bool4561     fn is_initialized(&self) -> bool {
4562         for v in &self.account_id {
4563             if !v.is_initialized() {
4564                 return false;
4565             }
4566         };
4567         for v in &self.authorization_request {
4568             if !v.is_initialized() {
4569                 return false;
4570             }
4571         };
4572         true
4573     }
4574 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>4575     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4576         while !is.eof()? {
4577             let (field_number, wire_type) = is.read_tag_unpack()?;
4578             match field_number {
4579                 1 => {
4580                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
4581                 },
4582                 2 => {
4583                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authorization_request)?;
4584                 },
4585                 3 => {
4586                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.secret)?;
4587                 },
4588                 _ => {
4589                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
4590                 },
4591             };
4592         }
4593         ::std::result::Result::Ok(())
4594     }
4595 
4596     // Compute sizes of nested messages
4597     #[allow(unused_variables)]
compute_size(&self) -> u324598     fn compute_size(&self) -> u32 {
4599         let mut my_size = 0;
4600         if let Some(ref v) = self.account_id.as_ref() {
4601             let len = v.compute_size();
4602             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
4603         }
4604         if let Some(ref v) = self.authorization_request.as_ref() {
4605             let len = v.compute_size();
4606             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
4607         }
4608         if !self.secret.is_empty() {
4609             my_size += ::protobuf::rt::bytes_size(3, &self.secret);
4610         }
4611         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
4612         self.cached_size.set(my_size);
4613         my_size
4614     }
4615 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>4616     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4617         if let Some(ref v) = self.account_id.as_ref() {
4618             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
4619             os.write_raw_varint32(v.get_cached_size())?;
4620             v.write_to_with_cached_sizes(os)?;
4621         }
4622         if let Some(ref v) = self.authorization_request.as_ref() {
4623             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
4624             os.write_raw_varint32(v.get_cached_size())?;
4625             v.write_to_with_cached_sizes(os)?;
4626         }
4627         if !self.secret.is_empty() {
4628             os.write_bytes(3, &self.secret)?;
4629         }
4630         os.write_unknown_fields(self.get_unknown_fields())?;
4631         ::std::result::Result::Ok(())
4632     }
4633 
get_cached_size(&self) -> u324634     fn get_cached_size(&self) -> u32 {
4635         self.cached_size.get()
4636     }
4637 
get_unknown_fields(&self) -> &::protobuf::UnknownFields4638     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
4639         &self.unknown_fields
4640     }
4641 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields4642     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
4643         &mut self.unknown_fields
4644     }
4645 
as_any(&self) -> &dyn (::std::any::Any)4646     fn as_any(&self) -> &dyn (::std::any::Any) {
4647         self as &dyn (::std::any::Any)
4648     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)4649     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
4650         self as &mut dyn (::std::any::Any)
4651     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>4652     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
4653         self
4654     }
4655 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor4656     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
4657         Self::descriptor_static()
4658     }
4659 
new() -> MigrateKeyRequest4660     fn new() -> MigrateKeyRequest {
4661         MigrateKeyRequest::new()
4662     }
4663 
default_instance() -> &'static MigrateKeyRequest4664     fn default_instance() -> &'static MigrateKeyRequest {
4665         static instance: ::protobuf::rt::LazyV2<MigrateKeyRequest> = ::protobuf::rt::LazyV2::INIT;
4666         instance.get(MigrateKeyRequest::new)
4667     }
4668 }
4669 
4670 impl ::protobuf::Clear for MigrateKeyRequest {
clear(&mut self)4671     fn clear(&mut self) {
4672         self.account_id.clear();
4673         self.authorization_request.clear();
4674         self.secret.clear();
4675         self.unknown_fields.clear();
4676     }
4677 }
4678 
4679 impl ::protobuf::reflect::ProtobufValue for MigrateKeyRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef4680     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
4681         ::protobuf::reflect::ReflectValueRef::Message(self)
4682     }
4683 }
4684 
4685 #[derive(PartialEq,Clone,Default,Debug)]
4686 pub struct MigrateKeyReply {
4687     // message fields
4688     pub error: CryptohomeErrorCode,
4689     // special fields
4690     pub unknown_fields: ::protobuf::UnknownFields,
4691     pub cached_size: ::protobuf::CachedSize,
4692 }
4693 
4694 impl<'a> ::std::default::Default for &'a MigrateKeyReply {
default() -> &'a MigrateKeyReply4695     fn default() -> &'a MigrateKeyReply {
4696         <MigrateKeyReply as ::protobuf::Message>::default_instance()
4697     }
4698 }
4699 
4700 impl MigrateKeyReply {
new() -> MigrateKeyReply4701     pub fn new() -> MigrateKeyReply {
4702         ::std::default::Default::default()
4703     }
4704 
4705     // .user_data_auth.CryptohomeErrorCode error = 1;
4706 
4707 
get_error(&self) -> CryptohomeErrorCode4708     pub fn get_error(&self) -> CryptohomeErrorCode {
4709         self.error
4710     }
clear_error(&mut self)4711     pub fn clear_error(&mut self) {
4712         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
4713     }
4714 
4715     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)4716     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
4717         self.error = v;
4718     }
4719 }
4720 
4721 impl ::protobuf::Message for MigrateKeyReply {
is_initialized(&self) -> bool4722     fn is_initialized(&self) -> bool {
4723         true
4724     }
4725 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>4726     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4727         while !is.eof()? {
4728             let (field_number, wire_type) = is.read_tag_unpack()?;
4729             match field_number {
4730                 1 => {
4731                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
4732                 },
4733                 _ => {
4734                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
4735                 },
4736             };
4737         }
4738         ::std::result::Result::Ok(())
4739     }
4740 
4741     // Compute sizes of nested messages
4742     #[allow(unused_variables)]
compute_size(&self) -> u324743     fn compute_size(&self) -> u32 {
4744         let mut my_size = 0;
4745         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
4746             my_size += ::protobuf::rt::enum_size(1, self.error);
4747         }
4748         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
4749         self.cached_size.set(my_size);
4750         my_size
4751     }
4752 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>4753     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4754         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
4755             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
4756         }
4757         os.write_unknown_fields(self.get_unknown_fields())?;
4758         ::std::result::Result::Ok(())
4759     }
4760 
get_cached_size(&self) -> u324761     fn get_cached_size(&self) -> u32 {
4762         self.cached_size.get()
4763     }
4764 
get_unknown_fields(&self) -> &::protobuf::UnknownFields4765     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
4766         &self.unknown_fields
4767     }
4768 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields4769     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
4770         &mut self.unknown_fields
4771     }
4772 
as_any(&self) -> &dyn (::std::any::Any)4773     fn as_any(&self) -> &dyn (::std::any::Any) {
4774         self as &dyn (::std::any::Any)
4775     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)4776     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
4777         self as &mut dyn (::std::any::Any)
4778     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>4779     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
4780         self
4781     }
4782 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor4783     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
4784         Self::descriptor_static()
4785     }
4786 
new() -> MigrateKeyReply4787     fn new() -> MigrateKeyReply {
4788         MigrateKeyReply::new()
4789     }
4790 
default_instance() -> &'static MigrateKeyReply4791     fn default_instance() -> &'static MigrateKeyReply {
4792         static instance: ::protobuf::rt::LazyV2<MigrateKeyReply> = ::protobuf::rt::LazyV2::INIT;
4793         instance.get(MigrateKeyReply::new)
4794     }
4795 }
4796 
4797 impl ::protobuf::Clear for MigrateKeyReply {
clear(&mut self)4798     fn clear(&mut self) {
4799         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
4800         self.unknown_fields.clear();
4801     }
4802 }
4803 
4804 impl ::protobuf::reflect::ProtobufValue for MigrateKeyReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef4805     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
4806         ::protobuf::reflect::ReflectValueRef::Message(self)
4807     }
4808 }
4809 
4810 #[derive(PartialEq,Clone,Default,Debug)]
4811 pub struct StartFingerprintAuthSessionRequest {
4812     // message fields
4813     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
4814     // special fields
4815     pub unknown_fields: ::protobuf::UnknownFields,
4816     pub cached_size: ::protobuf::CachedSize,
4817 }
4818 
4819 impl<'a> ::std::default::Default for &'a StartFingerprintAuthSessionRequest {
default() -> &'a StartFingerprintAuthSessionRequest4820     fn default() -> &'a StartFingerprintAuthSessionRequest {
4821         <StartFingerprintAuthSessionRequest as ::protobuf::Message>::default_instance()
4822     }
4823 }
4824 
4825 impl StartFingerprintAuthSessionRequest {
new() -> StartFingerprintAuthSessionRequest4826     pub fn new() -> StartFingerprintAuthSessionRequest {
4827         ::std::default::Default::default()
4828     }
4829 
4830     // .cryptohome.AccountIdentifier account_id = 1;
4831 
4832 
get_account_id(&self) -> &super::rpc::AccountIdentifier4833     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
4834         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
4835     }
clear_account_id(&mut self)4836     pub fn clear_account_id(&mut self) {
4837         self.account_id.clear();
4838     }
4839 
has_account_id(&self) -> bool4840     pub fn has_account_id(&self) -> bool {
4841         self.account_id.is_some()
4842     }
4843 
4844     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)4845     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
4846         self.account_id = ::protobuf::SingularPtrField::some(v);
4847     }
4848 
4849     // Mutable pointer to the field.
4850     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier4851     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
4852         if self.account_id.is_none() {
4853             self.account_id.set_default();
4854         }
4855         self.account_id.as_mut().unwrap()
4856     }
4857 
4858     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier4859     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
4860         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
4861     }
4862 }
4863 
4864 impl ::protobuf::Message for StartFingerprintAuthSessionRequest {
is_initialized(&self) -> bool4865     fn is_initialized(&self) -> bool {
4866         for v in &self.account_id {
4867             if !v.is_initialized() {
4868                 return false;
4869             }
4870         };
4871         true
4872     }
4873 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>4874     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4875         while !is.eof()? {
4876             let (field_number, wire_type) = is.read_tag_unpack()?;
4877             match field_number {
4878                 1 => {
4879                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
4880                 },
4881                 _ => {
4882                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
4883                 },
4884             };
4885         }
4886         ::std::result::Result::Ok(())
4887     }
4888 
4889     // Compute sizes of nested messages
4890     #[allow(unused_variables)]
compute_size(&self) -> u324891     fn compute_size(&self) -> u32 {
4892         let mut my_size = 0;
4893         if let Some(ref v) = self.account_id.as_ref() {
4894             let len = v.compute_size();
4895             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
4896         }
4897         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
4898         self.cached_size.set(my_size);
4899         my_size
4900     }
4901 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>4902     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4903         if let Some(ref v) = self.account_id.as_ref() {
4904             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
4905             os.write_raw_varint32(v.get_cached_size())?;
4906             v.write_to_with_cached_sizes(os)?;
4907         }
4908         os.write_unknown_fields(self.get_unknown_fields())?;
4909         ::std::result::Result::Ok(())
4910     }
4911 
get_cached_size(&self) -> u324912     fn get_cached_size(&self) -> u32 {
4913         self.cached_size.get()
4914     }
4915 
get_unknown_fields(&self) -> &::protobuf::UnknownFields4916     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
4917         &self.unknown_fields
4918     }
4919 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields4920     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
4921         &mut self.unknown_fields
4922     }
4923 
as_any(&self) -> &dyn (::std::any::Any)4924     fn as_any(&self) -> &dyn (::std::any::Any) {
4925         self as &dyn (::std::any::Any)
4926     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)4927     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
4928         self as &mut dyn (::std::any::Any)
4929     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>4930     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
4931         self
4932     }
4933 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor4934     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
4935         Self::descriptor_static()
4936     }
4937 
new() -> StartFingerprintAuthSessionRequest4938     fn new() -> StartFingerprintAuthSessionRequest {
4939         StartFingerprintAuthSessionRequest::new()
4940     }
4941 
default_instance() -> &'static StartFingerprintAuthSessionRequest4942     fn default_instance() -> &'static StartFingerprintAuthSessionRequest {
4943         static instance: ::protobuf::rt::LazyV2<StartFingerprintAuthSessionRequest> = ::protobuf::rt::LazyV2::INIT;
4944         instance.get(StartFingerprintAuthSessionRequest::new)
4945     }
4946 }
4947 
4948 impl ::protobuf::Clear for StartFingerprintAuthSessionRequest {
clear(&mut self)4949     fn clear(&mut self) {
4950         self.account_id.clear();
4951         self.unknown_fields.clear();
4952     }
4953 }
4954 
4955 impl ::protobuf::reflect::ProtobufValue for StartFingerprintAuthSessionRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef4956     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
4957         ::protobuf::reflect::ReflectValueRef::Message(self)
4958     }
4959 }
4960 
4961 #[derive(PartialEq,Clone,Default,Debug)]
4962 pub struct StartFingerprintAuthSessionReply {
4963     // message fields
4964     pub error: CryptohomeErrorCode,
4965     // special fields
4966     pub unknown_fields: ::protobuf::UnknownFields,
4967     pub cached_size: ::protobuf::CachedSize,
4968 }
4969 
4970 impl<'a> ::std::default::Default for &'a StartFingerprintAuthSessionReply {
default() -> &'a StartFingerprintAuthSessionReply4971     fn default() -> &'a StartFingerprintAuthSessionReply {
4972         <StartFingerprintAuthSessionReply as ::protobuf::Message>::default_instance()
4973     }
4974 }
4975 
4976 impl StartFingerprintAuthSessionReply {
new() -> StartFingerprintAuthSessionReply4977     pub fn new() -> StartFingerprintAuthSessionReply {
4978         ::std::default::Default::default()
4979     }
4980 
4981     // .user_data_auth.CryptohomeErrorCode error = 1;
4982 
4983 
get_error(&self) -> CryptohomeErrorCode4984     pub fn get_error(&self) -> CryptohomeErrorCode {
4985         self.error
4986     }
clear_error(&mut self)4987     pub fn clear_error(&mut self) {
4988         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
4989     }
4990 
4991     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)4992     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
4993         self.error = v;
4994     }
4995 }
4996 
4997 impl ::protobuf::Message for StartFingerprintAuthSessionReply {
is_initialized(&self) -> bool4998     fn is_initialized(&self) -> bool {
4999         true
5000     }
5001 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>5002     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5003         while !is.eof()? {
5004             let (field_number, wire_type) = is.read_tag_unpack()?;
5005             match field_number {
5006                 1 => {
5007                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
5008                 },
5009                 _ => {
5010                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
5011                 },
5012             };
5013         }
5014         ::std::result::Result::Ok(())
5015     }
5016 
5017     // Compute sizes of nested messages
5018     #[allow(unused_variables)]
compute_size(&self) -> u325019     fn compute_size(&self) -> u32 {
5020         let mut my_size = 0;
5021         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
5022             my_size += ::protobuf::rt::enum_size(1, self.error);
5023         }
5024         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
5025         self.cached_size.set(my_size);
5026         my_size
5027     }
5028 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>5029     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5030         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
5031             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
5032         }
5033         os.write_unknown_fields(self.get_unknown_fields())?;
5034         ::std::result::Result::Ok(())
5035     }
5036 
get_cached_size(&self) -> u325037     fn get_cached_size(&self) -> u32 {
5038         self.cached_size.get()
5039     }
5040 
get_unknown_fields(&self) -> &::protobuf::UnknownFields5041     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
5042         &self.unknown_fields
5043     }
5044 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields5045     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
5046         &mut self.unknown_fields
5047     }
5048 
as_any(&self) -> &dyn (::std::any::Any)5049     fn as_any(&self) -> &dyn (::std::any::Any) {
5050         self as &dyn (::std::any::Any)
5051     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)5052     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
5053         self as &mut dyn (::std::any::Any)
5054     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>5055     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
5056         self
5057     }
5058 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor5059     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
5060         Self::descriptor_static()
5061     }
5062 
new() -> StartFingerprintAuthSessionReply5063     fn new() -> StartFingerprintAuthSessionReply {
5064         StartFingerprintAuthSessionReply::new()
5065     }
5066 
default_instance() -> &'static StartFingerprintAuthSessionReply5067     fn default_instance() -> &'static StartFingerprintAuthSessionReply {
5068         static instance: ::protobuf::rt::LazyV2<StartFingerprintAuthSessionReply> = ::protobuf::rt::LazyV2::INIT;
5069         instance.get(StartFingerprintAuthSessionReply::new)
5070     }
5071 }
5072 
5073 impl ::protobuf::Clear for StartFingerprintAuthSessionReply {
clear(&mut self)5074     fn clear(&mut self) {
5075         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
5076         self.unknown_fields.clear();
5077     }
5078 }
5079 
5080 impl ::protobuf::reflect::ProtobufValue for StartFingerprintAuthSessionReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef5081     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
5082         ::protobuf::reflect::ReflectValueRef::Message(self)
5083     }
5084 }
5085 
5086 #[derive(PartialEq,Clone,Default,Debug)]
5087 pub struct EndFingerprintAuthSessionRequest {
5088     // special fields
5089     pub unknown_fields: ::protobuf::UnknownFields,
5090     pub cached_size: ::protobuf::CachedSize,
5091 }
5092 
5093 impl<'a> ::std::default::Default for &'a EndFingerprintAuthSessionRequest {
default() -> &'a EndFingerprintAuthSessionRequest5094     fn default() -> &'a EndFingerprintAuthSessionRequest {
5095         <EndFingerprintAuthSessionRequest as ::protobuf::Message>::default_instance()
5096     }
5097 }
5098 
5099 impl EndFingerprintAuthSessionRequest {
new() -> EndFingerprintAuthSessionRequest5100     pub fn new() -> EndFingerprintAuthSessionRequest {
5101         ::std::default::Default::default()
5102     }
5103 }
5104 
5105 impl ::protobuf::Message for EndFingerprintAuthSessionRequest {
is_initialized(&self) -> bool5106     fn is_initialized(&self) -> bool {
5107         true
5108     }
5109 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>5110     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5111         while !is.eof()? {
5112             let (field_number, wire_type) = is.read_tag_unpack()?;
5113             match field_number {
5114                 _ => {
5115                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
5116                 },
5117             };
5118         }
5119         ::std::result::Result::Ok(())
5120     }
5121 
5122     // Compute sizes of nested messages
5123     #[allow(unused_variables)]
compute_size(&self) -> u325124     fn compute_size(&self) -> u32 {
5125         let mut my_size = 0;
5126         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
5127         self.cached_size.set(my_size);
5128         my_size
5129     }
5130 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>5131     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5132         os.write_unknown_fields(self.get_unknown_fields())?;
5133         ::std::result::Result::Ok(())
5134     }
5135 
get_cached_size(&self) -> u325136     fn get_cached_size(&self) -> u32 {
5137         self.cached_size.get()
5138     }
5139 
get_unknown_fields(&self) -> &::protobuf::UnknownFields5140     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
5141         &self.unknown_fields
5142     }
5143 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields5144     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
5145         &mut self.unknown_fields
5146     }
5147 
as_any(&self) -> &dyn (::std::any::Any)5148     fn as_any(&self) -> &dyn (::std::any::Any) {
5149         self as &dyn (::std::any::Any)
5150     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)5151     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
5152         self as &mut dyn (::std::any::Any)
5153     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>5154     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
5155         self
5156     }
5157 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor5158     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
5159         Self::descriptor_static()
5160     }
5161 
new() -> EndFingerprintAuthSessionRequest5162     fn new() -> EndFingerprintAuthSessionRequest {
5163         EndFingerprintAuthSessionRequest::new()
5164     }
5165 
default_instance() -> &'static EndFingerprintAuthSessionRequest5166     fn default_instance() -> &'static EndFingerprintAuthSessionRequest {
5167         static instance: ::protobuf::rt::LazyV2<EndFingerprintAuthSessionRequest> = ::protobuf::rt::LazyV2::INIT;
5168         instance.get(EndFingerprintAuthSessionRequest::new)
5169     }
5170 }
5171 
5172 impl ::protobuf::Clear for EndFingerprintAuthSessionRequest {
clear(&mut self)5173     fn clear(&mut self) {
5174         self.unknown_fields.clear();
5175     }
5176 }
5177 
5178 impl ::protobuf::reflect::ProtobufValue for EndFingerprintAuthSessionRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef5179     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
5180         ::protobuf::reflect::ReflectValueRef::Message(self)
5181     }
5182 }
5183 
5184 #[derive(PartialEq,Clone,Default,Debug)]
5185 pub struct EndFingerprintAuthSessionReply {
5186     // message fields
5187     pub error: CryptohomeErrorCode,
5188     // special fields
5189     pub unknown_fields: ::protobuf::UnknownFields,
5190     pub cached_size: ::protobuf::CachedSize,
5191 }
5192 
5193 impl<'a> ::std::default::Default for &'a EndFingerprintAuthSessionReply {
default() -> &'a EndFingerprintAuthSessionReply5194     fn default() -> &'a EndFingerprintAuthSessionReply {
5195         <EndFingerprintAuthSessionReply as ::protobuf::Message>::default_instance()
5196     }
5197 }
5198 
5199 impl EndFingerprintAuthSessionReply {
new() -> EndFingerprintAuthSessionReply5200     pub fn new() -> EndFingerprintAuthSessionReply {
5201         ::std::default::Default::default()
5202     }
5203 
5204     // .user_data_auth.CryptohomeErrorCode error = 1;
5205 
5206 
get_error(&self) -> CryptohomeErrorCode5207     pub fn get_error(&self) -> CryptohomeErrorCode {
5208         self.error
5209     }
clear_error(&mut self)5210     pub fn clear_error(&mut self) {
5211         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
5212     }
5213 
5214     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)5215     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
5216         self.error = v;
5217     }
5218 }
5219 
5220 impl ::protobuf::Message for EndFingerprintAuthSessionReply {
is_initialized(&self) -> bool5221     fn is_initialized(&self) -> bool {
5222         true
5223     }
5224 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>5225     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5226         while !is.eof()? {
5227             let (field_number, wire_type) = is.read_tag_unpack()?;
5228             match field_number {
5229                 1 => {
5230                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
5231                 },
5232                 _ => {
5233                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
5234                 },
5235             };
5236         }
5237         ::std::result::Result::Ok(())
5238     }
5239 
5240     // Compute sizes of nested messages
5241     #[allow(unused_variables)]
compute_size(&self) -> u325242     fn compute_size(&self) -> u32 {
5243         let mut my_size = 0;
5244         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
5245             my_size += ::protobuf::rt::enum_size(1, self.error);
5246         }
5247         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
5248         self.cached_size.set(my_size);
5249         my_size
5250     }
5251 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>5252     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5253         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
5254             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
5255         }
5256         os.write_unknown_fields(self.get_unknown_fields())?;
5257         ::std::result::Result::Ok(())
5258     }
5259 
get_cached_size(&self) -> u325260     fn get_cached_size(&self) -> u32 {
5261         self.cached_size.get()
5262     }
5263 
get_unknown_fields(&self) -> &::protobuf::UnknownFields5264     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
5265         &self.unknown_fields
5266     }
5267 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields5268     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
5269         &mut self.unknown_fields
5270     }
5271 
as_any(&self) -> &dyn (::std::any::Any)5272     fn as_any(&self) -> &dyn (::std::any::Any) {
5273         self as &dyn (::std::any::Any)
5274     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)5275     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
5276         self as &mut dyn (::std::any::Any)
5277     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>5278     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
5279         self
5280     }
5281 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor5282     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
5283         Self::descriptor_static()
5284     }
5285 
new() -> EndFingerprintAuthSessionReply5286     fn new() -> EndFingerprintAuthSessionReply {
5287         EndFingerprintAuthSessionReply::new()
5288     }
5289 
default_instance() -> &'static EndFingerprintAuthSessionReply5290     fn default_instance() -> &'static EndFingerprintAuthSessionReply {
5291         static instance: ::protobuf::rt::LazyV2<EndFingerprintAuthSessionReply> = ::protobuf::rt::LazyV2::INIT;
5292         instance.get(EndFingerprintAuthSessionReply::new)
5293     }
5294 }
5295 
5296 impl ::protobuf::Clear for EndFingerprintAuthSessionReply {
clear(&mut self)5297     fn clear(&mut self) {
5298         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
5299         self.unknown_fields.clear();
5300     }
5301 }
5302 
5303 impl ::protobuf::reflect::ProtobufValue for EndFingerprintAuthSessionReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef5304     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
5305         ::protobuf::reflect::ReflectValueRef::Message(self)
5306     }
5307 }
5308 
5309 #[derive(PartialEq,Clone,Default,Debug)]
5310 pub struct GetWebAuthnSecretRequest {
5311     // message fields
5312     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
5313     // special fields
5314     pub unknown_fields: ::protobuf::UnknownFields,
5315     pub cached_size: ::protobuf::CachedSize,
5316 }
5317 
5318 impl<'a> ::std::default::Default for &'a GetWebAuthnSecretRequest {
default() -> &'a GetWebAuthnSecretRequest5319     fn default() -> &'a GetWebAuthnSecretRequest {
5320         <GetWebAuthnSecretRequest as ::protobuf::Message>::default_instance()
5321     }
5322 }
5323 
5324 impl GetWebAuthnSecretRequest {
new() -> GetWebAuthnSecretRequest5325     pub fn new() -> GetWebAuthnSecretRequest {
5326         ::std::default::Default::default()
5327     }
5328 
5329     // .cryptohome.AccountIdentifier account_id = 1;
5330 
5331 
get_account_id(&self) -> &super::rpc::AccountIdentifier5332     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
5333         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
5334     }
clear_account_id(&mut self)5335     pub fn clear_account_id(&mut self) {
5336         self.account_id.clear();
5337     }
5338 
has_account_id(&self) -> bool5339     pub fn has_account_id(&self) -> bool {
5340         self.account_id.is_some()
5341     }
5342 
5343     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)5344     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
5345         self.account_id = ::protobuf::SingularPtrField::some(v);
5346     }
5347 
5348     // Mutable pointer to the field.
5349     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier5350     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
5351         if self.account_id.is_none() {
5352             self.account_id.set_default();
5353         }
5354         self.account_id.as_mut().unwrap()
5355     }
5356 
5357     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier5358     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
5359         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
5360     }
5361 }
5362 
5363 impl ::protobuf::Message for GetWebAuthnSecretRequest {
is_initialized(&self) -> bool5364     fn is_initialized(&self) -> bool {
5365         for v in &self.account_id {
5366             if !v.is_initialized() {
5367                 return false;
5368             }
5369         };
5370         true
5371     }
5372 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>5373     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5374         while !is.eof()? {
5375             let (field_number, wire_type) = is.read_tag_unpack()?;
5376             match field_number {
5377                 1 => {
5378                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
5379                 },
5380                 _ => {
5381                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
5382                 },
5383             };
5384         }
5385         ::std::result::Result::Ok(())
5386     }
5387 
5388     // Compute sizes of nested messages
5389     #[allow(unused_variables)]
compute_size(&self) -> u325390     fn compute_size(&self) -> u32 {
5391         let mut my_size = 0;
5392         if let Some(ref v) = self.account_id.as_ref() {
5393             let len = v.compute_size();
5394             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
5395         }
5396         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
5397         self.cached_size.set(my_size);
5398         my_size
5399     }
5400 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>5401     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5402         if let Some(ref v) = self.account_id.as_ref() {
5403             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
5404             os.write_raw_varint32(v.get_cached_size())?;
5405             v.write_to_with_cached_sizes(os)?;
5406         }
5407         os.write_unknown_fields(self.get_unknown_fields())?;
5408         ::std::result::Result::Ok(())
5409     }
5410 
get_cached_size(&self) -> u325411     fn get_cached_size(&self) -> u32 {
5412         self.cached_size.get()
5413     }
5414 
get_unknown_fields(&self) -> &::protobuf::UnknownFields5415     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
5416         &self.unknown_fields
5417     }
5418 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields5419     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
5420         &mut self.unknown_fields
5421     }
5422 
as_any(&self) -> &dyn (::std::any::Any)5423     fn as_any(&self) -> &dyn (::std::any::Any) {
5424         self as &dyn (::std::any::Any)
5425     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)5426     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
5427         self as &mut dyn (::std::any::Any)
5428     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>5429     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
5430         self
5431     }
5432 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor5433     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
5434         Self::descriptor_static()
5435     }
5436 
new() -> GetWebAuthnSecretRequest5437     fn new() -> GetWebAuthnSecretRequest {
5438         GetWebAuthnSecretRequest::new()
5439     }
5440 
default_instance() -> &'static GetWebAuthnSecretRequest5441     fn default_instance() -> &'static GetWebAuthnSecretRequest {
5442         static instance: ::protobuf::rt::LazyV2<GetWebAuthnSecretRequest> = ::protobuf::rt::LazyV2::INIT;
5443         instance.get(GetWebAuthnSecretRequest::new)
5444     }
5445 }
5446 
5447 impl ::protobuf::Clear for GetWebAuthnSecretRequest {
clear(&mut self)5448     fn clear(&mut self) {
5449         self.account_id.clear();
5450         self.unknown_fields.clear();
5451     }
5452 }
5453 
5454 impl ::protobuf::reflect::ProtobufValue for GetWebAuthnSecretRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef5455     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
5456         ::protobuf::reflect::ReflectValueRef::Message(self)
5457     }
5458 }
5459 
5460 #[derive(PartialEq,Clone,Default,Debug)]
5461 pub struct GetWebAuthnSecretReply {
5462     // message fields
5463     pub error: CryptohomeErrorCode,
5464     pub webauthn_secret: ::std::vec::Vec<u8>,
5465     // special fields
5466     pub unknown_fields: ::protobuf::UnknownFields,
5467     pub cached_size: ::protobuf::CachedSize,
5468 }
5469 
5470 impl<'a> ::std::default::Default for &'a GetWebAuthnSecretReply {
default() -> &'a GetWebAuthnSecretReply5471     fn default() -> &'a GetWebAuthnSecretReply {
5472         <GetWebAuthnSecretReply as ::protobuf::Message>::default_instance()
5473     }
5474 }
5475 
5476 impl GetWebAuthnSecretReply {
new() -> GetWebAuthnSecretReply5477     pub fn new() -> GetWebAuthnSecretReply {
5478         ::std::default::Default::default()
5479     }
5480 
5481     // .user_data_auth.CryptohomeErrorCode error = 1;
5482 
5483 
get_error(&self) -> CryptohomeErrorCode5484     pub fn get_error(&self) -> CryptohomeErrorCode {
5485         self.error
5486     }
clear_error(&mut self)5487     pub fn clear_error(&mut self) {
5488         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
5489     }
5490 
5491     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)5492     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
5493         self.error = v;
5494     }
5495 
5496     // bytes webauthn_secret = 2;
5497 
5498 
get_webauthn_secret(&self) -> &[u8]5499     pub fn get_webauthn_secret(&self) -> &[u8] {
5500         &self.webauthn_secret
5501     }
clear_webauthn_secret(&mut self)5502     pub fn clear_webauthn_secret(&mut self) {
5503         self.webauthn_secret.clear();
5504     }
5505 
5506     // Param is passed by value, moved
set_webauthn_secret(&mut self, v: ::std::vec::Vec<u8>)5507     pub fn set_webauthn_secret(&mut self, v: ::std::vec::Vec<u8>) {
5508         self.webauthn_secret = v;
5509     }
5510 
5511     // Mutable pointer to the field.
5512     // If field is not initialized, it is initialized with default value first.
mut_webauthn_secret(&mut self) -> &mut ::std::vec::Vec<u8>5513     pub fn mut_webauthn_secret(&mut self) -> &mut ::std::vec::Vec<u8> {
5514         &mut self.webauthn_secret
5515     }
5516 
5517     // Take field
take_webauthn_secret(&mut self) -> ::std::vec::Vec<u8>5518     pub fn take_webauthn_secret(&mut self) -> ::std::vec::Vec<u8> {
5519         ::std::mem::replace(&mut self.webauthn_secret, ::std::vec::Vec::new())
5520     }
5521 }
5522 
5523 impl ::protobuf::Message for GetWebAuthnSecretReply {
is_initialized(&self) -> bool5524     fn is_initialized(&self) -> bool {
5525         true
5526     }
5527 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>5528     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5529         while !is.eof()? {
5530             let (field_number, wire_type) = is.read_tag_unpack()?;
5531             match field_number {
5532                 1 => {
5533                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
5534                 },
5535                 2 => {
5536                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.webauthn_secret)?;
5537                 },
5538                 _ => {
5539                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
5540                 },
5541             };
5542         }
5543         ::std::result::Result::Ok(())
5544     }
5545 
5546     // Compute sizes of nested messages
5547     #[allow(unused_variables)]
compute_size(&self) -> u325548     fn compute_size(&self) -> u32 {
5549         let mut my_size = 0;
5550         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
5551             my_size += ::protobuf::rt::enum_size(1, self.error);
5552         }
5553         if !self.webauthn_secret.is_empty() {
5554             my_size += ::protobuf::rt::bytes_size(2, &self.webauthn_secret);
5555         }
5556         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
5557         self.cached_size.set(my_size);
5558         my_size
5559     }
5560 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>5561     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5562         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
5563             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
5564         }
5565         if !self.webauthn_secret.is_empty() {
5566             os.write_bytes(2, &self.webauthn_secret)?;
5567         }
5568         os.write_unknown_fields(self.get_unknown_fields())?;
5569         ::std::result::Result::Ok(())
5570     }
5571 
get_cached_size(&self) -> u325572     fn get_cached_size(&self) -> u32 {
5573         self.cached_size.get()
5574     }
5575 
get_unknown_fields(&self) -> &::protobuf::UnknownFields5576     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
5577         &self.unknown_fields
5578     }
5579 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields5580     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
5581         &mut self.unknown_fields
5582     }
5583 
as_any(&self) -> &dyn (::std::any::Any)5584     fn as_any(&self) -> &dyn (::std::any::Any) {
5585         self as &dyn (::std::any::Any)
5586     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)5587     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
5588         self as &mut dyn (::std::any::Any)
5589     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>5590     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
5591         self
5592     }
5593 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor5594     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
5595         Self::descriptor_static()
5596     }
5597 
new() -> GetWebAuthnSecretReply5598     fn new() -> GetWebAuthnSecretReply {
5599         GetWebAuthnSecretReply::new()
5600     }
5601 
default_instance() -> &'static GetWebAuthnSecretReply5602     fn default_instance() -> &'static GetWebAuthnSecretReply {
5603         static instance: ::protobuf::rt::LazyV2<GetWebAuthnSecretReply> = ::protobuf::rt::LazyV2::INIT;
5604         instance.get(GetWebAuthnSecretReply::new)
5605     }
5606 }
5607 
5608 impl ::protobuf::Clear for GetWebAuthnSecretReply {
clear(&mut self)5609     fn clear(&mut self) {
5610         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
5611         self.webauthn_secret.clear();
5612         self.unknown_fields.clear();
5613     }
5614 }
5615 
5616 impl ::protobuf::reflect::ProtobufValue for GetWebAuthnSecretReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef5617     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
5618         ::protobuf::reflect::ReflectValueRef::Message(self)
5619     }
5620 }
5621 
5622 #[derive(PartialEq,Clone,Default,Debug)]
5623 pub struct GetWebAuthnSecretHashRequest {
5624     // message fields
5625     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
5626     // special fields
5627     pub unknown_fields: ::protobuf::UnknownFields,
5628     pub cached_size: ::protobuf::CachedSize,
5629 }
5630 
5631 impl<'a> ::std::default::Default for &'a GetWebAuthnSecretHashRequest {
default() -> &'a GetWebAuthnSecretHashRequest5632     fn default() -> &'a GetWebAuthnSecretHashRequest {
5633         <GetWebAuthnSecretHashRequest as ::protobuf::Message>::default_instance()
5634     }
5635 }
5636 
5637 impl GetWebAuthnSecretHashRequest {
new() -> GetWebAuthnSecretHashRequest5638     pub fn new() -> GetWebAuthnSecretHashRequest {
5639         ::std::default::Default::default()
5640     }
5641 
5642     // .cryptohome.AccountIdentifier account_id = 1;
5643 
5644 
get_account_id(&self) -> &super::rpc::AccountIdentifier5645     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
5646         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
5647     }
clear_account_id(&mut self)5648     pub fn clear_account_id(&mut self) {
5649         self.account_id.clear();
5650     }
5651 
has_account_id(&self) -> bool5652     pub fn has_account_id(&self) -> bool {
5653         self.account_id.is_some()
5654     }
5655 
5656     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)5657     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
5658         self.account_id = ::protobuf::SingularPtrField::some(v);
5659     }
5660 
5661     // Mutable pointer to the field.
5662     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier5663     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
5664         if self.account_id.is_none() {
5665             self.account_id.set_default();
5666         }
5667         self.account_id.as_mut().unwrap()
5668     }
5669 
5670     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier5671     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
5672         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
5673     }
5674 }
5675 
5676 impl ::protobuf::Message for GetWebAuthnSecretHashRequest {
is_initialized(&self) -> bool5677     fn is_initialized(&self) -> bool {
5678         for v in &self.account_id {
5679             if !v.is_initialized() {
5680                 return false;
5681             }
5682         };
5683         true
5684     }
5685 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>5686     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5687         while !is.eof()? {
5688             let (field_number, wire_type) = is.read_tag_unpack()?;
5689             match field_number {
5690                 1 => {
5691                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
5692                 },
5693                 _ => {
5694                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
5695                 },
5696             };
5697         }
5698         ::std::result::Result::Ok(())
5699     }
5700 
5701     // Compute sizes of nested messages
5702     #[allow(unused_variables)]
compute_size(&self) -> u325703     fn compute_size(&self) -> u32 {
5704         let mut my_size = 0;
5705         if let Some(ref v) = self.account_id.as_ref() {
5706             let len = v.compute_size();
5707             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
5708         }
5709         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
5710         self.cached_size.set(my_size);
5711         my_size
5712     }
5713 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>5714     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5715         if let Some(ref v) = self.account_id.as_ref() {
5716             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
5717             os.write_raw_varint32(v.get_cached_size())?;
5718             v.write_to_with_cached_sizes(os)?;
5719         }
5720         os.write_unknown_fields(self.get_unknown_fields())?;
5721         ::std::result::Result::Ok(())
5722     }
5723 
get_cached_size(&self) -> u325724     fn get_cached_size(&self) -> u32 {
5725         self.cached_size.get()
5726     }
5727 
get_unknown_fields(&self) -> &::protobuf::UnknownFields5728     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
5729         &self.unknown_fields
5730     }
5731 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields5732     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
5733         &mut self.unknown_fields
5734     }
5735 
as_any(&self) -> &dyn (::std::any::Any)5736     fn as_any(&self) -> &dyn (::std::any::Any) {
5737         self as &dyn (::std::any::Any)
5738     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)5739     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
5740         self as &mut dyn (::std::any::Any)
5741     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>5742     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
5743         self
5744     }
5745 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor5746     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
5747         Self::descriptor_static()
5748     }
5749 
new() -> GetWebAuthnSecretHashRequest5750     fn new() -> GetWebAuthnSecretHashRequest {
5751         GetWebAuthnSecretHashRequest::new()
5752     }
5753 
default_instance() -> &'static GetWebAuthnSecretHashRequest5754     fn default_instance() -> &'static GetWebAuthnSecretHashRequest {
5755         static instance: ::protobuf::rt::LazyV2<GetWebAuthnSecretHashRequest> = ::protobuf::rt::LazyV2::INIT;
5756         instance.get(GetWebAuthnSecretHashRequest::new)
5757     }
5758 }
5759 
5760 impl ::protobuf::Clear for GetWebAuthnSecretHashRequest {
clear(&mut self)5761     fn clear(&mut self) {
5762         self.account_id.clear();
5763         self.unknown_fields.clear();
5764     }
5765 }
5766 
5767 impl ::protobuf::reflect::ProtobufValue for GetWebAuthnSecretHashRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef5768     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
5769         ::protobuf::reflect::ReflectValueRef::Message(self)
5770     }
5771 }
5772 
5773 #[derive(PartialEq,Clone,Default,Debug)]
5774 pub struct GetWebAuthnSecretHashReply {
5775     // message fields
5776     pub error: CryptohomeErrorCode,
5777     pub webauthn_secret_hash: ::std::vec::Vec<u8>,
5778     // special fields
5779     pub unknown_fields: ::protobuf::UnknownFields,
5780     pub cached_size: ::protobuf::CachedSize,
5781 }
5782 
5783 impl<'a> ::std::default::Default for &'a GetWebAuthnSecretHashReply {
default() -> &'a GetWebAuthnSecretHashReply5784     fn default() -> &'a GetWebAuthnSecretHashReply {
5785         <GetWebAuthnSecretHashReply as ::protobuf::Message>::default_instance()
5786     }
5787 }
5788 
5789 impl GetWebAuthnSecretHashReply {
new() -> GetWebAuthnSecretHashReply5790     pub fn new() -> GetWebAuthnSecretHashReply {
5791         ::std::default::Default::default()
5792     }
5793 
5794     // .user_data_auth.CryptohomeErrorCode error = 1;
5795 
5796 
get_error(&self) -> CryptohomeErrorCode5797     pub fn get_error(&self) -> CryptohomeErrorCode {
5798         self.error
5799     }
clear_error(&mut self)5800     pub fn clear_error(&mut self) {
5801         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
5802     }
5803 
5804     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)5805     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
5806         self.error = v;
5807     }
5808 
5809     // bytes webauthn_secret_hash = 2;
5810 
5811 
get_webauthn_secret_hash(&self) -> &[u8]5812     pub fn get_webauthn_secret_hash(&self) -> &[u8] {
5813         &self.webauthn_secret_hash
5814     }
clear_webauthn_secret_hash(&mut self)5815     pub fn clear_webauthn_secret_hash(&mut self) {
5816         self.webauthn_secret_hash.clear();
5817     }
5818 
5819     // Param is passed by value, moved
set_webauthn_secret_hash(&mut self, v: ::std::vec::Vec<u8>)5820     pub fn set_webauthn_secret_hash(&mut self, v: ::std::vec::Vec<u8>) {
5821         self.webauthn_secret_hash = v;
5822     }
5823 
5824     // Mutable pointer to the field.
5825     // If field is not initialized, it is initialized with default value first.
mut_webauthn_secret_hash(&mut self) -> &mut ::std::vec::Vec<u8>5826     pub fn mut_webauthn_secret_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
5827         &mut self.webauthn_secret_hash
5828     }
5829 
5830     // Take field
take_webauthn_secret_hash(&mut self) -> ::std::vec::Vec<u8>5831     pub fn take_webauthn_secret_hash(&mut self) -> ::std::vec::Vec<u8> {
5832         ::std::mem::replace(&mut self.webauthn_secret_hash, ::std::vec::Vec::new())
5833     }
5834 }
5835 
5836 impl ::protobuf::Message for GetWebAuthnSecretHashReply {
is_initialized(&self) -> bool5837     fn is_initialized(&self) -> bool {
5838         true
5839     }
5840 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>5841     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5842         while !is.eof()? {
5843             let (field_number, wire_type) = is.read_tag_unpack()?;
5844             match field_number {
5845                 1 => {
5846                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
5847                 },
5848                 2 => {
5849                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.webauthn_secret_hash)?;
5850                 },
5851                 _ => {
5852                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
5853                 },
5854             };
5855         }
5856         ::std::result::Result::Ok(())
5857     }
5858 
5859     // Compute sizes of nested messages
5860     #[allow(unused_variables)]
compute_size(&self) -> u325861     fn compute_size(&self) -> u32 {
5862         let mut my_size = 0;
5863         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
5864             my_size += ::protobuf::rt::enum_size(1, self.error);
5865         }
5866         if !self.webauthn_secret_hash.is_empty() {
5867             my_size += ::protobuf::rt::bytes_size(2, &self.webauthn_secret_hash);
5868         }
5869         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
5870         self.cached_size.set(my_size);
5871         my_size
5872     }
5873 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>5874     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5875         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
5876             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
5877         }
5878         if !self.webauthn_secret_hash.is_empty() {
5879             os.write_bytes(2, &self.webauthn_secret_hash)?;
5880         }
5881         os.write_unknown_fields(self.get_unknown_fields())?;
5882         ::std::result::Result::Ok(())
5883     }
5884 
get_cached_size(&self) -> u325885     fn get_cached_size(&self) -> u32 {
5886         self.cached_size.get()
5887     }
5888 
get_unknown_fields(&self) -> &::protobuf::UnknownFields5889     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
5890         &self.unknown_fields
5891     }
5892 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields5893     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
5894         &mut self.unknown_fields
5895     }
5896 
as_any(&self) -> &dyn (::std::any::Any)5897     fn as_any(&self) -> &dyn (::std::any::Any) {
5898         self as &dyn (::std::any::Any)
5899     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)5900     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
5901         self as &mut dyn (::std::any::Any)
5902     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>5903     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
5904         self
5905     }
5906 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor5907     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
5908         Self::descriptor_static()
5909     }
5910 
new() -> GetWebAuthnSecretHashReply5911     fn new() -> GetWebAuthnSecretHashReply {
5912         GetWebAuthnSecretHashReply::new()
5913     }
5914 
default_instance() -> &'static GetWebAuthnSecretHashReply5915     fn default_instance() -> &'static GetWebAuthnSecretHashReply {
5916         static instance: ::protobuf::rt::LazyV2<GetWebAuthnSecretHashReply> = ::protobuf::rt::LazyV2::INIT;
5917         instance.get(GetWebAuthnSecretHashReply::new)
5918     }
5919 }
5920 
5921 impl ::protobuf::Clear for GetWebAuthnSecretHashReply {
clear(&mut self)5922     fn clear(&mut self) {
5923         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
5924         self.webauthn_secret_hash.clear();
5925         self.unknown_fields.clear();
5926     }
5927 }
5928 
5929 impl ::protobuf::reflect::ProtobufValue for GetWebAuthnSecretHashReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef5930     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
5931         ::protobuf::reflect::ReflectValueRef::Message(self)
5932     }
5933 }
5934 
5935 #[derive(PartialEq,Clone,Default,Debug)]
5936 pub struct GetHibernateSecretRequest {
5937     // message fields
5938     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
5939     pub auth_session_id: ::std::vec::Vec<u8>,
5940     // special fields
5941     pub unknown_fields: ::protobuf::UnknownFields,
5942     pub cached_size: ::protobuf::CachedSize,
5943 }
5944 
5945 impl<'a> ::std::default::Default for &'a GetHibernateSecretRequest {
default() -> &'a GetHibernateSecretRequest5946     fn default() -> &'a GetHibernateSecretRequest {
5947         <GetHibernateSecretRequest as ::protobuf::Message>::default_instance()
5948     }
5949 }
5950 
5951 impl GetHibernateSecretRequest {
new() -> GetHibernateSecretRequest5952     pub fn new() -> GetHibernateSecretRequest {
5953         ::std::default::Default::default()
5954     }
5955 
5956     // .cryptohome.AccountIdentifier account_id = 1;
5957 
5958 
get_account_id(&self) -> &super::rpc::AccountIdentifier5959     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
5960         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
5961     }
clear_account_id(&mut self)5962     pub fn clear_account_id(&mut self) {
5963         self.account_id.clear();
5964     }
5965 
has_account_id(&self) -> bool5966     pub fn has_account_id(&self) -> bool {
5967         self.account_id.is_some()
5968     }
5969 
5970     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)5971     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
5972         self.account_id = ::protobuf::SingularPtrField::some(v);
5973     }
5974 
5975     // Mutable pointer to the field.
5976     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier5977     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
5978         if self.account_id.is_none() {
5979             self.account_id.set_default();
5980         }
5981         self.account_id.as_mut().unwrap()
5982     }
5983 
5984     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier5985     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
5986         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
5987     }
5988 
5989     // bytes auth_session_id = 2;
5990 
5991 
get_auth_session_id(&self) -> &[u8]5992     pub fn get_auth_session_id(&self) -> &[u8] {
5993         &self.auth_session_id
5994     }
clear_auth_session_id(&mut self)5995     pub fn clear_auth_session_id(&mut self) {
5996         self.auth_session_id.clear();
5997     }
5998 
5999     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)6000     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
6001         self.auth_session_id = v;
6002     }
6003 
6004     // Mutable pointer to the field.
6005     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>6006     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
6007         &mut self.auth_session_id
6008     }
6009 
6010     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>6011     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
6012         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
6013     }
6014 }
6015 
6016 impl ::protobuf::Message for GetHibernateSecretRequest {
is_initialized(&self) -> bool6017     fn is_initialized(&self) -> bool {
6018         for v in &self.account_id {
6019             if !v.is_initialized() {
6020                 return false;
6021             }
6022         };
6023         true
6024     }
6025 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>6026     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6027         while !is.eof()? {
6028             let (field_number, wire_type) = is.read_tag_unpack()?;
6029             match field_number {
6030                 1 => {
6031                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
6032                 },
6033                 2 => {
6034                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
6035                 },
6036                 _ => {
6037                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
6038                 },
6039             };
6040         }
6041         ::std::result::Result::Ok(())
6042     }
6043 
6044     // Compute sizes of nested messages
6045     #[allow(unused_variables)]
compute_size(&self) -> u326046     fn compute_size(&self) -> u32 {
6047         let mut my_size = 0;
6048         if let Some(ref v) = self.account_id.as_ref() {
6049             let len = v.compute_size();
6050             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
6051         }
6052         if !self.auth_session_id.is_empty() {
6053             my_size += ::protobuf::rt::bytes_size(2, &self.auth_session_id);
6054         }
6055         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
6056         self.cached_size.set(my_size);
6057         my_size
6058     }
6059 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>6060     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6061         if let Some(ref v) = self.account_id.as_ref() {
6062             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
6063             os.write_raw_varint32(v.get_cached_size())?;
6064             v.write_to_with_cached_sizes(os)?;
6065         }
6066         if !self.auth_session_id.is_empty() {
6067             os.write_bytes(2, &self.auth_session_id)?;
6068         }
6069         os.write_unknown_fields(self.get_unknown_fields())?;
6070         ::std::result::Result::Ok(())
6071     }
6072 
get_cached_size(&self) -> u326073     fn get_cached_size(&self) -> u32 {
6074         self.cached_size.get()
6075     }
6076 
get_unknown_fields(&self) -> &::protobuf::UnknownFields6077     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
6078         &self.unknown_fields
6079     }
6080 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields6081     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
6082         &mut self.unknown_fields
6083     }
6084 
as_any(&self) -> &dyn (::std::any::Any)6085     fn as_any(&self) -> &dyn (::std::any::Any) {
6086         self as &dyn (::std::any::Any)
6087     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)6088     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
6089         self as &mut dyn (::std::any::Any)
6090     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>6091     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
6092         self
6093     }
6094 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor6095     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
6096         Self::descriptor_static()
6097     }
6098 
new() -> GetHibernateSecretRequest6099     fn new() -> GetHibernateSecretRequest {
6100         GetHibernateSecretRequest::new()
6101     }
6102 
default_instance() -> &'static GetHibernateSecretRequest6103     fn default_instance() -> &'static GetHibernateSecretRequest {
6104         static instance: ::protobuf::rt::LazyV2<GetHibernateSecretRequest> = ::protobuf::rt::LazyV2::INIT;
6105         instance.get(GetHibernateSecretRequest::new)
6106     }
6107 }
6108 
6109 impl ::protobuf::Clear for GetHibernateSecretRequest {
clear(&mut self)6110     fn clear(&mut self) {
6111         self.account_id.clear();
6112         self.auth_session_id.clear();
6113         self.unknown_fields.clear();
6114     }
6115 }
6116 
6117 impl ::protobuf::reflect::ProtobufValue for GetHibernateSecretRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef6118     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
6119         ::protobuf::reflect::ReflectValueRef::Message(self)
6120     }
6121 }
6122 
6123 #[derive(PartialEq,Clone,Default,Debug)]
6124 pub struct GetHibernateSecretReply {
6125     // message fields
6126     pub error: CryptohomeErrorCode,
6127     pub hibernate_secret: ::std::vec::Vec<u8>,
6128     // special fields
6129     pub unknown_fields: ::protobuf::UnknownFields,
6130     pub cached_size: ::protobuf::CachedSize,
6131 }
6132 
6133 impl<'a> ::std::default::Default for &'a GetHibernateSecretReply {
default() -> &'a GetHibernateSecretReply6134     fn default() -> &'a GetHibernateSecretReply {
6135         <GetHibernateSecretReply as ::protobuf::Message>::default_instance()
6136     }
6137 }
6138 
6139 impl GetHibernateSecretReply {
new() -> GetHibernateSecretReply6140     pub fn new() -> GetHibernateSecretReply {
6141         ::std::default::Default::default()
6142     }
6143 
6144     // .user_data_auth.CryptohomeErrorCode error = 1;
6145 
6146 
get_error(&self) -> CryptohomeErrorCode6147     pub fn get_error(&self) -> CryptohomeErrorCode {
6148         self.error
6149     }
clear_error(&mut self)6150     pub fn clear_error(&mut self) {
6151         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
6152     }
6153 
6154     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)6155     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
6156         self.error = v;
6157     }
6158 
6159     // bytes hibernate_secret = 2;
6160 
6161 
get_hibernate_secret(&self) -> &[u8]6162     pub fn get_hibernate_secret(&self) -> &[u8] {
6163         &self.hibernate_secret
6164     }
clear_hibernate_secret(&mut self)6165     pub fn clear_hibernate_secret(&mut self) {
6166         self.hibernate_secret.clear();
6167     }
6168 
6169     // Param is passed by value, moved
set_hibernate_secret(&mut self, v: ::std::vec::Vec<u8>)6170     pub fn set_hibernate_secret(&mut self, v: ::std::vec::Vec<u8>) {
6171         self.hibernate_secret = v;
6172     }
6173 
6174     // Mutable pointer to the field.
6175     // If field is not initialized, it is initialized with default value first.
mut_hibernate_secret(&mut self) -> &mut ::std::vec::Vec<u8>6176     pub fn mut_hibernate_secret(&mut self) -> &mut ::std::vec::Vec<u8> {
6177         &mut self.hibernate_secret
6178     }
6179 
6180     // Take field
take_hibernate_secret(&mut self) -> ::std::vec::Vec<u8>6181     pub fn take_hibernate_secret(&mut self) -> ::std::vec::Vec<u8> {
6182         ::std::mem::replace(&mut self.hibernate_secret, ::std::vec::Vec::new())
6183     }
6184 }
6185 
6186 impl ::protobuf::Message for GetHibernateSecretReply {
is_initialized(&self) -> bool6187     fn is_initialized(&self) -> bool {
6188         true
6189     }
6190 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>6191     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6192         while !is.eof()? {
6193             let (field_number, wire_type) = is.read_tag_unpack()?;
6194             match field_number {
6195                 1 => {
6196                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
6197                 },
6198                 2 => {
6199                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.hibernate_secret)?;
6200                 },
6201                 _ => {
6202                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
6203                 },
6204             };
6205         }
6206         ::std::result::Result::Ok(())
6207     }
6208 
6209     // Compute sizes of nested messages
6210     #[allow(unused_variables)]
compute_size(&self) -> u326211     fn compute_size(&self) -> u32 {
6212         let mut my_size = 0;
6213         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
6214             my_size += ::protobuf::rt::enum_size(1, self.error);
6215         }
6216         if !self.hibernate_secret.is_empty() {
6217             my_size += ::protobuf::rt::bytes_size(2, &self.hibernate_secret);
6218         }
6219         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
6220         self.cached_size.set(my_size);
6221         my_size
6222     }
6223 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>6224     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6225         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
6226             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
6227         }
6228         if !self.hibernate_secret.is_empty() {
6229             os.write_bytes(2, &self.hibernate_secret)?;
6230         }
6231         os.write_unknown_fields(self.get_unknown_fields())?;
6232         ::std::result::Result::Ok(())
6233     }
6234 
get_cached_size(&self) -> u326235     fn get_cached_size(&self) -> u32 {
6236         self.cached_size.get()
6237     }
6238 
get_unknown_fields(&self) -> &::protobuf::UnknownFields6239     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
6240         &self.unknown_fields
6241     }
6242 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields6243     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
6244         &mut self.unknown_fields
6245     }
6246 
as_any(&self) -> &dyn (::std::any::Any)6247     fn as_any(&self) -> &dyn (::std::any::Any) {
6248         self as &dyn (::std::any::Any)
6249     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)6250     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
6251         self as &mut dyn (::std::any::Any)
6252     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>6253     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
6254         self
6255     }
6256 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor6257     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
6258         Self::descriptor_static()
6259     }
6260 
new() -> GetHibernateSecretReply6261     fn new() -> GetHibernateSecretReply {
6262         GetHibernateSecretReply::new()
6263     }
6264 
default_instance() -> &'static GetHibernateSecretReply6265     fn default_instance() -> &'static GetHibernateSecretReply {
6266         static instance: ::protobuf::rt::LazyV2<GetHibernateSecretReply> = ::protobuf::rt::LazyV2::INIT;
6267         instance.get(GetHibernateSecretReply::new)
6268     }
6269 }
6270 
6271 impl ::protobuf::Clear for GetHibernateSecretReply {
clear(&mut self)6272     fn clear(&mut self) {
6273         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
6274         self.hibernate_secret.clear();
6275         self.unknown_fields.clear();
6276     }
6277 }
6278 
6279 impl ::protobuf::reflect::ProtobufValue for GetHibernateSecretReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef6280     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
6281         ::protobuf::reflect::ReflectValueRef::Message(self)
6282     }
6283 }
6284 
6285 #[derive(PartialEq,Clone,Default,Debug)]
6286 pub struct StartMigrateToDircryptoRequest {
6287     // message fields
6288     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
6289     pub minimal_migration: bool,
6290     pub auth_session_id: ::std::vec::Vec<u8>,
6291     // special fields
6292     pub unknown_fields: ::protobuf::UnknownFields,
6293     pub cached_size: ::protobuf::CachedSize,
6294 }
6295 
6296 impl<'a> ::std::default::Default for &'a StartMigrateToDircryptoRequest {
default() -> &'a StartMigrateToDircryptoRequest6297     fn default() -> &'a StartMigrateToDircryptoRequest {
6298         <StartMigrateToDircryptoRequest as ::protobuf::Message>::default_instance()
6299     }
6300 }
6301 
6302 impl StartMigrateToDircryptoRequest {
new() -> StartMigrateToDircryptoRequest6303     pub fn new() -> StartMigrateToDircryptoRequest {
6304         ::std::default::Default::default()
6305     }
6306 
6307     // .cryptohome.AccountIdentifier account_id = 1;
6308 
6309 
get_account_id(&self) -> &super::rpc::AccountIdentifier6310     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
6311         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
6312     }
clear_account_id(&mut self)6313     pub fn clear_account_id(&mut self) {
6314         self.account_id.clear();
6315     }
6316 
has_account_id(&self) -> bool6317     pub fn has_account_id(&self) -> bool {
6318         self.account_id.is_some()
6319     }
6320 
6321     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)6322     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
6323         self.account_id = ::protobuf::SingularPtrField::some(v);
6324     }
6325 
6326     // Mutable pointer to the field.
6327     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier6328     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
6329         if self.account_id.is_none() {
6330             self.account_id.set_default();
6331         }
6332         self.account_id.as_mut().unwrap()
6333     }
6334 
6335     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier6336     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
6337         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
6338     }
6339 
6340     // bool minimal_migration = 2;
6341 
6342 
get_minimal_migration(&self) -> bool6343     pub fn get_minimal_migration(&self) -> bool {
6344         self.minimal_migration
6345     }
clear_minimal_migration(&mut self)6346     pub fn clear_minimal_migration(&mut self) {
6347         self.minimal_migration = false;
6348     }
6349 
6350     // Param is passed by value, moved
set_minimal_migration(&mut self, v: bool)6351     pub fn set_minimal_migration(&mut self, v: bool) {
6352         self.minimal_migration = v;
6353     }
6354 
6355     // bytes auth_session_id = 3;
6356 
6357 
get_auth_session_id(&self) -> &[u8]6358     pub fn get_auth_session_id(&self) -> &[u8] {
6359         &self.auth_session_id
6360     }
clear_auth_session_id(&mut self)6361     pub fn clear_auth_session_id(&mut self) {
6362         self.auth_session_id.clear();
6363     }
6364 
6365     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)6366     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
6367         self.auth_session_id = v;
6368     }
6369 
6370     // Mutable pointer to the field.
6371     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>6372     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
6373         &mut self.auth_session_id
6374     }
6375 
6376     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>6377     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
6378         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
6379     }
6380 }
6381 
6382 impl ::protobuf::Message for StartMigrateToDircryptoRequest {
is_initialized(&self) -> bool6383     fn is_initialized(&self) -> bool {
6384         for v in &self.account_id {
6385             if !v.is_initialized() {
6386                 return false;
6387             }
6388         };
6389         true
6390     }
6391 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>6392     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6393         while !is.eof()? {
6394             let (field_number, wire_type) = is.read_tag_unpack()?;
6395             match field_number {
6396                 1 => {
6397                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
6398                 },
6399                 2 => {
6400                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
6401                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
6402                     }
6403                     let tmp = is.read_bool()?;
6404                     self.minimal_migration = tmp;
6405                 },
6406                 3 => {
6407                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
6408                 },
6409                 _ => {
6410                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
6411                 },
6412             };
6413         }
6414         ::std::result::Result::Ok(())
6415     }
6416 
6417     // Compute sizes of nested messages
6418     #[allow(unused_variables)]
compute_size(&self) -> u326419     fn compute_size(&self) -> u32 {
6420         let mut my_size = 0;
6421         if let Some(ref v) = self.account_id.as_ref() {
6422             let len = v.compute_size();
6423             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
6424         }
6425         if self.minimal_migration != false {
6426             my_size += 2;
6427         }
6428         if !self.auth_session_id.is_empty() {
6429             my_size += ::protobuf::rt::bytes_size(3, &self.auth_session_id);
6430         }
6431         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
6432         self.cached_size.set(my_size);
6433         my_size
6434     }
6435 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>6436     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6437         if let Some(ref v) = self.account_id.as_ref() {
6438             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
6439             os.write_raw_varint32(v.get_cached_size())?;
6440             v.write_to_with_cached_sizes(os)?;
6441         }
6442         if self.minimal_migration != false {
6443             os.write_bool(2, self.minimal_migration)?;
6444         }
6445         if !self.auth_session_id.is_empty() {
6446             os.write_bytes(3, &self.auth_session_id)?;
6447         }
6448         os.write_unknown_fields(self.get_unknown_fields())?;
6449         ::std::result::Result::Ok(())
6450     }
6451 
get_cached_size(&self) -> u326452     fn get_cached_size(&self) -> u32 {
6453         self.cached_size.get()
6454     }
6455 
get_unknown_fields(&self) -> &::protobuf::UnknownFields6456     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
6457         &self.unknown_fields
6458     }
6459 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields6460     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
6461         &mut self.unknown_fields
6462     }
6463 
as_any(&self) -> &dyn (::std::any::Any)6464     fn as_any(&self) -> &dyn (::std::any::Any) {
6465         self as &dyn (::std::any::Any)
6466     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)6467     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
6468         self as &mut dyn (::std::any::Any)
6469     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>6470     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
6471         self
6472     }
6473 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor6474     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
6475         Self::descriptor_static()
6476     }
6477 
new() -> StartMigrateToDircryptoRequest6478     fn new() -> StartMigrateToDircryptoRequest {
6479         StartMigrateToDircryptoRequest::new()
6480     }
6481 
default_instance() -> &'static StartMigrateToDircryptoRequest6482     fn default_instance() -> &'static StartMigrateToDircryptoRequest {
6483         static instance: ::protobuf::rt::LazyV2<StartMigrateToDircryptoRequest> = ::protobuf::rt::LazyV2::INIT;
6484         instance.get(StartMigrateToDircryptoRequest::new)
6485     }
6486 }
6487 
6488 impl ::protobuf::Clear for StartMigrateToDircryptoRequest {
clear(&mut self)6489     fn clear(&mut self) {
6490         self.account_id.clear();
6491         self.minimal_migration = false;
6492         self.auth_session_id.clear();
6493         self.unknown_fields.clear();
6494     }
6495 }
6496 
6497 impl ::protobuf::reflect::ProtobufValue for StartMigrateToDircryptoRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef6498     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
6499         ::protobuf::reflect::ReflectValueRef::Message(self)
6500     }
6501 }
6502 
6503 #[derive(PartialEq,Clone,Default,Debug)]
6504 pub struct StartMigrateToDircryptoReply {
6505     // message fields
6506     pub error: CryptohomeErrorCode,
6507     // special fields
6508     pub unknown_fields: ::protobuf::UnknownFields,
6509     pub cached_size: ::protobuf::CachedSize,
6510 }
6511 
6512 impl<'a> ::std::default::Default for &'a StartMigrateToDircryptoReply {
default() -> &'a StartMigrateToDircryptoReply6513     fn default() -> &'a StartMigrateToDircryptoReply {
6514         <StartMigrateToDircryptoReply as ::protobuf::Message>::default_instance()
6515     }
6516 }
6517 
6518 impl StartMigrateToDircryptoReply {
new() -> StartMigrateToDircryptoReply6519     pub fn new() -> StartMigrateToDircryptoReply {
6520         ::std::default::Default::default()
6521     }
6522 
6523     // .user_data_auth.CryptohomeErrorCode error = 1;
6524 
6525 
get_error(&self) -> CryptohomeErrorCode6526     pub fn get_error(&self) -> CryptohomeErrorCode {
6527         self.error
6528     }
clear_error(&mut self)6529     pub fn clear_error(&mut self) {
6530         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
6531     }
6532 
6533     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)6534     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
6535         self.error = v;
6536     }
6537 }
6538 
6539 impl ::protobuf::Message for StartMigrateToDircryptoReply {
is_initialized(&self) -> bool6540     fn is_initialized(&self) -> bool {
6541         true
6542     }
6543 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>6544     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6545         while !is.eof()? {
6546             let (field_number, wire_type) = is.read_tag_unpack()?;
6547             match field_number {
6548                 1 => {
6549                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
6550                 },
6551                 _ => {
6552                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
6553                 },
6554             };
6555         }
6556         ::std::result::Result::Ok(())
6557     }
6558 
6559     // Compute sizes of nested messages
6560     #[allow(unused_variables)]
compute_size(&self) -> u326561     fn compute_size(&self) -> u32 {
6562         let mut my_size = 0;
6563         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
6564             my_size += ::protobuf::rt::enum_size(1, self.error);
6565         }
6566         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
6567         self.cached_size.set(my_size);
6568         my_size
6569     }
6570 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>6571     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6572         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
6573             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
6574         }
6575         os.write_unknown_fields(self.get_unknown_fields())?;
6576         ::std::result::Result::Ok(())
6577     }
6578 
get_cached_size(&self) -> u326579     fn get_cached_size(&self) -> u32 {
6580         self.cached_size.get()
6581     }
6582 
get_unknown_fields(&self) -> &::protobuf::UnknownFields6583     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
6584         &self.unknown_fields
6585     }
6586 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields6587     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
6588         &mut self.unknown_fields
6589     }
6590 
as_any(&self) -> &dyn (::std::any::Any)6591     fn as_any(&self) -> &dyn (::std::any::Any) {
6592         self as &dyn (::std::any::Any)
6593     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)6594     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
6595         self as &mut dyn (::std::any::Any)
6596     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>6597     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
6598         self
6599     }
6600 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor6601     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
6602         Self::descriptor_static()
6603     }
6604 
new() -> StartMigrateToDircryptoReply6605     fn new() -> StartMigrateToDircryptoReply {
6606         StartMigrateToDircryptoReply::new()
6607     }
6608 
default_instance() -> &'static StartMigrateToDircryptoReply6609     fn default_instance() -> &'static StartMigrateToDircryptoReply {
6610         static instance: ::protobuf::rt::LazyV2<StartMigrateToDircryptoReply> = ::protobuf::rt::LazyV2::INIT;
6611         instance.get(StartMigrateToDircryptoReply::new)
6612     }
6613 }
6614 
6615 impl ::protobuf::Clear for StartMigrateToDircryptoReply {
clear(&mut self)6616     fn clear(&mut self) {
6617         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
6618         self.unknown_fields.clear();
6619     }
6620 }
6621 
6622 impl ::protobuf::reflect::ProtobufValue for StartMigrateToDircryptoReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef6623     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
6624         ::protobuf::reflect::ReflectValueRef::Message(self)
6625     }
6626 }
6627 
6628 #[derive(PartialEq,Clone,Default,Debug)]
6629 pub struct DircryptoMigrationProgress {
6630     // message fields
6631     pub status: DircryptoMigrationStatus,
6632     pub current_bytes: u64,
6633     pub total_bytes: u64,
6634     // special fields
6635     pub unknown_fields: ::protobuf::UnknownFields,
6636     pub cached_size: ::protobuf::CachedSize,
6637 }
6638 
6639 impl<'a> ::std::default::Default for &'a DircryptoMigrationProgress {
default() -> &'a DircryptoMigrationProgress6640     fn default() -> &'a DircryptoMigrationProgress {
6641         <DircryptoMigrationProgress as ::protobuf::Message>::default_instance()
6642     }
6643 }
6644 
6645 impl DircryptoMigrationProgress {
new() -> DircryptoMigrationProgress6646     pub fn new() -> DircryptoMigrationProgress {
6647         ::std::default::Default::default()
6648     }
6649 
6650     // .user_data_auth.DircryptoMigrationStatus status = 1;
6651 
6652 
get_status(&self) -> DircryptoMigrationStatus6653     pub fn get_status(&self) -> DircryptoMigrationStatus {
6654         self.status
6655     }
clear_status(&mut self)6656     pub fn clear_status(&mut self) {
6657         self.status = DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_SUCCESS;
6658     }
6659 
6660     // Param is passed by value, moved
set_status(&mut self, v: DircryptoMigrationStatus)6661     pub fn set_status(&mut self, v: DircryptoMigrationStatus) {
6662         self.status = v;
6663     }
6664 
6665     // uint64 current_bytes = 2;
6666 
6667 
get_current_bytes(&self) -> u646668     pub fn get_current_bytes(&self) -> u64 {
6669         self.current_bytes
6670     }
clear_current_bytes(&mut self)6671     pub fn clear_current_bytes(&mut self) {
6672         self.current_bytes = 0;
6673     }
6674 
6675     // Param is passed by value, moved
set_current_bytes(&mut self, v: u64)6676     pub fn set_current_bytes(&mut self, v: u64) {
6677         self.current_bytes = v;
6678     }
6679 
6680     // uint64 total_bytes = 3;
6681 
6682 
get_total_bytes(&self) -> u646683     pub fn get_total_bytes(&self) -> u64 {
6684         self.total_bytes
6685     }
clear_total_bytes(&mut self)6686     pub fn clear_total_bytes(&mut self) {
6687         self.total_bytes = 0;
6688     }
6689 
6690     // Param is passed by value, moved
set_total_bytes(&mut self, v: u64)6691     pub fn set_total_bytes(&mut self, v: u64) {
6692         self.total_bytes = v;
6693     }
6694 }
6695 
6696 impl ::protobuf::Message for DircryptoMigrationProgress {
is_initialized(&self) -> bool6697     fn is_initialized(&self) -> bool {
6698         true
6699     }
6700 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>6701     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6702         while !is.eof()? {
6703             let (field_number, wire_type) = is.read_tag_unpack()?;
6704             match field_number {
6705                 1 => {
6706                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.status, 1, &mut self.unknown_fields)?
6707                 },
6708                 2 => {
6709                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
6710                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
6711                     }
6712                     let tmp = is.read_uint64()?;
6713                     self.current_bytes = tmp;
6714                 },
6715                 3 => {
6716                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
6717                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
6718                     }
6719                     let tmp = is.read_uint64()?;
6720                     self.total_bytes = tmp;
6721                 },
6722                 _ => {
6723                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
6724                 },
6725             };
6726         }
6727         ::std::result::Result::Ok(())
6728     }
6729 
6730     // Compute sizes of nested messages
6731     #[allow(unused_variables)]
compute_size(&self) -> u326732     fn compute_size(&self) -> u32 {
6733         let mut my_size = 0;
6734         if self.status != DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_SUCCESS {
6735             my_size += ::protobuf::rt::enum_size(1, self.status);
6736         }
6737         if self.current_bytes != 0 {
6738             my_size += ::protobuf::rt::value_size(2, self.current_bytes, ::protobuf::wire_format::WireTypeVarint);
6739         }
6740         if self.total_bytes != 0 {
6741             my_size += ::protobuf::rt::value_size(3, self.total_bytes, ::protobuf::wire_format::WireTypeVarint);
6742         }
6743         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
6744         self.cached_size.set(my_size);
6745         my_size
6746     }
6747 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>6748     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6749         if self.status != DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_SUCCESS {
6750             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.status))?;
6751         }
6752         if self.current_bytes != 0 {
6753             os.write_uint64(2, self.current_bytes)?;
6754         }
6755         if self.total_bytes != 0 {
6756             os.write_uint64(3, self.total_bytes)?;
6757         }
6758         os.write_unknown_fields(self.get_unknown_fields())?;
6759         ::std::result::Result::Ok(())
6760     }
6761 
get_cached_size(&self) -> u326762     fn get_cached_size(&self) -> u32 {
6763         self.cached_size.get()
6764     }
6765 
get_unknown_fields(&self) -> &::protobuf::UnknownFields6766     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
6767         &self.unknown_fields
6768     }
6769 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields6770     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
6771         &mut self.unknown_fields
6772     }
6773 
as_any(&self) -> &dyn (::std::any::Any)6774     fn as_any(&self) -> &dyn (::std::any::Any) {
6775         self as &dyn (::std::any::Any)
6776     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)6777     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
6778         self as &mut dyn (::std::any::Any)
6779     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>6780     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
6781         self
6782     }
6783 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor6784     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
6785         Self::descriptor_static()
6786     }
6787 
new() -> DircryptoMigrationProgress6788     fn new() -> DircryptoMigrationProgress {
6789         DircryptoMigrationProgress::new()
6790     }
6791 
default_instance() -> &'static DircryptoMigrationProgress6792     fn default_instance() -> &'static DircryptoMigrationProgress {
6793         static instance: ::protobuf::rt::LazyV2<DircryptoMigrationProgress> = ::protobuf::rt::LazyV2::INIT;
6794         instance.get(DircryptoMigrationProgress::new)
6795     }
6796 }
6797 
6798 impl ::protobuf::Clear for DircryptoMigrationProgress {
clear(&mut self)6799     fn clear(&mut self) {
6800         self.status = DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_SUCCESS;
6801         self.current_bytes = 0;
6802         self.total_bytes = 0;
6803         self.unknown_fields.clear();
6804     }
6805 }
6806 
6807 impl ::protobuf::reflect::ProtobufValue for DircryptoMigrationProgress {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef6808     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
6809         ::protobuf::reflect::ReflectValueRef::Message(self)
6810     }
6811 }
6812 
6813 #[derive(PartialEq,Clone,Default,Debug)]
6814 pub struct NeedsDircryptoMigrationRequest {
6815     // message fields
6816     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
6817     // special fields
6818     pub unknown_fields: ::protobuf::UnknownFields,
6819     pub cached_size: ::protobuf::CachedSize,
6820 }
6821 
6822 impl<'a> ::std::default::Default for &'a NeedsDircryptoMigrationRequest {
default() -> &'a NeedsDircryptoMigrationRequest6823     fn default() -> &'a NeedsDircryptoMigrationRequest {
6824         <NeedsDircryptoMigrationRequest as ::protobuf::Message>::default_instance()
6825     }
6826 }
6827 
6828 impl NeedsDircryptoMigrationRequest {
new() -> NeedsDircryptoMigrationRequest6829     pub fn new() -> NeedsDircryptoMigrationRequest {
6830         ::std::default::Default::default()
6831     }
6832 
6833     // .cryptohome.AccountIdentifier account_id = 1;
6834 
6835 
get_account_id(&self) -> &super::rpc::AccountIdentifier6836     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
6837         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
6838     }
clear_account_id(&mut self)6839     pub fn clear_account_id(&mut self) {
6840         self.account_id.clear();
6841     }
6842 
has_account_id(&self) -> bool6843     pub fn has_account_id(&self) -> bool {
6844         self.account_id.is_some()
6845     }
6846 
6847     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)6848     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
6849         self.account_id = ::protobuf::SingularPtrField::some(v);
6850     }
6851 
6852     // Mutable pointer to the field.
6853     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier6854     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
6855         if self.account_id.is_none() {
6856             self.account_id.set_default();
6857         }
6858         self.account_id.as_mut().unwrap()
6859     }
6860 
6861     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier6862     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
6863         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
6864     }
6865 }
6866 
6867 impl ::protobuf::Message for NeedsDircryptoMigrationRequest {
is_initialized(&self) -> bool6868     fn is_initialized(&self) -> bool {
6869         for v in &self.account_id {
6870             if !v.is_initialized() {
6871                 return false;
6872             }
6873         };
6874         true
6875     }
6876 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>6877     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6878         while !is.eof()? {
6879             let (field_number, wire_type) = is.read_tag_unpack()?;
6880             match field_number {
6881                 1 => {
6882                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
6883                 },
6884                 _ => {
6885                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
6886                 },
6887             };
6888         }
6889         ::std::result::Result::Ok(())
6890     }
6891 
6892     // Compute sizes of nested messages
6893     #[allow(unused_variables)]
compute_size(&self) -> u326894     fn compute_size(&self) -> u32 {
6895         let mut my_size = 0;
6896         if let Some(ref v) = self.account_id.as_ref() {
6897             let len = v.compute_size();
6898             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
6899         }
6900         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
6901         self.cached_size.set(my_size);
6902         my_size
6903     }
6904 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>6905     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
6906         if let Some(ref v) = self.account_id.as_ref() {
6907             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
6908             os.write_raw_varint32(v.get_cached_size())?;
6909             v.write_to_with_cached_sizes(os)?;
6910         }
6911         os.write_unknown_fields(self.get_unknown_fields())?;
6912         ::std::result::Result::Ok(())
6913     }
6914 
get_cached_size(&self) -> u326915     fn get_cached_size(&self) -> u32 {
6916         self.cached_size.get()
6917     }
6918 
get_unknown_fields(&self) -> &::protobuf::UnknownFields6919     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
6920         &self.unknown_fields
6921     }
6922 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields6923     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
6924         &mut self.unknown_fields
6925     }
6926 
as_any(&self) -> &dyn (::std::any::Any)6927     fn as_any(&self) -> &dyn (::std::any::Any) {
6928         self as &dyn (::std::any::Any)
6929     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)6930     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
6931         self as &mut dyn (::std::any::Any)
6932     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>6933     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
6934         self
6935     }
6936 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor6937     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
6938         Self::descriptor_static()
6939     }
6940 
new() -> NeedsDircryptoMigrationRequest6941     fn new() -> NeedsDircryptoMigrationRequest {
6942         NeedsDircryptoMigrationRequest::new()
6943     }
6944 
default_instance() -> &'static NeedsDircryptoMigrationRequest6945     fn default_instance() -> &'static NeedsDircryptoMigrationRequest {
6946         static instance: ::protobuf::rt::LazyV2<NeedsDircryptoMigrationRequest> = ::protobuf::rt::LazyV2::INIT;
6947         instance.get(NeedsDircryptoMigrationRequest::new)
6948     }
6949 }
6950 
6951 impl ::protobuf::Clear for NeedsDircryptoMigrationRequest {
clear(&mut self)6952     fn clear(&mut self) {
6953         self.account_id.clear();
6954         self.unknown_fields.clear();
6955     }
6956 }
6957 
6958 impl ::protobuf::reflect::ProtobufValue for NeedsDircryptoMigrationRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef6959     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
6960         ::protobuf::reflect::ReflectValueRef::Message(self)
6961     }
6962 }
6963 
6964 #[derive(PartialEq,Clone,Default,Debug)]
6965 pub struct NeedsDircryptoMigrationReply {
6966     // message fields
6967     pub error: CryptohomeErrorCode,
6968     pub needs_dircrypto_migration: bool,
6969     // special fields
6970     pub unknown_fields: ::protobuf::UnknownFields,
6971     pub cached_size: ::protobuf::CachedSize,
6972 }
6973 
6974 impl<'a> ::std::default::Default for &'a NeedsDircryptoMigrationReply {
default() -> &'a NeedsDircryptoMigrationReply6975     fn default() -> &'a NeedsDircryptoMigrationReply {
6976         <NeedsDircryptoMigrationReply as ::protobuf::Message>::default_instance()
6977     }
6978 }
6979 
6980 impl NeedsDircryptoMigrationReply {
new() -> NeedsDircryptoMigrationReply6981     pub fn new() -> NeedsDircryptoMigrationReply {
6982         ::std::default::Default::default()
6983     }
6984 
6985     // .user_data_auth.CryptohomeErrorCode error = 1;
6986 
6987 
get_error(&self) -> CryptohomeErrorCode6988     pub fn get_error(&self) -> CryptohomeErrorCode {
6989         self.error
6990     }
clear_error(&mut self)6991     pub fn clear_error(&mut self) {
6992         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
6993     }
6994 
6995     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)6996     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
6997         self.error = v;
6998     }
6999 
7000     // bool needs_dircrypto_migration = 2;
7001 
7002 
get_needs_dircrypto_migration(&self) -> bool7003     pub fn get_needs_dircrypto_migration(&self) -> bool {
7004         self.needs_dircrypto_migration
7005     }
clear_needs_dircrypto_migration(&mut self)7006     pub fn clear_needs_dircrypto_migration(&mut self) {
7007         self.needs_dircrypto_migration = false;
7008     }
7009 
7010     // Param is passed by value, moved
set_needs_dircrypto_migration(&mut self, v: bool)7011     pub fn set_needs_dircrypto_migration(&mut self, v: bool) {
7012         self.needs_dircrypto_migration = v;
7013     }
7014 }
7015 
7016 impl ::protobuf::Message for NeedsDircryptoMigrationReply {
is_initialized(&self) -> bool7017     fn is_initialized(&self) -> bool {
7018         true
7019     }
7020 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>7021     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7022         while !is.eof()? {
7023             let (field_number, wire_type) = is.read_tag_unpack()?;
7024             match field_number {
7025                 1 => {
7026                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
7027                 },
7028                 2 => {
7029                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
7030                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
7031                     }
7032                     let tmp = is.read_bool()?;
7033                     self.needs_dircrypto_migration = tmp;
7034                 },
7035                 _ => {
7036                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
7037                 },
7038             };
7039         }
7040         ::std::result::Result::Ok(())
7041     }
7042 
7043     // Compute sizes of nested messages
7044     #[allow(unused_variables)]
compute_size(&self) -> u327045     fn compute_size(&self) -> u32 {
7046         let mut my_size = 0;
7047         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
7048             my_size += ::protobuf::rt::enum_size(1, self.error);
7049         }
7050         if self.needs_dircrypto_migration != false {
7051             my_size += 2;
7052         }
7053         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
7054         self.cached_size.set(my_size);
7055         my_size
7056     }
7057 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>7058     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7059         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
7060             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
7061         }
7062         if self.needs_dircrypto_migration != false {
7063             os.write_bool(2, self.needs_dircrypto_migration)?;
7064         }
7065         os.write_unknown_fields(self.get_unknown_fields())?;
7066         ::std::result::Result::Ok(())
7067     }
7068 
get_cached_size(&self) -> u327069     fn get_cached_size(&self) -> u32 {
7070         self.cached_size.get()
7071     }
7072 
get_unknown_fields(&self) -> &::protobuf::UnknownFields7073     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
7074         &self.unknown_fields
7075     }
7076 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields7077     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
7078         &mut self.unknown_fields
7079     }
7080 
as_any(&self) -> &dyn (::std::any::Any)7081     fn as_any(&self) -> &dyn (::std::any::Any) {
7082         self as &dyn (::std::any::Any)
7083     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)7084     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
7085         self as &mut dyn (::std::any::Any)
7086     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>7087     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
7088         self
7089     }
7090 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor7091     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
7092         Self::descriptor_static()
7093     }
7094 
new() -> NeedsDircryptoMigrationReply7095     fn new() -> NeedsDircryptoMigrationReply {
7096         NeedsDircryptoMigrationReply::new()
7097     }
7098 
default_instance() -> &'static NeedsDircryptoMigrationReply7099     fn default_instance() -> &'static NeedsDircryptoMigrationReply {
7100         static instance: ::protobuf::rt::LazyV2<NeedsDircryptoMigrationReply> = ::protobuf::rt::LazyV2::INIT;
7101         instance.get(NeedsDircryptoMigrationReply::new)
7102     }
7103 }
7104 
7105 impl ::protobuf::Clear for NeedsDircryptoMigrationReply {
clear(&mut self)7106     fn clear(&mut self) {
7107         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
7108         self.needs_dircrypto_migration = false;
7109         self.unknown_fields.clear();
7110     }
7111 }
7112 
7113 impl ::protobuf::reflect::ProtobufValue for NeedsDircryptoMigrationReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef7114     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
7115         ::protobuf::reflect::ReflectValueRef::Message(self)
7116     }
7117 }
7118 
7119 #[derive(PartialEq,Clone,Default,Debug)]
7120 pub struct GetSupportedKeyPoliciesRequest {
7121     // special fields
7122     pub unknown_fields: ::protobuf::UnknownFields,
7123     pub cached_size: ::protobuf::CachedSize,
7124 }
7125 
7126 impl<'a> ::std::default::Default for &'a GetSupportedKeyPoliciesRequest {
default() -> &'a GetSupportedKeyPoliciesRequest7127     fn default() -> &'a GetSupportedKeyPoliciesRequest {
7128         <GetSupportedKeyPoliciesRequest as ::protobuf::Message>::default_instance()
7129     }
7130 }
7131 
7132 impl GetSupportedKeyPoliciesRequest {
new() -> GetSupportedKeyPoliciesRequest7133     pub fn new() -> GetSupportedKeyPoliciesRequest {
7134         ::std::default::Default::default()
7135     }
7136 }
7137 
7138 impl ::protobuf::Message for GetSupportedKeyPoliciesRequest {
is_initialized(&self) -> bool7139     fn is_initialized(&self) -> bool {
7140         true
7141     }
7142 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>7143     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7144         while !is.eof()? {
7145             let (field_number, wire_type) = is.read_tag_unpack()?;
7146             match field_number {
7147                 _ => {
7148                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
7149                 },
7150             };
7151         }
7152         ::std::result::Result::Ok(())
7153     }
7154 
7155     // Compute sizes of nested messages
7156     #[allow(unused_variables)]
compute_size(&self) -> u327157     fn compute_size(&self) -> u32 {
7158         let mut my_size = 0;
7159         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
7160         self.cached_size.set(my_size);
7161         my_size
7162     }
7163 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>7164     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7165         os.write_unknown_fields(self.get_unknown_fields())?;
7166         ::std::result::Result::Ok(())
7167     }
7168 
get_cached_size(&self) -> u327169     fn get_cached_size(&self) -> u32 {
7170         self.cached_size.get()
7171     }
7172 
get_unknown_fields(&self) -> &::protobuf::UnknownFields7173     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
7174         &self.unknown_fields
7175     }
7176 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields7177     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
7178         &mut self.unknown_fields
7179     }
7180 
as_any(&self) -> &dyn (::std::any::Any)7181     fn as_any(&self) -> &dyn (::std::any::Any) {
7182         self as &dyn (::std::any::Any)
7183     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)7184     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
7185         self as &mut dyn (::std::any::Any)
7186     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>7187     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
7188         self
7189     }
7190 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor7191     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
7192         Self::descriptor_static()
7193     }
7194 
new() -> GetSupportedKeyPoliciesRequest7195     fn new() -> GetSupportedKeyPoliciesRequest {
7196         GetSupportedKeyPoliciesRequest::new()
7197     }
7198 
default_instance() -> &'static GetSupportedKeyPoliciesRequest7199     fn default_instance() -> &'static GetSupportedKeyPoliciesRequest {
7200         static instance: ::protobuf::rt::LazyV2<GetSupportedKeyPoliciesRequest> = ::protobuf::rt::LazyV2::INIT;
7201         instance.get(GetSupportedKeyPoliciesRequest::new)
7202     }
7203 }
7204 
7205 impl ::protobuf::Clear for GetSupportedKeyPoliciesRequest {
clear(&mut self)7206     fn clear(&mut self) {
7207         self.unknown_fields.clear();
7208     }
7209 }
7210 
7211 impl ::protobuf::reflect::ProtobufValue for GetSupportedKeyPoliciesRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef7212     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
7213         ::protobuf::reflect::ReflectValueRef::Message(self)
7214     }
7215 }
7216 
7217 #[derive(PartialEq,Clone,Default,Debug)]
7218 pub struct GetSupportedKeyPoliciesReply {
7219     // message fields
7220     pub low_entropy_credentials_supported: bool,
7221     // special fields
7222     pub unknown_fields: ::protobuf::UnknownFields,
7223     pub cached_size: ::protobuf::CachedSize,
7224 }
7225 
7226 impl<'a> ::std::default::Default for &'a GetSupportedKeyPoliciesReply {
default() -> &'a GetSupportedKeyPoliciesReply7227     fn default() -> &'a GetSupportedKeyPoliciesReply {
7228         <GetSupportedKeyPoliciesReply as ::protobuf::Message>::default_instance()
7229     }
7230 }
7231 
7232 impl GetSupportedKeyPoliciesReply {
new() -> GetSupportedKeyPoliciesReply7233     pub fn new() -> GetSupportedKeyPoliciesReply {
7234         ::std::default::Default::default()
7235     }
7236 
7237     // bool low_entropy_credentials_supported = 1;
7238 
7239 
get_low_entropy_credentials_supported(&self) -> bool7240     pub fn get_low_entropy_credentials_supported(&self) -> bool {
7241         self.low_entropy_credentials_supported
7242     }
clear_low_entropy_credentials_supported(&mut self)7243     pub fn clear_low_entropy_credentials_supported(&mut self) {
7244         self.low_entropy_credentials_supported = false;
7245     }
7246 
7247     // Param is passed by value, moved
set_low_entropy_credentials_supported(&mut self, v: bool)7248     pub fn set_low_entropy_credentials_supported(&mut self, v: bool) {
7249         self.low_entropy_credentials_supported = v;
7250     }
7251 }
7252 
7253 impl ::protobuf::Message for GetSupportedKeyPoliciesReply {
is_initialized(&self) -> bool7254     fn is_initialized(&self) -> bool {
7255         true
7256     }
7257 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>7258     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7259         while !is.eof()? {
7260             let (field_number, wire_type) = is.read_tag_unpack()?;
7261             match field_number {
7262                 1 => {
7263                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
7264                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
7265                     }
7266                     let tmp = is.read_bool()?;
7267                     self.low_entropy_credentials_supported = tmp;
7268                 },
7269                 _ => {
7270                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
7271                 },
7272             };
7273         }
7274         ::std::result::Result::Ok(())
7275     }
7276 
7277     // Compute sizes of nested messages
7278     #[allow(unused_variables)]
compute_size(&self) -> u327279     fn compute_size(&self) -> u32 {
7280         let mut my_size = 0;
7281         if self.low_entropy_credentials_supported != false {
7282             my_size += 2;
7283         }
7284         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
7285         self.cached_size.set(my_size);
7286         my_size
7287     }
7288 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>7289     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7290         if self.low_entropy_credentials_supported != false {
7291             os.write_bool(1, self.low_entropy_credentials_supported)?;
7292         }
7293         os.write_unknown_fields(self.get_unknown_fields())?;
7294         ::std::result::Result::Ok(())
7295     }
7296 
get_cached_size(&self) -> u327297     fn get_cached_size(&self) -> u32 {
7298         self.cached_size.get()
7299     }
7300 
get_unknown_fields(&self) -> &::protobuf::UnknownFields7301     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
7302         &self.unknown_fields
7303     }
7304 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields7305     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
7306         &mut self.unknown_fields
7307     }
7308 
as_any(&self) -> &dyn (::std::any::Any)7309     fn as_any(&self) -> &dyn (::std::any::Any) {
7310         self as &dyn (::std::any::Any)
7311     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)7312     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
7313         self as &mut dyn (::std::any::Any)
7314     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>7315     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
7316         self
7317     }
7318 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor7319     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
7320         Self::descriptor_static()
7321     }
7322 
new() -> GetSupportedKeyPoliciesReply7323     fn new() -> GetSupportedKeyPoliciesReply {
7324         GetSupportedKeyPoliciesReply::new()
7325     }
7326 
default_instance() -> &'static GetSupportedKeyPoliciesReply7327     fn default_instance() -> &'static GetSupportedKeyPoliciesReply {
7328         static instance: ::protobuf::rt::LazyV2<GetSupportedKeyPoliciesReply> = ::protobuf::rt::LazyV2::INIT;
7329         instance.get(GetSupportedKeyPoliciesReply::new)
7330     }
7331 }
7332 
7333 impl ::protobuf::Clear for GetSupportedKeyPoliciesReply {
clear(&mut self)7334     fn clear(&mut self) {
7335         self.low_entropy_credentials_supported = false;
7336         self.unknown_fields.clear();
7337     }
7338 }
7339 
7340 impl ::protobuf::reflect::ProtobufValue for GetSupportedKeyPoliciesReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef7341     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
7342         ::protobuf::reflect::ReflectValueRef::Message(self)
7343     }
7344 }
7345 
7346 #[derive(PartialEq,Clone,Default,Debug)]
7347 pub struct GetAccountDiskUsageRequest {
7348     // message fields
7349     pub identifier: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
7350     // special fields
7351     pub unknown_fields: ::protobuf::UnknownFields,
7352     pub cached_size: ::protobuf::CachedSize,
7353 }
7354 
7355 impl<'a> ::std::default::Default for &'a GetAccountDiskUsageRequest {
default() -> &'a GetAccountDiskUsageRequest7356     fn default() -> &'a GetAccountDiskUsageRequest {
7357         <GetAccountDiskUsageRequest as ::protobuf::Message>::default_instance()
7358     }
7359 }
7360 
7361 impl GetAccountDiskUsageRequest {
new() -> GetAccountDiskUsageRequest7362     pub fn new() -> GetAccountDiskUsageRequest {
7363         ::std::default::Default::default()
7364     }
7365 
7366     // .cryptohome.AccountIdentifier identifier = 1;
7367 
7368 
get_identifier(&self) -> &super::rpc::AccountIdentifier7369     pub fn get_identifier(&self) -> &super::rpc::AccountIdentifier {
7370         self.identifier.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
7371     }
clear_identifier(&mut self)7372     pub fn clear_identifier(&mut self) {
7373         self.identifier.clear();
7374     }
7375 
has_identifier(&self) -> bool7376     pub fn has_identifier(&self) -> bool {
7377         self.identifier.is_some()
7378     }
7379 
7380     // Param is passed by value, moved
set_identifier(&mut self, v: super::rpc::AccountIdentifier)7381     pub fn set_identifier(&mut self, v: super::rpc::AccountIdentifier) {
7382         self.identifier = ::protobuf::SingularPtrField::some(v);
7383     }
7384 
7385     // Mutable pointer to the field.
7386     // If field is not initialized, it is initialized with default value first.
mut_identifier(&mut self) -> &mut super::rpc::AccountIdentifier7387     pub fn mut_identifier(&mut self) -> &mut super::rpc::AccountIdentifier {
7388         if self.identifier.is_none() {
7389             self.identifier.set_default();
7390         }
7391         self.identifier.as_mut().unwrap()
7392     }
7393 
7394     // Take field
take_identifier(&mut self) -> super::rpc::AccountIdentifier7395     pub fn take_identifier(&mut self) -> super::rpc::AccountIdentifier {
7396         self.identifier.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
7397     }
7398 }
7399 
7400 impl ::protobuf::Message for GetAccountDiskUsageRequest {
is_initialized(&self) -> bool7401     fn is_initialized(&self) -> bool {
7402         for v in &self.identifier {
7403             if !v.is_initialized() {
7404                 return false;
7405             }
7406         };
7407         true
7408     }
7409 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>7410     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7411         while !is.eof()? {
7412             let (field_number, wire_type) = is.read_tag_unpack()?;
7413             match field_number {
7414                 1 => {
7415                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.identifier)?;
7416                 },
7417                 _ => {
7418                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
7419                 },
7420             };
7421         }
7422         ::std::result::Result::Ok(())
7423     }
7424 
7425     // Compute sizes of nested messages
7426     #[allow(unused_variables)]
compute_size(&self) -> u327427     fn compute_size(&self) -> u32 {
7428         let mut my_size = 0;
7429         if let Some(ref v) = self.identifier.as_ref() {
7430             let len = v.compute_size();
7431             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
7432         }
7433         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
7434         self.cached_size.set(my_size);
7435         my_size
7436     }
7437 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>7438     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7439         if let Some(ref v) = self.identifier.as_ref() {
7440             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
7441             os.write_raw_varint32(v.get_cached_size())?;
7442             v.write_to_with_cached_sizes(os)?;
7443         }
7444         os.write_unknown_fields(self.get_unknown_fields())?;
7445         ::std::result::Result::Ok(())
7446     }
7447 
get_cached_size(&self) -> u327448     fn get_cached_size(&self) -> u32 {
7449         self.cached_size.get()
7450     }
7451 
get_unknown_fields(&self) -> &::protobuf::UnknownFields7452     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
7453         &self.unknown_fields
7454     }
7455 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields7456     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
7457         &mut self.unknown_fields
7458     }
7459 
as_any(&self) -> &dyn (::std::any::Any)7460     fn as_any(&self) -> &dyn (::std::any::Any) {
7461         self as &dyn (::std::any::Any)
7462     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)7463     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
7464         self as &mut dyn (::std::any::Any)
7465     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>7466     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
7467         self
7468     }
7469 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor7470     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
7471         Self::descriptor_static()
7472     }
7473 
new() -> GetAccountDiskUsageRequest7474     fn new() -> GetAccountDiskUsageRequest {
7475         GetAccountDiskUsageRequest::new()
7476     }
7477 
default_instance() -> &'static GetAccountDiskUsageRequest7478     fn default_instance() -> &'static GetAccountDiskUsageRequest {
7479         static instance: ::protobuf::rt::LazyV2<GetAccountDiskUsageRequest> = ::protobuf::rt::LazyV2::INIT;
7480         instance.get(GetAccountDiskUsageRequest::new)
7481     }
7482 }
7483 
7484 impl ::protobuf::Clear for GetAccountDiskUsageRequest {
clear(&mut self)7485     fn clear(&mut self) {
7486         self.identifier.clear();
7487         self.unknown_fields.clear();
7488     }
7489 }
7490 
7491 impl ::protobuf::reflect::ProtobufValue for GetAccountDiskUsageRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef7492     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
7493         ::protobuf::reflect::ReflectValueRef::Message(self)
7494     }
7495 }
7496 
7497 #[derive(PartialEq,Clone,Default,Debug)]
7498 pub struct GetAccountDiskUsageReply {
7499     // message fields
7500     pub error: CryptohomeErrorCode,
7501     pub size: i64,
7502     // special fields
7503     pub unknown_fields: ::protobuf::UnknownFields,
7504     pub cached_size: ::protobuf::CachedSize,
7505 }
7506 
7507 impl<'a> ::std::default::Default for &'a GetAccountDiskUsageReply {
default() -> &'a GetAccountDiskUsageReply7508     fn default() -> &'a GetAccountDiskUsageReply {
7509         <GetAccountDiskUsageReply as ::protobuf::Message>::default_instance()
7510     }
7511 }
7512 
7513 impl GetAccountDiskUsageReply {
new() -> GetAccountDiskUsageReply7514     pub fn new() -> GetAccountDiskUsageReply {
7515         ::std::default::Default::default()
7516     }
7517 
7518     // .user_data_auth.CryptohomeErrorCode error = 1;
7519 
7520 
get_error(&self) -> CryptohomeErrorCode7521     pub fn get_error(&self) -> CryptohomeErrorCode {
7522         self.error
7523     }
clear_error(&mut self)7524     pub fn clear_error(&mut self) {
7525         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
7526     }
7527 
7528     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)7529     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
7530         self.error = v;
7531     }
7532 
7533     // int64 size = 2;
7534 
7535 
get_size(&self) -> i647536     pub fn get_size(&self) -> i64 {
7537         self.size
7538     }
clear_size(&mut self)7539     pub fn clear_size(&mut self) {
7540         self.size = 0;
7541     }
7542 
7543     // Param is passed by value, moved
set_size(&mut self, v: i64)7544     pub fn set_size(&mut self, v: i64) {
7545         self.size = v;
7546     }
7547 }
7548 
7549 impl ::protobuf::Message for GetAccountDiskUsageReply {
is_initialized(&self) -> bool7550     fn is_initialized(&self) -> bool {
7551         true
7552     }
7553 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>7554     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7555         while !is.eof()? {
7556             let (field_number, wire_type) = is.read_tag_unpack()?;
7557             match field_number {
7558                 1 => {
7559                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
7560                 },
7561                 2 => {
7562                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
7563                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
7564                     }
7565                     let tmp = is.read_int64()?;
7566                     self.size = tmp;
7567                 },
7568                 _ => {
7569                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
7570                 },
7571             };
7572         }
7573         ::std::result::Result::Ok(())
7574     }
7575 
7576     // Compute sizes of nested messages
7577     #[allow(unused_variables)]
compute_size(&self) -> u327578     fn compute_size(&self) -> u32 {
7579         let mut my_size = 0;
7580         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
7581             my_size += ::protobuf::rt::enum_size(1, self.error);
7582         }
7583         if self.size != 0 {
7584             my_size += ::protobuf::rt::value_size(2, self.size, ::protobuf::wire_format::WireTypeVarint);
7585         }
7586         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
7587         self.cached_size.set(my_size);
7588         my_size
7589     }
7590 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>7591     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7592         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
7593             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
7594         }
7595         if self.size != 0 {
7596             os.write_int64(2, self.size)?;
7597         }
7598         os.write_unknown_fields(self.get_unknown_fields())?;
7599         ::std::result::Result::Ok(())
7600     }
7601 
get_cached_size(&self) -> u327602     fn get_cached_size(&self) -> u32 {
7603         self.cached_size.get()
7604     }
7605 
get_unknown_fields(&self) -> &::protobuf::UnknownFields7606     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
7607         &self.unknown_fields
7608     }
7609 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields7610     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
7611         &mut self.unknown_fields
7612     }
7613 
as_any(&self) -> &dyn (::std::any::Any)7614     fn as_any(&self) -> &dyn (::std::any::Any) {
7615         self as &dyn (::std::any::Any)
7616     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)7617     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
7618         self as &mut dyn (::std::any::Any)
7619     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>7620     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
7621         self
7622     }
7623 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor7624     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
7625         Self::descriptor_static()
7626     }
7627 
new() -> GetAccountDiskUsageReply7628     fn new() -> GetAccountDiskUsageReply {
7629         GetAccountDiskUsageReply::new()
7630     }
7631 
default_instance() -> &'static GetAccountDiskUsageReply7632     fn default_instance() -> &'static GetAccountDiskUsageReply {
7633         static instance: ::protobuf::rt::LazyV2<GetAccountDiskUsageReply> = ::protobuf::rt::LazyV2::INIT;
7634         instance.get(GetAccountDiskUsageReply::new)
7635     }
7636 }
7637 
7638 impl ::protobuf::Clear for GetAccountDiskUsageReply {
clear(&mut self)7639     fn clear(&mut self) {
7640         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
7641         self.size = 0;
7642         self.unknown_fields.clear();
7643     }
7644 }
7645 
7646 impl ::protobuf::reflect::ProtobufValue for GetAccountDiskUsageReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef7647     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
7648         ::protobuf::reflect::ReflectValueRef::Message(self)
7649     }
7650 }
7651 
7652 #[derive(PartialEq,Clone,Default,Debug)]
7653 pub struct LowDiskSpace {
7654     // message fields
7655     pub disk_free_bytes: u64,
7656     // special fields
7657     pub unknown_fields: ::protobuf::UnknownFields,
7658     pub cached_size: ::protobuf::CachedSize,
7659 }
7660 
7661 impl<'a> ::std::default::Default for &'a LowDiskSpace {
default() -> &'a LowDiskSpace7662     fn default() -> &'a LowDiskSpace {
7663         <LowDiskSpace as ::protobuf::Message>::default_instance()
7664     }
7665 }
7666 
7667 impl LowDiskSpace {
new() -> LowDiskSpace7668     pub fn new() -> LowDiskSpace {
7669         ::std::default::Default::default()
7670     }
7671 
7672     // uint64 disk_free_bytes = 1;
7673 
7674 
get_disk_free_bytes(&self) -> u647675     pub fn get_disk_free_bytes(&self) -> u64 {
7676         self.disk_free_bytes
7677     }
clear_disk_free_bytes(&mut self)7678     pub fn clear_disk_free_bytes(&mut self) {
7679         self.disk_free_bytes = 0;
7680     }
7681 
7682     // Param is passed by value, moved
set_disk_free_bytes(&mut self, v: u64)7683     pub fn set_disk_free_bytes(&mut self, v: u64) {
7684         self.disk_free_bytes = v;
7685     }
7686 }
7687 
7688 impl ::protobuf::Message for LowDiskSpace {
is_initialized(&self) -> bool7689     fn is_initialized(&self) -> bool {
7690         true
7691     }
7692 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>7693     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7694         while !is.eof()? {
7695             let (field_number, wire_type) = is.read_tag_unpack()?;
7696             match field_number {
7697                 1 => {
7698                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
7699                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
7700                     }
7701                     let tmp = is.read_uint64()?;
7702                     self.disk_free_bytes = tmp;
7703                 },
7704                 _ => {
7705                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
7706                 },
7707             };
7708         }
7709         ::std::result::Result::Ok(())
7710     }
7711 
7712     // Compute sizes of nested messages
7713     #[allow(unused_variables)]
compute_size(&self) -> u327714     fn compute_size(&self) -> u32 {
7715         let mut my_size = 0;
7716         if self.disk_free_bytes != 0 {
7717             my_size += ::protobuf::rt::value_size(1, self.disk_free_bytes, ::protobuf::wire_format::WireTypeVarint);
7718         }
7719         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
7720         self.cached_size.set(my_size);
7721         my_size
7722     }
7723 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>7724     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7725         if self.disk_free_bytes != 0 {
7726             os.write_uint64(1, self.disk_free_bytes)?;
7727         }
7728         os.write_unknown_fields(self.get_unknown_fields())?;
7729         ::std::result::Result::Ok(())
7730     }
7731 
get_cached_size(&self) -> u327732     fn get_cached_size(&self) -> u32 {
7733         self.cached_size.get()
7734     }
7735 
get_unknown_fields(&self) -> &::protobuf::UnknownFields7736     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
7737         &self.unknown_fields
7738     }
7739 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields7740     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
7741         &mut self.unknown_fields
7742     }
7743 
as_any(&self) -> &dyn (::std::any::Any)7744     fn as_any(&self) -> &dyn (::std::any::Any) {
7745         self as &dyn (::std::any::Any)
7746     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)7747     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
7748         self as &mut dyn (::std::any::Any)
7749     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>7750     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
7751         self
7752     }
7753 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor7754     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
7755         Self::descriptor_static()
7756     }
7757 
new() -> LowDiskSpace7758     fn new() -> LowDiskSpace {
7759         LowDiskSpace::new()
7760     }
7761 
default_instance() -> &'static LowDiskSpace7762     fn default_instance() -> &'static LowDiskSpace {
7763         static instance: ::protobuf::rt::LazyV2<LowDiskSpace> = ::protobuf::rt::LazyV2::INIT;
7764         instance.get(LowDiskSpace::new)
7765     }
7766 }
7767 
7768 impl ::protobuf::Clear for LowDiskSpace {
clear(&mut self)7769     fn clear(&mut self) {
7770         self.disk_free_bytes = 0;
7771         self.unknown_fields.clear();
7772     }
7773 }
7774 
7775 impl ::protobuf::reflect::ProtobufValue for LowDiskSpace {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef7776     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
7777         ::protobuf::reflect::ReflectValueRef::Message(self)
7778     }
7779 }
7780 
7781 #[derive(PartialEq,Clone,Default,Debug)]
7782 pub struct StartAuthSessionRequest {
7783     // message fields
7784     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
7785     pub flags: u32,
7786     pub intent: super::auth_factor::AuthIntent,
7787     // special fields
7788     pub unknown_fields: ::protobuf::UnknownFields,
7789     pub cached_size: ::protobuf::CachedSize,
7790 }
7791 
7792 impl<'a> ::std::default::Default for &'a StartAuthSessionRequest {
default() -> &'a StartAuthSessionRequest7793     fn default() -> &'a StartAuthSessionRequest {
7794         <StartAuthSessionRequest as ::protobuf::Message>::default_instance()
7795     }
7796 }
7797 
7798 impl StartAuthSessionRequest {
new() -> StartAuthSessionRequest7799     pub fn new() -> StartAuthSessionRequest {
7800         ::std::default::Default::default()
7801     }
7802 
7803     // .cryptohome.AccountIdentifier account_id = 1;
7804 
7805 
get_account_id(&self) -> &super::rpc::AccountIdentifier7806     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
7807         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
7808     }
clear_account_id(&mut self)7809     pub fn clear_account_id(&mut self) {
7810         self.account_id.clear();
7811     }
7812 
has_account_id(&self) -> bool7813     pub fn has_account_id(&self) -> bool {
7814         self.account_id.is_some()
7815     }
7816 
7817     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)7818     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
7819         self.account_id = ::protobuf::SingularPtrField::some(v);
7820     }
7821 
7822     // Mutable pointer to the field.
7823     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier7824     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
7825         if self.account_id.is_none() {
7826             self.account_id.set_default();
7827         }
7828         self.account_id.as_mut().unwrap()
7829     }
7830 
7831     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier7832     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
7833         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
7834     }
7835 
7836     // uint32 flags = 2;
7837 
7838 
get_flags(&self) -> u327839     pub fn get_flags(&self) -> u32 {
7840         self.flags
7841     }
clear_flags(&mut self)7842     pub fn clear_flags(&mut self) {
7843         self.flags = 0;
7844     }
7845 
7846     // Param is passed by value, moved
set_flags(&mut self, v: u32)7847     pub fn set_flags(&mut self, v: u32) {
7848         self.flags = v;
7849     }
7850 
7851     // .user_data_auth.AuthIntent intent = 3;
7852 
7853 
get_intent(&self) -> super::auth_factor::AuthIntent7854     pub fn get_intent(&self) -> super::auth_factor::AuthIntent {
7855         self.intent
7856     }
clear_intent(&mut self)7857     pub fn clear_intent(&mut self) {
7858         self.intent = super::auth_factor::AuthIntent::AUTH_INTENT_UNSPECIFIED;
7859     }
7860 
7861     // Param is passed by value, moved
set_intent(&mut self, v: super::auth_factor::AuthIntent)7862     pub fn set_intent(&mut self, v: super::auth_factor::AuthIntent) {
7863         self.intent = v;
7864     }
7865 }
7866 
7867 impl ::protobuf::Message for StartAuthSessionRequest {
is_initialized(&self) -> bool7868     fn is_initialized(&self) -> bool {
7869         for v in &self.account_id {
7870             if !v.is_initialized() {
7871                 return false;
7872             }
7873         };
7874         true
7875     }
7876 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>7877     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7878         while !is.eof()? {
7879             let (field_number, wire_type) = is.read_tag_unpack()?;
7880             match field_number {
7881                 1 => {
7882                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
7883                 },
7884                 2 => {
7885                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
7886                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
7887                     }
7888                     let tmp = is.read_uint32()?;
7889                     self.flags = tmp;
7890                 },
7891                 3 => {
7892                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.intent, 3, &mut self.unknown_fields)?
7893                 },
7894                 _ => {
7895                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
7896                 },
7897             };
7898         }
7899         ::std::result::Result::Ok(())
7900     }
7901 
7902     // Compute sizes of nested messages
7903     #[allow(unused_variables)]
compute_size(&self) -> u327904     fn compute_size(&self) -> u32 {
7905         let mut my_size = 0;
7906         if let Some(ref v) = self.account_id.as_ref() {
7907             let len = v.compute_size();
7908             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
7909         }
7910         if self.flags != 0 {
7911             my_size += ::protobuf::rt::value_size(2, self.flags, ::protobuf::wire_format::WireTypeVarint);
7912         }
7913         if self.intent != super::auth_factor::AuthIntent::AUTH_INTENT_UNSPECIFIED {
7914             my_size += ::protobuf::rt::enum_size(3, self.intent);
7915         }
7916         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
7917         self.cached_size.set(my_size);
7918         my_size
7919     }
7920 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>7921     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
7922         if let Some(ref v) = self.account_id.as_ref() {
7923             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
7924             os.write_raw_varint32(v.get_cached_size())?;
7925             v.write_to_with_cached_sizes(os)?;
7926         }
7927         if self.flags != 0 {
7928             os.write_uint32(2, self.flags)?;
7929         }
7930         if self.intent != super::auth_factor::AuthIntent::AUTH_INTENT_UNSPECIFIED {
7931             os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.intent))?;
7932         }
7933         os.write_unknown_fields(self.get_unknown_fields())?;
7934         ::std::result::Result::Ok(())
7935     }
7936 
get_cached_size(&self) -> u327937     fn get_cached_size(&self) -> u32 {
7938         self.cached_size.get()
7939     }
7940 
get_unknown_fields(&self) -> &::protobuf::UnknownFields7941     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
7942         &self.unknown_fields
7943     }
7944 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields7945     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
7946         &mut self.unknown_fields
7947     }
7948 
as_any(&self) -> &dyn (::std::any::Any)7949     fn as_any(&self) -> &dyn (::std::any::Any) {
7950         self as &dyn (::std::any::Any)
7951     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)7952     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
7953         self as &mut dyn (::std::any::Any)
7954     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>7955     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
7956         self
7957     }
7958 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor7959     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
7960         Self::descriptor_static()
7961     }
7962 
new() -> StartAuthSessionRequest7963     fn new() -> StartAuthSessionRequest {
7964         StartAuthSessionRequest::new()
7965     }
7966 
default_instance() -> &'static StartAuthSessionRequest7967     fn default_instance() -> &'static StartAuthSessionRequest {
7968         static instance: ::protobuf::rt::LazyV2<StartAuthSessionRequest> = ::protobuf::rt::LazyV2::INIT;
7969         instance.get(StartAuthSessionRequest::new)
7970     }
7971 }
7972 
7973 impl ::protobuf::Clear for StartAuthSessionRequest {
clear(&mut self)7974     fn clear(&mut self) {
7975         self.account_id.clear();
7976         self.flags = 0;
7977         self.intent = super::auth_factor::AuthIntent::AUTH_INTENT_UNSPECIFIED;
7978         self.unknown_fields.clear();
7979     }
7980 }
7981 
7982 impl ::protobuf::reflect::ProtobufValue for StartAuthSessionRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef7983     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
7984         ::protobuf::reflect::ReflectValueRef::Message(self)
7985     }
7986 }
7987 
7988 #[derive(PartialEq,Clone,Default,Debug)]
7989 pub struct AuthFactorWithStatus {
7990     // message fields
7991     pub auth_factor: ::protobuf::SingularPtrField<super::auth_factor::AuthFactor>,
7992     pub available_for_intents: ::std::vec::Vec<super::auth_factor::AuthIntent>,
7993     // special fields
7994     pub unknown_fields: ::protobuf::UnknownFields,
7995     pub cached_size: ::protobuf::CachedSize,
7996 }
7997 
7998 impl<'a> ::std::default::Default for &'a AuthFactorWithStatus {
default() -> &'a AuthFactorWithStatus7999     fn default() -> &'a AuthFactorWithStatus {
8000         <AuthFactorWithStatus as ::protobuf::Message>::default_instance()
8001     }
8002 }
8003 
8004 impl AuthFactorWithStatus {
new() -> AuthFactorWithStatus8005     pub fn new() -> AuthFactorWithStatus {
8006         ::std::default::Default::default()
8007     }
8008 
8009     // .user_data_auth.AuthFactor auth_factor = 1;
8010 
8011 
get_auth_factor(&self) -> &super::auth_factor::AuthFactor8012     pub fn get_auth_factor(&self) -> &super::auth_factor::AuthFactor {
8013         self.auth_factor.as_ref().unwrap_or_else(|| <super::auth_factor::AuthFactor as ::protobuf::Message>::default_instance())
8014     }
clear_auth_factor(&mut self)8015     pub fn clear_auth_factor(&mut self) {
8016         self.auth_factor.clear();
8017     }
8018 
has_auth_factor(&self) -> bool8019     pub fn has_auth_factor(&self) -> bool {
8020         self.auth_factor.is_some()
8021     }
8022 
8023     // Param is passed by value, moved
set_auth_factor(&mut self, v: super::auth_factor::AuthFactor)8024     pub fn set_auth_factor(&mut self, v: super::auth_factor::AuthFactor) {
8025         self.auth_factor = ::protobuf::SingularPtrField::some(v);
8026     }
8027 
8028     // Mutable pointer to the field.
8029     // If field is not initialized, it is initialized with default value first.
mut_auth_factor(&mut self) -> &mut super::auth_factor::AuthFactor8030     pub fn mut_auth_factor(&mut self) -> &mut super::auth_factor::AuthFactor {
8031         if self.auth_factor.is_none() {
8032             self.auth_factor.set_default();
8033         }
8034         self.auth_factor.as_mut().unwrap()
8035     }
8036 
8037     // Take field
take_auth_factor(&mut self) -> super::auth_factor::AuthFactor8038     pub fn take_auth_factor(&mut self) -> super::auth_factor::AuthFactor {
8039         self.auth_factor.take().unwrap_or_else(|| super::auth_factor::AuthFactor::new())
8040     }
8041 
8042     // repeated .user_data_auth.AuthIntent available_for_intents = 2;
8043 
8044 
get_available_for_intents(&self) -> &[super::auth_factor::AuthIntent]8045     pub fn get_available_for_intents(&self) -> &[super::auth_factor::AuthIntent] {
8046         &self.available_for_intents
8047     }
clear_available_for_intents(&mut self)8048     pub fn clear_available_for_intents(&mut self) {
8049         self.available_for_intents.clear();
8050     }
8051 
8052     // Param is passed by value, moved
set_available_for_intents(&mut self, v: ::std::vec::Vec<super::auth_factor::AuthIntent>)8053     pub fn set_available_for_intents(&mut self, v: ::std::vec::Vec<super::auth_factor::AuthIntent>) {
8054         self.available_for_intents = v;
8055     }
8056 
8057     // Mutable pointer to the field.
mut_available_for_intents(&mut self) -> &mut ::std::vec::Vec<super::auth_factor::AuthIntent>8058     pub fn mut_available_for_intents(&mut self) -> &mut ::std::vec::Vec<super::auth_factor::AuthIntent> {
8059         &mut self.available_for_intents
8060     }
8061 
8062     // Take field
take_available_for_intents(&mut self) -> ::std::vec::Vec<super::auth_factor::AuthIntent>8063     pub fn take_available_for_intents(&mut self) -> ::std::vec::Vec<super::auth_factor::AuthIntent> {
8064         ::std::mem::replace(&mut self.available_for_intents, ::std::vec::Vec::new())
8065     }
8066 }
8067 
8068 impl ::protobuf::Message for AuthFactorWithStatus {
is_initialized(&self) -> bool8069     fn is_initialized(&self) -> bool {
8070         for v in &self.auth_factor {
8071             if !v.is_initialized() {
8072                 return false;
8073             }
8074         };
8075         true
8076     }
8077 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>8078     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
8079         while !is.eof()? {
8080             let (field_number, wire_type) = is.read_tag_unpack()?;
8081             match field_number {
8082                 1 => {
8083                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.auth_factor)?;
8084                 },
8085                 2 => {
8086                     ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.available_for_intents, 2, &mut self.unknown_fields)?
8087                 },
8088                 _ => {
8089                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
8090                 },
8091             };
8092         }
8093         ::std::result::Result::Ok(())
8094     }
8095 
8096     // Compute sizes of nested messages
8097     #[allow(unused_variables)]
compute_size(&self) -> u328098     fn compute_size(&self) -> u32 {
8099         let mut my_size = 0;
8100         if let Some(ref v) = self.auth_factor.as_ref() {
8101             let len = v.compute_size();
8102             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
8103         }
8104         for value in &self.available_for_intents {
8105             my_size += ::protobuf::rt::enum_size(2, *value);
8106         };
8107         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
8108         self.cached_size.set(my_size);
8109         my_size
8110     }
8111 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>8112     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
8113         if let Some(ref v) = self.auth_factor.as_ref() {
8114             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
8115             os.write_raw_varint32(v.get_cached_size())?;
8116             v.write_to_with_cached_sizes(os)?;
8117         }
8118         for v in &self.available_for_intents {
8119             os.write_enum(2, ::protobuf::ProtobufEnum::value(v))?;
8120         };
8121         os.write_unknown_fields(self.get_unknown_fields())?;
8122         ::std::result::Result::Ok(())
8123     }
8124 
get_cached_size(&self) -> u328125     fn get_cached_size(&self) -> u32 {
8126         self.cached_size.get()
8127     }
8128 
get_unknown_fields(&self) -> &::protobuf::UnknownFields8129     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
8130         &self.unknown_fields
8131     }
8132 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields8133     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
8134         &mut self.unknown_fields
8135     }
8136 
as_any(&self) -> &dyn (::std::any::Any)8137     fn as_any(&self) -> &dyn (::std::any::Any) {
8138         self as &dyn (::std::any::Any)
8139     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)8140     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
8141         self as &mut dyn (::std::any::Any)
8142     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>8143     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
8144         self
8145     }
8146 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor8147     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
8148         Self::descriptor_static()
8149     }
8150 
new() -> AuthFactorWithStatus8151     fn new() -> AuthFactorWithStatus {
8152         AuthFactorWithStatus::new()
8153     }
8154 
default_instance() -> &'static AuthFactorWithStatus8155     fn default_instance() -> &'static AuthFactorWithStatus {
8156         static instance: ::protobuf::rt::LazyV2<AuthFactorWithStatus> = ::protobuf::rt::LazyV2::INIT;
8157         instance.get(AuthFactorWithStatus::new)
8158     }
8159 }
8160 
8161 impl ::protobuf::Clear for AuthFactorWithStatus {
clear(&mut self)8162     fn clear(&mut self) {
8163         self.auth_factor.clear();
8164         self.available_for_intents.clear();
8165         self.unknown_fields.clear();
8166     }
8167 }
8168 
8169 impl ::protobuf::reflect::ProtobufValue for AuthFactorWithStatus {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef8170     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
8171         ::protobuf::reflect::ReflectValueRef::Message(self)
8172     }
8173 }
8174 
8175 #[derive(PartialEq,Clone,Default,Debug)]
8176 pub struct StartAuthSessionReply {
8177     // message fields
8178     pub error: CryptohomeErrorCode,
8179     pub auth_session_id: ::std::vec::Vec<u8>,
8180     pub user_exists: bool,
8181     pub key_label_data: ::std::collections::HashMap<::std::string::String, super::key::KeyData>,
8182     pub auth_factors: ::protobuf::RepeatedField<super::auth_factor::AuthFactor>,
8183     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
8184     // special fields
8185     pub unknown_fields: ::protobuf::UnknownFields,
8186     pub cached_size: ::protobuf::CachedSize,
8187 }
8188 
8189 impl<'a> ::std::default::Default for &'a StartAuthSessionReply {
default() -> &'a StartAuthSessionReply8190     fn default() -> &'a StartAuthSessionReply {
8191         <StartAuthSessionReply as ::protobuf::Message>::default_instance()
8192     }
8193 }
8194 
8195 impl StartAuthSessionReply {
new() -> StartAuthSessionReply8196     pub fn new() -> StartAuthSessionReply {
8197         ::std::default::Default::default()
8198     }
8199 
8200     // .user_data_auth.CryptohomeErrorCode error = 1;
8201 
8202 
get_error(&self) -> CryptohomeErrorCode8203     pub fn get_error(&self) -> CryptohomeErrorCode {
8204         self.error
8205     }
clear_error(&mut self)8206     pub fn clear_error(&mut self) {
8207         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
8208     }
8209 
8210     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)8211     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
8212         self.error = v;
8213     }
8214 
8215     // bytes auth_session_id = 2;
8216 
8217 
get_auth_session_id(&self) -> &[u8]8218     pub fn get_auth_session_id(&self) -> &[u8] {
8219         &self.auth_session_id
8220     }
clear_auth_session_id(&mut self)8221     pub fn clear_auth_session_id(&mut self) {
8222         self.auth_session_id.clear();
8223     }
8224 
8225     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)8226     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
8227         self.auth_session_id = v;
8228     }
8229 
8230     // Mutable pointer to the field.
8231     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>8232     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
8233         &mut self.auth_session_id
8234     }
8235 
8236     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>8237     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
8238         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
8239     }
8240 
8241     // bool user_exists = 3;
8242 
8243 
get_user_exists(&self) -> bool8244     pub fn get_user_exists(&self) -> bool {
8245         self.user_exists
8246     }
clear_user_exists(&mut self)8247     pub fn clear_user_exists(&mut self) {
8248         self.user_exists = false;
8249     }
8250 
8251     // Param is passed by value, moved
set_user_exists(&mut self, v: bool)8252     pub fn set_user_exists(&mut self, v: bool) {
8253         self.user_exists = v;
8254     }
8255 
8256     // repeated .user_data_auth.StartAuthSessionReply.KeyLabelDataEntry key_label_data = 4;
8257 
8258 
get_key_label_data(&self) -> &::std::collections::HashMap<::std::string::String, super::key::KeyData>8259     pub fn get_key_label_data(&self) -> &::std::collections::HashMap<::std::string::String, super::key::KeyData> {
8260         &self.key_label_data
8261     }
clear_key_label_data(&mut self)8262     pub fn clear_key_label_data(&mut self) {
8263         self.key_label_data.clear();
8264     }
8265 
8266     // Param is passed by value, moved
set_key_label_data(&mut self, v: ::std::collections::HashMap<::std::string::String, super::key::KeyData>)8267     pub fn set_key_label_data(&mut self, v: ::std::collections::HashMap<::std::string::String, super::key::KeyData>) {
8268         self.key_label_data = v;
8269     }
8270 
8271     // Mutable pointer to the field.
mut_key_label_data(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, super::key::KeyData>8272     pub fn mut_key_label_data(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, super::key::KeyData> {
8273         &mut self.key_label_data
8274     }
8275 
8276     // Take field
take_key_label_data(&mut self) -> ::std::collections::HashMap<::std::string::String, super::key::KeyData>8277     pub fn take_key_label_data(&mut self) -> ::std::collections::HashMap<::std::string::String, super::key::KeyData> {
8278         ::std::mem::replace(&mut self.key_label_data, ::std::collections::HashMap::new())
8279     }
8280 
8281     // repeated .user_data_auth.AuthFactor auth_factors = 5;
8282 
8283 
get_auth_factors(&self) -> &[super::auth_factor::AuthFactor]8284     pub fn get_auth_factors(&self) -> &[super::auth_factor::AuthFactor] {
8285         &self.auth_factors
8286     }
clear_auth_factors(&mut self)8287     pub fn clear_auth_factors(&mut self) {
8288         self.auth_factors.clear();
8289     }
8290 
8291     // Param is passed by value, moved
set_auth_factors(&mut self, v: ::protobuf::RepeatedField<super::auth_factor::AuthFactor>)8292     pub fn set_auth_factors(&mut self, v: ::protobuf::RepeatedField<super::auth_factor::AuthFactor>) {
8293         self.auth_factors = v;
8294     }
8295 
8296     // Mutable pointer to the field.
mut_auth_factors(&mut self) -> &mut ::protobuf::RepeatedField<super::auth_factor::AuthFactor>8297     pub fn mut_auth_factors(&mut self) -> &mut ::protobuf::RepeatedField<super::auth_factor::AuthFactor> {
8298         &mut self.auth_factors
8299     }
8300 
8301     // Take field
take_auth_factors(&mut self) -> ::protobuf::RepeatedField<super::auth_factor::AuthFactor>8302     pub fn take_auth_factors(&mut self) -> ::protobuf::RepeatedField<super::auth_factor::AuthFactor> {
8303         ::std::mem::replace(&mut self.auth_factors, ::protobuf::RepeatedField::new())
8304     }
8305 
8306     // .user_data_auth.CryptohomeErrorInfo error_info = 6;
8307 
8308 
get_error_info(&self) -> &CryptohomeErrorInfo8309     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
8310         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
8311     }
clear_error_info(&mut self)8312     pub fn clear_error_info(&mut self) {
8313         self.error_info.clear();
8314     }
8315 
has_error_info(&self) -> bool8316     pub fn has_error_info(&self) -> bool {
8317         self.error_info.is_some()
8318     }
8319 
8320     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)8321     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
8322         self.error_info = ::protobuf::SingularPtrField::some(v);
8323     }
8324 
8325     // Mutable pointer to the field.
8326     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo8327     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
8328         if self.error_info.is_none() {
8329             self.error_info.set_default();
8330         }
8331         self.error_info.as_mut().unwrap()
8332     }
8333 
8334     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo8335     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
8336         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
8337     }
8338 }
8339 
8340 impl ::protobuf::Message for StartAuthSessionReply {
is_initialized(&self) -> bool8341     fn is_initialized(&self) -> bool {
8342         for v in &self.auth_factors {
8343             if !v.is_initialized() {
8344                 return false;
8345             }
8346         };
8347         for v in &self.error_info {
8348             if !v.is_initialized() {
8349                 return false;
8350             }
8351         };
8352         true
8353     }
8354 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>8355     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
8356         while !is.eof()? {
8357             let (field_number, wire_type) = is.read_tag_unpack()?;
8358             match field_number {
8359                 1 => {
8360                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
8361                 },
8362                 2 => {
8363                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
8364                 },
8365                 3 => {
8366                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
8367                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
8368                     }
8369                     let tmp = is.read_bool()?;
8370                     self.user_exists = tmp;
8371                 },
8372                 4 => {
8373                     ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<super::key::KeyData>>(wire_type, is, &mut self.key_label_data)?;
8374                 },
8375                 5 => {
8376                     ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.auth_factors)?;
8377                 },
8378                 6 => {
8379                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
8380                 },
8381                 _ => {
8382                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
8383                 },
8384             };
8385         }
8386         ::std::result::Result::Ok(())
8387     }
8388 
8389     // Compute sizes of nested messages
8390     #[allow(unused_variables)]
compute_size(&self) -> u328391     fn compute_size(&self) -> u32 {
8392         let mut my_size = 0;
8393         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
8394             my_size += ::protobuf::rt::enum_size(1, self.error);
8395         }
8396         if !self.auth_session_id.is_empty() {
8397             my_size += ::protobuf::rt::bytes_size(2, &self.auth_session_id);
8398         }
8399         if self.user_exists != false {
8400             my_size += 2;
8401         }
8402         my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<super::key::KeyData>>(4, &self.key_label_data);
8403         for value in &self.auth_factors {
8404             let len = value.compute_size();
8405             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
8406         };
8407         if let Some(ref v) = self.error_info.as_ref() {
8408             let len = v.compute_size();
8409             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
8410         }
8411         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
8412         self.cached_size.set(my_size);
8413         my_size
8414     }
8415 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>8416     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
8417         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
8418             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
8419         }
8420         if !self.auth_session_id.is_empty() {
8421             os.write_bytes(2, &self.auth_session_id)?;
8422         }
8423         if self.user_exists != false {
8424             os.write_bool(3, self.user_exists)?;
8425         }
8426         ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<super::key::KeyData>>(4, &self.key_label_data, os)?;
8427         for v in &self.auth_factors {
8428             os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
8429             os.write_raw_varint32(v.get_cached_size())?;
8430             v.write_to_with_cached_sizes(os)?;
8431         };
8432         if let Some(ref v) = self.error_info.as_ref() {
8433             os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
8434             os.write_raw_varint32(v.get_cached_size())?;
8435             v.write_to_with_cached_sizes(os)?;
8436         }
8437         os.write_unknown_fields(self.get_unknown_fields())?;
8438         ::std::result::Result::Ok(())
8439     }
8440 
get_cached_size(&self) -> u328441     fn get_cached_size(&self) -> u32 {
8442         self.cached_size.get()
8443     }
8444 
get_unknown_fields(&self) -> &::protobuf::UnknownFields8445     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
8446         &self.unknown_fields
8447     }
8448 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields8449     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
8450         &mut self.unknown_fields
8451     }
8452 
as_any(&self) -> &dyn (::std::any::Any)8453     fn as_any(&self) -> &dyn (::std::any::Any) {
8454         self as &dyn (::std::any::Any)
8455     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)8456     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
8457         self as &mut dyn (::std::any::Any)
8458     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>8459     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
8460         self
8461     }
8462 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor8463     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
8464         Self::descriptor_static()
8465     }
8466 
new() -> StartAuthSessionReply8467     fn new() -> StartAuthSessionReply {
8468         StartAuthSessionReply::new()
8469     }
8470 
default_instance() -> &'static StartAuthSessionReply8471     fn default_instance() -> &'static StartAuthSessionReply {
8472         static instance: ::protobuf::rt::LazyV2<StartAuthSessionReply> = ::protobuf::rt::LazyV2::INIT;
8473         instance.get(StartAuthSessionReply::new)
8474     }
8475 }
8476 
8477 impl ::protobuf::Clear for StartAuthSessionReply {
clear(&mut self)8478     fn clear(&mut self) {
8479         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
8480         self.auth_session_id.clear();
8481         self.user_exists = false;
8482         self.key_label_data.clear();
8483         self.auth_factors.clear();
8484         self.error_info.clear();
8485         self.unknown_fields.clear();
8486     }
8487 }
8488 
8489 impl ::protobuf::reflect::ProtobufValue for StartAuthSessionReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef8490     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
8491         ::protobuf::reflect::ReflectValueRef::Message(self)
8492     }
8493 }
8494 
8495 #[derive(PartialEq,Clone,Default,Debug)]
8496 pub struct AddCredentialsRequest {
8497     // message fields
8498     pub auth_session_id: ::std::vec::Vec<u8>,
8499     pub authorization: ::protobuf::SingularPtrField<super::rpc::AuthorizationRequest>,
8500     pub add_more_credentials: bool,
8501     // special fields
8502     pub unknown_fields: ::protobuf::UnknownFields,
8503     pub cached_size: ::protobuf::CachedSize,
8504 }
8505 
8506 impl<'a> ::std::default::Default for &'a AddCredentialsRequest {
default() -> &'a AddCredentialsRequest8507     fn default() -> &'a AddCredentialsRequest {
8508         <AddCredentialsRequest as ::protobuf::Message>::default_instance()
8509     }
8510 }
8511 
8512 impl AddCredentialsRequest {
new() -> AddCredentialsRequest8513     pub fn new() -> AddCredentialsRequest {
8514         ::std::default::Default::default()
8515     }
8516 
8517     // bytes auth_session_id = 1;
8518 
8519 
get_auth_session_id(&self) -> &[u8]8520     pub fn get_auth_session_id(&self) -> &[u8] {
8521         &self.auth_session_id
8522     }
clear_auth_session_id(&mut self)8523     pub fn clear_auth_session_id(&mut self) {
8524         self.auth_session_id.clear();
8525     }
8526 
8527     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)8528     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
8529         self.auth_session_id = v;
8530     }
8531 
8532     // Mutable pointer to the field.
8533     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>8534     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
8535         &mut self.auth_session_id
8536     }
8537 
8538     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>8539     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
8540         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
8541     }
8542 
8543     // .cryptohome.AuthorizationRequest authorization = 2;
8544 
8545 
get_authorization(&self) -> &super::rpc::AuthorizationRequest8546     pub fn get_authorization(&self) -> &super::rpc::AuthorizationRequest {
8547         self.authorization.as_ref().unwrap_or_else(|| <super::rpc::AuthorizationRequest as ::protobuf::Message>::default_instance())
8548     }
clear_authorization(&mut self)8549     pub fn clear_authorization(&mut self) {
8550         self.authorization.clear();
8551     }
8552 
has_authorization(&self) -> bool8553     pub fn has_authorization(&self) -> bool {
8554         self.authorization.is_some()
8555     }
8556 
8557     // Param is passed by value, moved
set_authorization(&mut self, v: super::rpc::AuthorizationRequest)8558     pub fn set_authorization(&mut self, v: super::rpc::AuthorizationRequest) {
8559         self.authorization = ::protobuf::SingularPtrField::some(v);
8560     }
8561 
8562     // Mutable pointer to the field.
8563     // If field is not initialized, it is initialized with default value first.
mut_authorization(&mut self) -> &mut super::rpc::AuthorizationRequest8564     pub fn mut_authorization(&mut self) -> &mut super::rpc::AuthorizationRequest {
8565         if self.authorization.is_none() {
8566             self.authorization.set_default();
8567         }
8568         self.authorization.as_mut().unwrap()
8569     }
8570 
8571     // Take field
take_authorization(&mut self) -> super::rpc::AuthorizationRequest8572     pub fn take_authorization(&mut self) -> super::rpc::AuthorizationRequest {
8573         self.authorization.take().unwrap_or_else(|| super::rpc::AuthorizationRequest::new())
8574     }
8575 
8576     // bool add_more_credentials = 3;
8577 
8578 
get_add_more_credentials(&self) -> bool8579     pub fn get_add_more_credentials(&self) -> bool {
8580         self.add_more_credentials
8581     }
clear_add_more_credentials(&mut self)8582     pub fn clear_add_more_credentials(&mut self) {
8583         self.add_more_credentials = false;
8584     }
8585 
8586     // Param is passed by value, moved
set_add_more_credentials(&mut self, v: bool)8587     pub fn set_add_more_credentials(&mut self, v: bool) {
8588         self.add_more_credentials = v;
8589     }
8590 }
8591 
8592 impl ::protobuf::Message for AddCredentialsRequest {
is_initialized(&self) -> bool8593     fn is_initialized(&self) -> bool {
8594         for v in &self.authorization {
8595             if !v.is_initialized() {
8596                 return false;
8597             }
8598         };
8599         true
8600     }
8601 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>8602     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
8603         while !is.eof()? {
8604             let (field_number, wire_type) = is.read_tag_unpack()?;
8605             match field_number {
8606                 1 => {
8607                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
8608                 },
8609                 2 => {
8610                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authorization)?;
8611                 },
8612                 3 => {
8613                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
8614                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
8615                     }
8616                     let tmp = is.read_bool()?;
8617                     self.add_more_credentials = tmp;
8618                 },
8619                 _ => {
8620                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
8621                 },
8622             };
8623         }
8624         ::std::result::Result::Ok(())
8625     }
8626 
8627     // Compute sizes of nested messages
8628     #[allow(unused_variables)]
compute_size(&self) -> u328629     fn compute_size(&self) -> u32 {
8630         let mut my_size = 0;
8631         if !self.auth_session_id.is_empty() {
8632             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
8633         }
8634         if let Some(ref v) = self.authorization.as_ref() {
8635             let len = v.compute_size();
8636             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
8637         }
8638         if self.add_more_credentials != false {
8639             my_size += 2;
8640         }
8641         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
8642         self.cached_size.set(my_size);
8643         my_size
8644     }
8645 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>8646     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
8647         if !self.auth_session_id.is_empty() {
8648             os.write_bytes(1, &self.auth_session_id)?;
8649         }
8650         if let Some(ref v) = self.authorization.as_ref() {
8651             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
8652             os.write_raw_varint32(v.get_cached_size())?;
8653             v.write_to_with_cached_sizes(os)?;
8654         }
8655         if self.add_more_credentials != false {
8656             os.write_bool(3, self.add_more_credentials)?;
8657         }
8658         os.write_unknown_fields(self.get_unknown_fields())?;
8659         ::std::result::Result::Ok(())
8660     }
8661 
get_cached_size(&self) -> u328662     fn get_cached_size(&self) -> u32 {
8663         self.cached_size.get()
8664     }
8665 
get_unknown_fields(&self) -> &::protobuf::UnknownFields8666     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
8667         &self.unknown_fields
8668     }
8669 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields8670     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
8671         &mut self.unknown_fields
8672     }
8673 
as_any(&self) -> &dyn (::std::any::Any)8674     fn as_any(&self) -> &dyn (::std::any::Any) {
8675         self as &dyn (::std::any::Any)
8676     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)8677     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
8678         self as &mut dyn (::std::any::Any)
8679     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>8680     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
8681         self
8682     }
8683 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor8684     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
8685         Self::descriptor_static()
8686     }
8687 
new() -> AddCredentialsRequest8688     fn new() -> AddCredentialsRequest {
8689         AddCredentialsRequest::new()
8690     }
8691 
default_instance() -> &'static AddCredentialsRequest8692     fn default_instance() -> &'static AddCredentialsRequest {
8693         static instance: ::protobuf::rt::LazyV2<AddCredentialsRequest> = ::protobuf::rt::LazyV2::INIT;
8694         instance.get(AddCredentialsRequest::new)
8695     }
8696 }
8697 
8698 impl ::protobuf::Clear for AddCredentialsRequest {
clear(&mut self)8699     fn clear(&mut self) {
8700         self.auth_session_id.clear();
8701         self.authorization.clear();
8702         self.add_more_credentials = false;
8703         self.unknown_fields.clear();
8704     }
8705 }
8706 
8707 impl ::protobuf::reflect::ProtobufValue for AddCredentialsRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef8708     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
8709         ::protobuf::reflect::ReflectValueRef::Message(self)
8710     }
8711 }
8712 
8713 #[derive(PartialEq,Clone,Default,Debug)]
8714 pub struct AddCredentialsReply {
8715     // message fields
8716     pub error: CryptohomeErrorCode,
8717     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
8718     // special fields
8719     pub unknown_fields: ::protobuf::UnknownFields,
8720     pub cached_size: ::protobuf::CachedSize,
8721 }
8722 
8723 impl<'a> ::std::default::Default for &'a AddCredentialsReply {
default() -> &'a AddCredentialsReply8724     fn default() -> &'a AddCredentialsReply {
8725         <AddCredentialsReply as ::protobuf::Message>::default_instance()
8726     }
8727 }
8728 
8729 impl AddCredentialsReply {
new() -> AddCredentialsReply8730     pub fn new() -> AddCredentialsReply {
8731         ::std::default::Default::default()
8732     }
8733 
8734     // .user_data_auth.CryptohomeErrorCode error = 1;
8735 
8736 
get_error(&self) -> CryptohomeErrorCode8737     pub fn get_error(&self) -> CryptohomeErrorCode {
8738         self.error
8739     }
clear_error(&mut self)8740     pub fn clear_error(&mut self) {
8741         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
8742     }
8743 
8744     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)8745     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
8746         self.error = v;
8747     }
8748 
8749     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
8750 
8751 
get_error_info(&self) -> &CryptohomeErrorInfo8752     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
8753         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
8754     }
clear_error_info(&mut self)8755     pub fn clear_error_info(&mut self) {
8756         self.error_info.clear();
8757     }
8758 
has_error_info(&self) -> bool8759     pub fn has_error_info(&self) -> bool {
8760         self.error_info.is_some()
8761     }
8762 
8763     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)8764     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
8765         self.error_info = ::protobuf::SingularPtrField::some(v);
8766     }
8767 
8768     // Mutable pointer to the field.
8769     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo8770     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
8771         if self.error_info.is_none() {
8772             self.error_info.set_default();
8773         }
8774         self.error_info.as_mut().unwrap()
8775     }
8776 
8777     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo8778     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
8779         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
8780     }
8781 }
8782 
8783 impl ::protobuf::Message for AddCredentialsReply {
is_initialized(&self) -> bool8784     fn is_initialized(&self) -> bool {
8785         for v in &self.error_info {
8786             if !v.is_initialized() {
8787                 return false;
8788             }
8789         };
8790         true
8791     }
8792 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>8793     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
8794         while !is.eof()? {
8795             let (field_number, wire_type) = is.read_tag_unpack()?;
8796             match field_number {
8797                 1 => {
8798                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
8799                 },
8800                 2 => {
8801                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
8802                 },
8803                 _ => {
8804                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
8805                 },
8806             };
8807         }
8808         ::std::result::Result::Ok(())
8809     }
8810 
8811     // Compute sizes of nested messages
8812     #[allow(unused_variables)]
compute_size(&self) -> u328813     fn compute_size(&self) -> u32 {
8814         let mut my_size = 0;
8815         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
8816             my_size += ::protobuf::rt::enum_size(1, self.error);
8817         }
8818         if let Some(ref v) = self.error_info.as_ref() {
8819             let len = v.compute_size();
8820             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
8821         }
8822         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
8823         self.cached_size.set(my_size);
8824         my_size
8825     }
8826 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>8827     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
8828         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
8829             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
8830         }
8831         if let Some(ref v) = self.error_info.as_ref() {
8832             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
8833             os.write_raw_varint32(v.get_cached_size())?;
8834             v.write_to_with_cached_sizes(os)?;
8835         }
8836         os.write_unknown_fields(self.get_unknown_fields())?;
8837         ::std::result::Result::Ok(())
8838     }
8839 
get_cached_size(&self) -> u328840     fn get_cached_size(&self) -> u32 {
8841         self.cached_size.get()
8842     }
8843 
get_unknown_fields(&self) -> &::protobuf::UnknownFields8844     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
8845         &self.unknown_fields
8846     }
8847 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields8848     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
8849         &mut self.unknown_fields
8850     }
8851 
as_any(&self) -> &dyn (::std::any::Any)8852     fn as_any(&self) -> &dyn (::std::any::Any) {
8853         self as &dyn (::std::any::Any)
8854     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)8855     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
8856         self as &mut dyn (::std::any::Any)
8857     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>8858     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
8859         self
8860     }
8861 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor8862     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
8863         Self::descriptor_static()
8864     }
8865 
new() -> AddCredentialsReply8866     fn new() -> AddCredentialsReply {
8867         AddCredentialsReply::new()
8868     }
8869 
default_instance() -> &'static AddCredentialsReply8870     fn default_instance() -> &'static AddCredentialsReply {
8871         static instance: ::protobuf::rt::LazyV2<AddCredentialsReply> = ::protobuf::rt::LazyV2::INIT;
8872         instance.get(AddCredentialsReply::new)
8873     }
8874 }
8875 
8876 impl ::protobuf::Clear for AddCredentialsReply {
clear(&mut self)8877     fn clear(&mut self) {
8878         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
8879         self.error_info.clear();
8880         self.unknown_fields.clear();
8881     }
8882 }
8883 
8884 impl ::protobuf::reflect::ProtobufValue for AddCredentialsReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef8885     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
8886         ::protobuf::reflect::ReflectValueRef::Message(self)
8887     }
8888 }
8889 
8890 #[derive(PartialEq,Clone,Default,Debug)]
8891 pub struct AuthenticateAuthSessionRequest {
8892     // message fields
8893     pub auth_session_id: ::std::vec::Vec<u8>,
8894     pub authorization: ::protobuf::SingularPtrField<super::rpc::AuthorizationRequest>,
8895     // special fields
8896     pub unknown_fields: ::protobuf::UnknownFields,
8897     pub cached_size: ::protobuf::CachedSize,
8898 }
8899 
8900 impl<'a> ::std::default::Default for &'a AuthenticateAuthSessionRequest {
default() -> &'a AuthenticateAuthSessionRequest8901     fn default() -> &'a AuthenticateAuthSessionRequest {
8902         <AuthenticateAuthSessionRequest as ::protobuf::Message>::default_instance()
8903     }
8904 }
8905 
8906 impl AuthenticateAuthSessionRequest {
new() -> AuthenticateAuthSessionRequest8907     pub fn new() -> AuthenticateAuthSessionRequest {
8908         ::std::default::Default::default()
8909     }
8910 
8911     // bytes auth_session_id = 1;
8912 
8913 
get_auth_session_id(&self) -> &[u8]8914     pub fn get_auth_session_id(&self) -> &[u8] {
8915         &self.auth_session_id
8916     }
clear_auth_session_id(&mut self)8917     pub fn clear_auth_session_id(&mut self) {
8918         self.auth_session_id.clear();
8919     }
8920 
8921     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)8922     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
8923         self.auth_session_id = v;
8924     }
8925 
8926     // Mutable pointer to the field.
8927     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>8928     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
8929         &mut self.auth_session_id
8930     }
8931 
8932     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>8933     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
8934         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
8935     }
8936 
8937     // .cryptohome.AuthorizationRequest authorization = 2;
8938 
8939 
get_authorization(&self) -> &super::rpc::AuthorizationRequest8940     pub fn get_authorization(&self) -> &super::rpc::AuthorizationRequest {
8941         self.authorization.as_ref().unwrap_or_else(|| <super::rpc::AuthorizationRequest as ::protobuf::Message>::default_instance())
8942     }
clear_authorization(&mut self)8943     pub fn clear_authorization(&mut self) {
8944         self.authorization.clear();
8945     }
8946 
has_authorization(&self) -> bool8947     pub fn has_authorization(&self) -> bool {
8948         self.authorization.is_some()
8949     }
8950 
8951     // Param is passed by value, moved
set_authorization(&mut self, v: super::rpc::AuthorizationRequest)8952     pub fn set_authorization(&mut self, v: super::rpc::AuthorizationRequest) {
8953         self.authorization = ::protobuf::SingularPtrField::some(v);
8954     }
8955 
8956     // Mutable pointer to the field.
8957     // If field is not initialized, it is initialized with default value first.
mut_authorization(&mut self) -> &mut super::rpc::AuthorizationRequest8958     pub fn mut_authorization(&mut self) -> &mut super::rpc::AuthorizationRequest {
8959         if self.authorization.is_none() {
8960             self.authorization.set_default();
8961         }
8962         self.authorization.as_mut().unwrap()
8963     }
8964 
8965     // Take field
take_authorization(&mut self) -> super::rpc::AuthorizationRequest8966     pub fn take_authorization(&mut self) -> super::rpc::AuthorizationRequest {
8967         self.authorization.take().unwrap_or_else(|| super::rpc::AuthorizationRequest::new())
8968     }
8969 }
8970 
8971 impl ::protobuf::Message for AuthenticateAuthSessionRequest {
is_initialized(&self) -> bool8972     fn is_initialized(&self) -> bool {
8973         for v in &self.authorization {
8974             if !v.is_initialized() {
8975                 return false;
8976             }
8977         };
8978         true
8979     }
8980 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>8981     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
8982         while !is.eof()? {
8983             let (field_number, wire_type) = is.read_tag_unpack()?;
8984             match field_number {
8985                 1 => {
8986                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
8987                 },
8988                 2 => {
8989                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authorization)?;
8990                 },
8991                 _ => {
8992                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
8993                 },
8994             };
8995         }
8996         ::std::result::Result::Ok(())
8997     }
8998 
8999     // Compute sizes of nested messages
9000     #[allow(unused_variables)]
compute_size(&self) -> u329001     fn compute_size(&self) -> u32 {
9002         let mut my_size = 0;
9003         if !self.auth_session_id.is_empty() {
9004             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
9005         }
9006         if let Some(ref v) = self.authorization.as_ref() {
9007             let len = v.compute_size();
9008             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
9009         }
9010         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
9011         self.cached_size.set(my_size);
9012         my_size
9013     }
9014 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>9015     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
9016         if !self.auth_session_id.is_empty() {
9017             os.write_bytes(1, &self.auth_session_id)?;
9018         }
9019         if let Some(ref v) = self.authorization.as_ref() {
9020             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
9021             os.write_raw_varint32(v.get_cached_size())?;
9022             v.write_to_with_cached_sizes(os)?;
9023         }
9024         os.write_unknown_fields(self.get_unknown_fields())?;
9025         ::std::result::Result::Ok(())
9026     }
9027 
get_cached_size(&self) -> u329028     fn get_cached_size(&self) -> u32 {
9029         self.cached_size.get()
9030     }
9031 
get_unknown_fields(&self) -> &::protobuf::UnknownFields9032     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
9033         &self.unknown_fields
9034     }
9035 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields9036     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
9037         &mut self.unknown_fields
9038     }
9039 
as_any(&self) -> &dyn (::std::any::Any)9040     fn as_any(&self) -> &dyn (::std::any::Any) {
9041         self as &dyn (::std::any::Any)
9042     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)9043     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
9044         self as &mut dyn (::std::any::Any)
9045     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>9046     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
9047         self
9048     }
9049 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor9050     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
9051         Self::descriptor_static()
9052     }
9053 
new() -> AuthenticateAuthSessionRequest9054     fn new() -> AuthenticateAuthSessionRequest {
9055         AuthenticateAuthSessionRequest::new()
9056     }
9057 
default_instance() -> &'static AuthenticateAuthSessionRequest9058     fn default_instance() -> &'static AuthenticateAuthSessionRequest {
9059         static instance: ::protobuf::rt::LazyV2<AuthenticateAuthSessionRequest> = ::protobuf::rt::LazyV2::INIT;
9060         instance.get(AuthenticateAuthSessionRequest::new)
9061     }
9062 }
9063 
9064 impl ::protobuf::Clear for AuthenticateAuthSessionRequest {
clear(&mut self)9065     fn clear(&mut self) {
9066         self.auth_session_id.clear();
9067         self.authorization.clear();
9068         self.unknown_fields.clear();
9069     }
9070 }
9071 
9072 impl ::protobuf::reflect::ProtobufValue for AuthenticateAuthSessionRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef9073     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
9074         ::protobuf::reflect::ReflectValueRef::Message(self)
9075     }
9076 }
9077 
9078 #[derive(PartialEq,Clone,Default,Debug)]
9079 pub struct AuthenticateAuthSessionReply {
9080     // message fields
9081     pub error: CryptohomeErrorCode,
9082     pub authenticated: bool,
9083     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
9084     // message oneof groups
9085     pub _seconds_left: ::std::option::Option<AuthenticateAuthSessionReply_oneof__seconds_left>,
9086     // special fields
9087     pub unknown_fields: ::protobuf::UnknownFields,
9088     pub cached_size: ::protobuf::CachedSize,
9089 }
9090 
9091 impl<'a> ::std::default::Default for &'a AuthenticateAuthSessionReply {
default() -> &'a AuthenticateAuthSessionReply9092     fn default() -> &'a AuthenticateAuthSessionReply {
9093         <AuthenticateAuthSessionReply as ::protobuf::Message>::default_instance()
9094     }
9095 }
9096 
9097 #[derive(Clone,PartialEq,Debug)]
9098 pub enum AuthenticateAuthSessionReply_oneof__seconds_left {
9099     seconds_left(u32),
9100 }
9101 
9102 impl AuthenticateAuthSessionReply {
new() -> AuthenticateAuthSessionReply9103     pub fn new() -> AuthenticateAuthSessionReply {
9104         ::std::default::Default::default()
9105     }
9106 
9107     // .user_data_auth.CryptohomeErrorCode error = 1;
9108 
9109 
get_error(&self) -> CryptohomeErrorCode9110     pub fn get_error(&self) -> CryptohomeErrorCode {
9111         self.error
9112     }
clear_error(&mut self)9113     pub fn clear_error(&mut self) {
9114         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
9115     }
9116 
9117     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)9118     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
9119         self.error = v;
9120     }
9121 
9122     // bool authenticated = 2;
9123 
9124 
get_authenticated(&self) -> bool9125     pub fn get_authenticated(&self) -> bool {
9126         self.authenticated
9127     }
clear_authenticated(&mut self)9128     pub fn clear_authenticated(&mut self) {
9129         self.authenticated = false;
9130     }
9131 
9132     // Param is passed by value, moved
set_authenticated(&mut self, v: bool)9133     pub fn set_authenticated(&mut self, v: bool) {
9134         self.authenticated = v;
9135     }
9136 
9137     // .user_data_auth.CryptohomeErrorInfo error_info = 3;
9138 
9139 
get_error_info(&self) -> &CryptohomeErrorInfo9140     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
9141         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
9142     }
clear_error_info(&mut self)9143     pub fn clear_error_info(&mut self) {
9144         self.error_info.clear();
9145     }
9146 
has_error_info(&self) -> bool9147     pub fn has_error_info(&self) -> bool {
9148         self.error_info.is_some()
9149     }
9150 
9151     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)9152     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
9153         self.error_info = ::protobuf::SingularPtrField::some(v);
9154     }
9155 
9156     // Mutable pointer to the field.
9157     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo9158     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
9159         if self.error_info.is_none() {
9160             self.error_info.set_default();
9161         }
9162         self.error_info.as_mut().unwrap()
9163     }
9164 
9165     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo9166     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
9167         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
9168     }
9169 
9170     // uint32 seconds_left = 4;
9171 
9172 
get_seconds_left(&self) -> u329173     pub fn get_seconds_left(&self) -> u32 {
9174         match self._seconds_left {
9175             ::std::option::Option::Some(AuthenticateAuthSessionReply_oneof__seconds_left::seconds_left(v)) => v,
9176             _ => 0,
9177         }
9178     }
clear_seconds_left(&mut self)9179     pub fn clear_seconds_left(&mut self) {
9180         self._seconds_left = ::std::option::Option::None;
9181     }
9182 
has_seconds_left(&self) -> bool9183     pub fn has_seconds_left(&self) -> bool {
9184         match self._seconds_left {
9185             ::std::option::Option::Some(AuthenticateAuthSessionReply_oneof__seconds_left::seconds_left(..)) => true,
9186             _ => false,
9187         }
9188     }
9189 
9190     // Param is passed by value, moved
set_seconds_left(&mut self, v: u32)9191     pub fn set_seconds_left(&mut self, v: u32) {
9192         self._seconds_left = ::std::option::Option::Some(AuthenticateAuthSessionReply_oneof__seconds_left::seconds_left(v))
9193     }
9194 }
9195 
9196 impl ::protobuf::Message for AuthenticateAuthSessionReply {
is_initialized(&self) -> bool9197     fn is_initialized(&self) -> bool {
9198         for v in &self.error_info {
9199             if !v.is_initialized() {
9200                 return false;
9201             }
9202         };
9203         true
9204     }
9205 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>9206     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
9207         while !is.eof()? {
9208             let (field_number, wire_type) = is.read_tag_unpack()?;
9209             match field_number {
9210                 1 => {
9211                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
9212                 },
9213                 2 => {
9214                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
9215                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
9216                     }
9217                     let tmp = is.read_bool()?;
9218                     self.authenticated = tmp;
9219                 },
9220                 3 => {
9221                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
9222                 },
9223                 4 => {
9224                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
9225                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
9226                     }
9227                     self._seconds_left = ::std::option::Option::Some(AuthenticateAuthSessionReply_oneof__seconds_left::seconds_left(is.read_uint32()?));
9228                 },
9229                 _ => {
9230                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
9231                 },
9232             };
9233         }
9234         ::std::result::Result::Ok(())
9235     }
9236 
9237     // Compute sizes of nested messages
9238     #[allow(unused_variables)]
compute_size(&self) -> u329239     fn compute_size(&self) -> u32 {
9240         let mut my_size = 0;
9241         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
9242             my_size += ::protobuf::rt::enum_size(1, self.error);
9243         }
9244         if self.authenticated != false {
9245             my_size += 2;
9246         }
9247         if let Some(ref v) = self.error_info.as_ref() {
9248             let len = v.compute_size();
9249             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
9250         }
9251         if let ::std::option::Option::Some(ref v) = self._seconds_left {
9252             match v {
9253                 &AuthenticateAuthSessionReply_oneof__seconds_left::seconds_left(v) => {
9254                     my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint);
9255                 },
9256             };
9257         }
9258         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
9259         self.cached_size.set(my_size);
9260         my_size
9261     }
9262 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>9263     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
9264         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
9265             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
9266         }
9267         if self.authenticated != false {
9268             os.write_bool(2, self.authenticated)?;
9269         }
9270         if let Some(ref v) = self.error_info.as_ref() {
9271             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
9272             os.write_raw_varint32(v.get_cached_size())?;
9273             v.write_to_with_cached_sizes(os)?;
9274         }
9275         if let ::std::option::Option::Some(ref v) = self._seconds_left {
9276             match v {
9277                 &AuthenticateAuthSessionReply_oneof__seconds_left::seconds_left(v) => {
9278                     os.write_uint32(4, v)?;
9279                 },
9280             };
9281         }
9282         os.write_unknown_fields(self.get_unknown_fields())?;
9283         ::std::result::Result::Ok(())
9284     }
9285 
get_cached_size(&self) -> u329286     fn get_cached_size(&self) -> u32 {
9287         self.cached_size.get()
9288     }
9289 
get_unknown_fields(&self) -> &::protobuf::UnknownFields9290     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
9291         &self.unknown_fields
9292     }
9293 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields9294     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
9295         &mut self.unknown_fields
9296     }
9297 
as_any(&self) -> &dyn (::std::any::Any)9298     fn as_any(&self) -> &dyn (::std::any::Any) {
9299         self as &dyn (::std::any::Any)
9300     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)9301     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
9302         self as &mut dyn (::std::any::Any)
9303     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>9304     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
9305         self
9306     }
9307 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor9308     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
9309         Self::descriptor_static()
9310     }
9311 
new() -> AuthenticateAuthSessionReply9312     fn new() -> AuthenticateAuthSessionReply {
9313         AuthenticateAuthSessionReply::new()
9314     }
9315 
default_instance() -> &'static AuthenticateAuthSessionReply9316     fn default_instance() -> &'static AuthenticateAuthSessionReply {
9317         static instance: ::protobuf::rt::LazyV2<AuthenticateAuthSessionReply> = ::protobuf::rt::LazyV2::INIT;
9318         instance.get(AuthenticateAuthSessionReply::new)
9319     }
9320 }
9321 
9322 impl ::protobuf::Clear for AuthenticateAuthSessionReply {
clear(&mut self)9323     fn clear(&mut self) {
9324         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
9325         self.authenticated = false;
9326         self.error_info.clear();
9327         self._seconds_left = ::std::option::Option::None;
9328         self.unknown_fields.clear();
9329     }
9330 }
9331 
9332 impl ::protobuf::reflect::ProtobufValue for AuthenticateAuthSessionReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef9333     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
9334         ::protobuf::reflect::ReflectValueRef::Message(self)
9335     }
9336 }
9337 
9338 #[derive(PartialEq,Clone,Default,Debug)]
9339 pub struct InvalidateAuthSessionRequest {
9340     // message fields
9341     pub auth_session_id: ::std::vec::Vec<u8>,
9342     // special fields
9343     pub unknown_fields: ::protobuf::UnknownFields,
9344     pub cached_size: ::protobuf::CachedSize,
9345 }
9346 
9347 impl<'a> ::std::default::Default for &'a InvalidateAuthSessionRequest {
default() -> &'a InvalidateAuthSessionRequest9348     fn default() -> &'a InvalidateAuthSessionRequest {
9349         <InvalidateAuthSessionRequest as ::protobuf::Message>::default_instance()
9350     }
9351 }
9352 
9353 impl InvalidateAuthSessionRequest {
new() -> InvalidateAuthSessionRequest9354     pub fn new() -> InvalidateAuthSessionRequest {
9355         ::std::default::Default::default()
9356     }
9357 
9358     // bytes auth_session_id = 1;
9359 
9360 
get_auth_session_id(&self) -> &[u8]9361     pub fn get_auth_session_id(&self) -> &[u8] {
9362         &self.auth_session_id
9363     }
clear_auth_session_id(&mut self)9364     pub fn clear_auth_session_id(&mut self) {
9365         self.auth_session_id.clear();
9366     }
9367 
9368     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)9369     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
9370         self.auth_session_id = v;
9371     }
9372 
9373     // Mutable pointer to the field.
9374     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>9375     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
9376         &mut self.auth_session_id
9377     }
9378 
9379     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>9380     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
9381         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
9382     }
9383 }
9384 
9385 impl ::protobuf::Message for InvalidateAuthSessionRequest {
is_initialized(&self) -> bool9386     fn is_initialized(&self) -> bool {
9387         true
9388     }
9389 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>9390     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
9391         while !is.eof()? {
9392             let (field_number, wire_type) = is.read_tag_unpack()?;
9393             match field_number {
9394                 1 => {
9395                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
9396                 },
9397                 _ => {
9398                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
9399                 },
9400             };
9401         }
9402         ::std::result::Result::Ok(())
9403     }
9404 
9405     // Compute sizes of nested messages
9406     #[allow(unused_variables)]
compute_size(&self) -> u329407     fn compute_size(&self) -> u32 {
9408         let mut my_size = 0;
9409         if !self.auth_session_id.is_empty() {
9410             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
9411         }
9412         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
9413         self.cached_size.set(my_size);
9414         my_size
9415     }
9416 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>9417     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
9418         if !self.auth_session_id.is_empty() {
9419             os.write_bytes(1, &self.auth_session_id)?;
9420         }
9421         os.write_unknown_fields(self.get_unknown_fields())?;
9422         ::std::result::Result::Ok(())
9423     }
9424 
get_cached_size(&self) -> u329425     fn get_cached_size(&self) -> u32 {
9426         self.cached_size.get()
9427     }
9428 
get_unknown_fields(&self) -> &::protobuf::UnknownFields9429     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
9430         &self.unknown_fields
9431     }
9432 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields9433     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
9434         &mut self.unknown_fields
9435     }
9436 
as_any(&self) -> &dyn (::std::any::Any)9437     fn as_any(&self) -> &dyn (::std::any::Any) {
9438         self as &dyn (::std::any::Any)
9439     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)9440     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
9441         self as &mut dyn (::std::any::Any)
9442     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>9443     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
9444         self
9445     }
9446 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor9447     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
9448         Self::descriptor_static()
9449     }
9450 
new() -> InvalidateAuthSessionRequest9451     fn new() -> InvalidateAuthSessionRequest {
9452         InvalidateAuthSessionRequest::new()
9453     }
9454 
default_instance() -> &'static InvalidateAuthSessionRequest9455     fn default_instance() -> &'static InvalidateAuthSessionRequest {
9456         static instance: ::protobuf::rt::LazyV2<InvalidateAuthSessionRequest> = ::protobuf::rt::LazyV2::INIT;
9457         instance.get(InvalidateAuthSessionRequest::new)
9458     }
9459 }
9460 
9461 impl ::protobuf::Clear for InvalidateAuthSessionRequest {
clear(&mut self)9462     fn clear(&mut self) {
9463         self.auth_session_id.clear();
9464         self.unknown_fields.clear();
9465     }
9466 }
9467 
9468 impl ::protobuf::reflect::ProtobufValue for InvalidateAuthSessionRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef9469     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
9470         ::protobuf::reflect::ReflectValueRef::Message(self)
9471     }
9472 }
9473 
9474 #[derive(PartialEq,Clone,Default,Debug)]
9475 pub struct InvalidateAuthSessionReply {
9476     // message fields
9477     pub error: CryptohomeErrorCode,
9478     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
9479     // special fields
9480     pub unknown_fields: ::protobuf::UnknownFields,
9481     pub cached_size: ::protobuf::CachedSize,
9482 }
9483 
9484 impl<'a> ::std::default::Default for &'a InvalidateAuthSessionReply {
default() -> &'a InvalidateAuthSessionReply9485     fn default() -> &'a InvalidateAuthSessionReply {
9486         <InvalidateAuthSessionReply as ::protobuf::Message>::default_instance()
9487     }
9488 }
9489 
9490 impl InvalidateAuthSessionReply {
new() -> InvalidateAuthSessionReply9491     pub fn new() -> InvalidateAuthSessionReply {
9492         ::std::default::Default::default()
9493     }
9494 
9495     // .user_data_auth.CryptohomeErrorCode error = 1;
9496 
9497 
get_error(&self) -> CryptohomeErrorCode9498     pub fn get_error(&self) -> CryptohomeErrorCode {
9499         self.error
9500     }
clear_error(&mut self)9501     pub fn clear_error(&mut self) {
9502         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
9503     }
9504 
9505     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)9506     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
9507         self.error = v;
9508     }
9509 
9510     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
9511 
9512 
get_error_info(&self) -> &CryptohomeErrorInfo9513     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
9514         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
9515     }
clear_error_info(&mut self)9516     pub fn clear_error_info(&mut self) {
9517         self.error_info.clear();
9518     }
9519 
has_error_info(&self) -> bool9520     pub fn has_error_info(&self) -> bool {
9521         self.error_info.is_some()
9522     }
9523 
9524     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)9525     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
9526         self.error_info = ::protobuf::SingularPtrField::some(v);
9527     }
9528 
9529     // Mutable pointer to the field.
9530     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo9531     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
9532         if self.error_info.is_none() {
9533             self.error_info.set_default();
9534         }
9535         self.error_info.as_mut().unwrap()
9536     }
9537 
9538     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo9539     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
9540         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
9541     }
9542 }
9543 
9544 impl ::protobuf::Message for InvalidateAuthSessionReply {
is_initialized(&self) -> bool9545     fn is_initialized(&self) -> bool {
9546         for v in &self.error_info {
9547             if !v.is_initialized() {
9548                 return false;
9549             }
9550         };
9551         true
9552     }
9553 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>9554     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
9555         while !is.eof()? {
9556             let (field_number, wire_type) = is.read_tag_unpack()?;
9557             match field_number {
9558                 1 => {
9559                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
9560                 },
9561                 2 => {
9562                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
9563                 },
9564                 _ => {
9565                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
9566                 },
9567             };
9568         }
9569         ::std::result::Result::Ok(())
9570     }
9571 
9572     // Compute sizes of nested messages
9573     #[allow(unused_variables)]
compute_size(&self) -> u329574     fn compute_size(&self) -> u32 {
9575         let mut my_size = 0;
9576         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
9577             my_size += ::protobuf::rt::enum_size(1, self.error);
9578         }
9579         if let Some(ref v) = self.error_info.as_ref() {
9580             let len = v.compute_size();
9581             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
9582         }
9583         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
9584         self.cached_size.set(my_size);
9585         my_size
9586     }
9587 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>9588     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
9589         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
9590             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
9591         }
9592         if let Some(ref v) = self.error_info.as_ref() {
9593             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
9594             os.write_raw_varint32(v.get_cached_size())?;
9595             v.write_to_with_cached_sizes(os)?;
9596         }
9597         os.write_unknown_fields(self.get_unknown_fields())?;
9598         ::std::result::Result::Ok(())
9599     }
9600 
get_cached_size(&self) -> u329601     fn get_cached_size(&self) -> u32 {
9602         self.cached_size.get()
9603     }
9604 
get_unknown_fields(&self) -> &::protobuf::UnknownFields9605     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
9606         &self.unknown_fields
9607     }
9608 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields9609     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
9610         &mut self.unknown_fields
9611     }
9612 
as_any(&self) -> &dyn (::std::any::Any)9613     fn as_any(&self) -> &dyn (::std::any::Any) {
9614         self as &dyn (::std::any::Any)
9615     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)9616     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
9617         self as &mut dyn (::std::any::Any)
9618     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>9619     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
9620         self
9621     }
9622 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor9623     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
9624         Self::descriptor_static()
9625     }
9626 
new() -> InvalidateAuthSessionReply9627     fn new() -> InvalidateAuthSessionReply {
9628         InvalidateAuthSessionReply::new()
9629     }
9630 
default_instance() -> &'static InvalidateAuthSessionReply9631     fn default_instance() -> &'static InvalidateAuthSessionReply {
9632         static instance: ::protobuf::rt::LazyV2<InvalidateAuthSessionReply> = ::protobuf::rt::LazyV2::INIT;
9633         instance.get(InvalidateAuthSessionReply::new)
9634     }
9635 }
9636 
9637 impl ::protobuf::Clear for InvalidateAuthSessionReply {
clear(&mut self)9638     fn clear(&mut self) {
9639         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
9640         self.error_info.clear();
9641         self.unknown_fields.clear();
9642     }
9643 }
9644 
9645 impl ::protobuf::reflect::ProtobufValue for InvalidateAuthSessionReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef9646     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
9647         ::protobuf::reflect::ReflectValueRef::Message(self)
9648     }
9649 }
9650 
9651 #[derive(PartialEq,Clone,Default,Debug)]
9652 pub struct ExtendAuthSessionRequest {
9653     // message fields
9654     pub auth_session_id: ::std::vec::Vec<u8>,
9655     pub extension_duration: u32,
9656     // special fields
9657     pub unknown_fields: ::protobuf::UnknownFields,
9658     pub cached_size: ::protobuf::CachedSize,
9659 }
9660 
9661 impl<'a> ::std::default::Default for &'a ExtendAuthSessionRequest {
default() -> &'a ExtendAuthSessionRequest9662     fn default() -> &'a ExtendAuthSessionRequest {
9663         <ExtendAuthSessionRequest as ::protobuf::Message>::default_instance()
9664     }
9665 }
9666 
9667 impl ExtendAuthSessionRequest {
new() -> ExtendAuthSessionRequest9668     pub fn new() -> ExtendAuthSessionRequest {
9669         ::std::default::Default::default()
9670     }
9671 
9672     // bytes auth_session_id = 1;
9673 
9674 
get_auth_session_id(&self) -> &[u8]9675     pub fn get_auth_session_id(&self) -> &[u8] {
9676         &self.auth_session_id
9677     }
clear_auth_session_id(&mut self)9678     pub fn clear_auth_session_id(&mut self) {
9679         self.auth_session_id.clear();
9680     }
9681 
9682     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)9683     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
9684         self.auth_session_id = v;
9685     }
9686 
9687     // Mutable pointer to the field.
9688     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>9689     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
9690         &mut self.auth_session_id
9691     }
9692 
9693     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>9694     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
9695         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
9696     }
9697 
9698     // uint32 extension_duration = 2;
9699 
9700 
get_extension_duration(&self) -> u329701     pub fn get_extension_duration(&self) -> u32 {
9702         self.extension_duration
9703     }
clear_extension_duration(&mut self)9704     pub fn clear_extension_duration(&mut self) {
9705         self.extension_duration = 0;
9706     }
9707 
9708     // Param is passed by value, moved
set_extension_duration(&mut self, v: u32)9709     pub fn set_extension_duration(&mut self, v: u32) {
9710         self.extension_duration = v;
9711     }
9712 }
9713 
9714 impl ::protobuf::Message for ExtendAuthSessionRequest {
is_initialized(&self) -> bool9715     fn is_initialized(&self) -> bool {
9716         true
9717     }
9718 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>9719     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
9720         while !is.eof()? {
9721             let (field_number, wire_type) = is.read_tag_unpack()?;
9722             match field_number {
9723                 1 => {
9724                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
9725                 },
9726                 2 => {
9727                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
9728                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
9729                     }
9730                     let tmp = is.read_uint32()?;
9731                     self.extension_duration = tmp;
9732                 },
9733                 _ => {
9734                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
9735                 },
9736             };
9737         }
9738         ::std::result::Result::Ok(())
9739     }
9740 
9741     // Compute sizes of nested messages
9742     #[allow(unused_variables)]
compute_size(&self) -> u329743     fn compute_size(&self) -> u32 {
9744         let mut my_size = 0;
9745         if !self.auth_session_id.is_empty() {
9746             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
9747         }
9748         if self.extension_duration != 0 {
9749             my_size += ::protobuf::rt::value_size(2, self.extension_duration, ::protobuf::wire_format::WireTypeVarint);
9750         }
9751         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
9752         self.cached_size.set(my_size);
9753         my_size
9754     }
9755 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>9756     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
9757         if !self.auth_session_id.is_empty() {
9758             os.write_bytes(1, &self.auth_session_id)?;
9759         }
9760         if self.extension_duration != 0 {
9761             os.write_uint32(2, self.extension_duration)?;
9762         }
9763         os.write_unknown_fields(self.get_unknown_fields())?;
9764         ::std::result::Result::Ok(())
9765     }
9766 
get_cached_size(&self) -> u329767     fn get_cached_size(&self) -> u32 {
9768         self.cached_size.get()
9769     }
9770 
get_unknown_fields(&self) -> &::protobuf::UnknownFields9771     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
9772         &self.unknown_fields
9773     }
9774 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields9775     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
9776         &mut self.unknown_fields
9777     }
9778 
as_any(&self) -> &dyn (::std::any::Any)9779     fn as_any(&self) -> &dyn (::std::any::Any) {
9780         self as &dyn (::std::any::Any)
9781     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)9782     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
9783         self as &mut dyn (::std::any::Any)
9784     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>9785     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
9786         self
9787     }
9788 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor9789     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
9790         Self::descriptor_static()
9791     }
9792 
new() -> ExtendAuthSessionRequest9793     fn new() -> ExtendAuthSessionRequest {
9794         ExtendAuthSessionRequest::new()
9795     }
9796 
default_instance() -> &'static ExtendAuthSessionRequest9797     fn default_instance() -> &'static ExtendAuthSessionRequest {
9798         static instance: ::protobuf::rt::LazyV2<ExtendAuthSessionRequest> = ::protobuf::rt::LazyV2::INIT;
9799         instance.get(ExtendAuthSessionRequest::new)
9800     }
9801 }
9802 
9803 impl ::protobuf::Clear for ExtendAuthSessionRequest {
clear(&mut self)9804     fn clear(&mut self) {
9805         self.auth_session_id.clear();
9806         self.extension_duration = 0;
9807         self.unknown_fields.clear();
9808     }
9809 }
9810 
9811 impl ::protobuf::reflect::ProtobufValue for ExtendAuthSessionRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef9812     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
9813         ::protobuf::reflect::ReflectValueRef::Message(self)
9814     }
9815 }
9816 
9817 #[derive(PartialEq,Clone,Default,Debug)]
9818 pub struct ExtendAuthSessionReply {
9819     // message fields
9820     pub error: CryptohomeErrorCode,
9821     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
9822     // message oneof groups
9823     pub _seconds_left: ::std::option::Option<ExtendAuthSessionReply_oneof__seconds_left>,
9824     // special fields
9825     pub unknown_fields: ::protobuf::UnknownFields,
9826     pub cached_size: ::protobuf::CachedSize,
9827 }
9828 
9829 impl<'a> ::std::default::Default for &'a ExtendAuthSessionReply {
default() -> &'a ExtendAuthSessionReply9830     fn default() -> &'a ExtendAuthSessionReply {
9831         <ExtendAuthSessionReply as ::protobuf::Message>::default_instance()
9832     }
9833 }
9834 
9835 #[derive(Clone,PartialEq,Debug)]
9836 pub enum ExtendAuthSessionReply_oneof__seconds_left {
9837     seconds_left(u32),
9838 }
9839 
9840 impl ExtendAuthSessionReply {
new() -> ExtendAuthSessionReply9841     pub fn new() -> ExtendAuthSessionReply {
9842         ::std::default::Default::default()
9843     }
9844 
9845     // .user_data_auth.CryptohomeErrorCode error = 1;
9846 
9847 
get_error(&self) -> CryptohomeErrorCode9848     pub fn get_error(&self) -> CryptohomeErrorCode {
9849         self.error
9850     }
clear_error(&mut self)9851     pub fn clear_error(&mut self) {
9852         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
9853     }
9854 
9855     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)9856     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
9857         self.error = v;
9858     }
9859 
9860     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
9861 
9862 
get_error_info(&self) -> &CryptohomeErrorInfo9863     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
9864         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
9865     }
clear_error_info(&mut self)9866     pub fn clear_error_info(&mut self) {
9867         self.error_info.clear();
9868     }
9869 
has_error_info(&self) -> bool9870     pub fn has_error_info(&self) -> bool {
9871         self.error_info.is_some()
9872     }
9873 
9874     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)9875     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
9876         self.error_info = ::protobuf::SingularPtrField::some(v);
9877     }
9878 
9879     // Mutable pointer to the field.
9880     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo9881     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
9882         if self.error_info.is_none() {
9883             self.error_info.set_default();
9884         }
9885         self.error_info.as_mut().unwrap()
9886     }
9887 
9888     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo9889     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
9890         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
9891     }
9892 
9893     // uint32 seconds_left = 3;
9894 
9895 
get_seconds_left(&self) -> u329896     pub fn get_seconds_left(&self) -> u32 {
9897         match self._seconds_left {
9898             ::std::option::Option::Some(ExtendAuthSessionReply_oneof__seconds_left::seconds_left(v)) => v,
9899             _ => 0,
9900         }
9901     }
clear_seconds_left(&mut self)9902     pub fn clear_seconds_left(&mut self) {
9903         self._seconds_left = ::std::option::Option::None;
9904     }
9905 
has_seconds_left(&self) -> bool9906     pub fn has_seconds_left(&self) -> bool {
9907         match self._seconds_left {
9908             ::std::option::Option::Some(ExtendAuthSessionReply_oneof__seconds_left::seconds_left(..)) => true,
9909             _ => false,
9910         }
9911     }
9912 
9913     // Param is passed by value, moved
set_seconds_left(&mut self, v: u32)9914     pub fn set_seconds_left(&mut self, v: u32) {
9915         self._seconds_left = ::std::option::Option::Some(ExtendAuthSessionReply_oneof__seconds_left::seconds_left(v))
9916     }
9917 }
9918 
9919 impl ::protobuf::Message for ExtendAuthSessionReply {
is_initialized(&self) -> bool9920     fn is_initialized(&self) -> bool {
9921         for v in &self.error_info {
9922             if !v.is_initialized() {
9923                 return false;
9924             }
9925         };
9926         true
9927     }
9928 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>9929     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
9930         while !is.eof()? {
9931             let (field_number, wire_type) = is.read_tag_unpack()?;
9932             match field_number {
9933                 1 => {
9934                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
9935                 },
9936                 2 => {
9937                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
9938                 },
9939                 3 => {
9940                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
9941                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
9942                     }
9943                     self._seconds_left = ::std::option::Option::Some(ExtendAuthSessionReply_oneof__seconds_left::seconds_left(is.read_uint32()?));
9944                 },
9945                 _ => {
9946                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
9947                 },
9948             };
9949         }
9950         ::std::result::Result::Ok(())
9951     }
9952 
9953     // Compute sizes of nested messages
9954     #[allow(unused_variables)]
compute_size(&self) -> u329955     fn compute_size(&self) -> u32 {
9956         let mut my_size = 0;
9957         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
9958             my_size += ::protobuf::rt::enum_size(1, self.error);
9959         }
9960         if let Some(ref v) = self.error_info.as_ref() {
9961             let len = v.compute_size();
9962             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
9963         }
9964         if let ::std::option::Option::Some(ref v) = self._seconds_left {
9965             match v {
9966                 &ExtendAuthSessionReply_oneof__seconds_left::seconds_left(v) => {
9967                     my_size += ::protobuf::rt::value_size(3, v, ::protobuf::wire_format::WireTypeVarint);
9968                 },
9969             };
9970         }
9971         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
9972         self.cached_size.set(my_size);
9973         my_size
9974     }
9975 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>9976     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
9977         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
9978             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
9979         }
9980         if let Some(ref v) = self.error_info.as_ref() {
9981             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
9982             os.write_raw_varint32(v.get_cached_size())?;
9983             v.write_to_with_cached_sizes(os)?;
9984         }
9985         if let ::std::option::Option::Some(ref v) = self._seconds_left {
9986             match v {
9987                 &ExtendAuthSessionReply_oneof__seconds_left::seconds_left(v) => {
9988                     os.write_uint32(3, v)?;
9989                 },
9990             };
9991         }
9992         os.write_unknown_fields(self.get_unknown_fields())?;
9993         ::std::result::Result::Ok(())
9994     }
9995 
get_cached_size(&self) -> u329996     fn get_cached_size(&self) -> u32 {
9997         self.cached_size.get()
9998     }
9999 
get_unknown_fields(&self) -> &::protobuf::UnknownFields10000     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
10001         &self.unknown_fields
10002     }
10003 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields10004     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
10005         &mut self.unknown_fields
10006     }
10007 
as_any(&self) -> &dyn (::std::any::Any)10008     fn as_any(&self) -> &dyn (::std::any::Any) {
10009         self as &dyn (::std::any::Any)
10010     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)10011     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
10012         self as &mut dyn (::std::any::Any)
10013     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>10014     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
10015         self
10016     }
10017 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor10018     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
10019         Self::descriptor_static()
10020     }
10021 
new() -> ExtendAuthSessionReply10022     fn new() -> ExtendAuthSessionReply {
10023         ExtendAuthSessionReply::new()
10024     }
10025 
default_instance() -> &'static ExtendAuthSessionReply10026     fn default_instance() -> &'static ExtendAuthSessionReply {
10027         static instance: ::protobuf::rt::LazyV2<ExtendAuthSessionReply> = ::protobuf::rt::LazyV2::INIT;
10028         instance.get(ExtendAuthSessionReply::new)
10029     }
10030 }
10031 
10032 impl ::protobuf::Clear for ExtendAuthSessionReply {
clear(&mut self)10033     fn clear(&mut self) {
10034         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
10035         self.error_info.clear();
10036         self._seconds_left = ::std::option::Option::None;
10037         self.unknown_fields.clear();
10038     }
10039 }
10040 
10041 impl ::protobuf::reflect::ProtobufValue for ExtendAuthSessionReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef10042     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
10043         ::protobuf::reflect::ReflectValueRef::Message(self)
10044     }
10045 }
10046 
10047 #[derive(PartialEq,Clone,Default,Debug)]
10048 pub struct UpdateCredentialRequest {
10049     // message fields
10050     pub auth_session_id: ::std::vec::Vec<u8>,
10051     pub old_credential_label: ::std::string::String,
10052     pub authorization: ::protobuf::SingularPtrField<super::rpc::AuthorizationRequest>,
10053     // special fields
10054     pub unknown_fields: ::protobuf::UnknownFields,
10055     pub cached_size: ::protobuf::CachedSize,
10056 }
10057 
10058 impl<'a> ::std::default::Default for &'a UpdateCredentialRequest {
default() -> &'a UpdateCredentialRequest10059     fn default() -> &'a UpdateCredentialRequest {
10060         <UpdateCredentialRequest as ::protobuf::Message>::default_instance()
10061     }
10062 }
10063 
10064 impl UpdateCredentialRequest {
new() -> UpdateCredentialRequest10065     pub fn new() -> UpdateCredentialRequest {
10066         ::std::default::Default::default()
10067     }
10068 
10069     // bytes auth_session_id = 1;
10070 
10071 
get_auth_session_id(&self) -> &[u8]10072     pub fn get_auth_session_id(&self) -> &[u8] {
10073         &self.auth_session_id
10074     }
clear_auth_session_id(&mut self)10075     pub fn clear_auth_session_id(&mut self) {
10076         self.auth_session_id.clear();
10077     }
10078 
10079     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)10080     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
10081         self.auth_session_id = v;
10082     }
10083 
10084     // Mutable pointer to the field.
10085     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>10086     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
10087         &mut self.auth_session_id
10088     }
10089 
10090     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>10091     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
10092         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
10093     }
10094 
10095     // string old_credential_label = 2;
10096 
10097 
get_old_credential_label(&self) -> &str10098     pub fn get_old_credential_label(&self) -> &str {
10099         &self.old_credential_label
10100     }
clear_old_credential_label(&mut self)10101     pub fn clear_old_credential_label(&mut self) {
10102         self.old_credential_label.clear();
10103     }
10104 
10105     // Param is passed by value, moved
set_old_credential_label(&mut self, v: ::std::string::String)10106     pub fn set_old_credential_label(&mut self, v: ::std::string::String) {
10107         self.old_credential_label = v;
10108     }
10109 
10110     // Mutable pointer to the field.
10111     // If field is not initialized, it is initialized with default value first.
mut_old_credential_label(&mut self) -> &mut ::std::string::String10112     pub fn mut_old_credential_label(&mut self) -> &mut ::std::string::String {
10113         &mut self.old_credential_label
10114     }
10115 
10116     // Take field
take_old_credential_label(&mut self) -> ::std::string::String10117     pub fn take_old_credential_label(&mut self) -> ::std::string::String {
10118         ::std::mem::replace(&mut self.old_credential_label, ::std::string::String::new())
10119     }
10120 
10121     // .cryptohome.AuthorizationRequest authorization = 3;
10122 
10123 
get_authorization(&self) -> &super::rpc::AuthorizationRequest10124     pub fn get_authorization(&self) -> &super::rpc::AuthorizationRequest {
10125         self.authorization.as_ref().unwrap_or_else(|| <super::rpc::AuthorizationRequest as ::protobuf::Message>::default_instance())
10126     }
clear_authorization(&mut self)10127     pub fn clear_authorization(&mut self) {
10128         self.authorization.clear();
10129     }
10130 
has_authorization(&self) -> bool10131     pub fn has_authorization(&self) -> bool {
10132         self.authorization.is_some()
10133     }
10134 
10135     // Param is passed by value, moved
set_authorization(&mut self, v: super::rpc::AuthorizationRequest)10136     pub fn set_authorization(&mut self, v: super::rpc::AuthorizationRequest) {
10137         self.authorization = ::protobuf::SingularPtrField::some(v);
10138     }
10139 
10140     // Mutable pointer to the field.
10141     // If field is not initialized, it is initialized with default value first.
mut_authorization(&mut self) -> &mut super::rpc::AuthorizationRequest10142     pub fn mut_authorization(&mut self) -> &mut super::rpc::AuthorizationRequest {
10143         if self.authorization.is_none() {
10144             self.authorization.set_default();
10145         }
10146         self.authorization.as_mut().unwrap()
10147     }
10148 
10149     // Take field
take_authorization(&mut self) -> super::rpc::AuthorizationRequest10150     pub fn take_authorization(&mut self) -> super::rpc::AuthorizationRequest {
10151         self.authorization.take().unwrap_or_else(|| super::rpc::AuthorizationRequest::new())
10152     }
10153 }
10154 
10155 impl ::protobuf::Message for UpdateCredentialRequest {
is_initialized(&self) -> bool10156     fn is_initialized(&self) -> bool {
10157         for v in &self.authorization {
10158             if !v.is_initialized() {
10159                 return false;
10160             }
10161         };
10162         true
10163     }
10164 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>10165     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
10166         while !is.eof()? {
10167             let (field_number, wire_type) = is.read_tag_unpack()?;
10168             match field_number {
10169                 1 => {
10170                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
10171                 },
10172                 2 => {
10173                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.old_credential_label)?;
10174                 },
10175                 3 => {
10176                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authorization)?;
10177                 },
10178                 _ => {
10179                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
10180                 },
10181             };
10182         }
10183         ::std::result::Result::Ok(())
10184     }
10185 
10186     // Compute sizes of nested messages
10187     #[allow(unused_variables)]
compute_size(&self) -> u3210188     fn compute_size(&self) -> u32 {
10189         let mut my_size = 0;
10190         if !self.auth_session_id.is_empty() {
10191             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
10192         }
10193         if !self.old_credential_label.is_empty() {
10194             my_size += ::protobuf::rt::string_size(2, &self.old_credential_label);
10195         }
10196         if let Some(ref v) = self.authorization.as_ref() {
10197             let len = v.compute_size();
10198             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
10199         }
10200         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
10201         self.cached_size.set(my_size);
10202         my_size
10203     }
10204 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>10205     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
10206         if !self.auth_session_id.is_empty() {
10207             os.write_bytes(1, &self.auth_session_id)?;
10208         }
10209         if !self.old_credential_label.is_empty() {
10210             os.write_string(2, &self.old_credential_label)?;
10211         }
10212         if let Some(ref v) = self.authorization.as_ref() {
10213             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
10214             os.write_raw_varint32(v.get_cached_size())?;
10215             v.write_to_with_cached_sizes(os)?;
10216         }
10217         os.write_unknown_fields(self.get_unknown_fields())?;
10218         ::std::result::Result::Ok(())
10219     }
10220 
get_cached_size(&self) -> u3210221     fn get_cached_size(&self) -> u32 {
10222         self.cached_size.get()
10223     }
10224 
get_unknown_fields(&self) -> &::protobuf::UnknownFields10225     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
10226         &self.unknown_fields
10227     }
10228 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields10229     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
10230         &mut self.unknown_fields
10231     }
10232 
as_any(&self) -> &dyn (::std::any::Any)10233     fn as_any(&self) -> &dyn (::std::any::Any) {
10234         self as &dyn (::std::any::Any)
10235     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)10236     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
10237         self as &mut dyn (::std::any::Any)
10238     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>10239     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
10240         self
10241     }
10242 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor10243     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
10244         Self::descriptor_static()
10245     }
10246 
new() -> UpdateCredentialRequest10247     fn new() -> UpdateCredentialRequest {
10248         UpdateCredentialRequest::new()
10249     }
10250 
default_instance() -> &'static UpdateCredentialRequest10251     fn default_instance() -> &'static UpdateCredentialRequest {
10252         static instance: ::protobuf::rt::LazyV2<UpdateCredentialRequest> = ::protobuf::rt::LazyV2::INIT;
10253         instance.get(UpdateCredentialRequest::new)
10254     }
10255 }
10256 
10257 impl ::protobuf::Clear for UpdateCredentialRequest {
clear(&mut self)10258     fn clear(&mut self) {
10259         self.auth_session_id.clear();
10260         self.old_credential_label.clear();
10261         self.authorization.clear();
10262         self.unknown_fields.clear();
10263     }
10264 }
10265 
10266 impl ::protobuf::reflect::ProtobufValue for UpdateCredentialRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef10267     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
10268         ::protobuf::reflect::ReflectValueRef::Message(self)
10269     }
10270 }
10271 
10272 #[derive(PartialEq,Clone,Default,Debug)]
10273 pub struct UpdateCredentialReply {
10274     // message fields
10275     pub error: CryptohomeErrorCode,
10276     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
10277     // special fields
10278     pub unknown_fields: ::protobuf::UnknownFields,
10279     pub cached_size: ::protobuf::CachedSize,
10280 }
10281 
10282 impl<'a> ::std::default::Default for &'a UpdateCredentialReply {
default() -> &'a UpdateCredentialReply10283     fn default() -> &'a UpdateCredentialReply {
10284         <UpdateCredentialReply as ::protobuf::Message>::default_instance()
10285     }
10286 }
10287 
10288 impl UpdateCredentialReply {
new() -> UpdateCredentialReply10289     pub fn new() -> UpdateCredentialReply {
10290         ::std::default::Default::default()
10291     }
10292 
10293     // .user_data_auth.CryptohomeErrorCode error = 1;
10294 
10295 
get_error(&self) -> CryptohomeErrorCode10296     pub fn get_error(&self) -> CryptohomeErrorCode {
10297         self.error
10298     }
clear_error(&mut self)10299     pub fn clear_error(&mut self) {
10300         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
10301     }
10302 
10303     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)10304     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
10305         self.error = v;
10306     }
10307 
10308     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
10309 
10310 
get_error_info(&self) -> &CryptohomeErrorInfo10311     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
10312         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
10313     }
clear_error_info(&mut self)10314     pub fn clear_error_info(&mut self) {
10315         self.error_info.clear();
10316     }
10317 
has_error_info(&self) -> bool10318     pub fn has_error_info(&self) -> bool {
10319         self.error_info.is_some()
10320     }
10321 
10322     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)10323     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
10324         self.error_info = ::protobuf::SingularPtrField::some(v);
10325     }
10326 
10327     // Mutable pointer to the field.
10328     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo10329     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
10330         if self.error_info.is_none() {
10331             self.error_info.set_default();
10332         }
10333         self.error_info.as_mut().unwrap()
10334     }
10335 
10336     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo10337     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
10338         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
10339     }
10340 }
10341 
10342 impl ::protobuf::Message for UpdateCredentialReply {
is_initialized(&self) -> bool10343     fn is_initialized(&self) -> bool {
10344         for v in &self.error_info {
10345             if !v.is_initialized() {
10346                 return false;
10347             }
10348         };
10349         true
10350     }
10351 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>10352     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
10353         while !is.eof()? {
10354             let (field_number, wire_type) = is.read_tag_unpack()?;
10355             match field_number {
10356                 1 => {
10357                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
10358                 },
10359                 2 => {
10360                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
10361                 },
10362                 _ => {
10363                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
10364                 },
10365             };
10366         }
10367         ::std::result::Result::Ok(())
10368     }
10369 
10370     // Compute sizes of nested messages
10371     #[allow(unused_variables)]
compute_size(&self) -> u3210372     fn compute_size(&self) -> u32 {
10373         let mut my_size = 0;
10374         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
10375             my_size += ::protobuf::rt::enum_size(1, self.error);
10376         }
10377         if let Some(ref v) = self.error_info.as_ref() {
10378             let len = v.compute_size();
10379             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
10380         }
10381         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
10382         self.cached_size.set(my_size);
10383         my_size
10384     }
10385 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>10386     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
10387         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
10388             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
10389         }
10390         if let Some(ref v) = self.error_info.as_ref() {
10391             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
10392             os.write_raw_varint32(v.get_cached_size())?;
10393             v.write_to_with_cached_sizes(os)?;
10394         }
10395         os.write_unknown_fields(self.get_unknown_fields())?;
10396         ::std::result::Result::Ok(())
10397     }
10398 
get_cached_size(&self) -> u3210399     fn get_cached_size(&self) -> u32 {
10400         self.cached_size.get()
10401     }
10402 
get_unknown_fields(&self) -> &::protobuf::UnknownFields10403     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
10404         &self.unknown_fields
10405     }
10406 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields10407     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
10408         &mut self.unknown_fields
10409     }
10410 
as_any(&self) -> &dyn (::std::any::Any)10411     fn as_any(&self) -> &dyn (::std::any::Any) {
10412         self as &dyn (::std::any::Any)
10413     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)10414     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
10415         self as &mut dyn (::std::any::Any)
10416     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>10417     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
10418         self
10419     }
10420 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor10421     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
10422         Self::descriptor_static()
10423     }
10424 
new() -> UpdateCredentialReply10425     fn new() -> UpdateCredentialReply {
10426         UpdateCredentialReply::new()
10427     }
10428 
default_instance() -> &'static UpdateCredentialReply10429     fn default_instance() -> &'static UpdateCredentialReply {
10430         static instance: ::protobuf::rt::LazyV2<UpdateCredentialReply> = ::protobuf::rt::LazyV2::INIT;
10431         instance.get(UpdateCredentialReply::new)
10432     }
10433 }
10434 
10435 impl ::protobuf::Clear for UpdateCredentialReply {
clear(&mut self)10436     fn clear(&mut self) {
10437         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
10438         self.error_info.clear();
10439         self.unknown_fields.clear();
10440     }
10441 }
10442 
10443 impl ::protobuf::reflect::ProtobufValue for UpdateCredentialReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef10444     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
10445         ::protobuf::reflect::ReflectValueRef::Message(self)
10446     }
10447 }
10448 
10449 #[derive(PartialEq,Clone,Default,Debug)]
10450 pub struct CreatePersistentUserRequest {
10451     // message fields
10452     pub auth_session_id: ::std::vec::Vec<u8>,
10453     // special fields
10454     pub unknown_fields: ::protobuf::UnknownFields,
10455     pub cached_size: ::protobuf::CachedSize,
10456 }
10457 
10458 impl<'a> ::std::default::Default for &'a CreatePersistentUserRequest {
default() -> &'a CreatePersistentUserRequest10459     fn default() -> &'a CreatePersistentUserRequest {
10460         <CreatePersistentUserRequest as ::protobuf::Message>::default_instance()
10461     }
10462 }
10463 
10464 impl CreatePersistentUserRequest {
new() -> CreatePersistentUserRequest10465     pub fn new() -> CreatePersistentUserRequest {
10466         ::std::default::Default::default()
10467     }
10468 
10469     // bytes auth_session_id = 1;
10470 
10471 
get_auth_session_id(&self) -> &[u8]10472     pub fn get_auth_session_id(&self) -> &[u8] {
10473         &self.auth_session_id
10474     }
clear_auth_session_id(&mut self)10475     pub fn clear_auth_session_id(&mut self) {
10476         self.auth_session_id.clear();
10477     }
10478 
10479     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)10480     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
10481         self.auth_session_id = v;
10482     }
10483 
10484     // Mutable pointer to the field.
10485     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>10486     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
10487         &mut self.auth_session_id
10488     }
10489 
10490     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>10491     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
10492         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
10493     }
10494 }
10495 
10496 impl ::protobuf::Message for CreatePersistentUserRequest {
is_initialized(&self) -> bool10497     fn is_initialized(&self) -> bool {
10498         true
10499     }
10500 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>10501     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
10502         while !is.eof()? {
10503             let (field_number, wire_type) = is.read_tag_unpack()?;
10504             match field_number {
10505                 1 => {
10506                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
10507                 },
10508                 _ => {
10509                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
10510                 },
10511             };
10512         }
10513         ::std::result::Result::Ok(())
10514     }
10515 
10516     // Compute sizes of nested messages
10517     #[allow(unused_variables)]
compute_size(&self) -> u3210518     fn compute_size(&self) -> u32 {
10519         let mut my_size = 0;
10520         if !self.auth_session_id.is_empty() {
10521             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
10522         }
10523         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
10524         self.cached_size.set(my_size);
10525         my_size
10526     }
10527 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>10528     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
10529         if !self.auth_session_id.is_empty() {
10530             os.write_bytes(1, &self.auth_session_id)?;
10531         }
10532         os.write_unknown_fields(self.get_unknown_fields())?;
10533         ::std::result::Result::Ok(())
10534     }
10535 
get_cached_size(&self) -> u3210536     fn get_cached_size(&self) -> u32 {
10537         self.cached_size.get()
10538     }
10539 
get_unknown_fields(&self) -> &::protobuf::UnknownFields10540     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
10541         &self.unknown_fields
10542     }
10543 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields10544     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
10545         &mut self.unknown_fields
10546     }
10547 
as_any(&self) -> &dyn (::std::any::Any)10548     fn as_any(&self) -> &dyn (::std::any::Any) {
10549         self as &dyn (::std::any::Any)
10550     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)10551     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
10552         self as &mut dyn (::std::any::Any)
10553     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>10554     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
10555         self
10556     }
10557 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor10558     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
10559         Self::descriptor_static()
10560     }
10561 
new() -> CreatePersistentUserRequest10562     fn new() -> CreatePersistentUserRequest {
10563         CreatePersistentUserRequest::new()
10564     }
10565 
default_instance() -> &'static CreatePersistentUserRequest10566     fn default_instance() -> &'static CreatePersistentUserRequest {
10567         static instance: ::protobuf::rt::LazyV2<CreatePersistentUserRequest> = ::protobuf::rt::LazyV2::INIT;
10568         instance.get(CreatePersistentUserRequest::new)
10569     }
10570 }
10571 
10572 impl ::protobuf::Clear for CreatePersistentUserRequest {
clear(&mut self)10573     fn clear(&mut self) {
10574         self.auth_session_id.clear();
10575         self.unknown_fields.clear();
10576     }
10577 }
10578 
10579 impl ::protobuf::reflect::ProtobufValue for CreatePersistentUserRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef10580     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
10581         ::protobuf::reflect::ReflectValueRef::Message(self)
10582     }
10583 }
10584 
10585 #[derive(PartialEq,Clone,Default,Debug)]
10586 pub struct CreatePersistentUserReply {
10587     // message fields
10588     pub error: CryptohomeErrorCode,
10589     pub sanitized_username: ::std::string::String,
10590     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
10591     // special fields
10592     pub unknown_fields: ::protobuf::UnknownFields,
10593     pub cached_size: ::protobuf::CachedSize,
10594 }
10595 
10596 impl<'a> ::std::default::Default for &'a CreatePersistentUserReply {
default() -> &'a CreatePersistentUserReply10597     fn default() -> &'a CreatePersistentUserReply {
10598         <CreatePersistentUserReply as ::protobuf::Message>::default_instance()
10599     }
10600 }
10601 
10602 impl CreatePersistentUserReply {
new() -> CreatePersistentUserReply10603     pub fn new() -> CreatePersistentUserReply {
10604         ::std::default::Default::default()
10605     }
10606 
10607     // .user_data_auth.CryptohomeErrorCode error = 1;
10608 
10609 
get_error(&self) -> CryptohomeErrorCode10610     pub fn get_error(&self) -> CryptohomeErrorCode {
10611         self.error
10612     }
clear_error(&mut self)10613     pub fn clear_error(&mut self) {
10614         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
10615     }
10616 
10617     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)10618     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
10619         self.error = v;
10620     }
10621 
10622     // string sanitized_username = 2;
10623 
10624 
get_sanitized_username(&self) -> &str10625     pub fn get_sanitized_username(&self) -> &str {
10626         &self.sanitized_username
10627     }
clear_sanitized_username(&mut self)10628     pub fn clear_sanitized_username(&mut self) {
10629         self.sanitized_username.clear();
10630     }
10631 
10632     // Param is passed by value, moved
set_sanitized_username(&mut self, v: ::std::string::String)10633     pub fn set_sanitized_username(&mut self, v: ::std::string::String) {
10634         self.sanitized_username = v;
10635     }
10636 
10637     // Mutable pointer to the field.
10638     // If field is not initialized, it is initialized with default value first.
mut_sanitized_username(&mut self) -> &mut ::std::string::String10639     pub fn mut_sanitized_username(&mut self) -> &mut ::std::string::String {
10640         &mut self.sanitized_username
10641     }
10642 
10643     // Take field
take_sanitized_username(&mut self) -> ::std::string::String10644     pub fn take_sanitized_username(&mut self) -> ::std::string::String {
10645         ::std::mem::replace(&mut self.sanitized_username, ::std::string::String::new())
10646     }
10647 
10648     // .user_data_auth.CryptohomeErrorInfo error_info = 3;
10649 
10650 
get_error_info(&self) -> &CryptohomeErrorInfo10651     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
10652         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
10653     }
clear_error_info(&mut self)10654     pub fn clear_error_info(&mut self) {
10655         self.error_info.clear();
10656     }
10657 
has_error_info(&self) -> bool10658     pub fn has_error_info(&self) -> bool {
10659         self.error_info.is_some()
10660     }
10661 
10662     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)10663     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
10664         self.error_info = ::protobuf::SingularPtrField::some(v);
10665     }
10666 
10667     // Mutable pointer to the field.
10668     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo10669     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
10670         if self.error_info.is_none() {
10671             self.error_info.set_default();
10672         }
10673         self.error_info.as_mut().unwrap()
10674     }
10675 
10676     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo10677     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
10678         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
10679     }
10680 }
10681 
10682 impl ::protobuf::Message for CreatePersistentUserReply {
is_initialized(&self) -> bool10683     fn is_initialized(&self) -> bool {
10684         for v in &self.error_info {
10685             if !v.is_initialized() {
10686                 return false;
10687             }
10688         };
10689         true
10690     }
10691 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>10692     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
10693         while !is.eof()? {
10694             let (field_number, wire_type) = is.read_tag_unpack()?;
10695             match field_number {
10696                 1 => {
10697                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
10698                 },
10699                 2 => {
10700                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sanitized_username)?;
10701                 },
10702                 3 => {
10703                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
10704                 },
10705                 _ => {
10706                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
10707                 },
10708             };
10709         }
10710         ::std::result::Result::Ok(())
10711     }
10712 
10713     // Compute sizes of nested messages
10714     #[allow(unused_variables)]
compute_size(&self) -> u3210715     fn compute_size(&self) -> u32 {
10716         let mut my_size = 0;
10717         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
10718             my_size += ::protobuf::rt::enum_size(1, self.error);
10719         }
10720         if !self.sanitized_username.is_empty() {
10721             my_size += ::protobuf::rt::string_size(2, &self.sanitized_username);
10722         }
10723         if let Some(ref v) = self.error_info.as_ref() {
10724             let len = v.compute_size();
10725             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
10726         }
10727         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
10728         self.cached_size.set(my_size);
10729         my_size
10730     }
10731 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>10732     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
10733         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
10734             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
10735         }
10736         if !self.sanitized_username.is_empty() {
10737             os.write_string(2, &self.sanitized_username)?;
10738         }
10739         if let Some(ref v) = self.error_info.as_ref() {
10740             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
10741             os.write_raw_varint32(v.get_cached_size())?;
10742             v.write_to_with_cached_sizes(os)?;
10743         }
10744         os.write_unknown_fields(self.get_unknown_fields())?;
10745         ::std::result::Result::Ok(())
10746     }
10747 
get_cached_size(&self) -> u3210748     fn get_cached_size(&self) -> u32 {
10749         self.cached_size.get()
10750     }
10751 
get_unknown_fields(&self) -> &::protobuf::UnknownFields10752     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
10753         &self.unknown_fields
10754     }
10755 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields10756     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
10757         &mut self.unknown_fields
10758     }
10759 
as_any(&self) -> &dyn (::std::any::Any)10760     fn as_any(&self) -> &dyn (::std::any::Any) {
10761         self as &dyn (::std::any::Any)
10762     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)10763     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
10764         self as &mut dyn (::std::any::Any)
10765     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>10766     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
10767         self
10768     }
10769 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor10770     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
10771         Self::descriptor_static()
10772     }
10773 
new() -> CreatePersistentUserReply10774     fn new() -> CreatePersistentUserReply {
10775         CreatePersistentUserReply::new()
10776     }
10777 
default_instance() -> &'static CreatePersistentUserReply10778     fn default_instance() -> &'static CreatePersistentUserReply {
10779         static instance: ::protobuf::rt::LazyV2<CreatePersistentUserReply> = ::protobuf::rt::LazyV2::INIT;
10780         instance.get(CreatePersistentUserReply::new)
10781     }
10782 }
10783 
10784 impl ::protobuf::Clear for CreatePersistentUserReply {
clear(&mut self)10785     fn clear(&mut self) {
10786         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
10787         self.sanitized_username.clear();
10788         self.error_info.clear();
10789         self.unknown_fields.clear();
10790     }
10791 }
10792 
10793 impl ::protobuf::reflect::ProtobufValue for CreatePersistentUserReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef10794     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
10795         ::protobuf::reflect::ReflectValueRef::Message(self)
10796     }
10797 }
10798 
10799 #[derive(PartialEq,Clone,Default,Debug)]
10800 pub struct PrepareGuestVaultRequest {
10801     // special fields
10802     pub unknown_fields: ::protobuf::UnknownFields,
10803     pub cached_size: ::protobuf::CachedSize,
10804 }
10805 
10806 impl<'a> ::std::default::Default for &'a PrepareGuestVaultRequest {
default() -> &'a PrepareGuestVaultRequest10807     fn default() -> &'a PrepareGuestVaultRequest {
10808         <PrepareGuestVaultRequest as ::protobuf::Message>::default_instance()
10809     }
10810 }
10811 
10812 impl PrepareGuestVaultRequest {
new() -> PrepareGuestVaultRequest10813     pub fn new() -> PrepareGuestVaultRequest {
10814         ::std::default::Default::default()
10815     }
10816 }
10817 
10818 impl ::protobuf::Message for PrepareGuestVaultRequest {
is_initialized(&self) -> bool10819     fn is_initialized(&self) -> bool {
10820         true
10821     }
10822 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>10823     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
10824         while !is.eof()? {
10825             let (field_number, wire_type) = is.read_tag_unpack()?;
10826             match field_number {
10827                 _ => {
10828                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
10829                 },
10830             };
10831         }
10832         ::std::result::Result::Ok(())
10833     }
10834 
10835     // Compute sizes of nested messages
10836     #[allow(unused_variables)]
compute_size(&self) -> u3210837     fn compute_size(&self) -> u32 {
10838         let mut my_size = 0;
10839         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
10840         self.cached_size.set(my_size);
10841         my_size
10842     }
10843 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>10844     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
10845         os.write_unknown_fields(self.get_unknown_fields())?;
10846         ::std::result::Result::Ok(())
10847     }
10848 
get_cached_size(&self) -> u3210849     fn get_cached_size(&self) -> u32 {
10850         self.cached_size.get()
10851     }
10852 
get_unknown_fields(&self) -> &::protobuf::UnknownFields10853     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
10854         &self.unknown_fields
10855     }
10856 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields10857     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
10858         &mut self.unknown_fields
10859     }
10860 
as_any(&self) -> &dyn (::std::any::Any)10861     fn as_any(&self) -> &dyn (::std::any::Any) {
10862         self as &dyn (::std::any::Any)
10863     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)10864     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
10865         self as &mut dyn (::std::any::Any)
10866     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>10867     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
10868         self
10869     }
10870 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor10871     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
10872         Self::descriptor_static()
10873     }
10874 
new() -> PrepareGuestVaultRequest10875     fn new() -> PrepareGuestVaultRequest {
10876         PrepareGuestVaultRequest::new()
10877     }
10878 
default_instance() -> &'static PrepareGuestVaultRequest10879     fn default_instance() -> &'static PrepareGuestVaultRequest {
10880         static instance: ::protobuf::rt::LazyV2<PrepareGuestVaultRequest> = ::protobuf::rt::LazyV2::INIT;
10881         instance.get(PrepareGuestVaultRequest::new)
10882     }
10883 }
10884 
10885 impl ::protobuf::Clear for PrepareGuestVaultRequest {
clear(&mut self)10886     fn clear(&mut self) {
10887         self.unknown_fields.clear();
10888     }
10889 }
10890 
10891 impl ::protobuf::reflect::ProtobufValue for PrepareGuestVaultRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef10892     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
10893         ::protobuf::reflect::ReflectValueRef::Message(self)
10894     }
10895 }
10896 
10897 #[derive(PartialEq,Clone,Default,Debug)]
10898 pub struct PrepareGuestVaultReply {
10899     // message fields
10900     pub error: CryptohomeErrorCode,
10901     pub sanitized_username: ::std::string::String,
10902     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
10903     // special fields
10904     pub unknown_fields: ::protobuf::UnknownFields,
10905     pub cached_size: ::protobuf::CachedSize,
10906 }
10907 
10908 impl<'a> ::std::default::Default for &'a PrepareGuestVaultReply {
default() -> &'a PrepareGuestVaultReply10909     fn default() -> &'a PrepareGuestVaultReply {
10910         <PrepareGuestVaultReply as ::protobuf::Message>::default_instance()
10911     }
10912 }
10913 
10914 impl PrepareGuestVaultReply {
new() -> PrepareGuestVaultReply10915     pub fn new() -> PrepareGuestVaultReply {
10916         ::std::default::Default::default()
10917     }
10918 
10919     // .user_data_auth.CryptohomeErrorCode error = 1;
10920 
10921 
get_error(&self) -> CryptohomeErrorCode10922     pub fn get_error(&self) -> CryptohomeErrorCode {
10923         self.error
10924     }
clear_error(&mut self)10925     pub fn clear_error(&mut self) {
10926         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
10927     }
10928 
10929     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)10930     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
10931         self.error = v;
10932     }
10933 
10934     // string sanitized_username = 2;
10935 
10936 
get_sanitized_username(&self) -> &str10937     pub fn get_sanitized_username(&self) -> &str {
10938         &self.sanitized_username
10939     }
clear_sanitized_username(&mut self)10940     pub fn clear_sanitized_username(&mut self) {
10941         self.sanitized_username.clear();
10942     }
10943 
10944     // Param is passed by value, moved
set_sanitized_username(&mut self, v: ::std::string::String)10945     pub fn set_sanitized_username(&mut self, v: ::std::string::String) {
10946         self.sanitized_username = v;
10947     }
10948 
10949     // Mutable pointer to the field.
10950     // If field is not initialized, it is initialized with default value first.
mut_sanitized_username(&mut self) -> &mut ::std::string::String10951     pub fn mut_sanitized_username(&mut self) -> &mut ::std::string::String {
10952         &mut self.sanitized_username
10953     }
10954 
10955     // Take field
take_sanitized_username(&mut self) -> ::std::string::String10956     pub fn take_sanitized_username(&mut self) -> ::std::string::String {
10957         ::std::mem::replace(&mut self.sanitized_username, ::std::string::String::new())
10958     }
10959 
10960     // .user_data_auth.CryptohomeErrorInfo error_info = 3;
10961 
10962 
get_error_info(&self) -> &CryptohomeErrorInfo10963     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
10964         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
10965     }
clear_error_info(&mut self)10966     pub fn clear_error_info(&mut self) {
10967         self.error_info.clear();
10968     }
10969 
has_error_info(&self) -> bool10970     pub fn has_error_info(&self) -> bool {
10971         self.error_info.is_some()
10972     }
10973 
10974     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)10975     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
10976         self.error_info = ::protobuf::SingularPtrField::some(v);
10977     }
10978 
10979     // Mutable pointer to the field.
10980     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo10981     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
10982         if self.error_info.is_none() {
10983             self.error_info.set_default();
10984         }
10985         self.error_info.as_mut().unwrap()
10986     }
10987 
10988     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo10989     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
10990         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
10991     }
10992 }
10993 
10994 impl ::protobuf::Message for PrepareGuestVaultReply {
is_initialized(&self) -> bool10995     fn is_initialized(&self) -> bool {
10996         for v in &self.error_info {
10997             if !v.is_initialized() {
10998                 return false;
10999             }
11000         };
11001         true
11002     }
11003 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>11004     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11005         while !is.eof()? {
11006             let (field_number, wire_type) = is.read_tag_unpack()?;
11007             match field_number {
11008                 1 => {
11009                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
11010                 },
11011                 2 => {
11012                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sanitized_username)?;
11013                 },
11014                 3 => {
11015                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
11016                 },
11017                 _ => {
11018                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
11019                 },
11020             };
11021         }
11022         ::std::result::Result::Ok(())
11023     }
11024 
11025     // Compute sizes of nested messages
11026     #[allow(unused_variables)]
compute_size(&self) -> u3211027     fn compute_size(&self) -> u32 {
11028         let mut my_size = 0;
11029         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
11030             my_size += ::protobuf::rt::enum_size(1, self.error);
11031         }
11032         if !self.sanitized_username.is_empty() {
11033             my_size += ::protobuf::rt::string_size(2, &self.sanitized_username);
11034         }
11035         if let Some(ref v) = self.error_info.as_ref() {
11036             let len = v.compute_size();
11037             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
11038         }
11039         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
11040         self.cached_size.set(my_size);
11041         my_size
11042     }
11043 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>11044     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11045         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
11046             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
11047         }
11048         if !self.sanitized_username.is_empty() {
11049             os.write_string(2, &self.sanitized_username)?;
11050         }
11051         if let Some(ref v) = self.error_info.as_ref() {
11052             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
11053             os.write_raw_varint32(v.get_cached_size())?;
11054             v.write_to_with_cached_sizes(os)?;
11055         }
11056         os.write_unknown_fields(self.get_unknown_fields())?;
11057         ::std::result::Result::Ok(())
11058     }
11059 
get_cached_size(&self) -> u3211060     fn get_cached_size(&self) -> u32 {
11061         self.cached_size.get()
11062     }
11063 
get_unknown_fields(&self) -> &::protobuf::UnknownFields11064     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
11065         &self.unknown_fields
11066     }
11067 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields11068     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
11069         &mut self.unknown_fields
11070     }
11071 
as_any(&self) -> &dyn (::std::any::Any)11072     fn as_any(&self) -> &dyn (::std::any::Any) {
11073         self as &dyn (::std::any::Any)
11074     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)11075     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
11076         self as &mut dyn (::std::any::Any)
11077     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>11078     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
11079         self
11080     }
11081 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor11082     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
11083         Self::descriptor_static()
11084     }
11085 
new() -> PrepareGuestVaultReply11086     fn new() -> PrepareGuestVaultReply {
11087         PrepareGuestVaultReply::new()
11088     }
11089 
default_instance() -> &'static PrepareGuestVaultReply11090     fn default_instance() -> &'static PrepareGuestVaultReply {
11091         static instance: ::protobuf::rt::LazyV2<PrepareGuestVaultReply> = ::protobuf::rt::LazyV2::INIT;
11092         instance.get(PrepareGuestVaultReply::new)
11093     }
11094 }
11095 
11096 impl ::protobuf::Clear for PrepareGuestVaultReply {
clear(&mut self)11097     fn clear(&mut self) {
11098         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
11099         self.sanitized_username.clear();
11100         self.error_info.clear();
11101         self.unknown_fields.clear();
11102     }
11103 }
11104 
11105 impl ::protobuf::reflect::ProtobufValue for PrepareGuestVaultReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef11106     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
11107         ::protobuf::reflect::ReflectValueRef::Message(self)
11108     }
11109 }
11110 
11111 #[derive(PartialEq,Clone,Default,Debug)]
11112 pub struct PrepareEphemeralVaultRequest {
11113     // message fields
11114     pub auth_session_id: ::std::vec::Vec<u8>,
11115     // special fields
11116     pub unknown_fields: ::protobuf::UnknownFields,
11117     pub cached_size: ::protobuf::CachedSize,
11118 }
11119 
11120 impl<'a> ::std::default::Default for &'a PrepareEphemeralVaultRequest {
default() -> &'a PrepareEphemeralVaultRequest11121     fn default() -> &'a PrepareEphemeralVaultRequest {
11122         <PrepareEphemeralVaultRequest as ::protobuf::Message>::default_instance()
11123     }
11124 }
11125 
11126 impl PrepareEphemeralVaultRequest {
new() -> PrepareEphemeralVaultRequest11127     pub fn new() -> PrepareEphemeralVaultRequest {
11128         ::std::default::Default::default()
11129     }
11130 
11131     // bytes auth_session_id = 1;
11132 
11133 
get_auth_session_id(&self) -> &[u8]11134     pub fn get_auth_session_id(&self) -> &[u8] {
11135         &self.auth_session_id
11136     }
clear_auth_session_id(&mut self)11137     pub fn clear_auth_session_id(&mut self) {
11138         self.auth_session_id.clear();
11139     }
11140 
11141     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)11142     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
11143         self.auth_session_id = v;
11144     }
11145 
11146     // Mutable pointer to the field.
11147     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>11148     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
11149         &mut self.auth_session_id
11150     }
11151 
11152     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>11153     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
11154         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
11155     }
11156 }
11157 
11158 impl ::protobuf::Message for PrepareEphemeralVaultRequest {
is_initialized(&self) -> bool11159     fn is_initialized(&self) -> bool {
11160         true
11161     }
11162 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>11163     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11164         while !is.eof()? {
11165             let (field_number, wire_type) = is.read_tag_unpack()?;
11166             match field_number {
11167                 1 => {
11168                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
11169                 },
11170                 _ => {
11171                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
11172                 },
11173             };
11174         }
11175         ::std::result::Result::Ok(())
11176     }
11177 
11178     // Compute sizes of nested messages
11179     #[allow(unused_variables)]
compute_size(&self) -> u3211180     fn compute_size(&self) -> u32 {
11181         let mut my_size = 0;
11182         if !self.auth_session_id.is_empty() {
11183             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
11184         }
11185         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
11186         self.cached_size.set(my_size);
11187         my_size
11188     }
11189 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>11190     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11191         if !self.auth_session_id.is_empty() {
11192             os.write_bytes(1, &self.auth_session_id)?;
11193         }
11194         os.write_unknown_fields(self.get_unknown_fields())?;
11195         ::std::result::Result::Ok(())
11196     }
11197 
get_cached_size(&self) -> u3211198     fn get_cached_size(&self) -> u32 {
11199         self.cached_size.get()
11200     }
11201 
get_unknown_fields(&self) -> &::protobuf::UnknownFields11202     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
11203         &self.unknown_fields
11204     }
11205 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields11206     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
11207         &mut self.unknown_fields
11208     }
11209 
as_any(&self) -> &dyn (::std::any::Any)11210     fn as_any(&self) -> &dyn (::std::any::Any) {
11211         self as &dyn (::std::any::Any)
11212     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)11213     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
11214         self as &mut dyn (::std::any::Any)
11215     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>11216     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
11217         self
11218     }
11219 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor11220     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
11221         Self::descriptor_static()
11222     }
11223 
new() -> PrepareEphemeralVaultRequest11224     fn new() -> PrepareEphemeralVaultRequest {
11225         PrepareEphemeralVaultRequest::new()
11226     }
11227 
default_instance() -> &'static PrepareEphemeralVaultRequest11228     fn default_instance() -> &'static PrepareEphemeralVaultRequest {
11229         static instance: ::protobuf::rt::LazyV2<PrepareEphemeralVaultRequest> = ::protobuf::rt::LazyV2::INIT;
11230         instance.get(PrepareEphemeralVaultRequest::new)
11231     }
11232 }
11233 
11234 impl ::protobuf::Clear for PrepareEphemeralVaultRequest {
clear(&mut self)11235     fn clear(&mut self) {
11236         self.auth_session_id.clear();
11237         self.unknown_fields.clear();
11238     }
11239 }
11240 
11241 impl ::protobuf::reflect::ProtobufValue for PrepareEphemeralVaultRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef11242     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
11243         ::protobuf::reflect::ReflectValueRef::Message(self)
11244     }
11245 }
11246 
11247 #[derive(PartialEq,Clone,Default,Debug)]
11248 pub struct PrepareEphemeralVaultReply {
11249     // message fields
11250     pub error: CryptohomeErrorCode,
11251     pub sanitized_username: ::std::string::String,
11252     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
11253     // special fields
11254     pub unknown_fields: ::protobuf::UnknownFields,
11255     pub cached_size: ::protobuf::CachedSize,
11256 }
11257 
11258 impl<'a> ::std::default::Default for &'a PrepareEphemeralVaultReply {
default() -> &'a PrepareEphemeralVaultReply11259     fn default() -> &'a PrepareEphemeralVaultReply {
11260         <PrepareEphemeralVaultReply as ::protobuf::Message>::default_instance()
11261     }
11262 }
11263 
11264 impl PrepareEphemeralVaultReply {
new() -> PrepareEphemeralVaultReply11265     pub fn new() -> PrepareEphemeralVaultReply {
11266         ::std::default::Default::default()
11267     }
11268 
11269     // .user_data_auth.CryptohomeErrorCode error = 1;
11270 
11271 
get_error(&self) -> CryptohomeErrorCode11272     pub fn get_error(&self) -> CryptohomeErrorCode {
11273         self.error
11274     }
clear_error(&mut self)11275     pub fn clear_error(&mut self) {
11276         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
11277     }
11278 
11279     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)11280     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
11281         self.error = v;
11282     }
11283 
11284     // string sanitized_username = 2;
11285 
11286 
get_sanitized_username(&self) -> &str11287     pub fn get_sanitized_username(&self) -> &str {
11288         &self.sanitized_username
11289     }
clear_sanitized_username(&mut self)11290     pub fn clear_sanitized_username(&mut self) {
11291         self.sanitized_username.clear();
11292     }
11293 
11294     // Param is passed by value, moved
set_sanitized_username(&mut self, v: ::std::string::String)11295     pub fn set_sanitized_username(&mut self, v: ::std::string::String) {
11296         self.sanitized_username = v;
11297     }
11298 
11299     // Mutable pointer to the field.
11300     // If field is not initialized, it is initialized with default value first.
mut_sanitized_username(&mut self) -> &mut ::std::string::String11301     pub fn mut_sanitized_username(&mut self) -> &mut ::std::string::String {
11302         &mut self.sanitized_username
11303     }
11304 
11305     // Take field
take_sanitized_username(&mut self) -> ::std::string::String11306     pub fn take_sanitized_username(&mut self) -> ::std::string::String {
11307         ::std::mem::replace(&mut self.sanitized_username, ::std::string::String::new())
11308     }
11309 
11310     // .user_data_auth.CryptohomeErrorInfo error_info = 3;
11311 
11312 
get_error_info(&self) -> &CryptohomeErrorInfo11313     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
11314         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
11315     }
clear_error_info(&mut self)11316     pub fn clear_error_info(&mut self) {
11317         self.error_info.clear();
11318     }
11319 
has_error_info(&self) -> bool11320     pub fn has_error_info(&self) -> bool {
11321         self.error_info.is_some()
11322     }
11323 
11324     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)11325     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
11326         self.error_info = ::protobuf::SingularPtrField::some(v);
11327     }
11328 
11329     // Mutable pointer to the field.
11330     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo11331     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
11332         if self.error_info.is_none() {
11333             self.error_info.set_default();
11334         }
11335         self.error_info.as_mut().unwrap()
11336     }
11337 
11338     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo11339     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
11340         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
11341     }
11342 }
11343 
11344 impl ::protobuf::Message for PrepareEphemeralVaultReply {
is_initialized(&self) -> bool11345     fn is_initialized(&self) -> bool {
11346         for v in &self.error_info {
11347             if !v.is_initialized() {
11348                 return false;
11349             }
11350         };
11351         true
11352     }
11353 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>11354     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11355         while !is.eof()? {
11356             let (field_number, wire_type) = is.read_tag_unpack()?;
11357             match field_number {
11358                 1 => {
11359                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
11360                 },
11361                 2 => {
11362                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sanitized_username)?;
11363                 },
11364                 3 => {
11365                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
11366                 },
11367                 _ => {
11368                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
11369                 },
11370             };
11371         }
11372         ::std::result::Result::Ok(())
11373     }
11374 
11375     // Compute sizes of nested messages
11376     #[allow(unused_variables)]
compute_size(&self) -> u3211377     fn compute_size(&self) -> u32 {
11378         let mut my_size = 0;
11379         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
11380             my_size += ::protobuf::rt::enum_size(1, self.error);
11381         }
11382         if !self.sanitized_username.is_empty() {
11383             my_size += ::protobuf::rt::string_size(2, &self.sanitized_username);
11384         }
11385         if let Some(ref v) = self.error_info.as_ref() {
11386             let len = v.compute_size();
11387             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
11388         }
11389         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
11390         self.cached_size.set(my_size);
11391         my_size
11392     }
11393 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>11394     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11395         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
11396             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
11397         }
11398         if !self.sanitized_username.is_empty() {
11399             os.write_string(2, &self.sanitized_username)?;
11400         }
11401         if let Some(ref v) = self.error_info.as_ref() {
11402             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
11403             os.write_raw_varint32(v.get_cached_size())?;
11404             v.write_to_with_cached_sizes(os)?;
11405         }
11406         os.write_unknown_fields(self.get_unknown_fields())?;
11407         ::std::result::Result::Ok(())
11408     }
11409 
get_cached_size(&self) -> u3211410     fn get_cached_size(&self) -> u32 {
11411         self.cached_size.get()
11412     }
11413 
get_unknown_fields(&self) -> &::protobuf::UnknownFields11414     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
11415         &self.unknown_fields
11416     }
11417 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields11418     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
11419         &mut self.unknown_fields
11420     }
11421 
as_any(&self) -> &dyn (::std::any::Any)11422     fn as_any(&self) -> &dyn (::std::any::Any) {
11423         self as &dyn (::std::any::Any)
11424     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)11425     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
11426         self as &mut dyn (::std::any::Any)
11427     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>11428     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
11429         self
11430     }
11431 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor11432     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
11433         Self::descriptor_static()
11434     }
11435 
new() -> PrepareEphemeralVaultReply11436     fn new() -> PrepareEphemeralVaultReply {
11437         PrepareEphemeralVaultReply::new()
11438     }
11439 
default_instance() -> &'static PrepareEphemeralVaultReply11440     fn default_instance() -> &'static PrepareEphemeralVaultReply {
11441         static instance: ::protobuf::rt::LazyV2<PrepareEphemeralVaultReply> = ::protobuf::rt::LazyV2::INIT;
11442         instance.get(PrepareEphemeralVaultReply::new)
11443     }
11444 }
11445 
11446 impl ::protobuf::Clear for PrepareEphemeralVaultReply {
clear(&mut self)11447     fn clear(&mut self) {
11448         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
11449         self.sanitized_username.clear();
11450         self.error_info.clear();
11451         self.unknown_fields.clear();
11452     }
11453 }
11454 
11455 impl ::protobuf::reflect::ProtobufValue for PrepareEphemeralVaultReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef11456     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
11457         ::protobuf::reflect::ReflectValueRef::Message(self)
11458     }
11459 }
11460 
11461 #[derive(PartialEq,Clone,Default,Debug)]
11462 pub struct GetAuthSessionStatusRequest {
11463     // message fields
11464     pub auth_session_id: ::std::vec::Vec<u8>,
11465     // special fields
11466     pub unknown_fields: ::protobuf::UnknownFields,
11467     pub cached_size: ::protobuf::CachedSize,
11468 }
11469 
11470 impl<'a> ::std::default::Default for &'a GetAuthSessionStatusRequest {
default() -> &'a GetAuthSessionStatusRequest11471     fn default() -> &'a GetAuthSessionStatusRequest {
11472         <GetAuthSessionStatusRequest as ::protobuf::Message>::default_instance()
11473     }
11474 }
11475 
11476 impl GetAuthSessionStatusRequest {
new() -> GetAuthSessionStatusRequest11477     pub fn new() -> GetAuthSessionStatusRequest {
11478         ::std::default::Default::default()
11479     }
11480 
11481     // bytes auth_session_id = 1;
11482 
11483 
get_auth_session_id(&self) -> &[u8]11484     pub fn get_auth_session_id(&self) -> &[u8] {
11485         &self.auth_session_id
11486     }
clear_auth_session_id(&mut self)11487     pub fn clear_auth_session_id(&mut self) {
11488         self.auth_session_id.clear();
11489     }
11490 
11491     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)11492     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
11493         self.auth_session_id = v;
11494     }
11495 
11496     // Mutable pointer to the field.
11497     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>11498     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
11499         &mut self.auth_session_id
11500     }
11501 
11502     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>11503     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
11504         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
11505     }
11506 }
11507 
11508 impl ::protobuf::Message for GetAuthSessionStatusRequest {
is_initialized(&self) -> bool11509     fn is_initialized(&self) -> bool {
11510         true
11511     }
11512 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>11513     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11514         while !is.eof()? {
11515             let (field_number, wire_type) = is.read_tag_unpack()?;
11516             match field_number {
11517                 1 => {
11518                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
11519                 },
11520                 _ => {
11521                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
11522                 },
11523             };
11524         }
11525         ::std::result::Result::Ok(())
11526     }
11527 
11528     // Compute sizes of nested messages
11529     #[allow(unused_variables)]
compute_size(&self) -> u3211530     fn compute_size(&self) -> u32 {
11531         let mut my_size = 0;
11532         if !self.auth_session_id.is_empty() {
11533             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
11534         }
11535         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
11536         self.cached_size.set(my_size);
11537         my_size
11538     }
11539 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>11540     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11541         if !self.auth_session_id.is_empty() {
11542             os.write_bytes(1, &self.auth_session_id)?;
11543         }
11544         os.write_unknown_fields(self.get_unknown_fields())?;
11545         ::std::result::Result::Ok(())
11546     }
11547 
get_cached_size(&self) -> u3211548     fn get_cached_size(&self) -> u32 {
11549         self.cached_size.get()
11550     }
11551 
get_unknown_fields(&self) -> &::protobuf::UnknownFields11552     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
11553         &self.unknown_fields
11554     }
11555 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields11556     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
11557         &mut self.unknown_fields
11558     }
11559 
as_any(&self) -> &dyn (::std::any::Any)11560     fn as_any(&self) -> &dyn (::std::any::Any) {
11561         self as &dyn (::std::any::Any)
11562     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)11563     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
11564         self as &mut dyn (::std::any::Any)
11565     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>11566     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
11567         self
11568     }
11569 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor11570     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
11571         Self::descriptor_static()
11572     }
11573 
new() -> GetAuthSessionStatusRequest11574     fn new() -> GetAuthSessionStatusRequest {
11575         GetAuthSessionStatusRequest::new()
11576     }
11577 
default_instance() -> &'static GetAuthSessionStatusRequest11578     fn default_instance() -> &'static GetAuthSessionStatusRequest {
11579         static instance: ::protobuf::rt::LazyV2<GetAuthSessionStatusRequest> = ::protobuf::rt::LazyV2::INIT;
11580         instance.get(GetAuthSessionStatusRequest::new)
11581     }
11582 }
11583 
11584 impl ::protobuf::Clear for GetAuthSessionStatusRequest {
clear(&mut self)11585     fn clear(&mut self) {
11586         self.auth_session_id.clear();
11587         self.unknown_fields.clear();
11588     }
11589 }
11590 
11591 impl ::protobuf::reflect::ProtobufValue for GetAuthSessionStatusRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef11592     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
11593         ::protobuf::reflect::ReflectValueRef::Message(self)
11594     }
11595 }
11596 
11597 #[derive(PartialEq,Clone,Default,Debug)]
11598 pub struct GetAuthSessionStatusReply {
11599     // message fields
11600     pub error: CryptohomeErrorCode,
11601     pub status: AuthSessionStatus,
11602     pub time_left: u32,
11603     pub authorized_for: ::std::vec::Vec<super::auth_factor::AuthIntent>,
11604     // special fields
11605     pub unknown_fields: ::protobuf::UnknownFields,
11606     pub cached_size: ::protobuf::CachedSize,
11607 }
11608 
11609 impl<'a> ::std::default::Default for &'a GetAuthSessionStatusReply {
default() -> &'a GetAuthSessionStatusReply11610     fn default() -> &'a GetAuthSessionStatusReply {
11611         <GetAuthSessionStatusReply as ::protobuf::Message>::default_instance()
11612     }
11613 }
11614 
11615 impl GetAuthSessionStatusReply {
new() -> GetAuthSessionStatusReply11616     pub fn new() -> GetAuthSessionStatusReply {
11617         ::std::default::Default::default()
11618     }
11619 
11620     // .user_data_auth.CryptohomeErrorCode error = 1;
11621 
11622 
get_error(&self) -> CryptohomeErrorCode11623     pub fn get_error(&self) -> CryptohomeErrorCode {
11624         self.error
11625     }
clear_error(&mut self)11626     pub fn clear_error(&mut self) {
11627         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
11628     }
11629 
11630     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)11631     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
11632         self.error = v;
11633     }
11634 
11635     // .user_data_auth.AuthSessionStatus status = 2;
11636 
11637 
get_status(&self) -> AuthSessionStatus11638     pub fn get_status(&self) -> AuthSessionStatus {
11639         self.status
11640     }
clear_status(&mut self)11641     pub fn clear_status(&mut self) {
11642         self.status = AuthSessionStatus::AUTH_SESSION_STATUS_NOT_SET;
11643     }
11644 
11645     // Param is passed by value, moved
set_status(&mut self, v: AuthSessionStatus)11646     pub fn set_status(&mut self, v: AuthSessionStatus) {
11647         self.status = v;
11648     }
11649 
11650     // uint32 time_left = 3;
11651 
11652 
get_time_left(&self) -> u3211653     pub fn get_time_left(&self) -> u32 {
11654         self.time_left
11655     }
clear_time_left(&mut self)11656     pub fn clear_time_left(&mut self) {
11657         self.time_left = 0;
11658     }
11659 
11660     // Param is passed by value, moved
set_time_left(&mut self, v: u32)11661     pub fn set_time_left(&mut self, v: u32) {
11662         self.time_left = v;
11663     }
11664 
11665     // repeated .user_data_auth.AuthIntent authorized_for = 4;
11666 
11667 
get_authorized_for(&self) -> &[super::auth_factor::AuthIntent]11668     pub fn get_authorized_for(&self) -> &[super::auth_factor::AuthIntent] {
11669         &self.authorized_for
11670     }
clear_authorized_for(&mut self)11671     pub fn clear_authorized_for(&mut self) {
11672         self.authorized_for.clear();
11673     }
11674 
11675     // Param is passed by value, moved
set_authorized_for(&mut self, v: ::std::vec::Vec<super::auth_factor::AuthIntent>)11676     pub fn set_authorized_for(&mut self, v: ::std::vec::Vec<super::auth_factor::AuthIntent>) {
11677         self.authorized_for = v;
11678     }
11679 
11680     // Mutable pointer to the field.
mut_authorized_for(&mut self) -> &mut ::std::vec::Vec<super::auth_factor::AuthIntent>11681     pub fn mut_authorized_for(&mut self) -> &mut ::std::vec::Vec<super::auth_factor::AuthIntent> {
11682         &mut self.authorized_for
11683     }
11684 
11685     // Take field
take_authorized_for(&mut self) -> ::std::vec::Vec<super::auth_factor::AuthIntent>11686     pub fn take_authorized_for(&mut self) -> ::std::vec::Vec<super::auth_factor::AuthIntent> {
11687         ::std::mem::replace(&mut self.authorized_for, ::std::vec::Vec::new())
11688     }
11689 }
11690 
11691 impl ::protobuf::Message for GetAuthSessionStatusReply {
is_initialized(&self) -> bool11692     fn is_initialized(&self) -> bool {
11693         true
11694     }
11695 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>11696     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11697         while !is.eof()? {
11698             let (field_number, wire_type) = is.read_tag_unpack()?;
11699             match field_number {
11700                 1 => {
11701                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
11702                 },
11703                 2 => {
11704                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.status, 2, &mut self.unknown_fields)?
11705                 },
11706                 3 => {
11707                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
11708                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
11709                     }
11710                     let tmp = is.read_uint32()?;
11711                     self.time_left = tmp;
11712                 },
11713                 4 => {
11714                     ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.authorized_for, 4, &mut self.unknown_fields)?
11715                 },
11716                 _ => {
11717                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
11718                 },
11719             };
11720         }
11721         ::std::result::Result::Ok(())
11722     }
11723 
11724     // Compute sizes of nested messages
11725     #[allow(unused_variables)]
compute_size(&self) -> u3211726     fn compute_size(&self) -> u32 {
11727         let mut my_size = 0;
11728         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
11729             my_size += ::protobuf::rt::enum_size(1, self.error);
11730         }
11731         if self.status != AuthSessionStatus::AUTH_SESSION_STATUS_NOT_SET {
11732             my_size += ::protobuf::rt::enum_size(2, self.status);
11733         }
11734         if self.time_left != 0 {
11735             my_size += ::protobuf::rt::value_size(3, self.time_left, ::protobuf::wire_format::WireTypeVarint);
11736         }
11737         for value in &self.authorized_for {
11738             my_size += ::protobuf::rt::enum_size(4, *value);
11739         };
11740         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
11741         self.cached_size.set(my_size);
11742         my_size
11743     }
11744 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>11745     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11746         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
11747             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
11748         }
11749         if self.status != AuthSessionStatus::AUTH_SESSION_STATUS_NOT_SET {
11750             os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.status))?;
11751         }
11752         if self.time_left != 0 {
11753             os.write_uint32(3, self.time_left)?;
11754         }
11755         for v in &self.authorized_for {
11756             os.write_enum(4, ::protobuf::ProtobufEnum::value(v))?;
11757         };
11758         os.write_unknown_fields(self.get_unknown_fields())?;
11759         ::std::result::Result::Ok(())
11760     }
11761 
get_cached_size(&self) -> u3211762     fn get_cached_size(&self) -> u32 {
11763         self.cached_size.get()
11764     }
11765 
get_unknown_fields(&self) -> &::protobuf::UnknownFields11766     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
11767         &self.unknown_fields
11768     }
11769 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields11770     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
11771         &mut self.unknown_fields
11772     }
11773 
as_any(&self) -> &dyn (::std::any::Any)11774     fn as_any(&self) -> &dyn (::std::any::Any) {
11775         self as &dyn (::std::any::Any)
11776     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)11777     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
11778         self as &mut dyn (::std::any::Any)
11779     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>11780     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
11781         self
11782     }
11783 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor11784     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
11785         Self::descriptor_static()
11786     }
11787 
new() -> GetAuthSessionStatusReply11788     fn new() -> GetAuthSessionStatusReply {
11789         GetAuthSessionStatusReply::new()
11790     }
11791 
default_instance() -> &'static GetAuthSessionStatusReply11792     fn default_instance() -> &'static GetAuthSessionStatusReply {
11793         static instance: ::protobuf::rt::LazyV2<GetAuthSessionStatusReply> = ::protobuf::rt::LazyV2::INIT;
11794         instance.get(GetAuthSessionStatusReply::new)
11795     }
11796 }
11797 
11798 impl ::protobuf::Clear for GetAuthSessionStatusReply {
clear(&mut self)11799     fn clear(&mut self) {
11800         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
11801         self.status = AuthSessionStatus::AUTH_SESSION_STATUS_NOT_SET;
11802         self.time_left = 0;
11803         self.authorized_for.clear();
11804         self.unknown_fields.clear();
11805     }
11806 }
11807 
11808 impl ::protobuf::reflect::ProtobufValue for GetAuthSessionStatusReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef11809     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
11810         ::protobuf::reflect::ReflectValueRef::Message(self)
11811     }
11812 }
11813 
11814 #[derive(PartialEq,Clone,Default,Debug)]
11815 pub struct PreparePersistentVaultRequest {
11816     // message fields
11817     pub auth_session_id: ::std::vec::Vec<u8>,
11818     pub block_ecryptfs: bool,
11819     pub encryption_type: VaultEncryptionType,
11820     // special fields
11821     pub unknown_fields: ::protobuf::UnknownFields,
11822     pub cached_size: ::protobuf::CachedSize,
11823 }
11824 
11825 impl<'a> ::std::default::Default for &'a PreparePersistentVaultRequest {
default() -> &'a PreparePersistentVaultRequest11826     fn default() -> &'a PreparePersistentVaultRequest {
11827         <PreparePersistentVaultRequest as ::protobuf::Message>::default_instance()
11828     }
11829 }
11830 
11831 impl PreparePersistentVaultRequest {
new() -> PreparePersistentVaultRequest11832     pub fn new() -> PreparePersistentVaultRequest {
11833         ::std::default::Default::default()
11834     }
11835 
11836     // bytes auth_session_id = 1;
11837 
11838 
get_auth_session_id(&self) -> &[u8]11839     pub fn get_auth_session_id(&self) -> &[u8] {
11840         &self.auth_session_id
11841     }
clear_auth_session_id(&mut self)11842     pub fn clear_auth_session_id(&mut self) {
11843         self.auth_session_id.clear();
11844     }
11845 
11846     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)11847     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
11848         self.auth_session_id = v;
11849     }
11850 
11851     // Mutable pointer to the field.
11852     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>11853     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
11854         &mut self.auth_session_id
11855     }
11856 
11857     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>11858     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
11859         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
11860     }
11861 
11862     // bool block_ecryptfs = 2;
11863 
11864 
get_block_ecryptfs(&self) -> bool11865     pub fn get_block_ecryptfs(&self) -> bool {
11866         self.block_ecryptfs
11867     }
clear_block_ecryptfs(&mut self)11868     pub fn clear_block_ecryptfs(&mut self) {
11869         self.block_ecryptfs = false;
11870     }
11871 
11872     // Param is passed by value, moved
set_block_ecryptfs(&mut self, v: bool)11873     pub fn set_block_ecryptfs(&mut self, v: bool) {
11874         self.block_ecryptfs = v;
11875     }
11876 
11877     // .user_data_auth.VaultEncryptionType encryption_type = 3;
11878 
11879 
get_encryption_type(&self) -> VaultEncryptionType11880     pub fn get_encryption_type(&self) -> VaultEncryptionType {
11881         self.encryption_type
11882     }
clear_encryption_type(&mut self)11883     pub fn clear_encryption_type(&mut self) {
11884         self.encryption_type = VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_ANY;
11885     }
11886 
11887     // Param is passed by value, moved
set_encryption_type(&mut self, v: VaultEncryptionType)11888     pub fn set_encryption_type(&mut self, v: VaultEncryptionType) {
11889         self.encryption_type = v;
11890     }
11891 }
11892 
11893 impl ::protobuf::Message for PreparePersistentVaultRequest {
is_initialized(&self) -> bool11894     fn is_initialized(&self) -> bool {
11895         true
11896     }
11897 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>11898     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11899         while !is.eof()? {
11900             let (field_number, wire_type) = is.read_tag_unpack()?;
11901             match field_number {
11902                 1 => {
11903                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
11904                 },
11905                 2 => {
11906                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
11907                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
11908                     }
11909                     let tmp = is.read_bool()?;
11910                     self.block_ecryptfs = tmp;
11911                 },
11912                 3 => {
11913                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.encryption_type, 3, &mut self.unknown_fields)?
11914                 },
11915                 _ => {
11916                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
11917                 },
11918             };
11919         }
11920         ::std::result::Result::Ok(())
11921     }
11922 
11923     // Compute sizes of nested messages
11924     #[allow(unused_variables)]
compute_size(&self) -> u3211925     fn compute_size(&self) -> u32 {
11926         let mut my_size = 0;
11927         if !self.auth_session_id.is_empty() {
11928             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
11929         }
11930         if self.block_ecryptfs != false {
11931             my_size += 2;
11932         }
11933         if self.encryption_type != VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_ANY {
11934             my_size += ::protobuf::rt::enum_size(3, self.encryption_type);
11935         }
11936         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
11937         self.cached_size.set(my_size);
11938         my_size
11939     }
11940 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>11941     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
11942         if !self.auth_session_id.is_empty() {
11943             os.write_bytes(1, &self.auth_session_id)?;
11944         }
11945         if self.block_ecryptfs != false {
11946             os.write_bool(2, self.block_ecryptfs)?;
11947         }
11948         if self.encryption_type != VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_ANY {
11949             os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.encryption_type))?;
11950         }
11951         os.write_unknown_fields(self.get_unknown_fields())?;
11952         ::std::result::Result::Ok(())
11953     }
11954 
get_cached_size(&self) -> u3211955     fn get_cached_size(&self) -> u32 {
11956         self.cached_size.get()
11957     }
11958 
get_unknown_fields(&self) -> &::protobuf::UnknownFields11959     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
11960         &self.unknown_fields
11961     }
11962 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields11963     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
11964         &mut self.unknown_fields
11965     }
11966 
as_any(&self) -> &dyn (::std::any::Any)11967     fn as_any(&self) -> &dyn (::std::any::Any) {
11968         self as &dyn (::std::any::Any)
11969     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)11970     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
11971         self as &mut dyn (::std::any::Any)
11972     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>11973     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
11974         self
11975     }
11976 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor11977     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
11978         Self::descriptor_static()
11979     }
11980 
new() -> PreparePersistentVaultRequest11981     fn new() -> PreparePersistentVaultRequest {
11982         PreparePersistentVaultRequest::new()
11983     }
11984 
default_instance() -> &'static PreparePersistentVaultRequest11985     fn default_instance() -> &'static PreparePersistentVaultRequest {
11986         static instance: ::protobuf::rt::LazyV2<PreparePersistentVaultRequest> = ::protobuf::rt::LazyV2::INIT;
11987         instance.get(PreparePersistentVaultRequest::new)
11988     }
11989 }
11990 
11991 impl ::protobuf::Clear for PreparePersistentVaultRequest {
clear(&mut self)11992     fn clear(&mut self) {
11993         self.auth_session_id.clear();
11994         self.block_ecryptfs = false;
11995         self.encryption_type = VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_ANY;
11996         self.unknown_fields.clear();
11997     }
11998 }
11999 
12000 impl ::protobuf::reflect::ProtobufValue for PreparePersistentVaultRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef12001     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
12002         ::protobuf::reflect::ReflectValueRef::Message(self)
12003     }
12004 }
12005 
12006 #[derive(PartialEq,Clone,Default,Debug)]
12007 pub struct PreparePersistentVaultReply {
12008     // message fields
12009     pub error: CryptohomeErrorCode,
12010     pub sanitized_username: ::std::string::String,
12011     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
12012     // special fields
12013     pub unknown_fields: ::protobuf::UnknownFields,
12014     pub cached_size: ::protobuf::CachedSize,
12015 }
12016 
12017 impl<'a> ::std::default::Default for &'a PreparePersistentVaultReply {
default() -> &'a PreparePersistentVaultReply12018     fn default() -> &'a PreparePersistentVaultReply {
12019         <PreparePersistentVaultReply as ::protobuf::Message>::default_instance()
12020     }
12021 }
12022 
12023 impl PreparePersistentVaultReply {
new() -> PreparePersistentVaultReply12024     pub fn new() -> PreparePersistentVaultReply {
12025         ::std::default::Default::default()
12026     }
12027 
12028     // .user_data_auth.CryptohomeErrorCode error = 1;
12029 
12030 
get_error(&self) -> CryptohomeErrorCode12031     pub fn get_error(&self) -> CryptohomeErrorCode {
12032         self.error
12033     }
clear_error(&mut self)12034     pub fn clear_error(&mut self) {
12035         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
12036     }
12037 
12038     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)12039     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
12040         self.error = v;
12041     }
12042 
12043     // string sanitized_username = 2;
12044 
12045 
get_sanitized_username(&self) -> &str12046     pub fn get_sanitized_username(&self) -> &str {
12047         &self.sanitized_username
12048     }
clear_sanitized_username(&mut self)12049     pub fn clear_sanitized_username(&mut self) {
12050         self.sanitized_username.clear();
12051     }
12052 
12053     // Param is passed by value, moved
set_sanitized_username(&mut self, v: ::std::string::String)12054     pub fn set_sanitized_username(&mut self, v: ::std::string::String) {
12055         self.sanitized_username = v;
12056     }
12057 
12058     // Mutable pointer to the field.
12059     // If field is not initialized, it is initialized with default value first.
mut_sanitized_username(&mut self) -> &mut ::std::string::String12060     pub fn mut_sanitized_username(&mut self) -> &mut ::std::string::String {
12061         &mut self.sanitized_username
12062     }
12063 
12064     // Take field
take_sanitized_username(&mut self) -> ::std::string::String12065     pub fn take_sanitized_username(&mut self) -> ::std::string::String {
12066         ::std::mem::replace(&mut self.sanitized_username, ::std::string::String::new())
12067     }
12068 
12069     // .user_data_auth.CryptohomeErrorInfo error_info = 3;
12070 
12071 
get_error_info(&self) -> &CryptohomeErrorInfo12072     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
12073         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
12074     }
clear_error_info(&mut self)12075     pub fn clear_error_info(&mut self) {
12076         self.error_info.clear();
12077     }
12078 
has_error_info(&self) -> bool12079     pub fn has_error_info(&self) -> bool {
12080         self.error_info.is_some()
12081     }
12082 
12083     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)12084     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
12085         self.error_info = ::protobuf::SingularPtrField::some(v);
12086     }
12087 
12088     // Mutable pointer to the field.
12089     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo12090     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
12091         if self.error_info.is_none() {
12092             self.error_info.set_default();
12093         }
12094         self.error_info.as_mut().unwrap()
12095     }
12096 
12097     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo12098     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
12099         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
12100     }
12101 }
12102 
12103 impl ::protobuf::Message for PreparePersistentVaultReply {
is_initialized(&self) -> bool12104     fn is_initialized(&self) -> bool {
12105         for v in &self.error_info {
12106             if !v.is_initialized() {
12107                 return false;
12108             }
12109         };
12110         true
12111     }
12112 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>12113     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12114         while !is.eof()? {
12115             let (field_number, wire_type) = is.read_tag_unpack()?;
12116             match field_number {
12117                 1 => {
12118                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
12119                 },
12120                 2 => {
12121                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sanitized_username)?;
12122                 },
12123                 3 => {
12124                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
12125                 },
12126                 _ => {
12127                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
12128                 },
12129             };
12130         }
12131         ::std::result::Result::Ok(())
12132     }
12133 
12134     // Compute sizes of nested messages
12135     #[allow(unused_variables)]
compute_size(&self) -> u3212136     fn compute_size(&self) -> u32 {
12137         let mut my_size = 0;
12138         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
12139             my_size += ::protobuf::rt::enum_size(1, self.error);
12140         }
12141         if !self.sanitized_username.is_empty() {
12142             my_size += ::protobuf::rt::string_size(2, &self.sanitized_username);
12143         }
12144         if let Some(ref v) = self.error_info.as_ref() {
12145             let len = v.compute_size();
12146             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
12147         }
12148         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
12149         self.cached_size.set(my_size);
12150         my_size
12151     }
12152 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>12153     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12154         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
12155             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
12156         }
12157         if !self.sanitized_username.is_empty() {
12158             os.write_string(2, &self.sanitized_username)?;
12159         }
12160         if let Some(ref v) = self.error_info.as_ref() {
12161             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
12162             os.write_raw_varint32(v.get_cached_size())?;
12163             v.write_to_with_cached_sizes(os)?;
12164         }
12165         os.write_unknown_fields(self.get_unknown_fields())?;
12166         ::std::result::Result::Ok(())
12167     }
12168 
get_cached_size(&self) -> u3212169     fn get_cached_size(&self) -> u32 {
12170         self.cached_size.get()
12171     }
12172 
get_unknown_fields(&self) -> &::protobuf::UnknownFields12173     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
12174         &self.unknown_fields
12175     }
12176 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields12177     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
12178         &mut self.unknown_fields
12179     }
12180 
as_any(&self) -> &dyn (::std::any::Any)12181     fn as_any(&self) -> &dyn (::std::any::Any) {
12182         self as &dyn (::std::any::Any)
12183     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)12184     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
12185         self as &mut dyn (::std::any::Any)
12186     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>12187     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
12188         self
12189     }
12190 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor12191     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
12192         Self::descriptor_static()
12193     }
12194 
new() -> PreparePersistentVaultReply12195     fn new() -> PreparePersistentVaultReply {
12196         PreparePersistentVaultReply::new()
12197     }
12198 
default_instance() -> &'static PreparePersistentVaultReply12199     fn default_instance() -> &'static PreparePersistentVaultReply {
12200         static instance: ::protobuf::rt::LazyV2<PreparePersistentVaultReply> = ::protobuf::rt::LazyV2::INIT;
12201         instance.get(PreparePersistentVaultReply::new)
12202     }
12203 }
12204 
12205 impl ::protobuf::Clear for PreparePersistentVaultReply {
clear(&mut self)12206     fn clear(&mut self) {
12207         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
12208         self.sanitized_username.clear();
12209         self.error_info.clear();
12210         self.unknown_fields.clear();
12211     }
12212 }
12213 
12214 impl ::protobuf::reflect::ProtobufValue for PreparePersistentVaultReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef12215     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
12216         ::protobuf::reflect::ReflectValueRef::Message(self)
12217     }
12218 }
12219 
12220 #[derive(PartialEq,Clone,Default,Debug)]
12221 pub struct PrepareVaultForMigrationRequest {
12222     // message fields
12223     pub auth_session_id: ::std::vec::Vec<u8>,
12224     // special fields
12225     pub unknown_fields: ::protobuf::UnknownFields,
12226     pub cached_size: ::protobuf::CachedSize,
12227 }
12228 
12229 impl<'a> ::std::default::Default for &'a PrepareVaultForMigrationRequest {
default() -> &'a PrepareVaultForMigrationRequest12230     fn default() -> &'a PrepareVaultForMigrationRequest {
12231         <PrepareVaultForMigrationRequest as ::protobuf::Message>::default_instance()
12232     }
12233 }
12234 
12235 impl PrepareVaultForMigrationRequest {
new() -> PrepareVaultForMigrationRequest12236     pub fn new() -> PrepareVaultForMigrationRequest {
12237         ::std::default::Default::default()
12238     }
12239 
12240     // bytes auth_session_id = 1;
12241 
12242 
get_auth_session_id(&self) -> &[u8]12243     pub fn get_auth_session_id(&self) -> &[u8] {
12244         &self.auth_session_id
12245     }
clear_auth_session_id(&mut self)12246     pub fn clear_auth_session_id(&mut self) {
12247         self.auth_session_id.clear();
12248     }
12249 
12250     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)12251     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
12252         self.auth_session_id = v;
12253     }
12254 
12255     // Mutable pointer to the field.
12256     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>12257     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
12258         &mut self.auth_session_id
12259     }
12260 
12261     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>12262     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
12263         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
12264     }
12265 }
12266 
12267 impl ::protobuf::Message for PrepareVaultForMigrationRequest {
is_initialized(&self) -> bool12268     fn is_initialized(&self) -> bool {
12269         true
12270     }
12271 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>12272     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12273         while !is.eof()? {
12274             let (field_number, wire_type) = is.read_tag_unpack()?;
12275             match field_number {
12276                 1 => {
12277                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
12278                 },
12279                 _ => {
12280                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
12281                 },
12282             };
12283         }
12284         ::std::result::Result::Ok(())
12285     }
12286 
12287     // Compute sizes of nested messages
12288     #[allow(unused_variables)]
compute_size(&self) -> u3212289     fn compute_size(&self) -> u32 {
12290         let mut my_size = 0;
12291         if !self.auth_session_id.is_empty() {
12292             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
12293         }
12294         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
12295         self.cached_size.set(my_size);
12296         my_size
12297     }
12298 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>12299     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12300         if !self.auth_session_id.is_empty() {
12301             os.write_bytes(1, &self.auth_session_id)?;
12302         }
12303         os.write_unknown_fields(self.get_unknown_fields())?;
12304         ::std::result::Result::Ok(())
12305     }
12306 
get_cached_size(&self) -> u3212307     fn get_cached_size(&self) -> u32 {
12308         self.cached_size.get()
12309     }
12310 
get_unknown_fields(&self) -> &::protobuf::UnknownFields12311     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
12312         &self.unknown_fields
12313     }
12314 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields12315     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
12316         &mut self.unknown_fields
12317     }
12318 
as_any(&self) -> &dyn (::std::any::Any)12319     fn as_any(&self) -> &dyn (::std::any::Any) {
12320         self as &dyn (::std::any::Any)
12321     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)12322     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
12323         self as &mut dyn (::std::any::Any)
12324     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>12325     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
12326         self
12327     }
12328 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor12329     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
12330         Self::descriptor_static()
12331     }
12332 
new() -> PrepareVaultForMigrationRequest12333     fn new() -> PrepareVaultForMigrationRequest {
12334         PrepareVaultForMigrationRequest::new()
12335     }
12336 
default_instance() -> &'static PrepareVaultForMigrationRequest12337     fn default_instance() -> &'static PrepareVaultForMigrationRequest {
12338         static instance: ::protobuf::rt::LazyV2<PrepareVaultForMigrationRequest> = ::protobuf::rt::LazyV2::INIT;
12339         instance.get(PrepareVaultForMigrationRequest::new)
12340     }
12341 }
12342 
12343 impl ::protobuf::Clear for PrepareVaultForMigrationRequest {
clear(&mut self)12344     fn clear(&mut self) {
12345         self.auth_session_id.clear();
12346         self.unknown_fields.clear();
12347     }
12348 }
12349 
12350 impl ::protobuf::reflect::ProtobufValue for PrepareVaultForMigrationRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef12351     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
12352         ::protobuf::reflect::ReflectValueRef::Message(self)
12353     }
12354 }
12355 
12356 #[derive(PartialEq,Clone,Default,Debug)]
12357 pub struct PrepareVaultForMigrationReply {
12358     // message fields
12359     pub error: CryptohomeErrorCode,
12360     pub sanitized_username: ::std::string::String,
12361     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
12362     // special fields
12363     pub unknown_fields: ::protobuf::UnknownFields,
12364     pub cached_size: ::protobuf::CachedSize,
12365 }
12366 
12367 impl<'a> ::std::default::Default for &'a PrepareVaultForMigrationReply {
default() -> &'a PrepareVaultForMigrationReply12368     fn default() -> &'a PrepareVaultForMigrationReply {
12369         <PrepareVaultForMigrationReply as ::protobuf::Message>::default_instance()
12370     }
12371 }
12372 
12373 impl PrepareVaultForMigrationReply {
new() -> PrepareVaultForMigrationReply12374     pub fn new() -> PrepareVaultForMigrationReply {
12375         ::std::default::Default::default()
12376     }
12377 
12378     // .user_data_auth.CryptohomeErrorCode error = 1;
12379 
12380 
get_error(&self) -> CryptohomeErrorCode12381     pub fn get_error(&self) -> CryptohomeErrorCode {
12382         self.error
12383     }
clear_error(&mut self)12384     pub fn clear_error(&mut self) {
12385         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
12386     }
12387 
12388     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)12389     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
12390         self.error = v;
12391     }
12392 
12393     // string sanitized_username = 2;
12394 
12395 
get_sanitized_username(&self) -> &str12396     pub fn get_sanitized_username(&self) -> &str {
12397         &self.sanitized_username
12398     }
clear_sanitized_username(&mut self)12399     pub fn clear_sanitized_username(&mut self) {
12400         self.sanitized_username.clear();
12401     }
12402 
12403     // Param is passed by value, moved
set_sanitized_username(&mut self, v: ::std::string::String)12404     pub fn set_sanitized_username(&mut self, v: ::std::string::String) {
12405         self.sanitized_username = v;
12406     }
12407 
12408     // Mutable pointer to the field.
12409     // If field is not initialized, it is initialized with default value first.
mut_sanitized_username(&mut self) -> &mut ::std::string::String12410     pub fn mut_sanitized_username(&mut self) -> &mut ::std::string::String {
12411         &mut self.sanitized_username
12412     }
12413 
12414     // Take field
take_sanitized_username(&mut self) -> ::std::string::String12415     pub fn take_sanitized_username(&mut self) -> ::std::string::String {
12416         ::std::mem::replace(&mut self.sanitized_username, ::std::string::String::new())
12417     }
12418 
12419     // .user_data_auth.CryptohomeErrorInfo error_info = 3;
12420 
12421 
get_error_info(&self) -> &CryptohomeErrorInfo12422     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
12423         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
12424     }
clear_error_info(&mut self)12425     pub fn clear_error_info(&mut self) {
12426         self.error_info.clear();
12427     }
12428 
has_error_info(&self) -> bool12429     pub fn has_error_info(&self) -> bool {
12430         self.error_info.is_some()
12431     }
12432 
12433     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)12434     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
12435         self.error_info = ::protobuf::SingularPtrField::some(v);
12436     }
12437 
12438     // Mutable pointer to the field.
12439     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo12440     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
12441         if self.error_info.is_none() {
12442             self.error_info.set_default();
12443         }
12444         self.error_info.as_mut().unwrap()
12445     }
12446 
12447     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo12448     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
12449         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
12450     }
12451 }
12452 
12453 impl ::protobuf::Message for PrepareVaultForMigrationReply {
is_initialized(&self) -> bool12454     fn is_initialized(&self) -> bool {
12455         for v in &self.error_info {
12456             if !v.is_initialized() {
12457                 return false;
12458             }
12459         };
12460         true
12461     }
12462 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>12463     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12464         while !is.eof()? {
12465             let (field_number, wire_type) = is.read_tag_unpack()?;
12466             match field_number {
12467                 1 => {
12468                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
12469                 },
12470                 2 => {
12471                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sanitized_username)?;
12472                 },
12473                 3 => {
12474                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
12475                 },
12476                 _ => {
12477                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
12478                 },
12479             };
12480         }
12481         ::std::result::Result::Ok(())
12482     }
12483 
12484     // Compute sizes of nested messages
12485     #[allow(unused_variables)]
compute_size(&self) -> u3212486     fn compute_size(&self) -> u32 {
12487         let mut my_size = 0;
12488         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
12489             my_size += ::protobuf::rt::enum_size(1, self.error);
12490         }
12491         if !self.sanitized_username.is_empty() {
12492             my_size += ::protobuf::rt::string_size(2, &self.sanitized_username);
12493         }
12494         if let Some(ref v) = self.error_info.as_ref() {
12495             let len = v.compute_size();
12496             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
12497         }
12498         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
12499         self.cached_size.set(my_size);
12500         my_size
12501     }
12502 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>12503     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12504         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
12505             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
12506         }
12507         if !self.sanitized_username.is_empty() {
12508             os.write_string(2, &self.sanitized_username)?;
12509         }
12510         if let Some(ref v) = self.error_info.as_ref() {
12511             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
12512             os.write_raw_varint32(v.get_cached_size())?;
12513             v.write_to_with_cached_sizes(os)?;
12514         }
12515         os.write_unknown_fields(self.get_unknown_fields())?;
12516         ::std::result::Result::Ok(())
12517     }
12518 
get_cached_size(&self) -> u3212519     fn get_cached_size(&self) -> u32 {
12520         self.cached_size.get()
12521     }
12522 
get_unknown_fields(&self) -> &::protobuf::UnknownFields12523     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
12524         &self.unknown_fields
12525     }
12526 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields12527     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
12528         &mut self.unknown_fields
12529     }
12530 
as_any(&self) -> &dyn (::std::any::Any)12531     fn as_any(&self) -> &dyn (::std::any::Any) {
12532         self as &dyn (::std::any::Any)
12533     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)12534     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
12535         self as &mut dyn (::std::any::Any)
12536     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>12537     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
12538         self
12539     }
12540 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor12541     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
12542         Self::descriptor_static()
12543     }
12544 
new() -> PrepareVaultForMigrationReply12545     fn new() -> PrepareVaultForMigrationReply {
12546         PrepareVaultForMigrationReply::new()
12547     }
12548 
default_instance() -> &'static PrepareVaultForMigrationReply12549     fn default_instance() -> &'static PrepareVaultForMigrationReply {
12550         static instance: ::protobuf::rt::LazyV2<PrepareVaultForMigrationReply> = ::protobuf::rt::LazyV2::INIT;
12551         instance.get(PrepareVaultForMigrationReply::new)
12552     }
12553 }
12554 
12555 impl ::protobuf::Clear for PrepareVaultForMigrationReply {
clear(&mut self)12556     fn clear(&mut self) {
12557         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
12558         self.sanitized_username.clear();
12559         self.error_info.clear();
12560         self.unknown_fields.clear();
12561     }
12562 }
12563 
12564 impl ::protobuf::reflect::ProtobufValue for PrepareVaultForMigrationReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef12565     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
12566         ::protobuf::reflect::ReflectValueRef::Message(self)
12567     }
12568 }
12569 
12570 #[derive(PartialEq,Clone,Default,Debug)]
12571 pub struct GetArcDiskFeaturesRequest {
12572     // special fields
12573     pub unknown_fields: ::protobuf::UnknownFields,
12574     pub cached_size: ::protobuf::CachedSize,
12575 }
12576 
12577 impl<'a> ::std::default::Default for &'a GetArcDiskFeaturesRequest {
default() -> &'a GetArcDiskFeaturesRequest12578     fn default() -> &'a GetArcDiskFeaturesRequest {
12579         <GetArcDiskFeaturesRequest as ::protobuf::Message>::default_instance()
12580     }
12581 }
12582 
12583 impl GetArcDiskFeaturesRequest {
new() -> GetArcDiskFeaturesRequest12584     pub fn new() -> GetArcDiskFeaturesRequest {
12585         ::std::default::Default::default()
12586     }
12587 }
12588 
12589 impl ::protobuf::Message for GetArcDiskFeaturesRequest {
is_initialized(&self) -> bool12590     fn is_initialized(&self) -> bool {
12591         true
12592     }
12593 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>12594     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12595         while !is.eof()? {
12596             let (field_number, wire_type) = is.read_tag_unpack()?;
12597             match field_number {
12598                 _ => {
12599                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
12600                 },
12601             };
12602         }
12603         ::std::result::Result::Ok(())
12604     }
12605 
12606     // Compute sizes of nested messages
12607     #[allow(unused_variables)]
compute_size(&self) -> u3212608     fn compute_size(&self) -> u32 {
12609         let mut my_size = 0;
12610         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
12611         self.cached_size.set(my_size);
12612         my_size
12613     }
12614 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>12615     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12616         os.write_unknown_fields(self.get_unknown_fields())?;
12617         ::std::result::Result::Ok(())
12618     }
12619 
get_cached_size(&self) -> u3212620     fn get_cached_size(&self) -> u32 {
12621         self.cached_size.get()
12622     }
12623 
get_unknown_fields(&self) -> &::protobuf::UnknownFields12624     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
12625         &self.unknown_fields
12626     }
12627 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields12628     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
12629         &mut self.unknown_fields
12630     }
12631 
as_any(&self) -> &dyn (::std::any::Any)12632     fn as_any(&self) -> &dyn (::std::any::Any) {
12633         self as &dyn (::std::any::Any)
12634     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)12635     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
12636         self as &mut dyn (::std::any::Any)
12637     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>12638     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
12639         self
12640     }
12641 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor12642     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
12643         Self::descriptor_static()
12644     }
12645 
new() -> GetArcDiskFeaturesRequest12646     fn new() -> GetArcDiskFeaturesRequest {
12647         GetArcDiskFeaturesRequest::new()
12648     }
12649 
default_instance() -> &'static GetArcDiskFeaturesRequest12650     fn default_instance() -> &'static GetArcDiskFeaturesRequest {
12651         static instance: ::protobuf::rt::LazyV2<GetArcDiskFeaturesRequest> = ::protobuf::rt::LazyV2::INIT;
12652         instance.get(GetArcDiskFeaturesRequest::new)
12653     }
12654 }
12655 
12656 impl ::protobuf::Clear for GetArcDiskFeaturesRequest {
clear(&mut self)12657     fn clear(&mut self) {
12658         self.unknown_fields.clear();
12659     }
12660 }
12661 
12662 impl ::protobuf::reflect::ProtobufValue for GetArcDiskFeaturesRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef12663     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
12664         ::protobuf::reflect::ReflectValueRef::Message(self)
12665     }
12666 }
12667 
12668 #[derive(PartialEq,Clone,Default,Debug)]
12669 pub struct GetArcDiskFeaturesReply {
12670     // message fields
12671     pub quota_supported: bool,
12672     // special fields
12673     pub unknown_fields: ::protobuf::UnknownFields,
12674     pub cached_size: ::protobuf::CachedSize,
12675 }
12676 
12677 impl<'a> ::std::default::Default for &'a GetArcDiskFeaturesReply {
default() -> &'a GetArcDiskFeaturesReply12678     fn default() -> &'a GetArcDiskFeaturesReply {
12679         <GetArcDiskFeaturesReply as ::protobuf::Message>::default_instance()
12680     }
12681 }
12682 
12683 impl GetArcDiskFeaturesReply {
new() -> GetArcDiskFeaturesReply12684     pub fn new() -> GetArcDiskFeaturesReply {
12685         ::std::default::Default::default()
12686     }
12687 
12688     // bool quota_supported = 1;
12689 
12690 
get_quota_supported(&self) -> bool12691     pub fn get_quota_supported(&self) -> bool {
12692         self.quota_supported
12693     }
clear_quota_supported(&mut self)12694     pub fn clear_quota_supported(&mut self) {
12695         self.quota_supported = false;
12696     }
12697 
12698     // Param is passed by value, moved
set_quota_supported(&mut self, v: bool)12699     pub fn set_quota_supported(&mut self, v: bool) {
12700         self.quota_supported = v;
12701     }
12702 }
12703 
12704 impl ::protobuf::Message for GetArcDiskFeaturesReply {
is_initialized(&self) -> bool12705     fn is_initialized(&self) -> bool {
12706         true
12707     }
12708 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>12709     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12710         while !is.eof()? {
12711             let (field_number, wire_type) = is.read_tag_unpack()?;
12712             match field_number {
12713                 1 => {
12714                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
12715                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
12716                     }
12717                     let tmp = is.read_bool()?;
12718                     self.quota_supported = tmp;
12719                 },
12720                 _ => {
12721                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
12722                 },
12723             };
12724         }
12725         ::std::result::Result::Ok(())
12726     }
12727 
12728     // Compute sizes of nested messages
12729     #[allow(unused_variables)]
compute_size(&self) -> u3212730     fn compute_size(&self) -> u32 {
12731         let mut my_size = 0;
12732         if self.quota_supported != false {
12733             my_size += 2;
12734         }
12735         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
12736         self.cached_size.set(my_size);
12737         my_size
12738     }
12739 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>12740     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12741         if self.quota_supported != false {
12742             os.write_bool(1, self.quota_supported)?;
12743         }
12744         os.write_unknown_fields(self.get_unknown_fields())?;
12745         ::std::result::Result::Ok(())
12746     }
12747 
get_cached_size(&self) -> u3212748     fn get_cached_size(&self) -> u32 {
12749         self.cached_size.get()
12750     }
12751 
get_unknown_fields(&self) -> &::protobuf::UnknownFields12752     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
12753         &self.unknown_fields
12754     }
12755 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields12756     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
12757         &mut self.unknown_fields
12758     }
12759 
as_any(&self) -> &dyn (::std::any::Any)12760     fn as_any(&self) -> &dyn (::std::any::Any) {
12761         self as &dyn (::std::any::Any)
12762     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)12763     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
12764         self as &mut dyn (::std::any::Any)
12765     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>12766     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
12767         self
12768     }
12769 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor12770     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
12771         Self::descriptor_static()
12772     }
12773 
new() -> GetArcDiskFeaturesReply12774     fn new() -> GetArcDiskFeaturesReply {
12775         GetArcDiskFeaturesReply::new()
12776     }
12777 
default_instance() -> &'static GetArcDiskFeaturesReply12778     fn default_instance() -> &'static GetArcDiskFeaturesReply {
12779         static instance: ::protobuf::rt::LazyV2<GetArcDiskFeaturesReply> = ::protobuf::rt::LazyV2::INIT;
12780         instance.get(GetArcDiskFeaturesReply::new)
12781     }
12782 }
12783 
12784 impl ::protobuf::Clear for GetArcDiskFeaturesReply {
clear(&mut self)12785     fn clear(&mut self) {
12786         self.quota_supported = false;
12787         self.unknown_fields.clear();
12788     }
12789 }
12790 
12791 impl ::protobuf::reflect::ProtobufValue for GetArcDiskFeaturesReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef12792     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
12793         ::protobuf::reflect::ReflectValueRef::Message(self)
12794     }
12795 }
12796 
12797 #[derive(PartialEq,Clone,Default,Debug)]
12798 pub struct GetCurrentSpaceForArcUidRequest {
12799     // message fields
12800     pub uid: u32,
12801     // special fields
12802     pub unknown_fields: ::protobuf::UnknownFields,
12803     pub cached_size: ::protobuf::CachedSize,
12804 }
12805 
12806 impl<'a> ::std::default::Default for &'a GetCurrentSpaceForArcUidRequest {
default() -> &'a GetCurrentSpaceForArcUidRequest12807     fn default() -> &'a GetCurrentSpaceForArcUidRequest {
12808         <GetCurrentSpaceForArcUidRequest as ::protobuf::Message>::default_instance()
12809     }
12810 }
12811 
12812 impl GetCurrentSpaceForArcUidRequest {
new() -> GetCurrentSpaceForArcUidRequest12813     pub fn new() -> GetCurrentSpaceForArcUidRequest {
12814         ::std::default::Default::default()
12815     }
12816 
12817     // uint32 uid = 1;
12818 
12819 
get_uid(&self) -> u3212820     pub fn get_uid(&self) -> u32 {
12821         self.uid
12822     }
clear_uid(&mut self)12823     pub fn clear_uid(&mut self) {
12824         self.uid = 0;
12825     }
12826 
12827     // Param is passed by value, moved
set_uid(&mut self, v: u32)12828     pub fn set_uid(&mut self, v: u32) {
12829         self.uid = v;
12830     }
12831 }
12832 
12833 impl ::protobuf::Message for GetCurrentSpaceForArcUidRequest {
is_initialized(&self) -> bool12834     fn is_initialized(&self) -> bool {
12835         true
12836     }
12837 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>12838     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12839         while !is.eof()? {
12840             let (field_number, wire_type) = is.read_tag_unpack()?;
12841             match field_number {
12842                 1 => {
12843                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
12844                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
12845                     }
12846                     let tmp = is.read_uint32()?;
12847                     self.uid = tmp;
12848                 },
12849                 _ => {
12850                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
12851                 },
12852             };
12853         }
12854         ::std::result::Result::Ok(())
12855     }
12856 
12857     // Compute sizes of nested messages
12858     #[allow(unused_variables)]
compute_size(&self) -> u3212859     fn compute_size(&self) -> u32 {
12860         let mut my_size = 0;
12861         if self.uid != 0 {
12862             my_size += ::protobuf::rt::value_size(1, self.uid, ::protobuf::wire_format::WireTypeVarint);
12863         }
12864         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
12865         self.cached_size.set(my_size);
12866         my_size
12867     }
12868 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>12869     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12870         if self.uid != 0 {
12871             os.write_uint32(1, self.uid)?;
12872         }
12873         os.write_unknown_fields(self.get_unknown_fields())?;
12874         ::std::result::Result::Ok(())
12875     }
12876 
get_cached_size(&self) -> u3212877     fn get_cached_size(&self) -> u32 {
12878         self.cached_size.get()
12879     }
12880 
get_unknown_fields(&self) -> &::protobuf::UnknownFields12881     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
12882         &self.unknown_fields
12883     }
12884 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields12885     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
12886         &mut self.unknown_fields
12887     }
12888 
as_any(&self) -> &dyn (::std::any::Any)12889     fn as_any(&self) -> &dyn (::std::any::Any) {
12890         self as &dyn (::std::any::Any)
12891     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)12892     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
12893         self as &mut dyn (::std::any::Any)
12894     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>12895     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
12896         self
12897     }
12898 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor12899     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
12900         Self::descriptor_static()
12901     }
12902 
new() -> GetCurrentSpaceForArcUidRequest12903     fn new() -> GetCurrentSpaceForArcUidRequest {
12904         GetCurrentSpaceForArcUidRequest::new()
12905     }
12906 
default_instance() -> &'static GetCurrentSpaceForArcUidRequest12907     fn default_instance() -> &'static GetCurrentSpaceForArcUidRequest {
12908         static instance: ::protobuf::rt::LazyV2<GetCurrentSpaceForArcUidRequest> = ::protobuf::rt::LazyV2::INIT;
12909         instance.get(GetCurrentSpaceForArcUidRequest::new)
12910     }
12911 }
12912 
12913 impl ::protobuf::Clear for GetCurrentSpaceForArcUidRequest {
clear(&mut self)12914     fn clear(&mut self) {
12915         self.uid = 0;
12916         self.unknown_fields.clear();
12917     }
12918 }
12919 
12920 impl ::protobuf::reflect::ProtobufValue for GetCurrentSpaceForArcUidRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef12921     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
12922         ::protobuf::reflect::ReflectValueRef::Message(self)
12923     }
12924 }
12925 
12926 #[derive(PartialEq,Clone,Default,Debug)]
12927 pub struct GetCurrentSpaceForArcUidReply {
12928     // message fields
12929     pub cur_space: i64,
12930     // special fields
12931     pub unknown_fields: ::protobuf::UnknownFields,
12932     pub cached_size: ::protobuf::CachedSize,
12933 }
12934 
12935 impl<'a> ::std::default::Default for &'a GetCurrentSpaceForArcUidReply {
default() -> &'a GetCurrentSpaceForArcUidReply12936     fn default() -> &'a GetCurrentSpaceForArcUidReply {
12937         <GetCurrentSpaceForArcUidReply as ::protobuf::Message>::default_instance()
12938     }
12939 }
12940 
12941 impl GetCurrentSpaceForArcUidReply {
new() -> GetCurrentSpaceForArcUidReply12942     pub fn new() -> GetCurrentSpaceForArcUidReply {
12943         ::std::default::Default::default()
12944     }
12945 
12946     // int64 cur_space = 1;
12947 
12948 
get_cur_space(&self) -> i6412949     pub fn get_cur_space(&self) -> i64 {
12950         self.cur_space
12951     }
clear_cur_space(&mut self)12952     pub fn clear_cur_space(&mut self) {
12953         self.cur_space = 0;
12954     }
12955 
12956     // Param is passed by value, moved
set_cur_space(&mut self, v: i64)12957     pub fn set_cur_space(&mut self, v: i64) {
12958         self.cur_space = v;
12959     }
12960 }
12961 
12962 impl ::protobuf::Message for GetCurrentSpaceForArcUidReply {
is_initialized(&self) -> bool12963     fn is_initialized(&self) -> bool {
12964         true
12965     }
12966 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>12967     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12968         while !is.eof()? {
12969             let (field_number, wire_type) = is.read_tag_unpack()?;
12970             match field_number {
12971                 1 => {
12972                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
12973                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
12974                     }
12975                     let tmp = is.read_int64()?;
12976                     self.cur_space = tmp;
12977                 },
12978                 _ => {
12979                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
12980                 },
12981             };
12982         }
12983         ::std::result::Result::Ok(())
12984     }
12985 
12986     // Compute sizes of nested messages
12987     #[allow(unused_variables)]
compute_size(&self) -> u3212988     fn compute_size(&self) -> u32 {
12989         let mut my_size = 0;
12990         if self.cur_space != 0 {
12991             my_size += ::protobuf::rt::value_size(1, self.cur_space, ::protobuf::wire_format::WireTypeVarint);
12992         }
12993         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
12994         self.cached_size.set(my_size);
12995         my_size
12996     }
12997 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>12998     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
12999         if self.cur_space != 0 {
13000             os.write_int64(1, self.cur_space)?;
13001         }
13002         os.write_unknown_fields(self.get_unknown_fields())?;
13003         ::std::result::Result::Ok(())
13004     }
13005 
get_cached_size(&self) -> u3213006     fn get_cached_size(&self) -> u32 {
13007         self.cached_size.get()
13008     }
13009 
get_unknown_fields(&self) -> &::protobuf::UnknownFields13010     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
13011         &self.unknown_fields
13012     }
13013 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields13014     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
13015         &mut self.unknown_fields
13016     }
13017 
as_any(&self) -> &dyn (::std::any::Any)13018     fn as_any(&self) -> &dyn (::std::any::Any) {
13019         self as &dyn (::std::any::Any)
13020     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)13021     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
13022         self as &mut dyn (::std::any::Any)
13023     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>13024     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
13025         self
13026     }
13027 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor13028     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
13029         Self::descriptor_static()
13030     }
13031 
new() -> GetCurrentSpaceForArcUidReply13032     fn new() -> GetCurrentSpaceForArcUidReply {
13033         GetCurrentSpaceForArcUidReply::new()
13034     }
13035 
default_instance() -> &'static GetCurrentSpaceForArcUidReply13036     fn default_instance() -> &'static GetCurrentSpaceForArcUidReply {
13037         static instance: ::protobuf::rt::LazyV2<GetCurrentSpaceForArcUidReply> = ::protobuf::rt::LazyV2::INIT;
13038         instance.get(GetCurrentSpaceForArcUidReply::new)
13039     }
13040 }
13041 
13042 impl ::protobuf::Clear for GetCurrentSpaceForArcUidReply {
clear(&mut self)13043     fn clear(&mut self) {
13044         self.cur_space = 0;
13045         self.unknown_fields.clear();
13046     }
13047 }
13048 
13049 impl ::protobuf::reflect::ProtobufValue for GetCurrentSpaceForArcUidReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef13050     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
13051         ::protobuf::reflect::ReflectValueRef::Message(self)
13052     }
13053 }
13054 
13055 #[derive(PartialEq,Clone,Default,Debug)]
13056 pub struct GetCurrentSpaceForArcGidRequest {
13057     // message fields
13058     pub gid: u32,
13059     // special fields
13060     pub unknown_fields: ::protobuf::UnknownFields,
13061     pub cached_size: ::protobuf::CachedSize,
13062 }
13063 
13064 impl<'a> ::std::default::Default for &'a GetCurrentSpaceForArcGidRequest {
default() -> &'a GetCurrentSpaceForArcGidRequest13065     fn default() -> &'a GetCurrentSpaceForArcGidRequest {
13066         <GetCurrentSpaceForArcGidRequest as ::protobuf::Message>::default_instance()
13067     }
13068 }
13069 
13070 impl GetCurrentSpaceForArcGidRequest {
new() -> GetCurrentSpaceForArcGidRequest13071     pub fn new() -> GetCurrentSpaceForArcGidRequest {
13072         ::std::default::Default::default()
13073     }
13074 
13075     // uint32 gid = 1;
13076 
13077 
get_gid(&self) -> u3213078     pub fn get_gid(&self) -> u32 {
13079         self.gid
13080     }
clear_gid(&mut self)13081     pub fn clear_gid(&mut self) {
13082         self.gid = 0;
13083     }
13084 
13085     // Param is passed by value, moved
set_gid(&mut self, v: u32)13086     pub fn set_gid(&mut self, v: u32) {
13087         self.gid = v;
13088     }
13089 }
13090 
13091 impl ::protobuf::Message for GetCurrentSpaceForArcGidRequest {
is_initialized(&self) -> bool13092     fn is_initialized(&self) -> bool {
13093         true
13094     }
13095 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>13096     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13097         while !is.eof()? {
13098             let (field_number, wire_type) = is.read_tag_unpack()?;
13099             match field_number {
13100                 1 => {
13101                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
13102                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
13103                     }
13104                     let tmp = is.read_uint32()?;
13105                     self.gid = tmp;
13106                 },
13107                 _ => {
13108                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
13109                 },
13110             };
13111         }
13112         ::std::result::Result::Ok(())
13113     }
13114 
13115     // Compute sizes of nested messages
13116     #[allow(unused_variables)]
compute_size(&self) -> u3213117     fn compute_size(&self) -> u32 {
13118         let mut my_size = 0;
13119         if self.gid != 0 {
13120             my_size += ::protobuf::rt::value_size(1, self.gid, ::protobuf::wire_format::WireTypeVarint);
13121         }
13122         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
13123         self.cached_size.set(my_size);
13124         my_size
13125     }
13126 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>13127     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13128         if self.gid != 0 {
13129             os.write_uint32(1, self.gid)?;
13130         }
13131         os.write_unknown_fields(self.get_unknown_fields())?;
13132         ::std::result::Result::Ok(())
13133     }
13134 
get_cached_size(&self) -> u3213135     fn get_cached_size(&self) -> u32 {
13136         self.cached_size.get()
13137     }
13138 
get_unknown_fields(&self) -> &::protobuf::UnknownFields13139     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
13140         &self.unknown_fields
13141     }
13142 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields13143     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
13144         &mut self.unknown_fields
13145     }
13146 
as_any(&self) -> &dyn (::std::any::Any)13147     fn as_any(&self) -> &dyn (::std::any::Any) {
13148         self as &dyn (::std::any::Any)
13149     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)13150     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
13151         self as &mut dyn (::std::any::Any)
13152     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>13153     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
13154         self
13155     }
13156 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor13157     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
13158         Self::descriptor_static()
13159     }
13160 
new() -> GetCurrentSpaceForArcGidRequest13161     fn new() -> GetCurrentSpaceForArcGidRequest {
13162         GetCurrentSpaceForArcGidRequest::new()
13163     }
13164 
default_instance() -> &'static GetCurrentSpaceForArcGidRequest13165     fn default_instance() -> &'static GetCurrentSpaceForArcGidRequest {
13166         static instance: ::protobuf::rt::LazyV2<GetCurrentSpaceForArcGidRequest> = ::protobuf::rt::LazyV2::INIT;
13167         instance.get(GetCurrentSpaceForArcGidRequest::new)
13168     }
13169 }
13170 
13171 impl ::protobuf::Clear for GetCurrentSpaceForArcGidRequest {
clear(&mut self)13172     fn clear(&mut self) {
13173         self.gid = 0;
13174         self.unknown_fields.clear();
13175     }
13176 }
13177 
13178 impl ::protobuf::reflect::ProtobufValue for GetCurrentSpaceForArcGidRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef13179     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
13180         ::protobuf::reflect::ReflectValueRef::Message(self)
13181     }
13182 }
13183 
13184 #[derive(PartialEq,Clone,Default,Debug)]
13185 pub struct GetCurrentSpaceForArcGidReply {
13186     // message fields
13187     pub cur_space: i64,
13188     // special fields
13189     pub unknown_fields: ::protobuf::UnknownFields,
13190     pub cached_size: ::protobuf::CachedSize,
13191 }
13192 
13193 impl<'a> ::std::default::Default for &'a GetCurrentSpaceForArcGidReply {
default() -> &'a GetCurrentSpaceForArcGidReply13194     fn default() -> &'a GetCurrentSpaceForArcGidReply {
13195         <GetCurrentSpaceForArcGidReply as ::protobuf::Message>::default_instance()
13196     }
13197 }
13198 
13199 impl GetCurrentSpaceForArcGidReply {
new() -> GetCurrentSpaceForArcGidReply13200     pub fn new() -> GetCurrentSpaceForArcGidReply {
13201         ::std::default::Default::default()
13202     }
13203 
13204     // int64 cur_space = 1;
13205 
13206 
get_cur_space(&self) -> i6413207     pub fn get_cur_space(&self) -> i64 {
13208         self.cur_space
13209     }
clear_cur_space(&mut self)13210     pub fn clear_cur_space(&mut self) {
13211         self.cur_space = 0;
13212     }
13213 
13214     // Param is passed by value, moved
set_cur_space(&mut self, v: i64)13215     pub fn set_cur_space(&mut self, v: i64) {
13216         self.cur_space = v;
13217     }
13218 }
13219 
13220 impl ::protobuf::Message for GetCurrentSpaceForArcGidReply {
is_initialized(&self) -> bool13221     fn is_initialized(&self) -> bool {
13222         true
13223     }
13224 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>13225     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13226         while !is.eof()? {
13227             let (field_number, wire_type) = is.read_tag_unpack()?;
13228             match field_number {
13229                 1 => {
13230                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
13231                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
13232                     }
13233                     let tmp = is.read_int64()?;
13234                     self.cur_space = tmp;
13235                 },
13236                 _ => {
13237                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
13238                 },
13239             };
13240         }
13241         ::std::result::Result::Ok(())
13242     }
13243 
13244     // Compute sizes of nested messages
13245     #[allow(unused_variables)]
compute_size(&self) -> u3213246     fn compute_size(&self) -> u32 {
13247         let mut my_size = 0;
13248         if self.cur_space != 0 {
13249             my_size += ::protobuf::rt::value_size(1, self.cur_space, ::protobuf::wire_format::WireTypeVarint);
13250         }
13251         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
13252         self.cached_size.set(my_size);
13253         my_size
13254     }
13255 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>13256     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13257         if self.cur_space != 0 {
13258             os.write_int64(1, self.cur_space)?;
13259         }
13260         os.write_unknown_fields(self.get_unknown_fields())?;
13261         ::std::result::Result::Ok(())
13262     }
13263 
get_cached_size(&self) -> u3213264     fn get_cached_size(&self) -> u32 {
13265         self.cached_size.get()
13266     }
13267 
get_unknown_fields(&self) -> &::protobuf::UnknownFields13268     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
13269         &self.unknown_fields
13270     }
13271 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields13272     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
13273         &mut self.unknown_fields
13274     }
13275 
as_any(&self) -> &dyn (::std::any::Any)13276     fn as_any(&self) -> &dyn (::std::any::Any) {
13277         self as &dyn (::std::any::Any)
13278     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)13279     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
13280         self as &mut dyn (::std::any::Any)
13281     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>13282     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
13283         self
13284     }
13285 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor13286     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
13287         Self::descriptor_static()
13288     }
13289 
new() -> GetCurrentSpaceForArcGidReply13290     fn new() -> GetCurrentSpaceForArcGidReply {
13291         GetCurrentSpaceForArcGidReply::new()
13292     }
13293 
default_instance() -> &'static GetCurrentSpaceForArcGidReply13294     fn default_instance() -> &'static GetCurrentSpaceForArcGidReply {
13295         static instance: ::protobuf::rt::LazyV2<GetCurrentSpaceForArcGidReply> = ::protobuf::rt::LazyV2::INIT;
13296         instance.get(GetCurrentSpaceForArcGidReply::new)
13297     }
13298 }
13299 
13300 impl ::protobuf::Clear for GetCurrentSpaceForArcGidReply {
clear(&mut self)13301     fn clear(&mut self) {
13302         self.cur_space = 0;
13303         self.unknown_fields.clear();
13304     }
13305 }
13306 
13307 impl ::protobuf::reflect::ProtobufValue for GetCurrentSpaceForArcGidReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef13308     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
13309         ::protobuf::reflect::ReflectValueRef::Message(self)
13310     }
13311 }
13312 
13313 #[derive(PartialEq,Clone,Default,Debug)]
13314 pub struct GetCurrentSpaceForArcProjectIdRequest {
13315     // message fields
13316     pub project_id: u32,
13317     // special fields
13318     pub unknown_fields: ::protobuf::UnknownFields,
13319     pub cached_size: ::protobuf::CachedSize,
13320 }
13321 
13322 impl<'a> ::std::default::Default for &'a GetCurrentSpaceForArcProjectIdRequest {
default() -> &'a GetCurrentSpaceForArcProjectIdRequest13323     fn default() -> &'a GetCurrentSpaceForArcProjectIdRequest {
13324         <GetCurrentSpaceForArcProjectIdRequest as ::protobuf::Message>::default_instance()
13325     }
13326 }
13327 
13328 impl GetCurrentSpaceForArcProjectIdRequest {
new() -> GetCurrentSpaceForArcProjectIdRequest13329     pub fn new() -> GetCurrentSpaceForArcProjectIdRequest {
13330         ::std::default::Default::default()
13331     }
13332 
13333     // uint32 project_id = 1;
13334 
13335 
get_project_id(&self) -> u3213336     pub fn get_project_id(&self) -> u32 {
13337         self.project_id
13338     }
clear_project_id(&mut self)13339     pub fn clear_project_id(&mut self) {
13340         self.project_id = 0;
13341     }
13342 
13343     // Param is passed by value, moved
set_project_id(&mut self, v: u32)13344     pub fn set_project_id(&mut self, v: u32) {
13345         self.project_id = v;
13346     }
13347 }
13348 
13349 impl ::protobuf::Message for GetCurrentSpaceForArcProjectIdRequest {
is_initialized(&self) -> bool13350     fn is_initialized(&self) -> bool {
13351         true
13352     }
13353 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>13354     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13355         while !is.eof()? {
13356             let (field_number, wire_type) = is.read_tag_unpack()?;
13357             match field_number {
13358                 1 => {
13359                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
13360                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
13361                     }
13362                     let tmp = is.read_uint32()?;
13363                     self.project_id = tmp;
13364                 },
13365                 _ => {
13366                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
13367                 },
13368             };
13369         }
13370         ::std::result::Result::Ok(())
13371     }
13372 
13373     // Compute sizes of nested messages
13374     #[allow(unused_variables)]
compute_size(&self) -> u3213375     fn compute_size(&self) -> u32 {
13376         let mut my_size = 0;
13377         if self.project_id != 0 {
13378             my_size += ::protobuf::rt::value_size(1, self.project_id, ::protobuf::wire_format::WireTypeVarint);
13379         }
13380         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
13381         self.cached_size.set(my_size);
13382         my_size
13383     }
13384 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>13385     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13386         if self.project_id != 0 {
13387             os.write_uint32(1, self.project_id)?;
13388         }
13389         os.write_unknown_fields(self.get_unknown_fields())?;
13390         ::std::result::Result::Ok(())
13391     }
13392 
get_cached_size(&self) -> u3213393     fn get_cached_size(&self) -> u32 {
13394         self.cached_size.get()
13395     }
13396 
get_unknown_fields(&self) -> &::protobuf::UnknownFields13397     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
13398         &self.unknown_fields
13399     }
13400 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields13401     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
13402         &mut self.unknown_fields
13403     }
13404 
as_any(&self) -> &dyn (::std::any::Any)13405     fn as_any(&self) -> &dyn (::std::any::Any) {
13406         self as &dyn (::std::any::Any)
13407     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)13408     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
13409         self as &mut dyn (::std::any::Any)
13410     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>13411     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
13412         self
13413     }
13414 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor13415     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
13416         Self::descriptor_static()
13417     }
13418 
new() -> GetCurrentSpaceForArcProjectIdRequest13419     fn new() -> GetCurrentSpaceForArcProjectIdRequest {
13420         GetCurrentSpaceForArcProjectIdRequest::new()
13421     }
13422 
default_instance() -> &'static GetCurrentSpaceForArcProjectIdRequest13423     fn default_instance() -> &'static GetCurrentSpaceForArcProjectIdRequest {
13424         static instance: ::protobuf::rt::LazyV2<GetCurrentSpaceForArcProjectIdRequest> = ::protobuf::rt::LazyV2::INIT;
13425         instance.get(GetCurrentSpaceForArcProjectIdRequest::new)
13426     }
13427 }
13428 
13429 impl ::protobuf::Clear for GetCurrentSpaceForArcProjectIdRequest {
clear(&mut self)13430     fn clear(&mut self) {
13431         self.project_id = 0;
13432         self.unknown_fields.clear();
13433     }
13434 }
13435 
13436 impl ::protobuf::reflect::ProtobufValue for GetCurrentSpaceForArcProjectIdRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef13437     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
13438         ::protobuf::reflect::ReflectValueRef::Message(self)
13439     }
13440 }
13441 
13442 #[derive(PartialEq,Clone,Default,Debug)]
13443 pub struct GetCurrentSpaceForArcProjectIdReply {
13444     // message fields
13445     pub cur_space: i64,
13446     // special fields
13447     pub unknown_fields: ::protobuf::UnknownFields,
13448     pub cached_size: ::protobuf::CachedSize,
13449 }
13450 
13451 impl<'a> ::std::default::Default for &'a GetCurrentSpaceForArcProjectIdReply {
default() -> &'a GetCurrentSpaceForArcProjectIdReply13452     fn default() -> &'a GetCurrentSpaceForArcProjectIdReply {
13453         <GetCurrentSpaceForArcProjectIdReply as ::protobuf::Message>::default_instance()
13454     }
13455 }
13456 
13457 impl GetCurrentSpaceForArcProjectIdReply {
new() -> GetCurrentSpaceForArcProjectIdReply13458     pub fn new() -> GetCurrentSpaceForArcProjectIdReply {
13459         ::std::default::Default::default()
13460     }
13461 
13462     // int64 cur_space = 1;
13463 
13464 
get_cur_space(&self) -> i6413465     pub fn get_cur_space(&self) -> i64 {
13466         self.cur_space
13467     }
clear_cur_space(&mut self)13468     pub fn clear_cur_space(&mut self) {
13469         self.cur_space = 0;
13470     }
13471 
13472     // Param is passed by value, moved
set_cur_space(&mut self, v: i64)13473     pub fn set_cur_space(&mut self, v: i64) {
13474         self.cur_space = v;
13475     }
13476 }
13477 
13478 impl ::protobuf::Message for GetCurrentSpaceForArcProjectIdReply {
is_initialized(&self) -> bool13479     fn is_initialized(&self) -> bool {
13480         true
13481     }
13482 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>13483     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13484         while !is.eof()? {
13485             let (field_number, wire_type) = is.read_tag_unpack()?;
13486             match field_number {
13487                 1 => {
13488                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
13489                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
13490                     }
13491                     let tmp = is.read_int64()?;
13492                     self.cur_space = tmp;
13493                 },
13494                 _ => {
13495                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
13496                 },
13497             };
13498         }
13499         ::std::result::Result::Ok(())
13500     }
13501 
13502     // Compute sizes of nested messages
13503     #[allow(unused_variables)]
compute_size(&self) -> u3213504     fn compute_size(&self) -> u32 {
13505         let mut my_size = 0;
13506         if self.cur_space != 0 {
13507             my_size += ::protobuf::rt::value_size(1, self.cur_space, ::protobuf::wire_format::WireTypeVarint);
13508         }
13509         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
13510         self.cached_size.set(my_size);
13511         my_size
13512     }
13513 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>13514     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13515         if self.cur_space != 0 {
13516             os.write_int64(1, self.cur_space)?;
13517         }
13518         os.write_unknown_fields(self.get_unknown_fields())?;
13519         ::std::result::Result::Ok(())
13520     }
13521 
get_cached_size(&self) -> u3213522     fn get_cached_size(&self) -> u32 {
13523         self.cached_size.get()
13524     }
13525 
get_unknown_fields(&self) -> &::protobuf::UnknownFields13526     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
13527         &self.unknown_fields
13528     }
13529 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields13530     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
13531         &mut self.unknown_fields
13532     }
13533 
as_any(&self) -> &dyn (::std::any::Any)13534     fn as_any(&self) -> &dyn (::std::any::Any) {
13535         self as &dyn (::std::any::Any)
13536     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)13537     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
13538         self as &mut dyn (::std::any::Any)
13539     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>13540     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
13541         self
13542     }
13543 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor13544     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
13545         Self::descriptor_static()
13546     }
13547 
new() -> GetCurrentSpaceForArcProjectIdReply13548     fn new() -> GetCurrentSpaceForArcProjectIdReply {
13549         GetCurrentSpaceForArcProjectIdReply::new()
13550     }
13551 
default_instance() -> &'static GetCurrentSpaceForArcProjectIdReply13552     fn default_instance() -> &'static GetCurrentSpaceForArcProjectIdReply {
13553         static instance: ::protobuf::rt::LazyV2<GetCurrentSpaceForArcProjectIdReply> = ::protobuf::rt::LazyV2::INIT;
13554         instance.get(GetCurrentSpaceForArcProjectIdReply::new)
13555     }
13556 }
13557 
13558 impl ::protobuf::Clear for GetCurrentSpaceForArcProjectIdReply {
clear(&mut self)13559     fn clear(&mut self) {
13560         self.cur_space = 0;
13561         self.unknown_fields.clear();
13562     }
13563 }
13564 
13565 impl ::protobuf::reflect::ProtobufValue for GetCurrentSpaceForArcProjectIdReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef13566     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
13567         ::protobuf::reflect::ReflectValueRef::Message(self)
13568     }
13569 }
13570 
13571 #[derive(PartialEq,Clone,Default,Debug)]
13572 pub struct SetMediaRWDataFileProjectIdRequest {
13573     // message fields
13574     pub project_id: u32,
13575     // special fields
13576     pub unknown_fields: ::protobuf::UnknownFields,
13577     pub cached_size: ::protobuf::CachedSize,
13578 }
13579 
13580 impl<'a> ::std::default::Default for &'a SetMediaRWDataFileProjectIdRequest {
default() -> &'a SetMediaRWDataFileProjectIdRequest13581     fn default() -> &'a SetMediaRWDataFileProjectIdRequest {
13582         <SetMediaRWDataFileProjectIdRequest as ::protobuf::Message>::default_instance()
13583     }
13584 }
13585 
13586 impl SetMediaRWDataFileProjectIdRequest {
new() -> SetMediaRWDataFileProjectIdRequest13587     pub fn new() -> SetMediaRWDataFileProjectIdRequest {
13588         ::std::default::Default::default()
13589     }
13590 
13591     // uint32 project_id = 1;
13592 
13593 
get_project_id(&self) -> u3213594     pub fn get_project_id(&self) -> u32 {
13595         self.project_id
13596     }
clear_project_id(&mut self)13597     pub fn clear_project_id(&mut self) {
13598         self.project_id = 0;
13599     }
13600 
13601     // Param is passed by value, moved
set_project_id(&mut self, v: u32)13602     pub fn set_project_id(&mut self, v: u32) {
13603         self.project_id = v;
13604     }
13605 }
13606 
13607 impl ::protobuf::Message for SetMediaRWDataFileProjectIdRequest {
is_initialized(&self) -> bool13608     fn is_initialized(&self) -> bool {
13609         true
13610     }
13611 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>13612     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13613         while !is.eof()? {
13614             let (field_number, wire_type) = is.read_tag_unpack()?;
13615             match field_number {
13616                 1 => {
13617                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
13618                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
13619                     }
13620                     let tmp = is.read_uint32()?;
13621                     self.project_id = tmp;
13622                 },
13623                 _ => {
13624                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
13625                 },
13626             };
13627         }
13628         ::std::result::Result::Ok(())
13629     }
13630 
13631     // Compute sizes of nested messages
13632     #[allow(unused_variables)]
compute_size(&self) -> u3213633     fn compute_size(&self) -> u32 {
13634         let mut my_size = 0;
13635         if self.project_id != 0 {
13636             my_size += ::protobuf::rt::value_size(1, self.project_id, ::protobuf::wire_format::WireTypeVarint);
13637         }
13638         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
13639         self.cached_size.set(my_size);
13640         my_size
13641     }
13642 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>13643     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13644         if self.project_id != 0 {
13645             os.write_uint32(1, self.project_id)?;
13646         }
13647         os.write_unknown_fields(self.get_unknown_fields())?;
13648         ::std::result::Result::Ok(())
13649     }
13650 
get_cached_size(&self) -> u3213651     fn get_cached_size(&self) -> u32 {
13652         self.cached_size.get()
13653     }
13654 
get_unknown_fields(&self) -> &::protobuf::UnknownFields13655     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
13656         &self.unknown_fields
13657     }
13658 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields13659     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
13660         &mut self.unknown_fields
13661     }
13662 
as_any(&self) -> &dyn (::std::any::Any)13663     fn as_any(&self) -> &dyn (::std::any::Any) {
13664         self as &dyn (::std::any::Any)
13665     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)13666     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
13667         self as &mut dyn (::std::any::Any)
13668     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>13669     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
13670         self
13671     }
13672 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor13673     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
13674         Self::descriptor_static()
13675     }
13676 
new() -> SetMediaRWDataFileProjectIdRequest13677     fn new() -> SetMediaRWDataFileProjectIdRequest {
13678         SetMediaRWDataFileProjectIdRequest::new()
13679     }
13680 
default_instance() -> &'static SetMediaRWDataFileProjectIdRequest13681     fn default_instance() -> &'static SetMediaRWDataFileProjectIdRequest {
13682         static instance: ::protobuf::rt::LazyV2<SetMediaRWDataFileProjectIdRequest> = ::protobuf::rt::LazyV2::INIT;
13683         instance.get(SetMediaRWDataFileProjectIdRequest::new)
13684     }
13685 }
13686 
13687 impl ::protobuf::Clear for SetMediaRWDataFileProjectIdRequest {
clear(&mut self)13688     fn clear(&mut self) {
13689         self.project_id = 0;
13690         self.unknown_fields.clear();
13691     }
13692 }
13693 
13694 impl ::protobuf::reflect::ProtobufValue for SetMediaRWDataFileProjectIdRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef13695     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
13696         ::protobuf::reflect::ReflectValueRef::Message(self)
13697     }
13698 }
13699 
13700 #[derive(PartialEq,Clone,Default,Debug)]
13701 pub struct SetMediaRWDataFileProjectIdReply {
13702     // message fields
13703     pub success: bool,
13704     pub error: i32,
13705     // special fields
13706     pub unknown_fields: ::protobuf::UnknownFields,
13707     pub cached_size: ::protobuf::CachedSize,
13708 }
13709 
13710 impl<'a> ::std::default::Default for &'a SetMediaRWDataFileProjectIdReply {
default() -> &'a SetMediaRWDataFileProjectIdReply13711     fn default() -> &'a SetMediaRWDataFileProjectIdReply {
13712         <SetMediaRWDataFileProjectIdReply as ::protobuf::Message>::default_instance()
13713     }
13714 }
13715 
13716 impl SetMediaRWDataFileProjectIdReply {
new() -> SetMediaRWDataFileProjectIdReply13717     pub fn new() -> SetMediaRWDataFileProjectIdReply {
13718         ::std::default::Default::default()
13719     }
13720 
13721     // bool success = 1;
13722 
13723 
get_success(&self) -> bool13724     pub fn get_success(&self) -> bool {
13725         self.success
13726     }
clear_success(&mut self)13727     pub fn clear_success(&mut self) {
13728         self.success = false;
13729     }
13730 
13731     // Param is passed by value, moved
set_success(&mut self, v: bool)13732     pub fn set_success(&mut self, v: bool) {
13733         self.success = v;
13734     }
13735 
13736     // int32 error = 2;
13737 
13738 
get_error(&self) -> i3213739     pub fn get_error(&self) -> i32 {
13740         self.error
13741     }
clear_error(&mut self)13742     pub fn clear_error(&mut self) {
13743         self.error = 0;
13744     }
13745 
13746     // Param is passed by value, moved
set_error(&mut self, v: i32)13747     pub fn set_error(&mut self, v: i32) {
13748         self.error = v;
13749     }
13750 }
13751 
13752 impl ::protobuf::Message for SetMediaRWDataFileProjectIdReply {
is_initialized(&self) -> bool13753     fn is_initialized(&self) -> bool {
13754         true
13755     }
13756 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>13757     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13758         while !is.eof()? {
13759             let (field_number, wire_type) = is.read_tag_unpack()?;
13760             match field_number {
13761                 1 => {
13762                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
13763                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
13764                     }
13765                     let tmp = is.read_bool()?;
13766                     self.success = tmp;
13767                 },
13768                 2 => {
13769                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
13770                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
13771                     }
13772                     let tmp = is.read_int32()?;
13773                     self.error = tmp;
13774                 },
13775                 _ => {
13776                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
13777                 },
13778             };
13779         }
13780         ::std::result::Result::Ok(())
13781     }
13782 
13783     // Compute sizes of nested messages
13784     #[allow(unused_variables)]
compute_size(&self) -> u3213785     fn compute_size(&self) -> u32 {
13786         let mut my_size = 0;
13787         if self.success != false {
13788             my_size += 2;
13789         }
13790         if self.error != 0 {
13791             my_size += ::protobuf::rt::value_size(2, self.error, ::protobuf::wire_format::WireTypeVarint);
13792         }
13793         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
13794         self.cached_size.set(my_size);
13795         my_size
13796     }
13797 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>13798     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13799         if self.success != false {
13800             os.write_bool(1, self.success)?;
13801         }
13802         if self.error != 0 {
13803             os.write_int32(2, self.error)?;
13804         }
13805         os.write_unknown_fields(self.get_unknown_fields())?;
13806         ::std::result::Result::Ok(())
13807     }
13808 
get_cached_size(&self) -> u3213809     fn get_cached_size(&self) -> u32 {
13810         self.cached_size.get()
13811     }
13812 
get_unknown_fields(&self) -> &::protobuf::UnknownFields13813     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
13814         &self.unknown_fields
13815     }
13816 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields13817     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
13818         &mut self.unknown_fields
13819     }
13820 
as_any(&self) -> &dyn (::std::any::Any)13821     fn as_any(&self) -> &dyn (::std::any::Any) {
13822         self as &dyn (::std::any::Any)
13823     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)13824     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
13825         self as &mut dyn (::std::any::Any)
13826     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>13827     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
13828         self
13829     }
13830 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor13831     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
13832         Self::descriptor_static()
13833     }
13834 
new() -> SetMediaRWDataFileProjectIdReply13835     fn new() -> SetMediaRWDataFileProjectIdReply {
13836         SetMediaRWDataFileProjectIdReply::new()
13837     }
13838 
default_instance() -> &'static SetMediaRWDataFileProjectIdReply13839     fn default_instance() -> &'static SetMediaRWDataFileProjectIdReply {
13840         static instance: ::protobuf::rt::LazyV2<SetMediaRWDataFileProjectIdReply> = ::protobuf::rt::LazyV2::INIT;
13841         instance.get(SetMediaRWDataFileProjectIdReply::new)
13842     }
13843 }
13844 
13845 impl ::protobuf::Clear for SetMediaRWDataFileProjectIdReply {
clear(&mut self)13846     fn clear(&mut self) {
13847         self.success = false;
13848         self.error = 0;
13849         self.unknown_fields.clear();
13850     }
13851 }
13852 
13853 impl ::protobuf::reflect::ProtobufValue for SetMediaRWDataFileProjectIdReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef13854     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
13855         ::protobuf::reflect::ReflectValueRef::Message(self)
13856     }
13857 }
13858 
13859 #[derive(PartialEq,Clone,Default,Debug)]
13860 pub struct SetMediaRWDataFileProjectInheritanceFlagRequest {
13861     // message fields
13862     pub enable: bool,
13863     // special fields
13864     pub unknown_fields: ::protobuf::UnknownFields,
13865     pub cached_size: ::protobuf::CachedSize,
13866 }
13867 
13868 impl<'a> ::std::default::Default for &'a SetMediaRWDataFileProjectInheritanceFlagRequest {
default() -> &'a SetMediaRWDataFileProjectInheritanceFlagRequest13869     fn default() -> &'a SetMediaRWDataFileProjectInheritanceFlagRequest {
13870         <SetMediaRWDataFileProjectInheritanceFlagRequest as ::protobuf::Message>::default_instance()
13871     }
13872 }
13873 
13874 impl SetMediaRWDataFileProjectInheritanceFlagRequest {
new() -> SetMediaRWDataFileProjectInheritanceFlagRequest13875     pub fn new() -> SetMediaRWDataFileProjectInheritanceFlagRequest {
13876         ::std::default::Default::default()
13877     }
13878 
13879     // bool enable = 1;
13880 
13881 
get_enable(&self) -> bool13882     pub fn get_enable(&self) -> bool {
13883         self.enable
13884     }
clear_enable(&mut self)13885     pub fn clear_enable(&mut self) {
13886         self.enable = false;
13887     }
13888 
13889     // Param is passed by value, moved
set_enable(&mut self, v: bool)13890     pub fn set_enable(&mut self, v: bool) {
13891         self.enable = v;
13892     }
13893 }
13894 
13895 impl ::protobuf::Message for SetMediaRWDataFileProjectInheritanceFlagRequest {
is_initialized(&self) -> bool13896     fn is_initialized(&self) -> bool {
13897         true
13898     }
13899 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>13900     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13901         while !is.eof()? {
13902             let (field_number, wire_type) = is.read_tag_unpack()?;
13903             match field_number {
13904                 1 => {
13905                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
13906                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
13907                     }
13908                     let tmp = is.read_bool()?;
13909                     self.enable = tmp;
13910                 },
13911                 _ => {
13912                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
13913                 },
13914             };
13915         }
13916         ::std::result::Result::Ok(())
13917     }
13918 
13919     // Compute sizes of nested messages
13920     #[allow(unused_variables)]
compute_size(&self) -> u3213921     fn compute_size(&self) -> u32 {
13922         let mut my_size = 0;
13923         if self.enable != false {
13924             my_size += 2;
13925         }
13926         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
13927         self.cached_size.set(my_size);
13928         my_size
13929     }
13930 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>13931     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
13932         if self.enable != false {
13933             os.write_bool(1, self.enable)?;
13934         }
13935         os.write_unknown_fields(self.get_unknown_fields())?;
13936         ::std::result::Result::Ok(())
13937     }
13938 
get_cached_size(&self) -> u3213939     fn get_cached_size(&self) -> u32 {
13940         self.cached_size.get()
13941     }
13942 
get_unknown_fields(&self) -> &::protobuf::UnknownFields13943     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
13944         &self.unknown_fields
13945     }
13946 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields13947     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
13948         &mut self.unknown_fields
13949     }
13950 
as_any(&self) -> &dyn (::std::any::Any)13951     fn as_any(&self) -> &dyn (::std::any::Any) {
13952         self as &dyn (::std::any::Any)
13953     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)13954     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
13955         self as &mut dyn (::std::any::Any)
13956     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>13957     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
13958         self
13959     }
13960 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor13961     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
13962         Self::descriptor_static()
13963     }
13964 
new() -> SetMediaRWDataFileProjectInheritanceFlagRequest13965     fn new() -> SetMediaRWDataFileProjectInheritanceFlagRequest {
13966         SetMediaRWDataFileProjectInheritanceFlagRequest::new()
13967     }
13968 
default_instance() -> &'static SetMediaRWDataFileProjectInheritanceFlagRequest13969     fn default_instance() -> &'static SetMediaRWDataFileProjectInheritanceFlagRequest {
13970         static instance: ::protobuf::rt::LazyV2<SetMediaRWDataFileProjectInheritanceFlagRequest> = ::protobuf::rt::LazyV2::INIT;
13971         instance.get(SetMediaRWDataFileProjectInheritanceFlagRequest::new)
13972     }
13973 }
13974 
13975 impl ::protobuf::Clear for SetMediaRWDataFileProjectInheritanceFlagRequest {
clear(&mut self)13976     fn clear(&mut self) {
13977         self.enable = false;
13978         self.unknown_fields.clear();
13979     }
13980 }
13981 
13982 impl ::protobuf::reflect::ProtobufValue for SetMediaRWDataFileProjectInheritanceFlagRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef13983     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
13984         ::protobuf::reflect::ReflectValueRef::Message(self)
13985     }
13986 }
13987 
13988 #[derive(PartialEq,Clone,Default,Debug)]
13989 pub struct SetMediaRWDataFileProjectInheritanceFlagReply {
13990     // message fields
13991     pub success: bool,
13992     pub error: i32,
13993     // special fields
13994     pub unknown_fields: ::protobuf::UnknownFields,
13995     pub cached_size: ::protobuf::CachedSize,
13996 }
13997 
13998 impl<'a> ::std::default::Default for &'a SetMediaRWDataFileProjectInheritanceFlagReply {
default() -> &'a SetMediaRWDataFileProjectInheritanceFlagReply13999     fn default() -> &'a SetMediaRWDataFileProjectInheritanceFlagReply {
14000         <SetMediaRWDataFileProjectInheritanceFlagReply as ::protobuf::Message>::default_instance()
14001     }
14002 }
14003 
14004 impl SetMediaRWDataFileProjectInheritanceFlagReply {
new() -> SetMediaRWDataFileProjectInheritanceFlagReply14005     pub fn new() -> SetMediaRWDataFileProjectInheritanceFlagReply {
14006         ::std::default::Default::default()
14007     }
14008 
14009     // bool success = 1;
14010 
14011 
get_success(&self) -> bool14012     pub fn get_success(&self) -> bool {
14013         self.success
14014     }
clear_success(&mut self)14015     pub fn clear_success(&mut self) {
14016         self.success = false;
14017     }
14018 
14019     // Param is passed by value, moved
set_success(&mut self, v: bool)14020     pub fn set_success(&mut self, v: bool) {
14021         self.success = v;
14022     }
14023 
14024     // int32 error = 2;
14025 
14026 
get_error(&self) -> i3214027     pub fn get_error(&self) -> i32 {
14028         self.error
14029     }
clear_error(&mut self)14030     pub fn clear_error(&mut self) {
14031         self.error = 0;
14032     }
14033 
14034     // Param is passed by value, moved
set_error(&mut self, v: i32)14035     pub fn set_error(&mut self, v: i32) {
14036         self.error = v;
14037     }
14038 }
14039 
14040 impl ::protobuf::Message for SetMediaRWDataFileProjectInheritanceFlagReply {
is_initialized(&self) -> bool14041     fn is_initialized(&self) -> bool {
14042         true
14043     }
14044 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>14045     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14046         while !is.eof()? {
14047             let (field_number, wire_type) = is.read_tag_unpack()?;
14048             match field_number {
14049                 1 => {
14050                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
14051                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
14052                     }
14053                     let tmp = is.read_bool()?;
14054                     self.success = tmp;
14055                 },
14056                 2 => {
14057                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
14058                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
14059                     }
14060                     let tmp = is.read_int32()?;
14061                     self.error = tmp;
14062                 },
14063                 _ => {
14064                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
14065                 },
14066             };
14067         }
14068         ::std::result::Result::Ok(())
14069     }
14070 
14071     // Compute sizes of nested messages
14072     #[allow(unused_variables)]
compute_size(&self) -> u3214073     fn compute_size(&self) -> u32 {
14074         let mut my_size = 0;
14075         if self.success != false {
14076             my_size += 2;
14077         }
14078         if self.error != 0 {
14079             my_size += ::protobuf::rt::value_size(2, self.error, ::protobuf::wire_format::WireTypeVarint);
14080         }
14081         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
14082         self.cached_size.set(my_size);
14083         my_size
14084     }
14085 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>14086     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14087         if self.success != false {
14088             os.write_bool(1, self.success)?;
14089         }
14090         if self.error != 0 {
14091             os.write_int32(2, self.error)?;
14092         }
14093         os.write_unknown_fields(self.get_unknown_fields())?;
14094         ::std::result::Result::Ok(())
14095     }
14096 
get_cached_size(&self) -> u3214097     fn get_cached_size(&self) -> u32 {
14098         self.cached_size.get()
14099     }
14100 
get_unknown_fields(&self) -> &::protobuf::UnknownFields14101     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
14102         &self.unknown_fields
14103     }
14104 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields14105     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
14106         &mut self.unknown_fields
14107     }
14108 
as_any(&self) -> &dyn (::std::any::Any)14109     fn as_any(&self) -> &dyn (::std::any::Any) {
14110         self as &dyn (::std::any::Any)
14111     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)14112     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
14113         self as &mut dyn (::std::any::Any)
14114     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>14115     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
14116         self
14117     }
14118 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor14119     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
14120         Self::descriptor_static()
14121     }
14122 
new() -> SetMediaRWDataFileProjectInheritanceFlagReply14123     fn new() -> SetMediaRWDataFileProjectInheritanceFlagReply {
14124         SetMediaRWDataFileProjectInheritanceFlagReply::new()
14125     }
14126 
default_instance() -> &'static SetMediaRWDataFileProjectInheritanceFlagReply14127     fn default_instance() -> &'static SetMediaRWDataFileProjectInheritanceFlagReply {
14128         static instance: ::protobuf::rt::LazyV2<SetMediaRWDataFileProjectInheritanceFlagReply> = ::protobuf::rt::LazyV2::INIT;
14129         instance.get(SetMediaRWDataFileProjectInheritanceFlagReply::new)
14130     }
14131 }
14132 
14133 impl ::protobuf::Clear for SetMediaRWDataFileProjectInheritanceFlagReply {
clear(&mut self)14134     fn clear(&mut self) {
14135         self.success = false;
14136         self.error = 0;
14137         self.unknown_fields.clear();
14138     }
14139 }
14140 
14141 impl ::protobuf::reflect::ProtobufValue for SetMediaRWDataFileProjectInheritanceFlagReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef14142     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
14143         ::protobuf::reflect::ReflectValueRef::Message(self)
14144     }
14145 }
14146 
14147 #[derive(PartialEq,Clone,Default,Debug)]
14148 pub struct TpmTokenInfo {
14149     // message fields
14150     pub label: ::std::string::String,
14151     pub user_pin: ::std::string::String,
14152     pub slot: i32,
14153     // special fields
14154     pub unknown_fields: ::protobuf::UnknownFields,
14155     pub cached_size: ::protobuf::CachedSize,
14156 }
14157 
14158 impl<'a> ::std::default::Default for &'a TpmTokenInfo {
default() -> &'a TpmTokenInfo14159     fn default() -> &'a TpmTokenInfo {
14160         <TpmTokenInfo as ::protobuf::Message>::default_instance()
14161     }
14162 }
14163 
14164 impl TpmTokenInfo {
new() -> TpmTokenInfo14165     pub fn new() -> TpmTokenInfo {
14166         ::std::default::Default::default()
14167     }
14168 
14169     // string label = 1;
14170 
14171 
get_label(&self) -> &str14172     pub fn get_label(&self) -> &str {
14173         &self.label
14174     }
clear_label(&mut self)14175     pub fn clear_label(&mut self) {
14176         self.label.clear();
14177     }
14178 
14179     // Param is passed by value, moved
set_label(&mut self, v: ::std::string::String)14180     pub fn set_label(&mut self, v: ::std::string::String) {
14181         self.label = v;
14182     }
14183 
14184     // Mutable pointer to the field.
14185     // If field is not initialized, it is initialized with default value first.
mut_label(&mut self) -> &mut ::std::string::String14186     pub fn mut_label(&mut self) -> &mut ::std::string::String {
14187         &mut self.label
14188     }
14189 
14190     // Take field
take_label(&mut self) -> ::std::string::String14191     pub fn take_label(&mut self) -> ::std::string::String {
14192         ::std::mem::replace(&mut self.label, ::std::string::String::new())
14193     }
14194 
14195     // string user_pin = 2;
14196 
14197 
get_user_pin(&self) -> &str14198     pub fn get_user_pin(&self) -> &str {
14199         &self.user_pin
14200     }
clear_user_pin(&mut self)14201     pub fn clear_user_pin(&mut self) {
14202         self.user_pin.clear();
14203     }
14204 
14205     // Param is passed by value, moved
set_user_pin(&mut self, v: ::std::string::String)14206     pub fn set_user_pin(&mut self, v: ::std::string::String) {
14207         self.user_pin = v;
14208     }
14209 
14210     // Mutable pointer to the field.
14211     // If field is not initialized, it is initialized with default value first.
mut_user_pin(&mut self) -> &mut ::std::string::String14212     pub fn mut_user_pin(&mut self) -> &mut ::std::string::String {
14213         &mut self.user_pin
14214     }
14215 
14216     // Take field
take_user_pin(&mut self) -> ::std::string::String14217     pub fn take_user_pin(&mut self) -> ::std::string::String {
14218         ::std::mem::replace(&mut self.user_pin, ::std::string::String::new())
14219     }
14220 
14221     // int32 slot = 3;
14222 
14223 
get_slot(&self) -> i3214224     pub fn get_slot(&self) -> i32 {
14225         self.slot
14226     }
clear_slot(&mut self)14227     pub fn clear_slot(&mut self) {
14228         self.slot = 0;
14229     }
14230 
14231     // Param is passed by value, moved
set_slot(&mut self, v: i32)14232     pub fn set_slot(&mut self, v: i32) {
14233         self.slot = v;
14234     }
14235 }
14236 
14237 impl ::protobuf::Message for TpmTokenInfo {
is_initialized(&self) -> bool14238     fn is_initialized(&self) -> bool {
14239         true
14240     }
14241 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>14242     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14243         while !is.eof()? {
14244             let (field_number, wire_type) = is.read_tag_unpack()?;
14245             match field_number {
14246                 1 => {
14247                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.label)?;
14248                 },
14249                 2 => {
14250                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.user_pin)?;
14251                 },
14252                 3 => {
14253                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
14254                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
14255                     }
14256                     let tmp = is.read_int32()?;
14257                     self.slot = tmp;
14258                 },
14259                 _ => {
14260                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
14261                 },
14262             };
14263         }
14264         ::std::result::Result::Ok(())
14265     }
14266 
14267     // Compute sizes of nested messages
14268     #[allow(unused_variables)]
compute_size(&self) -> u3214269     fn compute_size(&self) -> u32 {
14270         let mut my_size = 0;
14271         if !self.label.is_empty() {
14272             my_size += ::protobuf::rt::string_size(1, &self.label);
14273         }
14274         if !self.user_pin.is_empty() {
14275             my_size += ::protobuf::rt::string_size(2, &self.user_pin);
14276         }
14277         if self.slot != 0 {
14278             my_size += ::protobuf::rt::value_size(3, self.slot, ::protobuf::wire_format::WireTypeVarint);
14279         }
14280         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
14281         self.cached_size.set(my_size);
14282         my_size
14283     }
14284 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>14285     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14286         if !self.label.is_empty() {
14287             os.write_string(1, &self.label)?;
14288         }
14289         if !self.user_pin.is_empty() {
14290             os.write_string(2, &self.user_pin)?;
14291         }
14292         if self.slot != 0 {
14293             os.write_int32(3, self.slot)?;
14294         }
14295         os.write_unknown_fields(self.get_unknown_fields())?;
14296         ::std::result::Result::Ok(())
14297     }
14298 
get_cached_size(&self) -> u3214299     fn get_cached_size(&self) -> u32 {
14300         self.cached_size.get()
14301     }
14302 
get_unknown_fields(&self) -> &::protobuf::UnknownFields14303     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
14304         &self.unknown_fields
14305     }
14306 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields14307     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
14308         &mut self.unknown_fields
14309     }
14310 
as_any(&self) -> &dyn (::std::any::Any)14311     fn as_any(&self) -> &dyn (::std::any::Any) {
14312         self as &dyn (::std::any::Any)
14313     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)14314     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
14315         self as &mut dyn (::std::any::Any)
14316     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>14317     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
14318         self
14319     }
14320 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor14321     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
14322         Self::descriptor_static()
14323     }
14324 
new() -> TpmTokenInfo14325     fn new() -> TpmTokenInfo {
14326         TpmTokenInfo::new()
14327     }
14328 
default_instance() -> &'static TpmTokenInfo14329     fn default_instance() -> &'static TpmTokenInfo {
14330         static instance: ::protobuf::rt::LazyV2<TpmTokenInfo> = ::protobuf::rt::LazyV2::INIT;
14331         instance.get(TpmTokenInfo::new)
14332     }
14333 }
14334 
14335 impl ::protobuf::Clear for TpmTokenInfo {
clear(&mut self)14336     fn clear(&mut self) {
14337         self.label.clear();
14338         self.user_pin.clear();
14339         self.slot = 0;
14340         self.unknown_fields.clear();
14341     }
14342 }
14343 
14344 impl ::protobuf::reflect::ProtobufValue for TpmTokenInfo {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef14345     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
14346         ::protobuf::reflect::ReflectValueRef::Message(self)
14347     }
14348 }
14349 
14350 #[derive(PartialEq,Clone,Default,Debug)]
14351 pub struct Pkcs11IsTpmTokenReadyRequest {
14352     // special fields
14353     pub unknown_fields: ::protobuf::UnknownFields,
14354     pub cached_size: ::protobuf::CachedSize,
14355 }
14356 
14357 impl<'a> ::std::default::Default for &'a Pkcs11IsTpmTokenReadyRequest {
default() -> &'a Pkcs11IsTpmTokenReadyRequest14358     fn default() -> &'a Pkcs11IsTpmTokenReadyRequest {
14359         <Pkcs11IsTpmTokenReadyRequest as ::protobuf::Message>::default_instance()
14360     }
14361 }
14362 
14363 impl Pkcs11IsTpmTokenReadyRequest {
new() -> Pkcs11IsTpmTokenReadyRequest14364     pub fn new() -> Pkcs11IsTpmTokenReadyRequest {
14365         ::std::default::Default::default()
14366     }
14367 }
14368 
14369 impl ::protobuf::Message for Pkcs11IsTpmTokenReadyRequest {
is_initialized(&self) -> bool14370     fn is_initialized(&self) -> bool {
14371         true
14372     }
14373 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>14374     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14375         while !is.eof()? {
14376             let (field_number, wire_type) = is.read_tag_unpack()?;
14377             match field_number {
14378                 _ => {
14379                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
14380                 },
14381             };
14382         }
14383         ::std::result::Result::Ok(())
14384     }
14385 
14386     // Compute sizes of nested messages
14387     #[allow(unused_variables)]
compute_size(&self) -> u3214388     fn compute_size(&self) -> u32 {
14389         let mut my_size = 0;
14390         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
14391         self.cached_size.set(my_size);
14392         my_size
14393     }
14394 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>14395     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14396         os.write_unknown_fields(self.get_unknown_fields())?;
14397         ::std::result::Result::Ok(())
14398     }
14399 
get_cached_size(&self) -> u3214400     fn get_cached_size(&self) -> u32 {
14401         self.cached_size.get()
14402     }
14403 
get_unknown_fields(&self) -> &::protobuf::UnknownFields14404     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
14405         &self.unknown_fields
14406     }
14407 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields14408     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
14409         &mut self.unknown_fields
14410     }
14411 
as_any(&self) -> &dyn (::std::any::Any)14412     fn as_any(&self) -> &dyn (::std::any::Any) {
14413         self as &dyn (::std::any::Any)
14414     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)14415     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
14416         self as &mut dyn (::std::any::Any)
14417     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>14418     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
14419         self
14420     }
14421 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor14422     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
14423         Self::descriptor_static()
14424     }
14425 
new() -> Pkcs11IsTpmTokenReadyRequest14426     fn new() -> Pkcs11IsTpmTokenReadyRequest {
14427         Pkcs11IsTpmTokenReadyRequest::new()
14428     }
14429 
default_instance() -> &'static Pkcs11IsTpmTokenReadyRequest14430     fn default_instance() -> &'static Pkcs11IsTpmTokenReadyRequest {
14431         static instance: ::protobuf::rt::LazyV2<Pkcs11IsTpmTokenReadyRequest> = ::protobuf::rt::LazyV2::INIT;
14432         instance.get(Pkcs11IsTpmTokenReadyRequest::new)
14433     }
14434 }
14435 
14436 impl ::protobuf::Clear for Pkcs11IsTpmTokenReadyRequest {
clear(&mut self)14437     fn clear(&mut self) {
14438         self.unknown_fields.clear();
14439     }
14440 }
14441 
14442 impl ::protobuf::reflect::ProtobufValue for Pkcs11IsTpmTokenReadyRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef14443     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
14444         ::protobuf::reflect::ReflectValueRef::Message(self)
14445     }
14446 }
14447 
14448 #[derive(PartialEq,Clone,Default,Debug)]
14449 pub struct Pkcs11IsTpmTokenReadyReply {
14450     // message fields
14451     pub ready: bool,
14452     // special fields
14453     pub unknown_fields: ::protobuf::UnknownFields,
14454     pub cached_size: ::protobuf::CachedSize,
14455 }
14456 
14457 impl<'a> ::std::default::Default for &'a Pkcs11IsTpmTokenReadyReply {
default() -> &'a Pkcs11IsTpmTokenReadyReply14458     fn default() -> &'a Pkcs11IsTpmTokenReadyReply {
14459         <Pkcs11IsTpmTokenReadyReply as ::protobuf::Message>::default_instance()
14460     }
14461 }
14462 
14463 impl Pkcs11IsTpmTokenReadyReply {
new() -> Pkcs11IsTpmTokenReadyReply14464     pub fn new() -> Pkcs11IsTpmTokenReadyReply {
14465         ::std::default::Default::default()
14466     }
14467 
14468     // bool ready = 1;
14469 
14470 
get_ready(&self) -> bool14471     pub fn get_ready(&self) -> bool {
14472         self.ready
14473     }
clear_ready(&mut self)14474     pub fn clear_ready(&mut self) {
14475         self.ready = false;
14476     }
14477 
14478     // Param is passed by value, moved
set_ready(&mut self, v: bool)14479     pub fn set_ready(&mut self, v: bool) {
14480         self.ready = v;
14481     }
14482 }
14483 
14484 impl ::protobuf::Message for Pkcs11IsTpmTokenReadyReply {
is_initialized(&self) -> bool14485     fn is_initialized(&self) -> bool {
14486         true
14487     }
14488 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>14489     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14490         while !is.eof()? {
14491             let (field_number, wire_type) = is.read_tag_unpack()?;
14492             match field_number {
14493                 1 => {
14494                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
14495                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
14496                     }
14497                     let tmp = is.read_bool()?;
14498                     self.ready = tmp;
14499                 },
14500                 _ => {
14501                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
14502                 },
14503             };
14504         }
14505         ::std::result::Result::Ok(())
14506     }
14507 
14508     // Compute sizes of nested messages
14509     #[allow(unused_variables)]
compute_size(&self) -> u3214510     fn compute_size(&self) -> u32 {
14511         let mut my_size = 0;
14512         if self.ready != false {
14513             my_size += 2;
14514         }
14515         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
14516         self.cached_size.set(my_size);
14517         my_size
14518     }
14519 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>14520     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14521         if self.ready != false {
14522             os.write_bool(1, self.ready)?;
14523         }
14524         os.write_unknown_fields(self.get_unknown_fields())?;
14525         ::std::result::Result::Ok(())
14526     }
14527 
get_cached_size(&self) -> u3214528     fn get_cached_size(&self) -> u32 {
14529         self.cached_size.get()
14530     }
14531 
get_unknown_fields(&self) -> &::protobuf::UnknownFields14532     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
14533         &self.unknown_fields
14534     }
14535 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields14536     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
14537         &mut self.unknown_fields
14538     }
14539 
as_any(&self) -> &dyn (::std::any::Any)14540     fn as_any(&self) -> &dyn (::std::any::Any) {
14541         self as &dyn (::std::any::Any)
14542     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)14543     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
14544         self as &mut dyn (::std::any::Any)
14545     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>14546     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
14547         self
14548     }
14549 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor14550     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
14551         Self::descriptor_static()
14552     }
14553 
new() -> Pkcs11IsTpmTokenReadyReply14554     fn new() -> Pkcs11IsTpmTokenReadyReply {
14555         Pkcs11IsTpmTokenReadyReply::new()
14556     }
14557 
default_instance() -> &'static Pkcs11IsTpmTokenReadyReply14558     fn default_instance() -> &'static Pkcs11IsTpmTokenReadyReply {
14559         static instance: ::protobuf::rt::LazyV2<Pkcs11IsTpmTokenReadyReply> = ::protobuf::rt::LazyV2::INIT;
14560         instance.get(Pkcs11IsTpmTokenReadyReply::new)
14561     }
14562 }
14563 
14564 impl ::protobuf::Clear for Pkcs11IsTpmTokenReadyReply {
clear(&mut self)14565     fn clear(&mut self) {
14566         self.ready = false;
14567         self.unknown_fields.clear();
14568     }
14569 }
14570 
14571 impl ::protobuf::reflect::ProtobufValue for Pkcs11IsTpmTokenReadyReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef14572     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
14573         ::protobuf::reflect::ReflectValueRef::Message(self)
14574     }
14575 }
14576 
14577 #[derive(PartialEq,Clone,Default,Debug)]
14578 pub struct Pkcs11GetTpmTokenInfoRequest {
14579     // message fields
14580     pub username: ::std::string::String,
14581     // special fields
14582     pub unknown_fields: ::protobuf::UnknownFields,
14583     pub cached_size: ::protobuf::CachedSize,
14584 }
14585 
14586 impl<'a> ::std::default::Default for &'a Pkcs11GetTpmTokenInfoRequest {
default() -> &'a Pkcs11GetTpmTokenInfoRequest14587     fn default() -> &'a Pkcs11GetTpmTokenInfoRequest {
14588         <Pkcs11GetTpmTokenInfoRequest as ::protobuf::Message>::default_instance()
14589     }
14590 }
14591 
14592 impl Pkcs11GetTpmTokenInfoRequest {
new() -> Pkcs11GetTpmTokenInfoRequest14593     pub fn new() -> Pkcs11GetTpmTokenInfoRequest {
14594         ::std::default::Default::default()
14595     }
14596 
14597     // string username = 1;
14598 
14599 
get_username(&self) -> &str14600     pub fn get_username(&self) -> &str {
14601         &self.username
14602     }
clear_username(&mut self)14603     pub fn clear_username(&mut self) {
14604         self.username.clear();
14605     }
14606 
14607     // Param is passed by value, moved
set_username(&mut self, v: ::std::string::String)14608     pub fn set_username(&mut self, v: ::std::string::String) {
14609         self.username = v;
14610     }
14611 
14612     // Mutable pointer to the field.
14613     // If field is not initialized, it is initialized with default value first.
mut_username(&mut self) -> &mut ::std::string::String14614     pub fn mut_username(&mut self) -> &mut ::std::string::String {
14615         &mut self.username
14616     }
14617 
14618     // Take field
take_username(&mut self) -> ::std::string::String14619     pub fn take_username(&mut self) -> ::std::string::String {
14620         ::std::mem::replace(&mut self.username, ::std::string::String::new())
14621     }
14622 }
14623 
14624 impl ::protobuf::Message for Pkcs11GetTpmTokenInfoRequest {
is_initialized(&self) -> bool14625     fn is_initialized(&self) -> bool {
14626         true
14627     }
14628 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>14629     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14630         while !is.eof()? {
14631             let (field_number, wire_type) = is.read_tag_unpack()?;
14632             match field_number {
14633                 1 => {
14634                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.username)?;
14635                 },
14636                 _ => {
14637                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
14638                 },
14639             };
14640         }
14641         ::std::result::Result::Ok(())
14642     }
14643 
14644     // Compute sizes of nested messages
14645     #[allow(unused_variables)]
compute_size(&self) -> u3214646     fn compute_size(&self) -> u32 {
14647         let mut my_size = 0;
14648         if !self.username.is_empty() {
14649             my_size += ::protobuf::rt::string_size(1, &self.username);
14650         }
14651         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
14652         self.cached_size.set(my_size);
14653         my_size
14654     }
14655 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>14656     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14657         if !self.username.is_empty() {
14658             os.write_string(1, &self.username)?;
14659         }
14660         os.write_unknown_fields(self.get_unknown_fields())?;
14661         ::std::result::Result::Ok(())
14662     }
14663 
get_cached_size(&self) -> u3214664     fn get_cached_size(&self) -> u32 {
14665         self.cached_size.get()
14666     }
14667 
get_unknown_fields(&self) -> &::protobuf::UnknownFields14668     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
14669         &self.unknown_fields
14670     }
14671 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields14672     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
14673         &mut self.unknown_fields
14674     }
14675 
as_any(&self) -> &dyn (::std::any::Any)14676     fn as_any(&self) -> &dyn (::std::any::Any) {
14677         self as &dyn (::std::any::Any)
14678     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)14679     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
14680         self as &mut dyn (::std::any::Any)
14681     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>14682     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
14683         self
14684     }
14685 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor14686     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
14687         Self::descriptor_static()
14688     }
14689 
new() -> Pkcs11GetTpmTokenInfoRequest14690     fn new() -> Pkcs11GetTpmTokenInfoRequest {
14691         Pkcs11GetTpmTokenInfoRequest::new()
14692     }
14693 
default_instance() -> &'static Pkcs11GetTpmTokenInfoRequest14694     fn default_instance() -> &'static Pkcs11GetTpmTokenInfoRequest {
14695         static instance: ::protobuf::rt::LazyV2<Pkcs11GetTpmTokenInfoRequest> = ::protobuf::rt::LazyV2::INIT;
14696         instance.get(Pkcs11GetTpmTokenInfoRequest::new)
14697     }
14698 }
14699 
14700 impl ::protobuf::Clear for Pkcs11GetTpmTokenInfoRequest {
clear(&mut self)14701     fn clear(&mut self) {
14702         self.username.clear();
14703         self.unknown_fields.clear();
14704     }
14705 }
14706 
14707 impl ::protobuf::reflect::ProtobufValue for Pkcs11GetTpmTokenInfoRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef14708     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
14709         ::protobuf::reflect::ReflectValueRef::Message(self)
14710     }
14711 }
14712 
14713 #[derive(PartialEq,Clone,Default,Debug)]
14714 pub struct Pkcs11GetTpmTokenInfoReply {
14715     // message fields
14716     pub token_info: ::protobuf::SingularPtrField<TpmTokenInfo>,
14717     // special fields
14718     pub unknown_fields: ::protobuf::UnknownFields,
14719     pub cached_size: ::protobuf::CachedSize,
14720 }
14721 
14722 impl<'a> ::std::default::Default for &'a Pkcs11GetTpmTokenInfoReply {
default() -> &'a Pkcs11GetTpmTokenInfoReply14723     fn default() -> &'a Pkcs11GetTpmTokenInfoReply {
14724         <Pkcs11GetTpmTokenInfoReply as ::protobuf::Message>::default_instance()
14725     }
14726 }
14727 
14728 impl Pkcs11GetTpmTokenInfoReply {
new() -> Pkcs11GetTpmTokenInfoReply14729     pub fn new() -> Pkcs11GetTpmTokenInfoReply {
14730         ::std::default::Default::default()
14731     }
14732 
14733     // .user_data_auth.TpmTokenInfo token_info = 1;
14734 
14735 
get_token_info(&self) -> &TpmTokenInfo14736     pub fn get_token_info(&self) -> &TpmTokenInfo {
14737         self.token_info.as_ref().unwrap_or_else(|| <TpmTokenInfo as ::protobuf::Message>::default_instance())
14738     }
clear_token_info(&mut self)14739     pub fn clear_token_info(&mut self) {
14740         self.token_info.clear();
14741     }
14742 
has_token_info(&self) -> bool14743     pub fn has_token_info(&self) -> bool {
14744         self.token_info.is_some()
14745     }
14746 
14747     // Param is passed by value, moved
set_token_info(&mut self, v: TpmTokenInfo)14748     pub fn set_token_info(&mut self, v: TpmTokenInfo) {
14749         self.token_info = ::protobuf::SingularPtrField::some(v);
14750     }
14751 
14752     // Mutable pointer to the field.
14753     // If field is not initialized, it is initialized with default value first.
mut_token_info(&mut self) -> &mut TpmTokenInfo14754     pub fn mut_token_info(&mut self) -> &mut TpmTokenInfo {
14755         if self.token_info.is_none() {
14756             self.token_info.set_default();
14757         }
14758         self.token_info.as_mut().unwrap()
14759     }
14760 
14761     // Take field
take_token_info(&mut self) -> TpmTokenInfo14762     pub fn take_token_info(&mut self) -> TpmTokenInfo {
14763         self.token_info.take().unwrap_or_else(|| TpmTokenInfo::new())
14764     }
14765 }
14766 
14767 impl ::protobuf::Message for Pkcs11GetTpmTokenInfoReply {
is_initialized(&self) -> bool14768     fn is_initialized(&self) -> bool {
14769         for v in &self.token_info {
14770             if !v.is_initialized() {
14771                 return false;
14772             }
14773         };
14774         true
14775     }
14776 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>14777     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14778         while !is.eof()? {
14779             let (field_number, wire_type) = is.read_tag_unpack()?;
14780             match field_number {
14781                 1 => {
14782                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.token_info)?;
14783                 },
14784                 _ => {
14785                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
14786                 },
14787             };
14788         }
14789         ::std::result::Result::Ok(())
14790     }
14791 
14792     // Compute sizes of nested messages
14793     #[allow(unused_variables)]
compute_size(&self) -> u3214794     fn compute_size(&self) -> u32 {
14795         let mut my_size = 0;
14796         if let Some(ref v) = self.token_info.as_ref() {
14797             let len = v.compute_size();
14798             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
14799         }
14800         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
14801         self.cached_size.set(my_size);
14802         my_size
14803     }
14804 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>14805     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14806         if let Some(ref v) = self.token_info.as_ref() {
14807             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
14808             os.write_raw_varint32(v.get_cached_size())?;
14809             v.write_to_with_cached_sizes(os)?;
14810         }
14811         os.write_unknown_fields(self.get_unknown_fields())?;
14812         ::std::result::Result::Ok(())
14813     }
14814 
get_cached_size(&self) -> u3214815     fn get_cached_size(&self) -> u32 {
14816         self.cached_size.get()
14817     }
14818 
get_unknown_fields(&self) -> &::protobuf::UnknownFields14819     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
14820         &self.unknown_fields
14821     }
14822 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields14823     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
14824         &mut self.unknown_fields
14825     }
14826 
as_any(&self) -> &dyn (::std::any::Any)14827     fn as_any(&self) -> &dyn (::std::any::Any) {
14828         self as &dyn (::std::any::Any)
14829     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)14830     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
14831         self as &mut dyn (::std::any::Any)
14832     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>14833     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
14834         self
14835     }
14836 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor14837     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
14838         Self::descriptor_static()
14839     }
14840 
new() -> Pkcs11GetTpmTokenInfoReply14841     fn new() -> Pkcs11GetTpmTokenInfoReply {
14842         Pkcs11GetTpmTokenInfoReply::new()
14843     }
14844 
default_instance() -> &'static Pkcs11GetTpmTokenInfoReply14845     fn default_instance() -> &'static Pkcs11GetTpmTokenInfoReply {
14846         static instance: ::protobuf::rt::LazyV2<Pkcs11GetTpmTokenInfoReply> = ::protobuf::rt::LazyV2::INIT;
14847         instance.get(Pkcs11GetTpmTokenInfoReply::new)
14848     }
14849 }
14850 
14851 impl ::protobuf::Clear for Pkcs11GetTpmTokenInfoReply {
clear(&mut self)14852     fn clear(&mut self) {
14853         self.token_info.clear();
14854         self.unknown_fields.clear();
14855     }
14856 }
14857 
14858 impl ::protobuf::reflect::ProtobufValue for Pkcs11GetTpmTokenInfoReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef14859     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
14860         ::protobuf::reflect::ReflectValueRef::Message(self)
14861     }
14862 }
14863 
14864 #[derive(PartialEq,Clone,Default,Debug)]
14865 pub struct Pkcs11TerminateRequest {
14866     // message fields
14867     pub username: ::std::string::String,
14868     // special fields
14869     pub unknown_fields: ::protobuf::UnknownFields,
14870     pub cached_size: ::protobuf::CachedSize,
14871 }
14872 
14873 impl<'a> ::std::default::Default for &'a Pkcs11TerminateRequest {
default() -> &'a Pkcs11TerminateRequest14874     fn default() -> &'a Pkcs11TerminateRequest {
14875         <Pkcs11TerminateRequest as ::protobuf::Message>::default_instance()
14876     }
14877 }
14878 
14879 impl Pkcs11TerminateRequest {
new() -> Pkcs11TerminateRequest14880     pub fn new() -> Pkcs11TerminateRequest {
14881         ::std::default::Default::default()
14882     }
14883 
14884     // string username = 1;
14885 
14886 
get_username(&self) -> &str14887     pub fn get_username(&self) -> &str {
14888         &self.username
14889     }
clear_username(&mut self)14890     pub fn clear_username(&mut self) {
14891         self.username.clear();
14892     }
14893 
14894     // Param is passed by value, moved
set_username(&mut self, v: ::std::string::String)14895     pub fn set_username(&mut self, v: ::std::string::String) {
14896         self.username = v;
14897     }
14898 
14899     // Mutable pointer to the field.
14900     // If field is not initialized, it is initialized with default value first.
mut_username(&mut self) -> &mut ::std::string::String14901     pub fn mut_username(&mut self) -> &mut ::std::string::String {
14902         &mut self.username
14903     }
14904 
14905     // Take field
take_username(&mut self) -> ::std::string::String14906     pub fn take_username(&mut self) -> ::std::string::String {
14907         ::std::mem::replace(&mut self.username, ::std::string::String::new())
14908     }
14909 }
14910 
14911 impl ::protobuf::Message for Pkcs11TerminateRequest {
is_initialized(&self) -> bool14912     fn is_initialized(&self) -> bool {
14913         true
14914     }
14915 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>14916     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14917         while !is.eof()? {
14918             let (field_number, wire_type) = is.read_tag_unpack()?;
14919             match field_number {
14920                 1 => {
14921                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.username)?;
14922                 },
14923                 _ => {
14924                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
14925                 },
14926             };
14927         }
14928         ::std::result::Result::Ok(())
14929     }
14930 
14931     // Compute sizes of nested messages
14932     #[allow(unused_variables)]
compute_size(&self) -> u3214933     fn compute_size(&self) -> u32 {
14934         let mut my_size = 0;
14935         if !self.username.is_empty() {
14936             my_size += ::protobuf::rt::string_size(1, &self.username);
14937         }
14938         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
14939         self.cached_size.set(my_size);
14940         my_size
14941     }
14942 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>14943     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
14944         if !self.username.is_empty() {
14945             os.write_string(1, &self.username)?;
14946         }
14947         os.write_unknown_fields(self.get_unknown_fields())?;
14948         ::std::result::Result::Ok(())
14949     }
14950 
get_cached_size(&self) -> u3214951     fn get_cached_size(&self) -> u32 {
14952         self.cached_size.get()
14953     }
14954 
get_unknown_fields(&self) -> &::protobuf::UnknownFields14955     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
14956         &self.unknown_fields
14957     }
14958 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields14959     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
14960         &mut self.unknown_fields
14961     }
14962 
as_any(&self) -> &dyn (::std::any::Any)14963     fn as_any(&self) -> &dyn (::std::any::Any) {
14964         self as &dyn (::std::any::Any)
14965     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)14966     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
14967         self as &mut dyn (::std::any::Any)
14968     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>14969     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
14970         self
14971     }
14972 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor14973     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
14974         Self::descriptor_static()
14975     }
14976 
new() -> Pkcs11TerminateRequest14977     fn new() -> Pkcs11TerminateRequest {
14978         Pkcs11TerminateRequest::new()
14979     }
14980 
default_instance() -> &'static Pkcs11TerminateRequest14981     fn default_instance() -> &'static Pkcs11TerminateRequest {
14982         static instance: ::protobuf::rt::LazyV2<Pkcs11TerminateRequest> = ::protobuf::rt::LazyV2::INIT;
14983         instance.get(Pkcs11TerminateRequest::new)
14984     }
14985 }
14986 
14987 impl ::protobuf::Clear for Pkcs11TerminateRequest {
clear(&mut self)14988     fn clear(&mut self) {
14989         self.username.clear();
14990         self.unknown_fields.clear();
14991     }
14992 }
14993 
14994 impl ::protobuf::reflect::ProtobufValue for Pkcs11TerminateRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef14995     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
14996         ::protobuf::reflect::ReflectValueRef::Message(self)
14997     }
14998 }
14999 
15000 #[derive(PartialEq,Clone,Default,Debug)]
15001 pub struct Pkcs11TerminateReply {
15002     // special fields
15003     pub unknown_fields: ::protobuf::UnknownFields,
15004     pub cached_size: ::protobuf::CachedSize,
15005 }
15006 
15007 impl<'a> ::std::default::Default for &'a Pkcs11TerminateReply {
default() -> &'a Pkcs11TerminateReply15008     fn default() -> &'a Pkcs11TerminateReply {
15009         <Pkcs11TerminateReply as ::protobuf::Message>::default_instance()
15010     }
15011 }
15012 
15013 impl Pkcs11TerminateReply {
new() -> Pkcs11TerminateReply15014     pub fn new() -> Pkcs11TerminateReply {
15015         ::std::default::Default::default()
15016     }
15017 }
15018 
15019 impl ::protobuf::Message for Pkcs11TerminateReply {
is_initialized(&self) -> bool15020     fn is_initialized(&self) -> bool {
15021         true
15022     }
15023 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>15024     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15025         while !is.eof()? {
15026             let (field_number, wire_type) = is.read_tag_unpack()?;
15027             match field_number {
15028                 _ => {
15029                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
15030                 },
15031             };
15032         }
15033         ::std::result::Result::Ok(())
15034     }
15035 
15036     // Compute sizes of nested messages
15037     #[allow(unused_variables)]
compute_size(&self) -> u3215038     fn compute_size(&self) -> u32 {
15039         let mut my_size = 0;
15040         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
15041         self.cached_size.set(my_size);
15042         my_size
15043     }
15044 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>15045     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15046         os.write_unknown_fields(self.get_unknown_fields())?;
15047         ::std::result::Result::Ok(())
15048     }
15049 
get_cached_size(&self) -> u3215050     fn get_cached_size(&self) -> u32 {
15051         self.cached_size.get()
15052     }
15053 
get_unknown_fields(&self) -> &::protobuf::UnknownFields15054     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
15055         &self.unknown_fields
15056     }
15057 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields15058     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
15059         &mut self.unknown_fields
15060     }
15061 
as_any(&self) -> &dyn (::std::any::Any)15062     fn as_any(&self) -> &dyn (::std::any::Any) {
15063         self as &dyn (::std::any::Any)
15064     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)15065     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
15066         self as &mut dyn (::std::any::Any)
15067     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>15068     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
15069         self
15070     }
15071 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor15072     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
15073         Self::descriptor_static()
15074     }
15075 
new() -> Pkcs11TerminateReply15076     fn new() -> Pkcs11TerminateReply {
15077         Pkcs11TerminateReply::new()
15078     }
15079 
default_instance() -> &'static Pkcs11TerminateReply15080     fn default_instance() -> &'static Pkcs11TerminateReply {
15081         static instance: ::protobuf::rt::LazyV2<Pkcs11TerminateReply> = ::protobuf::rt::LazyV2::INIT;
15082         instance.get(Pkcs11TerminateReply::new)
15083     }
15084 }
15085 
15086 impl ::protobuf::Clear for Pkcs11TerminateReply {
clear(&mut self)15087     fn clear(&mut self) {
15088         self.unknown_fields.clear();
15089     }
15090 }
15091 
15092 impl ::protobuf::reflect::ProtobufValue for Pkcs11TerminateReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef15093     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
15094         ::protobuf::reflect::ReflectValueRef::Message(self)
15095     }
15096 }
15097 
15098 #[derive(PartialEq,Clone,Default,Debug)]
15099 pub struct Pkcs11RestoreTpmTokensRequest {
15100     // special fields
15101     pub unknown_fields: ::protobuf::UnknownFields,
15102     pub cached_size: ::protobuf::CachedSize,
15103 }
15104 
15105 impl<'a> ::std::default::Default for &'a Pkcs11RestoreTpmTokensRequest {
default() -> &'a Pkcs11RestoreTpmTokensRequest15106     fn default() -> &'a Pkcs11RestoreTpmTokensRequest {
15107         <Pkcs11RestoreTpmTokensRequest as ::protobuf::Message>::default_instance()
15108     }
15109 }
15110 
15111 impl Pkcs11RestoreTpmTokensRequest {
new() -> Pkcs11RestoreTpmTokensRequest15112     pub fn new() -> Pkcs11RestoreTpmTokensRequest {
15113         ::std::default::Default::default()
15114     }
15115 }
15116 
15117 impl ::protobuf::Message for Pkcs11RestoreTpmTokensRequest {
is_initialized(&self) -> bool15118     fn is_initialized(&self) -> bool {
15119         true
15120     }
15121 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>15122     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15123         while !is.eof()? {
15124             let (field_number, wire_type) = is.read_tag_unpack()?;
15125             match field_number {
15126                 _ => {
15127                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
15128                 },
15129             };
15130         }
15131         ::std::result::Result::Ok(())
15132     }
15133 
15134     // Compute sizes of nested messages
15135     #[allow(unused_variables)]
compute_size(&self) -> u3215136     fn compute_size(&self) -> u32 {
15137         let mut my_size = 0;
15138         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
15139         self.cached_size.set(my_size);
15140         my_size
15141     }
15142 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>15143     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15144         os.write_unknown_fields(self.get_unknown_fields())?;
15145         ::std::result::Result::Ok(())
15146     }
15147 
get_cached_size(&self) -> u3215148     fn get_cached_size(&self) -> u32 {
15149         self.cached_size.get()
15150     }
15151 
get_unknown_fields(&self) -> &::protobuf::UnknownFields15152     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
15153         &self.unknown_fields
15154     }
15155 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields15156     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
15157         &mut self.unknown_fields
15158     }
15159 
as_any(&self) -> &dyn (::std::any::Any)15160     fn as_any(&self) -> &dyn (::std::any::Any) {
15161         self as &dyn (::std::any::Any)
15162     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)15163     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
15164         self as &mut dyn (::std::any::Any)
15165     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>15166     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
15167         self
15168     }
15169 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor15170     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
15171         Self::descriptor_static()
15172     }
15173 
new() -> Pkcs11RestoreTpmTokensRequest15174     fn new() -> Pkcs11RestoreTpmTokensRequest {
15175         Pkcs11RestoreTpmTokensRequest::new()
15176     }
15177 
default_instance() -> &'static Pkcs11RestoreTpmTokensRequest15178     fn default_instance() -> &'static Pkcs11RestoreTpmTokensRequest {
15179         static instance: ::protobuf::rt::LazyV2<Pkcs11RestoreTpmTokensRequest> = ::protobuf::rt::LazyV2::INIT;
15180         instance.get(Pkcs11RestoreTpmTokensRequest::new)
15181     }
15182 }
15183 
15184 impl ::protobuf::Clear for Pkcs11RestoreTpmTokensRequest {
clear(&mut self)15185     fn clear(&mut self) {
15186         self.unknown_fields.clear();
15187     }
15188 }
15189 
15190 impl ::protobuf::reflect::ProtobufValue for Pkcs11RestoreTpmTokensRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef15191     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
15192         ::protobuf::reflect::ReflectValueRef::Message(self)
15193     }
15194 }
15195 
15196 #[derive(PartialEq,Clone,Default,Debug)]
15197 pub struct Pkcs11RestoreTpmTokensReply {
15198     // special fields
15199     pub unknown_fields: ::protobuf::UnknownFields,
15200     pub cached_size: ::protobuf::CachedSize,
15201 }
15202 
15203 impl<'a> ::std::default::Default for &'a Pkcs11RestoreTpmTokensReply {
default() -> &'a Pkcs11RestoreTpmTokensReply15204     fn default() -> &'a Pkcs11RestoreTpmTokensReply {
15205         <Pkcs11RestoreTpmTokensReply as ::protobuf::Message>::default_instance()
15206     }
15207 }
15208 
15209 impl Pkcs11RestoreTpmTokensReply {
new() -> Pkcs11RestoreTpmTokensReply15210     pub fn new() -> Pkcs11RestoreTpmTokensReply {
15211         ::std::default::Default::default()
15212     }
15213 }
15214 
15215 impl ::protobuf::Message for Pkcs11RestoreTpmTokensReply {
is_initialized(&self) -> bool15216     fn is_initialized(&self) -> bool {
15217         true
15218     }
15219 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>15220     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15221         while !is.eof()? {
15222             let (field_number, wire_type) = is.read_tag_unpack()?;
15223             match field_number {
15224                 _ => {
15225                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
15226                 },
15227             };
15228         }
15229         ::std::result::Result::Ok(())
15230     }
15231 
15232     // Compute sizes of nested messages
15233     #[allow(unused_variables)]
compute_size(&self) -> u3215234     fn compute_size(&self) -> u32 {
15235         let mut my_size = 0;
15236         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
15237         self.cached_size.set(my_size);
15238         my_size
15239     }
15240 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>15241     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15242         os.write_unknown_fields(self.get_unknown_fields())?;
15243         ::std::result::Result::Ok(())
15244     }
15245 
get_cached_size(&self) -> u3215246     fn get_cached_size(&self) -> u32 {
15247         self.cached_size.get()
15248     }
15249 
get_unknown_fields(&self) -> &::protobuf::UnknownFields15250     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
15251         &self.unknown_fields
15252     }
15253 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields15254     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
15255         &mut self.unknown_fields
15256     }
15257 
as_any(&self) -> &dyn (::std::any::Any)15258     fn as_any(&self) -> &dyn (::std::any::Any) {
15259         self as &dyn (::std::any::Any)
15260     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)15261     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
15262         self as &mut dyn (::std::any::Any)
15263     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>15264     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
15265         self
15266     }
15267 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor15268     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
15269         Self::descriptor_static()
15270     }
15271 
new() -> Pkcs11RestoreTpmTokensReply15272     fn new() -> Pkcs11RestoreTpmTokensReply {
15273         Pkcs11RestoreTpmTokensReply::new()
15274     }
15275 
default_instance() -> &'static Pkcs11RestoreTpmTokensReply15276     fn default_instance() -> &'static Pkcs11RestoreTpmTokensReply {
15277         static instance: ::protobuf::rt::LazyV2<Pkcs11RestoreTpmTokensReply> = ::protobuf::rt::LazyV2::INIT;
15278         instance.get(Pkcs11RestoreTpmTokensReply::new)
15279     }
15280 }
15281 
15282 impl ::protobuf::Clear for Pkcs11RestoreTpmTokensReply {
clear(&mut self)15283     fn clear(&mut self) {
15284         self.unknown_fields.clear();
15285     }
15286 }
15287 
15288 impl ::protobuf::reflect::ProtobufValue for Pkcs11RestoreTpmTokensReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef15289     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
15290         ::protobuf::reflect::ReflectValueRef::Message(self)
15291     }
15292 }
15293 
15294 #[derive(PartialEq,Clone,Default,Debug)]
15295 pub struct InstallAttributesGetRequest {
15296     // message fields
15297     pub name: ::std::string::String,
15298     // special fields
15299     pub unknown_fields: ::protobuf::UnknownFields,
15300     pub cached_size: ::protobuf::CachedSize,
15301 }
15302 
15303 impl<'a> ::std::default::Default for &'a InstallAttributesGetRequest {
default() -> &'a InstallAttributesGetRequest15304     fn default() -> &'a InstallAttributesGetRequest {
15305         <InstallAttributesGetRequest as ::protobuf::Message>::default_instance()
15306     }
15307 }
15308 
15309 impl InstallAttributesGetRequest {
new() -> InstallAttributesGetRequest15310     pub fn new() -> InstallAttributesGetRequest {
15311         ::std::default::Default::default()
15312     }
15313 
15314     // string name = 1;
15315 
15316 
get_name(&self) -> &str15317     pub fn get_name(&self) -> &str {
15318         &self.name
15319     }
clear_name(&mut self)15320     pub fn clear_name(&mut self) {
15321         self.name.clear();
15322     }
15323 
15324     // Param is passed by value, moved
set_name(&mut self, v: ::std::string::String)15325     pub fn set_name(&mut self, v: ::std::string::String) {
15326         self.name = v;
15327     }
15328 
15329     // Mutable pointer to the field.
15330     // If field is not initialized, it is initialized with default value first.
mut_name(&mut self) -> &mut ::std::string::String15331     pub fn mut_name(&mut self) -> &mut ::std::string::String {
15332         &mut self.name
15333     }
15334 
15335     // Take field
take_name(&mut self) -> ::std::string::String15336     pub fn take_name(&mut self) -> ::std::string::String {
15337         ::std::mem::replace(&mut self.name, ::std::string::String::new())
15338     }
15339 }
15340 
15341 impl ::protobuf::Message for InstallAttributesGetRequest {
is_initialized(&self) -> bool15342     fn is_initialized(&self) -> bool {
15343         true
15344     }
15345 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>15346     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15347         while !is.eof()? {
15348             let (field_number, wire_type) = is.read_tag_unpack()?;
15349             match field_number {
15350                 1 => {
15351                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
15352                 },
15353                 _ => {
15354                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
15355                 },
15356             };
15357         }
15358         ::std::result::Result::Ok(())
15359     }
15360 
15361     // Compute sizes of nested messages
15362     #[allow(unused_variables)]
compute_size(&self) -> u3215363     fn compute_size(&self) -> u32 {
15364         let mut my_size = 0;
15365         if !self.name.is_empty() {
15366             my_size += ::protobuf::rt::string_size(1, &self.name);
15367         }
15368         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
15369         self.cached_size.set(my_size);
15370         my_size
15371     }
15372 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>15373     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15374         if !self.name.is_empty() {
15375             os.write_string(1, &self.name)?;
15376         }
15377         os.write_unknown_fields(self.get_unknown_fields())?;
15378         ::std::result::Result::Ok(())
15379     }
15380 
get_cached_size(&self) -> u3215381     fn get_cached_size(&self) -> u32 {
15382         self.cached_size.get()
15383     }
15384 
get_unknown_fields(&self) -> &::protobuf::UnknownFields15385     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
15386         &self.unknown_fields
15387     }
15388 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields15389     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
15390         &mut self.unknown_fields
15391     }
15392 
as_any(&self) -> &dyn (::std::any::Any)15393     fn as_any(&self) -> &dyn (::std::any::Any) {
15394         self as &dyn (::std::any::Any)
15395     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)15396     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
15397         self as &mut dyn (::std::any::Any)
15398     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>15399     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
15400         self
15401     }
15402 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor15403     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
15404         Self::descriptor_static()
15405     }
15406 
new() -> InstallAttributesGetRequest15407     fn new() -> InstallAttributesGetRequest {
15408         InstallAttributesGetRequest::new()
15409     }
15410 
default_instance() -> &'static InstallAttributesGetRequest15411     fn default_instance() -> &'static InstallAttributesGetRequest {
15412         static instance: ::protobuf::rt::LazyV2<InstallAttributesGetRequest> = ::protobuf::rt::LazyV2::INIT;
15413         instance.get(InstallAttributesGetRequest::new)
15414     }
15415 }
15416 
15417 impl ::protobuf::Clear for InstallAttributesGetRequest {
clear(&mut self)15418     fn clear(&mut self) {
15419         self.name.clear();
15420         self.unknown_fields.clear();
15421     }
15422 }
15423 
15424 impl ::protobuf::reflect::ProtobufValue for InstallAttributesGetRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef15425     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
15426         ::protobuf::reflect::ReflectValueRef::Message(self)
15427     }
15428 }
15429 
15430 #[derive(PartialEq,Clone,Default,Debug)]
15431 pub struct InstallAttributesGetReply {
15432     // message fields
15433     pub error: CryptohomeErrorCode,
15434     pub value: ::std::vec::Vec<u8>,
15435     // special fields
15436     pub unknown_fields: ::protobuf::UnknownFields,
15437     pub cached_size: ::protobuf::CachedSize,
15438 }
15439 
15440 impl<'a> ::std::default::Default for &'a InstallAttributesGetReply {
default() -> &'a InstallAttributesGetReply15441     fn default() -> &'a InstallAttributesGetReply {
15442         <InstallAttributesGetReply as ::protobuf::Message>::default_instance()
15443     }
15444 }
15445 
15446 impl InstallAttributesGetReply {
new() -> InstallAttributesGetReply15447     pub fn new() -> InstallAttributesGetReply {
15448         ::std::default::Default::default()
15449     }
15450 
15451     // .user_data_auth.CryptohomeErrorCode error = 1;
15452 
15453 
get_error(&self) -> CryptohomeErrorCode15454     pub fn get_error(&self) -> CryptohomeErrorCode {
15455         self.error
15456     }
clear_error(&mut self)15457     pub fn clear_error(&mut self) {
15458         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
15459     }
15460 
15461     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)15462     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
15463         self.error = v;
15464     }
15465 
15466     // bytes value = 2;
15467 
15468 
get_value(&self) -> &[u8]15469     pub fn get_value(&self) -> &[u8] {
15470         &self.value
15471     }
clear_value(&mut self)15472     pub fn clear_value(&mut self) {
15473         self.value.clear();
15474     }
15475 
15476     // Param is passed by value, moved
set_value(&mut self, v: ::std::vec::Vec<u8>)15477     pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {
15478         self.value = v;
15479     }
15480 
15481     // Mutable pointer to the field.
15482     // If field is not initialized, it is initialized with default value first.
mut_value(&mut self) -> &mut ::std::vec::Vec<u8>15483     pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {
15484         &mut self.value
15485     }
15486 
15487     // Take field
take_value(&mut self) -> ::std::vec::Vec<u8>15488     pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {
15489         ::std::mem::replace(&mut self.value, ::std::vec::Vec::new())
15490     }
15491 }
15492 
15493 impl ::protobuf::Message for InstallAttributesGetReply {
is_initialized(&self) -> bool15494     fn is_initialized(&self) -> bool {
15495         true
15496     }
15497 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>15498     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15499         while !is.eof()? {
15500             let (field_number, wire_type) = is.read_tag_unpack()?;
15501             match field_number {
15502                 1 => {
15503                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
15504                 },
15505                 2 => {
15506                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?;
15507                 },
15508                 _ => {
15509                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
15510                 },
15511             };
15512         }
15513         ::std::result::Result::Ok(())
15514     }
15515 
15516     // Compute sizes of nested messages
15517     #[allow(unused_variables)]
compute_size(&self) -> u3215518     fn compute_size(&self) -> u32 {
15519         let mut my_size = 0;
15520         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
15521             my_size += ::protobuf::rt::enum_size(1, self.error);
15522         }
15523         if !self.value.is_empty() {
15524             my_size += ::protobuf::rt::bytes_size(2, &self.value);
15525         }
15526         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
15527         self.cached_size.set(my_size);
15528         my_size
15529     }
15530 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>15531     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15532         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
15533             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
15534         }
15535         if !self.value.is_empty() {
15536             os.write_bytes(2, &self.value)?;
15537         }
15538         os.write_unknown_fields(self.get_unknown_fields())?;
15539         ::std::result::Result::Ok(())
15540     }
15541 
get_cached_size(&self) -> u3215542     fn get_cached_size(&self) -> u32 {
15543         self.cached_size.get()
15544     }
15545 
get_unknown_fields(&self) -> &::protobuf::UnknownFields15546     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
15547         &self.unknown_fields
15548     }
15549 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields15550     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
15551         &mut self.unknown_fields
15552     }
15553 
as_any(&self) -> &dyn (::std::any::Any)15554     fn as_any(&self) -> &dyn (::std::any::Any) {
15555         self as &dyn (::std::any::Any)
15556     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)15557     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
15558         self as &mut dyn (::std::any::Any)
15559     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>15560     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
15561         self
15562     }
15563 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor15564     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
15565         Self::descriptor_static()
15566     }
15567 
new() -> InstallAttributesGetReply15568     fn new() -> InstallAttributesGetReply {
15569         InstallAttributesGetReply::new()
15570     }
15571 
default_instance() -> &'static InstallAttributesGetReply15572     fn default_instance() -> &'static InstallAttributesGetReply {
15573         static instance: ::protobuf::rt::LazyV2<InstallAttributesGetReply> = ::protobuf::rt::LazyV2::INIT;
15574         instance.get(InstallAttributesGetReply::new)
15575     }
15576 }
15577 
15578 impl ::protobuf::Clear for InstallAttributesGetReply {
clear(&mut self)15579     fn clear(&mut self) {
15580         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
15581         self.value.clear();
15582         self.unknown_fields.clear();
15583     }
15584 }
15585 
15586 impl ::protobuf::reflect::ProtobufValue for InstallAttributesGetReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef15587     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
15588         ::protobuf::reflect::ReflectValueRef::Message(self)
15589     }
15590 }
15591 
15592 #[derive(PartialEq,Clone,Default,Debug)]
15593 pub struct InstallAttributesSetRequest {
15594     // message fields
15595     pub name: ::std::string::String,
15596     pub value: ::std::vec::Vec<u8>,
15597     // special fields
15598     pub unknown_fields: ::protobuf::UnknownFields,
15599     pub cached_size: ::protobuf::CachedSize,
15600 }
15601 
15602 impl<'a> ::std::default::Default for &'a InstallAttributesSetRequest {
default() -> &'a InstallAttributesSetRequest15603     fn default() -> &'a InstallAttributesSetRequest {
15604         <InstallAttributesSetRequest as ::protobuf::Message>::default_instance()
15605     }
15606 }
15607 
15608 impl InstallAttributesSetRequest {
new() -> InstallAttributesSetRequest15609     pub fn new() -> InstallAttributesSetRequest {
15610         ::std::default::Default::default()
15611     }
15612 
15613     // string name = 1;
15614 
15615 
get_name(&self) -> &str15616     pub fn get_name(&self) -> &str {
15617         &self.name
15618     }
clear_name(&mut self)15619     pub fn clear_name(&mut self) {
15620         self.name.clear();
15621     }
15622 
15623     // Param is passed by value, moved
set_name(&mut self, v: ::std::string::String)15624     pub fn set_name(&mut self, v: ::std::string::String) {
15625         self.name = v;
15626     }
15627 
15628     // Mutable pointer to the field.
15629     // If field is not initialized, it is initialized with default value first.
mut_name(&mut self) -> &mut ::std::string::String15630     pub fn mut_name(&mut self) -> &mut ::std::string::String {
15631         &mut self.name
15632     }
15633 
15634     // Take field
take_name(&mut self) -> ::std::string::String15635     pub fn take_name(&mut self) -> ::std::string::String {
15636         ::std::mem::replace(&mut self.name, ::std::string::String::new())
15637     }
15638 
15639     // bytes value = 2;
15640 
15641 
get_value(&self) -> &[u8]15642     pub fn get_value(&self) -> &[u8] {
15643         &self.value
15644     }
clear_value(&mut self)15645     pub fn clear_value(&mut self) {
15646         self.value.clear();
15647     }
15648 
15649     // Param is passed by value, moved
set_value(&mut self, v: ::std::vec::Vec<u8>)15650     pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {
15651         self.value = v;
15652     }
15653 
15654     // Mutable pointer to the field.
15655     // If field is not initialized, it is initialized with default value first.
mut_value(&mut self) -> &mut ::std::vec::Vec<u8>15656     pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {
15657         &mut self.value
15658     }
15659 
15660     // Take field
take_value(&mut self) -> ::std::vec::Vec<u8>15661     pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {
15662         ::std::mem::replace(&mut self.value, ::std::vec::Vec::new())
15663     }
15664 }
15665 
15666 impl ::protobuf::Message for InstallAttributesSetRequest {
is_initialized(&self) -> bool15667     fn is_initialized(&self) -> bool {
15668         true
15669     }
15670 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>15671     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15672         while !is.eof()? {
15673             let (field_number, wire_type) = is.read_tag_unpack()?;
15674             match field_number {
15675                 1 => {
15676                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
15677                 },
15678                 2 => {
15679                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?;
15680                 },
15681                 _ => {
15682                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
15683                 },
15684             };
15685         }
15686         ::std::result::Result::Ok(())
15687     }
15688 
15689     // Compute sizes of nested messages
15690     #[allow(unused_variables)]
compute_size(&self) -> u3215691     fn compute_size(&self) -> u32 {
15692         let mut my_size = 0;
15693         if !self.name.is_empty() {
15694             my_size += ::protobuf::rt::string_size(1, &self.name);
15695         }
15696         if !self.value.is_empty() {
15697             my_size += ::protobuf::rt::bytes_size(2, &self.value);
15698         }
15699         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
15700         self.cached_size.set(my_size);
15701         my_size
15702     }
15703 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>15704     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15705         if !self.name.is_empty() {
15706             os.write_string(1, &self.name)?;
15707         }
15708         if !self.value.is_empty() {
15709             os.write_bytes(2, &self.value)?;
15710         }
15711         os.write_unknown_fields(self.get_unknown_fields())?;
15712         ::std::result::Result::Ok(())
15713     }
15714 
get_cached_size(&self) -> u3215715     fn get_cached_size(&self) -> u32 {
15716         self.cached_size.get()
15717     }
15718 
get_unknown_fields(&self) -> &::protobuf::UnknownFields15719     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
15720         &self.unknown_fields
15721     }
15722 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields15723     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
15724         &mut self.unknown_fields
15725     }
15726 
as_any(&self) -> &dyn (::std::any::Any)15727     fn as_any(&self) -> &dyn (::std::any::Any) {
15728         self as &dyn (::std::any::Any)
15729     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)15730     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
15731         self as &mut dyn (::std::any::Any)
15732     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>15733     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
15734         self
15735     }
15736 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor15737     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
15738         Self::descriptor_static()
15739     }
15740 
new() -> InstallAttributesSetRequest15741     fn new() -> InstallAttributesSetRequest {
15742         InstallAttributesSetRequest::new()
15743     }
15744 
default_instance() -> &'static InstallAttributesSetRequest15745     fn default_instance() -> &'static InstallAttributesSetRequest {
15746         static instance: ::protobuf::rt::LazyV2<InstallAttributesSetRequest> = ::protobuf::rt::LazyV2::INIT;
15747         instance.get(InstallAttributesSetRequest::new)
15748     }
15749 }
15750 
15751 impl ::protobuf::Clear for InstallAttributesSetRequest {
clear(&mut self)15752     fn clear(&mut self) {
15753         self.name.clear();
15754         self.value.clear();
15755         self.unknown_fields.clear();
15756     }
15757 }
15758 
15759 impl ::protobuf::reflect::ProtobufValue for InstallAttributesSetRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef15760     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
15761         ::protobuf::reflect::ReflectValueRef::Message(self)
15762     }
15763 }
15764 
15765 #[derive(PartialEq,Clone,Default,Debug)]
15766 pub struct InstallAttributesSetReply {
15767     // message fields
15768     pub error: CryptohomeErrorCode,
15769     // special fields
15770     pub unknown_fields: ::protobuf::UnknownFields,
15771     pub cached_size: ::protobuf::CachedSize,
15772 }
15773 
15774 impl<'a> ::std::default::Default for &'a InstallAttributesSetReply {
default() -> &'a InstallAttributesSetReply15775     fn default() -> &'a InstallAttributesSetReply {
15776         <InstallAttributesSetReply as ::protobuf::Message>::default_instance()
15777     }
15778 }
15779 
15780 impl InstallAttributesSetReply {
new() -> InstallAttributesSetReply15781     pub fn new() -> InstallAttributesSetReply {
15782         ::std::default::Default::default()
15783     }
15784 
15785     // .user_data_auth.CryptohomeErrorCode error = 1;
15786 
15787 
get_error(&self) -> CryptohomeErrorCode15788     pub fn get_error(&self) -> CryptohomeErrorCode {
15789         self.error
15790     }
clear_error(&mut self)15791     pub fn clear_error(&mut self) {
15792         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
15793     }
15794 
15795     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)15796     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
15797         self.error = v;
15798     }
15799 }
15800 
15801 impl ::protobuf::Message for InstallAttributesSetReply {
is_initialized(&self) -> bool15802     fn is_initialized(&self) -> bool {
15803         true
15804     }
15805 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>15806     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15807         while !is.eof()? {
15808             let (field_number, wire_type) = is.read_tag_unpack()?;
15809             match field_number {
15810                 1 => {
15811                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
15812                 },
15813                 _ => {
15814                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
15815                 },
15816             };
15817         }
15818         ::std::result::Result::Ok(())
15819     }
15820 
15821     // Compute sizes of nested messages
15822     #[allow(unused_variables)]
compute_size(&self) -> u3215823     fn compute_size(&self) -> u32 {
15824         let mut my_size = 0;
15825         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
15826             my_size += ::protobuf::rt::enum_size(1, self.error);
15827         }
15828         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
15829         self.cached_size.set(my_size);
15830         my_size
15831     }
15832 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>15833     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15834         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
15835             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
15836         }
15837         os.write_unknown_fields(self.get_unknown_fields())?;
15838         ::std::result::Result::Ok(())
15839     }
15840 
get_cached_size(&self) -> u3215841     fn get_cached_size(&self) -> u32 {
15842         self.cached_size.get()
15843     }
15844 
get_unknown_fields(&self) -> &::protobuf::UnknownFields15845     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
15846         &self.unknown_fields
15847     }
15848 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields15849     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
15850         &mut self.unknown_fields
15851     }
15852 
as_any(&self) -> &dyn (::std::any::Any)15853     fn as_any(&self) -> &dyn (::std::any::Any) {
15854         self as &dyn (::std::any::Any)
15855     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)15856     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
15857         self as &mut dyn (::std::any::Any)
15858     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>15859     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
15860         self
15861     }
15862 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor15863     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
15864         Self::descriptor_static()
15865     }
15866 
new() -> InstallAttributesSetReply15867     fn new() -> InstallAttributesSetReply {
15868         InstallAttributesSetReply::new()
15869     }
15870 
default_instance() -> &'static InstallAttributesSetReply15871     fn default_instance() -> &'static InstallAttributesSetReply {
15872         static instance: ::protobuf::rt::LazyV2<InstallAttributesSetReply> = ::protobuf::rt::LazyV2::INIT;
15873         instance.get(InstallAttributesSetReply::new)
15874     }
15875 }
15876 
15877 impl ::protobuf::Clear for InstallAttributesSetReply {
clear(&mut self)15878     fn clear(&mut self) {
15879         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
15880         self.unknown_fields.clear();
15881     }
15882 }
15883 
15884 impl ::protobuf::reflect::ProtobufValue for InstallAttributesSetReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef15885     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
15886         ::protobuf::reflect::ReflectValueRef::Message(self)
15887     }
15888 }
15889 
15890 #[derive(PartialEq,Clone,Default,Debug)]
15891 pub struct InstallAttributesFinalizeRequest {
15892     // special fields
15893     pub unknown_fields: ::protobuf::UnknownFields,
15894     pub cached_size: ::protobuf::CachedSize,
15895 }
15896 
15897 impl<'a> ::std::default::Default for &'a InstallAttributesFinalizeRequest {
default() -> &'a InstallAttributesFinalizeRequest15898     fn default() -> &'a InstallAttributesFinalizeRequest {
15899         <InstallAttributesFinalizeRequest as ::protobuf::Message>::default_instance()
15900     }
15901 }
15902 
15903 impl InstallAttributesFinalizeRequest {
new() -> InstallAttributesFinalizeRequest15904     pub fn new() -> InstallAttributesFinalizeRequest {
15905         ::std::default::Default::default()
15906     }
15907 }
15908 
15909 impl ::protobuf::Message for InstallAttributesFinalizeRequest {
is_initialized(&self) -> bool15910     fn is_initialized(&self) -> bool {
15911         true
15912     }
15913 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>15914     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15915         while !is.eof()? {
15916             let (field_number, wire_type) = is.read_tag_unpack()?;
15917             match field_number {
15918                 _ => {
15919                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
15920                 },
15921             };
15922         }
15923         ::std::result::Result::Ok(())
15924     }
15925 
15926     // Compute sizes of nested messages
15927     #[allow(unused_variables)]
compute_size(&self) -> u3215928     fn compute_size(&self) -> u32 {
15929         let mut my_size = 0;
15930         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
15931         self.cached_size.set(my_size);
15932         my_size
15933     }
15934 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>15935     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
15936         os.write_unknown_fields(self.get_unknown_fields())?;
15937         ::std::result::Result::Ok(())
15938     }
15939 
get_cached_size(&self) -> u3215940     fn get_cached_size(&self) -> u32 {
15941         self.cached_size.get()
15942     }
15943 
get_unknown_fields(&self) -> &::protobuf::UnknownFields15944     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
15945         &self.unknown_fields
15946     }
15947 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields15948     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
15949         &mut self.unknown_fields
15950     }
15951 
as_any(&self) -> &dyn (::std::any::Any)15952     fn as_any(&self) -> &dyn (::std::any::Any) {
15953         self as &dyn (::std::any::Any)
15954     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)15955     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
15956         self as &mut dyn (::std::any::Any)
15957     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>15958     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
15959         self
15960     }
15961 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor15962     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
15963         Self::descriptor_static()
15964     }
15965 
new() -> InstallAttributesFinalizeRequest15966     fn new() -> InstallAttributesFinalizeRequest {
15967         InstallAttributesFinalizeRequest::new()
15968     }
15969 
default_instance() -> &'static InstallAttributesFinalizeRequest15970     fn default_instance() -> &'static InstallAttributesFinalizeRequest {
15971         static instance: ::protobuf::rt::LazyV2<InstallAttributesFinalizeRequest> = ::protobuf::rt::LazyV2::INIT;
15972         instance.get(InstallAttributesFinalizeRequest::new)
15973     }
15974 }
15975 
15976 impl ::protobuf::Clear for InstallAttributesFinalizeRequest {
clear(&mut self)15977     fn clear(&mut self) {
15978         self.unknown_fields.clear();
15979     }
15980 }
15981 
15982 impl ::protobuf::reflect::ProtobufValue for InstallAttributesFinalizeRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef15983     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
15984         ::protobuf::reflect::ReflectValueRef::Message(self)
15985     }
15986 }
15987 
15988 #[derive(PartialEq,Clone,Default,Debug)]
15989 pub struct InstallAttributesFinalizeReply {
15990     // message fields
15991     pub error: CryptohomeErrorCode,
15992     // special fields
15993     pub unknown_fields: ::protobuf::UnknownFields,
15994     pub cached_size: ::protobuf::CachedSize,
15995 }
15996 
15997 impl<'a> ::std::default::Default for &'a InstallAttributesFinalizeReply {
default() -> &'a InstallAttributesFinalizeReply15998     fn default() -> &'a InstallAttributesFinalizeReply {
15999         <InstallAttributesFinalizeReply as ::protobuf::Message>::default_instance()
16000     }
16001 }
16002 
16003 impl InstallAttributesFinalizeReply {
new() -> InstallAttributesFinalizeReply16004     pub fn new() -> InstallAttributesFinalizeReply {
16005         ::std::default::Default::default()
16006     }
16007 
16008     // .user_data_auth.CryptohomeErrorCode error = 1;
16009 
16010 
get_error(&self) -> CryptohomeErrorCode16011     pub fn get_error(&self) -> CryptohomeErrorCode {
16012         self.error
16013     }
clear_error(&mut self)16014     pub fn clear_error(&mut self) {
16015         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
16016     }
16017 
16018     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)16019     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
16020         self.error = v;
16021     }
16022 }
16023 
16024 impl ::protobuf::Message for InstallAttributesFinalizeReply {
is_initialized(&self) -> bool16025     fn is_initialized(&self) -> bool {
16026         true
16027     }
16028 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>16029     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16030         while !is.eof()? {
16031             let (field_number, wire_type) = is.read_tag_unpack()?;
16032             match field_number {
16033                 1 => {
16034                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
16035                 },
16036                 _ => {
16037                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
16038                 },
16039             };
16040         }
16041         ::std::result::Result::Ok(())
16042     }
16043 
16044     // Compute sizes of nested messages
16045     #[allow(unused_variables)]
compute_size(&self) -> u3216046     fn compute_size(&self) -> u32 {
16047         let mut my_size = 0;
16048         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
16049             my_size += ::protobuf::rt::enum_size(1, self.error);
16050         }
16051         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
16052         self.cached_size.set(my_size);
16053         my_size
16054     }
16055 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>16056     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16057         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
16058             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
16059         }
16060         os.write_unknown_fields(self.get_unknown_fields())?;
16061         ::std::result::Result::Ok(())
16062     }
16063 
get_cached_size(&self) -> u3216064     fn get_cached_size(&self) -> u32 {
16065         self.cached_size.get()
16066     }
16067 
get_unknown_fields(&self) -> &::protobuf::UnknownFields16068     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
16069         &self.unknown_fields
16070     }
16071 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields16072     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
16073         &mut self.unknown_fields
16074     }
16075 
as_any(&self) -> &dyn (::std::any::Any)16076     fn as_any(&self) -> &dyn (::std::any::Any) {
16077         self as &dyn (::std::any::Any)
16078     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)16079     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
16080         self as &mut dyn (::std::any::Any)
16081     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>16082     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
16083         self
16084     }
16085 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor16086     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
16087         Self::descriptor_static()
16088     }
16089 
new() -> InstallAttributesFinalizeReply16090     fn new() -> InstallAttributesFinalizeReply {
16091         InstallAttributesFinalizeReply::new()
16092     }
16093 
default_instance() -> &'static InstallAttributesFinalizeReply16094     fn default_instance() -> &'static InstallAttributesFinalizeReply {
16095         static instance: ::protobuf::rt::LazyV2<InstallAttributesFinalizeReply> = ::protobuf::rt::LazyV2::INIT;
16096         instance.get(InstallAttributesFinalizeReply::new)
16097     }
16098 }
16099 
16100 impl ::protobuf::Clear for InstallAttributesFinalizeReply {
clear(&mut self)16101     fn clear(&mut self) {
16102         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
16103         self.unknown_fields.clear();
16104     }
16105 }
16106 
16107 impl ::protobuf::reflect::ProtobufValue for InstallAttributesFinalizeReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef16108     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
16109         ::protobuf::reflect::ReflectValueRef::Message(self)
16110     }
16111 }
16112 
16113 #[derive(PartialEq,Clone,Default,Debug)]
16114 pub struct InstallAttributesGetStatusRequest {
16115     // special fields
16116     pub unknown_fields: ::protobuf::UnknownFields,
16117     pub cached_size: ::protobuf::CachedSize,
16118 }
16119 
16120 impl<'a> ::std::default::Default for &'a InstallAttributesGetStatusRequest {
default() -> &'a InstallAttributesGetStatusRequest16121     fn default() -> &'a InstallAttributesGetStatusRequest {
16122         <InstallAttributesGetStatusRequest as ::protobuf::Message>::default_instance()
16123     }
16124 }
16125 
16126 impl InstallAttributesGetStatusRequest {
new() -> InstallAttributesGetStatusRequest16127     pub fn new() -> InstallAttributesGetStatusRequest {
16128         ::std::default::Default::default()
16129     }
16130 }
16131 
16132 impl ::protobuf::Message for InstallAttributesGetStatusRequest {
is_initialized(&self) -> bool16133     fn is_initialized(&self) -> bool {
16134         true
16135     }
16136 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>16137     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16138         while !is.eof()? {
16139             let (field_number, wire_type) = is.read_tag_unpack()?;
16140             match field_number {
16141                 _ => {
16142                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
16143                 },
16144             };
16145         }
16146         ::std::result::Result::Ok(())
16147     }
16148 
16149     // Compute sizes of nested messages
16150     #[allow(unused_variables)]
compute_size(&self) -> u3216151     fn compute_size(&self) -> u32 {
16152         let mut my_size = 0;
16153         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
16154         self.cached_size.set(my_size);
16155         my_size
16156     }
16157 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>16158     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16159         os.write_unknown_fields(self.get_unknown_fields())?;
16160         ::std::result::Result::Ok(())
16161     }
16162 
get_cached_size(&self) -> u3216163     fn get_cached_size(&self) -> u32 {
16164         self.cached_size.get()
16165     }
16166 
get_unknown_fields(&self) -> &::protobuf::UnknownFields16167     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
16168         &self.unknown_fields
16169     }
16170 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields16171     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
16172         &mut self.unknown_fields
16173     }
16174 
as_any(&self) -> &dyn (::std::any::Any)16175     fn as_any(&self) -> &dyn (::std::any::Any) {
16176         self as &dyn (::std::any::Any)
16177     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)16178     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
16179         self as &mut dyn (::std::any::Any)
16180     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>16181     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
16182         self
16183     }
16184 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor16185     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
16186         Self::descriptor_static()
16187     }
16188 
new() -> InstallAttributesGetStatusRequest16189     fn new() -> InstallAttributesGetStatusRequest {
16190         InstallAttributesGetStatusRequest::new()
16191     }
16192 
default_instance() -> &'static InstallAttributesGetStatusRequest16193     fn default_instance() -> &'static InstallAttributesGetStatusRequest {
16194         static instance: ::protobuf::rt::LazyV2<InstallAttributesGetStatusRequest> = ::protobuf::rt::LazyV2::INIT;
16195         instance.get(InstallAttributesGetStatusRequest::new)
16196     }
16197 }
16198 
16199 impl ::protobuf::Clear for InstallAttributesGetStatusRequest {
clear(&mut self)16200     fn clear(&mut self) {
16201         self.unknown_fields.clear();
16202     }
16203 }
16204 
16205 impl ::protobuf::reflect::ProtobufValue for InstallAttributesGetStatusRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef16206     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
16207         ::protobuf::reflect::ReflectValueRef::Message(self)
16208     }
16209 }
16210 
16211 #[derive(PartialEq,Clone,Default,Debug)]
16212 pub struct InstallAttributesGetStatusReply {
16213     // message fields
16214     pub error: CryptohomeErrorCode,
16215     pub count: i32,
16216     pub is_secure: bool,
16217     pub state: InstallAttributesState,
16218     // special fields
16219     pub unknown_fields: ::protobuf::UnknownFields,
16220     pub cached_size: ::protobuf::CachedSize,
16221 }
16222 
16223 impl<'a> ::std::default::Default for &'a InstallAttributesGetStatusReply {
default() -> &'a InstallAttributesGetStatusReply16224     fn default() -> &'a InstallAttributesGetStatusReply {
16225         <InstallAttributesGetStatusReply as ::protobuf::Message>::default_instance()
16226     }
16227 }
16228 
16229 impl InstallAttributesGetStatusReply {
new() -> InstallAttributesGetStatusReply16230     pub fn new() -> InstallAttributesGetStatusReply {
16231         ::std::default::Default::default()
16232     }
16233 
16234     // .user_data_auth.CryptohomeErrorCode error = 1;
16235 
16236 
get_error(&self) -> CryptohomeErrorCode16237     pub fn get_error(&self) -> CryptohomeErrorCode {
16238         self.error
16239     }
clear_error(&mut self)16240     pub fn clear_error(&mut self) {
16241         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
16242     }
16243 
16244     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)16245     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
16246         self.error = v;
16247     }
16248 
16249     // int32 count = 2;
16250 
16251 
get_count(&self) -> i3216252     pub fn get_count(&self) -> i32 {
16253         self.count
16254     }
clear_count(&mut self)16255     pub fn clear_count(&mut self) {
16256         self.count = 0;
16257     }
16258 
16259     // Param is passed by value, moved
set_count(&mut self, v: i32)16260     pub fn set_count(&mut self, v: i32) {
16261         self.count = v;
16262     }
16263 
16264     // bool is_secure = 3;
16265 
16266 
get_is_secure(&self) -> bool16267     pub fn get_is_secure(&self) -> bool {
16268         self.is_secure
16269     }
clear_is_secure(&mut self)16270     pub fn clear_is_secure(&mut self) {
16271         self.is_secure = false;
16272     }
16273 
16274     // Param is passed by value, moved
set_is_secure(&mut self, v: bool)16275     pub fn set_is_secure(&mut self, v: bool) {
16276         self.is_secure = v;
16277     }
16278 
16279     // .user_data_auth.InstallAttributesState state = 4;
16280 
16281 
get_state(&self) -> InstallAttributesState16282     pub fn get_state(&self) -> InstallAttributesState {
16283         self.state
16284     }
clear_state(&mut self)16285     pub fn clear_state(&mut self) {
16286         self.state = InstallAttributesState::UNKNOWN;
16287     }
16288 
16289     // Param is passed by value, moved
set_state(&mut self, v: InstallAttributesState)16290     pub fn set_state(&mut self, v: InstallAttributesState) {
16291         self.state = v;
16292     }
16293 }
16294 
16295 impl ::protobuf::Message for InstallAttributesGetStatusReply {
is_initialized(&self) -> bool16296     fn is_initialized(&self) -> bool {
16297         true
16298     }
16299 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>16300     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16301         while !is.eof()? {
16302             let (field_number, wire_type) = is.read_tag_unpack()?;
16303             match field_number {
16304                 1 => {
16305                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
16306                 },
16307                 2 => {
16308                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
16309                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
16310                     }
16311                     let tmp = is.read_int32()?;
16312                     self.count = tmp;
16313                 },
16314                 3 => {
16315                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
16316                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
16317                     }
16318                     let tmp = is.read_bool()?;
16319                     self.is_secure = tmp;
16320                 },
16321                 4 => {
16322                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 4, &mut self.unknown_fields)?
16323                 },
16324                 _ => {
16325                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
16326                 },
16327             };
16328         }
16329         ::std::result::Result::Ok(())
16330     }
16331 
16332     // Compute sizes of nested messages
16333     #[allow(unused_variables)]
compute_size(&self) -> u3216334     fn compute_size(&self) -> u32 {
16335         let mut my_size = 0;
16336         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
16337             my_size += ::protobuf::rt::enum_size(1, self.error);
16338         }
16339         if self.count != 0 {
16340             my_size += ::protobuf::rt::value_size(2, self.count, ::protobuf::wire_format::WireTypeVarint);
16341         }
16342         if self.is_secure != false {
16343             my_size += 2;
16344         }
16345         if self.state != InstallAttributesState::UNKNOWN {
16346             my_size += ::protobuf::rt::enum_size(4, self.state);
16347         }
16348         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
16349         self.cached_size.set(my_size);
16350         my_size
16351     }
16352 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>16353     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16354         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
16355             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
16356         }
16357         if self.count != 0 {
16358             os.write_int32(2, self.count)?;
16359         }
16360         if self.is_secure != false {
16361             os.write_bool(3, self.is_secure)?;
16362         }
16363         if self.state != InstallAttributesState::UNKNOWN {
16364             os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.state))?;
16365         }
16366         os.write_unknown_fields(self.get_unknown_fields())?;
16367         ::std::result::Result::Ok(())
16368     }
16369 
get_cached_size(&self) -> u3216370     fn get_cached_size(&self) -> u32 {
16371         self.cached_size.get()
16372     }
16373 
get_unknown_fields(&self) -> &::protobuf::UnknownFields16374     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
16375         &self.unknown_fields
16376     }
16377 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields16378     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
16379         &mut self.unknown_fields
16380     }
16381 
as_any(&self) -> &dyn (::std::any::Any)16382     fn as_any(&self) -> &dyn (::std::any::Any) {
16383         self as &dyn (::std::any::Any)
16384     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)16385     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
16386         self as &mut dyn (::std::any::Any)
16387     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>16388     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
16389         self
16390     }
16391 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor16392     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
16393         Self::descriptor_static()
16394     }
16395 
new() -> InstallAttributesGetStatusReply16396     fn new() -> InstallAttributesGetStatusReply {
16397         InstallAttributesGetStatusReply::new()
16398     }
16399 
default_instance() -> &'static InstallAttributesGetStatusReply16400     fn default_instance() -> &'static InstallAttributesGetStatusReply {
16401         static instance: ::protobuf::rt::LazyV2<InstallAttributesGetStatusReply> = ::protobuf::rt::LazyV2::INIT;
16402         instance.get(InstallAttributesGetStatusReply::new)
16403     }
16404 }
16405 
16406 impl ::protobuf::Clear for InstallAttributesGetStatusReply {
clear(&mut self)16407     fn clear(&mut self) {
16408         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
16409         self.count = 0;
16410         self.is_secure = false;
16411         self.state = InstallAttributesState::UNKNOWN;
16412         self.unknown_fields.clear();
16413     }
16414 }
16415 
16416 impl ::protobuf::reflect::ProtobufValue for InstallAttributesGetStatusReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef16417     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
16418         ::protobuf::reflect::ReflectValueRef::Message(self)
16419     }
16420 }
16421 
16422 #[derive(PartialEq,Clone,Default,Debug)]
16423 pub struct FirmwareManagementParameters {
16424     // message fields
16425     pub flags: u32,
16426     pub developer_key_hash: ::std::vec::Vec<u8>,
16427     // special fields
16428     pub unknown_fields: ::protobuf::UnknownFields,
16429     pub cached_size: ::protobuf::CachedSize,
16430 }
16431 
16432 impl<'a> ::std::default::Default for &'a FirmwareManagementParameters {
default() -> &'a FirmwareManagementParameters16433     fn default() -> &'a FirmwareManagementParameters {
16434         <FirmwareManagementParameters as ::protobuf::Message>::default_instance()
16435     }
16436 }
16437 
16438 impl FirmwareManagementParameters {
new() -> FirmwareManagementParameters16439     pub fn new() -> FirmwareManagementParameters {
16440         ::std::default::Default::default()
16441     }
16442 
16443     // uint32 flags = 1;
16444 
16445 
get_flags(&self) -> u3216446     pub fn get_flags(&self) -> u32 {
16447         self.flags
16448     }
clear_flags(&mut self)16449     pub fn clear_flags(&mut self) {
16450         self.flags = 0;
16451     }
16452 
16453     // Param is passed by value, moved
set_flags(&mut self, v: u32)16454     pub fn set_flags(&mut self, v: u32) {
16455         self.flags = v;
16456     }
16457 
16458     // bytes developer_key_hash = 2;
16459 
16460 
get_developer_key_hash(&self) -> &[u8]16461     pub fn get_developer_key_hash(&self) -> &[u8] {
16462         &self.developer_key_hash
16463     }
clear_developer_key_hash(&mut self)16464     pub fn clear_developer_key_hash(&mut self) {
16465         self.developer_key_hash.clear();
16466     }
16467 
16468     // Param is passed by value, moved
set_developer_key_hash(&mut self, v: ::std::vec::Vec<u8>)16469     pub fn set_developer_key_hash(&mut self, v: ::std::vec::Vec<u8>) {
16470         self.developer_key_hash = v;
16471     }
16472 
16473     // Mutable pointer to the field.
16474     // If field is not initialized, it is initialized with default value first.
mut_developer_key_hash(&mut self) -> &mut ::std::vec::Vec<u8>16475     pub fn mut_developer_key_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
16476         &mut self.developer_key_hash
16477     }
16478 
16479     // Take field
take_developer_key_hash(&mut self) -> ::std::vec::Vec<u8>16480     pub fn take_developer_key_hash(&mut self) -> ::std::vec::Vec<u8> {
16481         ::std::mem::replace(&mut self.developer_key_hash, ::std::vec::Vec::new())
16482     }
16483 }
16484 
16485 impl ::protobuf::Message for FirmwareManagementParameters {
is_initialized(&self) -> bool16486     fn is_initialized(&self) -> bool {
16487         true
16488     }
16489 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>16490     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16491         while !is.eof()? {
16492             let (field_number, wire_type) = is.read_tag_unpack()?;
16493             match field_number {
16494                 1 => {
16495                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
16496                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
16497                     }
16498                     let tmp = is.read_uint32()?;
16499                     self.flags = tmp;
16500                 },
16501                 2 => {
16502                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.developer_key_hash)?;
16503                 },
16504                 _ => {
16505                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
16506                 },
16507             };
16508         }
16509         ::std::result::Result::Ok(())
16510     }
16511 
16512     // Compute sizes of nested messages
16513     #[allow(unused_variables)]
compute_size(&self) -> u3216514     fn compute_size(&self) -> u32 {
16515         let mut my_size = 0;
16516         if self.flags != 0 {
16517             my_size += ::protobuf::rt::value_size(1, self.flags, ::protobuf::wire_format::WireTypeVarint);
16518         }
16519         if !self.developer_key_hash.is_empty() {
16520             my_size += ::protobuf::rt::bytes_size(2, &self.developer_key_hash);
16521         }
16522         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
16523         self.cached_size.set(my_size);
16524         my_size
16525     }
16526 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>16527     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16528         if self.flags != 0 {
16529             os.write_uint32(1, self.flags)?;
16530         }
16531         if !self.developer_key_hash.is_empty() {
16532             os.write_bytes(2, &self.developer_key_hash)?;
16533         }
16534         os.write_unknown_fields(self.get_unknown_fields())?;
16535         ::std::result::Result::Ok(())
16536     }
16537 
get_cached_size(&self) -> u3216538     fn get_cached_size(&self) -> u32 {
16539         self.cached_size.get()
16540     }
16541 
get_unknown_fields(&self) -> &::protobuf::UnknownFields16542     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
16543         &self.unknown_fields
16544     }
16545 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields16546     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
16547         &mut self.unknown_fields
16548     }
16549 
as_any(&self) -> &dyn (::std::any::Any)16550     fn as_any(&self) -> &dyn (::std::any::Any) {
16551         self as &dyn (::std::any::Any)
16552     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)16553     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
16554         self as &mut dyn (::std::any::Any)
16555     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>16556     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
16557         self
16558     }
16559 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor16560     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
16561         Self::descriptor_static()
16562     }
16563 
new() -> FirmwareManagementParameters16564     fn new() -> FirmwareManagementParameters {
16565         FirmwareManagementParameters::new()
16566     }
16567 
default_instance() -> &'static FirmwareManagementParameters16568     fn default_instance() -> &'static FirmwareManagementParameters {
16569         static instance: ::protobuf::rt::LazyV2<FirmwareManagementParameters> = ::protobuf::rt::LazyV2::INIT;
16570         instance.get(FirmwareManagementParameters::new)
16571     }
16572 }
16573 
16574 impl ::protobuf::Clear for FirmwareManagementParameters {
clear(&mut self)16575     fn clear(&mut self) {
16576         self.flags = 0;
16577         self.developer_key_hash.clear();
16578         self.unknown_fields.clear();
16579     }
16580 }
16581 
16582 impl ::protobuf::reflect::ProtobufValue for FirmwareManagementParameters {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef16583     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
16584         ::protobuf::reflect::ReflectValueRef::Message(self)
16585     }
16586 }
16587 
16588 #[derive(PartialEq,Clone,Default,Debug)]
16589 pub struct GetFirmwareManagementParametersRequest {
16590     // special fields
16591     pub unknown_fields: ::protobuf::UnknownFields,
16592     pub cached_size: ::protobuf::CachedSize,
16593 }
16594 
16595 impl<'a> ::std::default::Default for &'a GetFirmwareManagementParametersRequest {
default() -> &'a GetFirmwareManagementParametersRequest16596     fn default() -> &'a GetFirmwareManagementParametersRequest {
16597         <GetFirmwareManagementParametersRequest as ::protobuf::Message>::default_instance()
16598     }
16599 }
16600 
16601 impl GetFirmwareManagementParametersRequest {
new() -> GetFirmwareManagementParametersRequest16602     pub fn new() -> GetFirmwareManagementParametersRequest {
16603         ::std::default::Default::default()
16604     }
16605 }
16606 
16607 impl ::protobuf::Message for GetFirmwareManagementParametersRequest {
is_initialized(&self) -> bool16608     fn is_initialized(&self) -> bool {
16609         true
16610     }
16611 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>16612     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16613         while !is.eof()? {
16614             let (field_number, wire_type) = is.read_tag_unpack()?;
16615             match field_number {
16616                 _ => {
16617                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
16618                 },
16619             };
16620         }
16621         ::std::result::Result::Ok(())
16622     }
16623 
16624     // Compute sizes of nested messages
16625     #[allow(unused_variables)]
compute_size(&self) -> u3216626     fn compute_size(&self) -> u32 {
16627         let mut my_size = 0;
16628         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
16629         self.cached_size.set(my_size);
16630         my_size
16631     }
16632 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>16633     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16634         os.write_unknown_fields(self.get_unknown_fields())?;
16635         ::std::result::Result::Ok(())
16636     }
16637 
get_cached_size(&self) -> u3216638     fn get_cached_size(&self) -> u32 {
16639         self.cached_size.get()
16640     }
16641 
get_unknown_fields(&self) -> &::protobuf::UnknownFields16642     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
16643         &self.unknown_fields
16644     }
16645 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields16646     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
16647         &mut self.unknown_fields
16648     }
16649 
as_any(&self) -> &dyn (::std::any::Any)16650     fn as_any(&self) -> &dyn (::std::any::Any) {
16651         self as &dyn (::std::any::Any)
16652     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)16653     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
16654         self as &mut dyn (::std::any::Any)
16655     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>16656     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
16657         self
16658     }
16659 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor16660     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
16661         Self::descriptor_static()
16662     }
16663 
new() -> GetFirmwareManagementParametersRequest16664     fn new() -> GetFirmwareManagementParametersRequest {
16665         GetFirmwareManagementParametersRequest::new()
16666     }
16667 
default_instance() -> &'static GetFirmwareManagementParametersRequest16668     fn default_instance() -> &'static GetFirmwareManagementParametersRequest {
16669         static instance: ::protobuf::rt::LazyV2<GetFirmwareManagementParametersRequest> = ::protobuf::rt::LazyV2::INIT;
16670         instance.get(GetFirmwareManagementParametersRequest::new)
16671     }
16672 }
16673 
16674 impl ::protobuf::Clear for GetFirmwareManagementParametersRequest {
clear(&mut self)16675     fn clear(&mut self) {
16676         self.unknown_fields.clear();
16677     }
16678 }
16679 
16680 impl ::protobuf::reflect::ProtobufValue for GetFirmwareManagementParametersRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef16681     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
16682         ::protobuf::reflect::ReflectValueRef::Message(self)
16683     }
16684 }
16685 
16686 #[derive(PartialEq,Clone,Default,Debug)]
16687 pub struct GetFirmwareManagementParametersReply {
16688     // message fields
16689     pub error: CryptohomeErrorCode,
16690     pub fwmp: ::protobuf::SingularPtrField<FirmwareManagementParameters>,
16691     // special fields
16692     pub unknown_fields: ::protobuf::UnknownFields,
16693     pub cached_size: ::protobuf::CachedSize,
16694 }
16695 
16696 impl<'a> ::std::default::Default for &'a GetFirmwareManagementParametersReply {
default() -> &'a GetFirmwareManagementParametersReply16697     fn default() -> &'a GetFirmwareManagementParametersReply {
16698         <GetFirmwareManagementParametersReply as ::protobuf::Message>::default_instance()
16699     }
16700 }
16701 
16702 impl GetFirmwareManagementParametersReply {
new() -> GetFirmwareManagementParametersReply16703     pub fn new() -> GetFirmwareManagementParametersReply {
16704         ::std::default::Default::default()
16705     }
16706 
16707     // .user_data_auth.CryptohomeErrorCode error = 1;
16708 
16709 
get_error(&self) -> CryptohomeErrorCode16710     pub fn get_error(&self) -> CryptohomeErrorCode {
16711         self.error
16712     }
clear_error(&mut self)16713     pub fn clear_error(&mut self) {
16714         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
16715     }
16716 
16717     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)16718     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
16719         self.error = v;
16720     }
16721 
16722     // .user_data_auth.FirmwareManagementParameters fwmp = 2;
16723 
16724 
get_fwmp(&self) -> &FirmwareManagementParameters16725     pub fn get_fwmp(&self) -> &FirmwareManagementParameters {
16726         self.fwmp.as_ref().unwrap_or_else(|| <FirmwareManagementParameters as ::protobuf::Message>::default_instance())
16727     }
clear_fwmp(&mut self)16728     pub fn clear_fwmp(&mut self) {
16729         self.fwmp.clear();
16730     }
16731 
has_fwmp(&self) -> bool16732     pub fn has_fwmp(&self) -> bool {
16733         self.fwmp.is_some()
16734     }
16735 
16736     // Param is passed by value, moved
set_fwmp(&mut self, v: FirmwareManagementParameters)16737     pub fn set_fwmp(&mut self, v: FirmwareManagementParameters) {
16738         self.fwmp = ::protobuf::SingularPtrField::some(v);
16739     }
16740 
16741     // Mutable pointer to the field.
16742     // If field is not initialized, it is initialized with default value first.
mut_fwmp(&mut self) -> &mut FirmwareManagementParameters16743     pub fn mut_fwmp(&mut self) -> &mut FirmwareManagementParameters {
16744         if self.fwmp.is_none() {
16745             self.fwmp.set_default();
16746         }
16747         self.fwmp.as_mut().unwrap()
16748     }
16749 
16750     // Take field
take_fwmp(&mut self) -> FirmwareManagementParameters16751     pub fn take_fwmp(&mut self) -> FirmwareManagementParameters {
16752         self.fwmp.take().unwrap_or_else(|| FirmwareManagementParameters::new())
16753     }
16754 }
16755 
16756 impl ::protobuf::Message for GetFirmwareManagementParametersReply {
is_initialized(&self) -> bool16757     fn is_initialized(&self) -> bool {
16758         for v in &self.fwmp {
16759             if !v.is_initialized() {
16760                 return false;
16761             }
16762         };
16763         true
16764     }
16765 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>16766     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16767         while !is.eof()? {
16768             let (field_number, wire_type) = is.read_tag_unpack()?;
16769             match field_number {
16770                 1 => {
16771                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
16772                 },
16773                 2 => {
16774                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.fwmp)?;
16775                 },
16776                 _ => {
16777                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
16778                 },
16779             };
16780         }
16781         ::std::result::Result::Ok(())
16782     }
16783 
16784     // Compute sizes of nested messages
16785     #[allow(unused_variables)]
compute_size(&self) -> u3216786     fn compute_size(&self) -> u32 {
16787         let mut my_size = 0;
16788         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
16789             my_size += ::protobuf::rt::enum_size(1, self.error);
16790         }
16791         if let Some(ref v) = self.fwmp.as_ref() {
16792             let len = v.compute_size();
16793             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
16794         }
16795         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
16796         self.cached_size.set(my_size);
16797         my_size
16798     }
16799 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>16800     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16801         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
16802             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
16803         }
16804         if let Some(ref v) = self.fwmp.as_ref() {
16805             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
16806             os.write_raw_varint32(v.get_cached_size())?;
16807             v.write_to_with_cached_sizes(os)?;
16808         }
16809         os.write_unknown_fields(self.get_unknown_fields())?;
16810         ::std::result::Result::Ok(())
16811     }
16812 
get_cached_size(&self) -> u3216813     fn get_cached_size(&self) -> u32 {
16814         self.cached_size.get()
16815     }
16816 
get_unknown_fields(&self) -> &::protobuf::UnknownFields16817     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
16818         &self.unknown_fields
16819     }
16820 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields16821     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
16822         &mut self.unknown_fields
16823     }
16824 
as_any(&self) -> &dyn (::std::any::Any)16825     fn as_any(&self) -> &dyn (::std::any::Any) {
16826         self as &dyn (::std::any::Any)
16827     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)16828     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
16829         self as &mut dyn (::std::any::Any)
16830     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>16831     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
16832         self
16833     }
16834 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor16835     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
16836         Self::descriptor_static()
16837     }
16838 
new() -> GetFirmwareManagementParametersReply16839     fn new() -> GetFirmwareManagementParametersReply {
16840         GetFirmwareManagementParametersReply::new()
16841     }
16842 
default_instance() -> &'static GetFirmwareManagementParametersReply16843     fn default_instance() -> &'static GetFirmwareManagementParametersReply {
16844         static instance: ::protobuf::rt::LazyV2<GetFirmwareManagementParametersReply> = ::protobuf::rt::LazyV2::INIT;
16845         instance.get(GetFirmwareManagementParametersReply::new)
16846     }
16847 }
16848 
16849 impl ::protobuf::Clear for GetFirmwareManagementParametersReply {
clear(&mut self)16850     fn clear(&mut self) {
16851         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
16852         self.fwmp.clear();
16853         self.unknown_fields.clear();
16854     }
16855 }
16856 
16857 impl ::protobuf::reflect::ProtobufValue for GetFirmwareManagementParametersReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef16858     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
16859         ::protobuf::reflect::ReflectValueRef::Message(self)
16860     }
16861 }
16862 
16863 #[derive(PartialEq,Clone,Default,Debug)]
16864 pub struct RemoveFirmwareManagementParametersRequest {
16865     // special fields
16866     pub unknown_fields: ::protobuf::UnknownFields,
16867     pub cached_size: ::protobuf::CachedSize,
16868 }
16869 
16870 impl<'a> ::std::default::Default for &'a RemoveFirmwareManagementParametersRequest {
default() -> &'a RemoveFirmwareManagementParametersRequest16871     fn default() -> &'a RemoveFirmwareManagementParametersRequest {
16872         <RemoveFirmwareManagementParametersRequest as ::protobuf::Message>::default_instance()
16873     }
16874 }
16875 
16876 impl RemoveFirmwareManagementParametersRequest {
new() -> RemoveFirmwareManagementParametersRequest16877     pub fn new() -> RemoveFirmwareManagementParametersRequest {
16878         ::std::default::Default::default()
16879     }
16880 }
16881 
16882 impl ::protobuf::Message for RemoveFirmwareManagementParametersRequest {
is_initialized(&self) -> bool16883     fn is_initialized(&self) -> bool {
16884         true
16885     }
16886 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>16887     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16888         while !is.eof()? {
16889             let (field_number, wire_type) = is.read_tag_unpack()?;
16890             match field_number {
16891                 _ => {
16892                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
16893                 },
16894             };
16895         }
16896         ::std::result::Result::Ok(())
16897     }
16898 
16899     // Compute sizes of nested messages
16900     #[allow(unused_variables)]
compute_size(&self) -> u3216901     fn compute_size(&self) -> u32 {
16902         let mut my_size = 0;
16903         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
16904         self.cached_size.set(my_size);
16905         my_size
16906     }
16907 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>16908     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
16909         os.write_unknown_fields(self.get_unknown_fields())?;
16910         ::std::result::Result::Ok(())
16911     }
16912 
get_cached_size(&self) -> u3216913     fn get_cached_size(&self) -> u32 {
16914         self.cached_size.get()
16915     }
16916 
get_unknown_fields(&self) -> &::protobuf::UnknownFields16917     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
16918         &self.unknown_fields
16919     }
16920 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields16921     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
16922         &mut self.unknown_fields
16923     }
16924 
as_any(&self) -> &dyn (::std::any::Any)16925     fn as_any(&self) -> &dyn (::std::any::Any) {
16926         self as &dyn (::std::any::Any)
16927     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)16928     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
16929         self as &mut dyn (::std::any::Any)
16930     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>16931     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
16932         self
16933     }
16934 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor16935     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
16936         Self::descriptor_static()
16937     }
16938 
new() -> RemoveFirmwareManagementParametersRequest16939     fn new() -> RemoveFirmwareManagementParametersRequest {
16940         RemoveFirmwareManagementParametersRequest::new()
16941     }
16942 
default_instance() -> &'static RemoveFirmwareManagementParametersRequest16943     fn default_instance() -> &'static RemoveFirmwareManagementParametersRequest {
16944         static instance: ::protobuf::rt::LazyV2<RemoveFirmwareManagementParametersRequest> = ::protobuf::rt::LazyV2::INIT;
16945         instance.get(RemoveFirmwareManagementParametersRequest::new)
16946     }
16947 }
16948 
16949 impl ::protobuf::Clear for RemoveFirmwareManagementParametersRequest {
clear(&mut self)16950     fn clear(&mut self) {
16951         self.unknown_fields.clear();
16952     }
16953 }
16954 
16955 impl ::protobuf::reflect::ProtobufValue for RemoveFirmwareManagementParametersRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef16956     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
16957         ::protobuf::reflect::ReflectValueRef::Message(self)
16958     }
16959 }
16960 
16961 #[derive(PartialEq,Clone,Default,Debug)]
16962 pub struct RemoveFirmwareManagementParametersReply {
16963     // message fields
16964     pub error: CryptohomeErrorCode,
16965     // special fields
16966     pub unknown_fields: ::protobuf::UnknownFields,
16967     pub cached_size: ::protobuf::CachedSize,
16968 }
16969 
16970 impl<'a> ::std::default::Default for &'a RemoveFirmwareManagementParametersReply {
default() -> &'a RemoveFirmwareManagementParametersReply16971     fn default() -> &'a RemoveFirmwareManagementParametersReply {
16972         <RemoveFirmwareManagementParametersReply as ::protobuf::Message>::default_instance()
16973     }
16974 }
16975 
16976 impl RemoveFirmwareManagementParametersReply {
new() -> RemoveFirmwareManagementParametersReply16977     pub fn new() -> RemoveFirmwareManagementParametersReply {
16978         ::std::default::Default::default()
16979     }
16980 
16981     // .user_data_auth.CryptohomeErrorCode error = 1;
16982 
16983 
get_error(&self) -> CryptohomeErrorCode16984     pub fn get_error(&self) -> CryptohomeErrorCode {
16985         self.error
16986     }
clear_error(&mut self)16987     pub fn clear_error(&mut self) {
16988         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
16989     }
16990 
16991     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)16992     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
16993         self.error = v;
16994     }
16995 }
16996 
16997 impl ::protobuf::Message for RemoveFirmwareManagementParametersReply {
is_initialized(&self) -> bool16998     fn is_initialized(&self) -> bool {
16999         true
17000     }
17001 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>17002     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17003         while !is.eof()? {
17004             let (field_number, wire_type) = is.read_tag_unpack()?;
17005             match field_number {
17006                 1 => {
17007                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
17008                 },
17009                 _ => {
17010                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
17011                 },
17012             };
17013         }
17014         ::std::result::Result::Ok(())
17015     }
17016 
17017     // Compute sizes of nested messages
17018     #[allow(unused_variables)]
compute_size(&self) -> u3217019     fn compute_size(&self) -> u32 {
17020         let mut my_size = 0;
17021         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
17022             my_size += ::protobuf::rt::enum_size(1, self.error);
17023         }
17024         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
17025         self.cached_size.set(my_size);
17026         my_size
17027     }
17028 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>17029     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17030         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
17031             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
17032         }
17033         os.write_unknown_fields(self.get_unknown_fields())?;
17034         ::std::result::Result::Ok(())
17035     }
17036 
get_cached_size(&self) -> u3217037     fn get_cached_size(&self) -> u32 {
17038         self.cached_size.get()
17039     }
17040 
get_unknown_fields(&self) -> &::protobuf::UnknownFields17041     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
17042         &self.unknown_fields
17043     }
17044 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields17045     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
17046         &mut self.unknown_fields
17047     }
17048 
as_any(&self) -> &dyn (::std::any::Any)17049     fn as_any(&self) -> &dyn (::std::any::Any) {
17050         self as &dyn (::std::any::Any)
17051     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)17052     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
17053         self as &mut dyn (::std::any::Any)
17054     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>17055     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
17056         self
17057     }
17058 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor17059     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
17060         Self::descriptor_static()
17061     }
17062 
new() -> RemoveFirmwareManagementParametersReply17063     fn new() -> RemoveFirmwareManagementParametersReply {
17064         RemoveFirmwareManagementParametersReply::new()
17065     }
17066 
default_instance() -> &'static RemoveFirmwareManagementParametersReply17067     fn default_instance() -> &'static RemoveFirmwareManagementParametersReply {
17068         static instance: ::protobuf::rt::LazyV2<RemoveFirmwareManagementParametersReply> = ::protobuf::rt::LazyV2::INIT;
17069         instance.get(RemoveFirmwareManagementParametersReply::new)
17070     }
17071 }
17072 
17073 impl ::protobuf::Clear for RemoveFirmwareManagementParametersReply {
clear(&mut self)17074     fn clear(&mut self) {
17075         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
17076         self.unknown_fields.clear();
17077     }
17078 }
17079 
17080 impl ::protobuf::reflect::ProtobufValue for RemoveFirmwareManagementParametersReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef17081     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
17082         ::protobuf::reflect::ReflectValueRef::Message(self)
17083     }
17084 }
17085 
17086 #[derive(PartialEq,Clone,Default,Debug)]
17087 pub struct SetFirmwareManagementParametersRequest {
17088     // message fields
17089     pub fwmp: ::protobuf::SingularPtrField<FirmwareManagementParameters>,
17090     // special fields
17091     pub unknown_fields: ::protobuf::UnknownFields,
17092     pub cached_size: ::protobuf::CachedSize,
17093 }
17094 
17095 impl<'a> ::std::default::Default for &'a SetFirmwareManagementParametersRequest {
default() -> &'a SetFirmwareManagementParametersRequest17096     fn default() -> &'a SetFirmwareManagementParametersRequest {
17097         <SetFirmwareManagementParametersRequest as ::protobuf::Message>::default_instance()
17098     }
17099 }
17100 
17101 impl SetFirmwareManagementParametersRequest {
new() -> SetFirmwareManagementParametersRequest17102     pub fn new() -> SetFirmwareManagementParametersRequest {
17103         ::std::default::Default::default()
17104     }
17105 
17106     // .user_data_auth.FirmwareManagementParameters fwmp = 1;
17107 
17108 
get_fwmp(&self) -> &FirmwareManagementParameters17109     pub fn get_fwmp(&self) -> &FirmwareManagementParameters {
17110         self.fwmp.as_ref().unwrap_or_else(|| <FirmwareManagementParameters as ::protobuf::Message>::default_instance())
17111     }
clear_fwmp(&mut self)17112     pub fn clear_fwmp(&mut self) {
17113         self.fwmp.clear();
17114     }
17115 
has_fwmp(&self) -> bool17116     pub fn has_fwmp(&self) -> bool {
17117         self.fwmp.is_some()
17118     }
17119 
17120     // Param is passed by value, moved
set_fwmp(&mut self, v: FirmwareManagementParameters)17121     pub fn set_fwmp(&mut self, v: FirmwareManagementParameters) {
17122         self.fwmp = ::protobuf::SingularPtrField::some(v);
17123     }
17124 
17125     // Mutable pointer to the field.
17126     // If field is not initialized, it is initialized with default value first.
mut_fwmp(&mut self) -> &mut FirmwareManagementParameters17127     pub fn mut_fwmp(&mut self) -> &mut FirmwareManagementParameters {
17128         if self.fwmp.is_none() {
17129             self.fwmp.set_default();
17130         }
17131         self.fwmp.as_mut().unwrap()
17132     }
17133 
17134     // Take field
take_fwmp(&mut self) -> FirmwareManagementParameters17135     pub fn take_fwmp(&mut self) -> FirmwareManagementParameters {
17136         self.fwmp.take().unwrap_or_else(|| FirmwareManagementParameters::new())
17137     }
17138 }
17139 
17140 impl ::protobuf::Message for SetFirmwareManagementParametersRequest {
is_initialized(&self) -> bool17141     fn is_initialized(&self) -> bool {
17142         for v in &self.fwmp {
17143             if !v.is_initialized() {
17144                 return false;
17145             }
17146         };
17147         true
17148     }
17149 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>17150     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17151         while !is.eof()? {
17152             let (field_number, wire_type) = is.read_tag_unpack()?;
17153             match field_number {
17154                 1 => {
17155                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.fwmp)?;
17156                 },
17157                 _ => {
17158                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
17159                 },
17160             };
17161         }
17162         ::std::result::Result::Ok(())
17163     }
17164 
17165     // Compute sizes of nested messages
17166     #[allow(unused_variables)]
compute_size(&self) -> u3217167     fn compute_size(&self) -> u32 {
17168         let mut my_size = 0;
17169         if let Some(ref v) = self.fwmp.as_ref() {
17170             let len = v.compute_size();
17171             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
17172         }
17173         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
17174         self.cached_size.set(my_size);
17175         my_size
17176     }
17177 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>17178     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17179         if let Some(ref v) = self.fwmp.as_ref() {
17180             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
17181             os.write_raw_varint32(v.get_cached_size())?;
17182             v.write_to_with_cached_sizes(os)?;
17183         }
17184         os.write_unknown_fields(self.get_unknown_fields())?;
17185         ::std::result::Result::Ok(())
17186     }
17187 
get_cached_size(&self) -> u3217188     fn get_cached_size(&self) -> u32 {
17189         self.cached_size.get()
17190     }
17191 
get_unknown_fields(&self) -> &::protobuf::UnknownFields17192     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
17193         &self.unknown_fields
17194     }
17195 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields17196     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
17197         &mut self.unknown_fields
17198     }
17199 
as_any(&self) -> &dyn (::std::any::Any)17200     fn as_any(&self) -> &dyn (::std::any::Any) {
17201         self as &dyn (::std::any::Any)
17202     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)17203     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
17204         self as &mut dyn (::std::any::Any)
17205     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>17206     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
17207         self
17208     }
17209 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor17210     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
17211         Self::descriptor_static()
17212     }
17213 
new() -> SetFirmwareManagementParametersRequest17214     fn new() -> SetFirmwareManagementParametersRequest {
17215         SetFirmwareManagementParametersRequest::new()
17216     }
17217 
default_instance() -> &'static SetFirmwareManagementParametersRequest17218     fn default_instance() -> &'static SetFirmwareManagementParametersRequest {
17219         static instance: ::protobuf::rt::LazyV2<SetFirmwareManagementParametersRequest> = ::protobuf::rt::LazyV2::INIT;
17220         instance.get(SetFirmwareManagementParametersRequest::new)
17221     }
17222 }
17223 
17224 impl ::protobuf::Clear for SetFirmwareManagementParametersRequest {
clear(&mut self)17225     fn clear(&mut self) {
17226         self.fwmp.clear();
17227         self.unknown_fields.clear();
17228     }
17229 }
17230 
17231 impl ::protobuf::reflect::ProtobufValue for SetFirmwareManagementParametersRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef17232     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
17233         ::protobuf::reflect::ReflectValueRef::Message(self)
17234     }
17235 }
17236 
17237 #[derive(PartialEq,Clone,Default,Debug)]
17238 pub struct SetFirmwareManagementParametersReply {
17239     // message fields
17240     pub error: CryptohomeErrorCode,
17241     // special fields
17242     pub unknown_fields: ::protobuf::UnknownFields,
17243     pub cached_size: ::protobuf::CachedSize,
17244 }
17245 
17246 impl<'a> ::std::default::Default for &'a SetFirmwareManagementParametersReply {
default() -> &'a SetFirmwareManagementParametersReply17247     fn default() -> &'a SetFirmwareManagementParametersReply {
17248         <SetFirmwareManagementParametersReply as ::protobuf::Message>::default_instance()
17249     }
17250 }
17251 
17252 impl SetFirmwareManagementParametersReply {
new() -> SetFirmwareManagementParametersReply17253     pub fn new() -> SetFirmwareManagementParametersReply {
17254         ::std::default::Default::default()
17255     }
17256 
17257     // .user_data_auth.CryptohomeErrorCode error = 1;
17258 
17259 
get_error(&self) -> CryptohomeErrorCode17260     pub fn get_error(&self) -> CryptohomeErrorCode {
17261         self.error
17262     }
clear_error(&mut self)17263     pub fn clear_error(&mut self) {
17264         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
17265     }
17266 
17267     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)17268     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
17269         self.error = v;
17270     }
17271 }
17272 
17273 impl ::protobuf::Message for SetFirmwareManagementParametersReply {
is_initialized(&self) -> bool17274     fn is_initialized(&self) -> bool {
17275         true
17276     }
17277 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>17278     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17279         while !is.eof()? {
17280             let (field_number, wire_type) = is.read_tag_unpack()?;
17281             match field_number {
17282                 1 => {
17283                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
17284                 },
17285                 _ => {
17286                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
17287                 },
17288             };
17289         }
17290         ::std::result::Result::Ok(())
17291     }
17292 
17293     // Compute sizes of nested messages
17294     #[allow(unused_variables)]
compute_size(&self) -> u3217295     fn compute_size(&self) -> u32 {
17296         let mut my_size = 0;
17297         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
17298             my_size += ::protobuf::rt::enum_size(1, self.error);
17299         }
17300         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
17301         self.cached_size.set(my_size);
17302         my_size
17303     }
17304 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>17305     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17306         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
17307             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
17308         }
17309         os.write_unknown_fields(self.get_unknown_fields())?;
17310         ::std::result::Result::Ok(())
17311     }
17312 
get_cached_size(&self) -> u3217313     fn get_cached_size(&self) -> u32 {
17314         self.cached_size.get()
17315     }
17316 
get_unknown_fields(&self) -> &::protobuf::UnknownFields17317     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
17318         &self.unknown_fields
17319     }
17320 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields17321     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
17322         &mut self.unknown_fields
17323     }
17324 
as_any(&self) -> &dyn (::std::any::Any)17325     fn as_any(&self) -> &dyn (::std::any::Any) {
17326         self as &dyn (::std::any::Any)
17327     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)17328     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
17329         self as &mut dyn (::std::any::Any)
17330     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>17331     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
17332         self
17333     }
17334 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor17335     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
17336         Self::descriptor_static()
17337     }
17338 
new() -> SetFirmwareManagementParametersReply17339     fn new() -> SetFirmwareManagementParametersReply {
17340         SetFirmwareManagementParametersReply::new()
17341     }
17342 
default_instance() -> &'static SetFirmwareManagementParametersReply17343     fn default_instance() -> &'static SetFirmwareManagementParametersReply {
17344         static instance: ::protobuf::rt::LazyV2<SetFirmwareManagementParametersReply> = ::protobuf::rt::LazyV2::INIT;
17345         instance.get(SetFirmwareManagementParametersReply::new)
17346     }
17347 }
17348 
17349 impl ::protobuf::Clear for SetFirmwareManagementParametersReply {
clear(&mut self)17350     fn clear(&mut self) {
17351         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
17352         self.unknown_fields.clear();
17353     }
17354 }
17355 
17356 impl ::protobuf::reflect::ProtobufValue for SetFirmwareManagementParametersReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef17357     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
17358         ::protobuf::reflect::ReflectValueRef::Message(self)
17359     }
17360 }
17361 
17362 #[derive(PartialEq,Clone,Default,Debug)]
17363 pub struct GetSystemSaltRequest {
17364     // special fields
17365     pub unknown_fields: ::protobuf::UnknownFields,
17366     pub cached_size: ::protobuf::CachedSize,
17367 }
17368 
17369 impl<'a> ::std::default::Default for &'a GetSystemSaltRequest {
default() -> &'a GetSystemSaltRequest17370     fn default() -> &'a GetSystemSaltRequest {
17371         <GetSystemSaltRequest as ::protobuf::Message>::default_instance()
17372     }
17373 }
17374 
17375 impl GetSystemSaltRequest {
new() -> GetSystemSaltRequest17376     pub fn new() -> GetSystemSaltRequest {
17377         ::std::default::Default::default()
17378     }
17379 }
17380 
17381 impl ::protobuf::Message for GetSystemSaltRequest {
is_initialized(&self) -> bool17382     fn is_initialized(&self) -> bool {
17383         true
17384     }
17385 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>17386     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17387         while !is.eof()? {
17388             let (field_number, wire_type) = is.read_tag_unpack()?;
17389             match field_number {
17390                 _ => {
17391                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
17392                 },
17393             };
17394         }
17395         ::std::result::Result::Ok(())
17396     }
17397 
17398     // Compute sizes of nested messages
17399     #[allow(unused_variables)]
compute_size(&self) -> u3217400     fn compute_size(&self) -> u32 {
17401         let mut my_size = 0;
17402         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
17403         self.cached_size.set(my_size);
17404         my_size
17405     }
17406 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>17407     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17408         os.write_unknown_fields(self.get_unknown_fields())?;
17409         ::std::result::Result::Ok(())
17410     }
17411 
get_cached_size(&self) -> u3217412     fn get_cached_size(&self) -> u32 {
17413         self.cached_size.get()
17414     }
17415 
get_unknown_fields(&self) -> &::protobuf::UnknownFields17416     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
17417         &self.unknown_fields
17418     }
17419 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields17420     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
17421         &mut self.unknown_fields
17422     }
17423 
as_any(&self) -> &dyn (::std::any::Any)17424     fn as_any(&self) -> &dyn (::std::any::Any) {
17425         self as &dyn (::std::any::Any)
17426     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)17427     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
17428         self as &mut dyn (::std::any::Any)
17429     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>17430     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
17431         self
17432     }
17433 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor17434     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
17435         Self::descriptor_static()
17436     }
17437 
new() -> GetSystemSaltRequest17438     fn new() -> GetSystemSaltRequest {
17439         GetSystemSaltRequest::new()
17440     }
17441 
default_instance() -> &'static GetSystemSaltRequest17442     fn default_instance() -> &'static GetSystemSaltRequest {
17443         static instance: ::protobuf::rt::LazyV2<GetSystemSaltRequest> = ::protobuf::rt::LazyV2::INIT;
17444         instance.get(GetSystemSaltRequest::new)
17445     }
17446 }
17447 
17448 impl ::protobuf::Clear for GetSystemSaltRequest {
clear(&mut self)17449     fn clear(&mut self) {
17450         self.unknown_fields.clear();
17451     }
17452 }
17453 
17454 impl ::protobuf::reflect::ProtobufValue for GetSystemSaltRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef17455     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
17456         ::protobuf::reflect::ReflectValueRef::Message(self)
17457     }
17458 }
17459 
17460 #[derive(PartialEq,Clone,Default,Debug)]
17461 pub struct GetSystemSaltReply {
17462     // message fields
17463     pub salt: ::std::vec::Vec<u8>,
17464     // special fields
17465     pub unknown_fields: ::protobuf::UnknownFields,
17466     pub cached_size: ::protobuf::CachedSize,
17467 }
17468 
17469 impl<'a> ::std::default::Default for &'a GetSystemSaltReply {
default() -> &'a GetSystemSaltReply17470     fn default() -> &'a GetSystemSaltReply {
17471         <GetSystemSaltReply as ::protobuf::Message>::default_instance()
17472     }
17473 }
17474 
17475 impl GetSystemSaltReply {
new() -> GetSystemSaltReply17476     pub fn new() -> GetSystemSaltReply {
17477         ::std::default::Default::default()
17478     }
17479 
17480     // bytes salt = 1;
17481 
17482 
get_salt(&self) -> &[u8]17483     pub fn get_salt(&self) -> &[u8] {
17484         &self.salt
17485     }
clear_salt(&mut self)17486     pub fn clear_salt(&mut self) {
17487         self.salt.clear();
17488     }
17489 
17490     // Param is passed by value, moved
set_salt(&mut self, v: ::std::vec::Vec<u8>)17491     pub fn set_salt(&mut self, v: ::std::vec::Vec<u8>) {
17492         self.salt = v;
17493     }
17494 
17495     // Mutable pointer to the field.
17496     // If field is not initialized, it is initialized with default value first.
mut_salt(&mut self) -> &mut ::std::vec::Vec<u8>17497     pub fn mut_salt(&mut self) -> &mut ::std::vec::Vec<u8> {
17498         &mut self.salt
17499     }
17500 
17501     // Take field
take_salt(&mut self) -> ::std::vec::Vec<u8>17502     pub fn take_salt(&mut self) -> ::std::vec::Vec<u8> {
17503         ::std::mem::replace(&mut self.salt, ::std::vec::Vec::new())
17504     }
17505 }
17506 
17507 impl ::protobuf::Message for GetSystemSaltReply {
is_initialized(&self) -> bool17508     fn is_initialized(&self) -> bool {
17509         true
17510     }
17511 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>17512     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17513         while !is.eof()? {
17514             let (field_number, wire_type) = is.read_tag_unpack()?;
17515             match field_number {
17516                 1 => {
17517                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.salt)?;
17518                 },
17519                 _ => {
17520                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
17521                 },
17522             };
17523         }
17524         ::std::result::Result::Ok(())
17525     }
17526 
17527     // Compute sizes of nested messages
17528     #[allow(unused_variables)]
compute_size(&self) -> u3217529     fn compute_size(&self) -> u32 {
17530         let mut my_size = 0;
17531         if !self.salt.is_empty() {
17532             my_size += ::protobuf::rt::bytes_size(1, &self.salt);
17533         }
17534         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
17535         self.cached_size.set(my_size);
17536         my_size
17537     }
17538 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>17539     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17540         if !self.salt.is_empty() {
17541             os.write_bytes(1, &self.salt)?;
17542         }
17543         os.write_unknown_fields(self.get_unknown_fields())?;
17544         ::std::result::Result::Ok(())
17545     }
17546 
get_cached_size(&self) -> u3217547     fn get_cached_size(&self) -> u32 {
17548         self.cached_size.get()
17549     }
17550 
get_unknown_fields(&self) -> &::protobuf::UnknownFields17551     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
17552         &self.unknown_fields
17553     }
17554 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields17555     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
17556         &mut self.unknown_fields
17557     }
17558 
as_any(&self) -> &dyn (::std::any::Any)17559     fn as_any(&self) -> &dyn (::std::any::Any) {
17560         self as &dyn (::std::any::Any)
17561     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)17562     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
17563         self as &mut dyn (::std::any::Any)
17564     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>17565     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
17566         self
17567     }
17568 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor17569     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
17570         Self::descriptor_static()
17571     }
17572 
new() -> GetSystemSaltReply17573     fn new() -> GetSystemSaltReply {
17574         GetSystemSaltReply::new()
17575     }
17576 
default_instance() -> &'static GetSystemSaltReply17577     fn default_instance() -> &'static GetSystemSaltReply {
17578         static instance: ::protobuf::rt::LazyV2<GetSystemSaltReply> = ::protobuf::rt::LazyV2::INIT;
17579         instance.get(GetSystemSaltReply::new)
17580     }
17581 }
17582 
17583 impl ::protobuf::Clear for GetSystemSaltReply {
clear(&mut self)17584     fn clear(&mut self) {
17585         self.salt.clear();
17586         self.unknown_fields.clear();
17587     }
17588 }
17589 
17590 impl ::protobuf::reflect::ProtobufValue for GetSystemSaltReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef17591     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
17592         ::protobuf::reflect::ReflectValueRef::Message(self)
17593     }
17594 }
17595 
17596 #[derive(PartialEq,Clone,Default,Debug)]
17597 pub struct UpdateCurrentUserActivityTimestampRequest {
17598     // message fields
17599     pub time_shift_sec: i32,
17600     // special fields
17601     pub unknown_fields: ::protobuf::UnknownFields,
17602     pub cached_size: ::protobuf::CachedSize,
17603 }
17604 
17605 impl<'a> ::std::default::Default for &'a UpdateCurrentUserActivityTimestampRequest {
default() -> &'a UpdateCurrentUserActivityTimestampRequest17606     fn default() -> &'a UpdateCurrentUserActivityTimestampRequest {
17607         <UpdateCurrentUserActivityTimestampRequest as ::protobuf::Message>::default_instance()
17608     }
17609 }
17610 
17611 impl UpdateCurrentUserActivityTimestampRequest {
new() -> UpdateCurrentUserActivityTimestampRequest17612     pub fn new() -> UpdateCurrentUserActivityTimestampRequest {
17613         ::std::default::Default::default()
17614     }
17615 
17616     // int32 time_shift_sec = 1;
17617 
17618 
get_time_shift_sec(&self) -> i3217619     pub fn get_time_shift_sec(&self) -> i32 {
17620         self.time_shift_sec
17621     }
clear_time_shift_sec(&mut self)17622     pub fn clear_time_shift_sec(&mut self) {
17623         self.time_shift_sec = 0;
17624     }
17625 
17626     // Param is passed by value, moved
set_time_shift_sec(&mut self, v: i32)17627     pub fn set_time_shift_sec(&mut self, v: i32) {
17628         self.time_shift_sec = v;
17629     }
17630 }
17631 
17632 impl ::protobuf::Message for UpdateCurrentUserActivityTimestampRequest {
is_initialized(&self) -> bool17633     fn is_initialized(&self) -> bool {
17634         true
17635     }
17636 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>17637     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17638         while !is.eof()? {
17639             let (field_number, wire_type) = is.read_tag_unpack()?;
17640             match field_number {
17641                 1 => {
17642                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
17643                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
17644                     }
17645                     let tmp = is.read_int32()?;
17646                     self.time_shift_sec = tmp;
17647                 },
17648                 _ => {
17649                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
17650                 },
17651             };
17652         }
17653         ::std::result::Result::Ok(())
17654     }
17655 
17656     // Compute sizes of nested messages
17657     #[allow(unused_variables)]
compute_size(&self) -> u3217658     fn compute_size(&self) -> u32 {
17659         let mut my_size = 0;
17660         if self.time_shift_sec != 0 {
17661             my_size += ::protobuf::rt::value_size(1, self.time_shift_sec, ::protobuf::wire_format::WireTypeVarint);
17662         }
17663         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
17664         self.cached_size.set(my_size);
17665         my_size
17666     }
17667 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>17668     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17669         if self.time_shift_sec != 0 {
17670             os.write_int32(1, self.time_shift_sec)?;
17671         }
17672         os.write_unknown_fields(self.get_unknown_fields())?;
17673         ::std::result::Result::Ok(())
17674     }
17675 
get_cached_size(&self) -> u3217676     fn get_cached_size(&self) -> u32 {
17677         self.cached_size.get()
17678     }
17679 
get_unknown_fields(&self) -> &::protobuf::UnknownFields17680     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
17681         &self.unknown_fields
17682     }
17683 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields17684     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
17685         &mut self.unknown_fields
17686     }
17687 
as_any(&self) -> &dyn (::std::any::Any)17688     fn as_any(&self) -> &dyn (::std::any::Any) {
17689         self as &dyn (::std::any::Any)
17690     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)17691     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
17692         self as &mut dyn (::std::any::Any)
17693     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>17694     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
17695         self
17696     }
17697 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor17698     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
17699         Self::descriptor_static()
17700     }
17701 
new() -> UpdateCurrentUserActivityTimestampRequest17702     fn new() -> UpdateCurrentUserActivityTimestampRequest {
17703         UpdateCurrentUserActivityTimestampRequest::new()
17704     }
17705 
default_instance() -> &'static UpdateCurrentUserActivityTimestampRequest17706     fn default_instance() -> &'static UpdateCurrentUserActivityTimestampRequest {
17707         static instance: ::protobuf::rt::LazyV2<UpdateCurrentUserActivityTimestampRequest> = ::protobuf::rt::LazyV2::INIT;
17708         instance.get(UpdateCurrentUserActivityTimestampRequest::new)
17709     }
17710 }
17711 
17712 impl ::protobuf::Clear for UpdateCurrentUserActivityTimestampRequest {
clear(&mut self)17713     fn clear(&mut self) {
17714         self.time_shift_sec = 0;
17715         self.unknown_fields.clear();
17716     }
17717 }
17718 
17719 impl ::protobuf::reflect::ProtobufValue for UpdateCurrentUserActivityTimestampRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef17720     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
17721         ::protobuf::reflect::ReflectValueRef::Message(self)
17722     }
17723 }
17724 
17725 #[derive(PartialEq,Clone,Default,Debug)]
17726 pub struct UpdateCurrentUserActivityTimestampReply {
17727     // message fields
17728     pub error: CryptohomeErrorCode,
17729     // special fields
17730     pub unknown_fields: ::protobuf::UnknownFields,
17731     pub cached_size: ::protobuf::CachedSize,
17732 }
17733 
17734 impl<'a> ::std::default::Default for &'a UpdateCurrentUserActivityTimestampReply {
default() -> &'a UpdateCurrentUserActivityTimestampReply17735     fn default() -> &'a UpdateCurrentUserActivityTimestampReply {
17736         <UpdateCurrentUserActivityTimestampReply as ::protobuf::Message>::default_instance()
17737     }
17738 }
17739 
17740 impl UpdateCurrentUserActivityTimestampReply {
new() -> UpdateCurrentUserActivityTimestampReply17741     pub fn new() -> UpdateCurrentUserActivityTimestampReply {
17742         ::std::default::Default::default()
17743     }
17744 
17745     // .user_data_auth.CryptohomeErrorCode error = 1;
17746 
17747 
get_error(&self) -> CryptohomeErrorCode17748     pub fn get_error(&self) -> CryptohomeErrorCode {
17749         self.error
17750     }
clear_error(&mut self)17751     pub fn clear_error(&mut self) {
17752         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
17753     }
17754 
17755     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)17756     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
17757         self.error = v;
17758     }
17759 }
17760 
17761 impl ::protobuf::Message for UpdateCurrentUserActivityTimestampReply {
is_initialized(&self) -> bool17762     fn is_initialized(&self) -> bool {
17763         true
17764     }
17765 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>17766     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17767         while !is.eof()? {
17768             let (field_number, wire_type) = is.read_tag_unpack()?;
17769             match field_number {
17770                 1 => {
17771                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
17772                 },
17773                 _ => {
17774                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
17775                 },
17776             };
17777         }
17778         ::std::result::Result::Ok(())
17779     }
17780 
17781     // Compute sizes of nested messages
17782     #[allow(unused_variables)]
compute_size(&self) -> u3217783     fn compute_size(&self) -> u32 {
17784         let mut my_size = 0;
17785         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
17786             my_size += ::protobuf::rt::enum_size(1, self.error);
17787         }
17788         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
17789         self.cached_size.set(my_size);
17790         my_size
17791     }
17792 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>17793     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17794         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
17795             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
17796         }
17797         os.write_unknown_fields(self.get_unknown_fields())?;
17798         ::std::result::Result::Ok(())
17799     }
17800 
get_cached_size(&self) -> u3217801     fn get_cached_size(&self) -> u32 {
17802         self.cached_size.get()
17803     }
17804 
get_unknown_fields(&self) -> &::protobuf::UnknownFields17805     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
17806         &self.unknown_fields
17807     }
17808 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields17809     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
17810         &mut self.unknown_fields
17811     }
17812 
as_any(&self) -> &dyn (::std::any::Any)17813     fn as_any(&self) -> &dyn (::std::any::Any) {
17814         self as &dyn (::std::any::Any)
17815     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)17816     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
17817         self as &mut dyn (::std::any::Any)
17818     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>17819     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
17820         self
17821     }
17822 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor17823     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
17824         Self::descriptor_static()
17825     }
17826 
new() -> UpdateCurrentUserActivityTimestampReply17827     fn new() -> UpdateCurrentUserActivityTimestampReply {
17828         UpdateCurrentUserActivityTimestampReply::new()
17829     }
17830 
default_instance() -> &'static UpdateCurrentUserActivityTimestampReply17831     fn default_instance() -> &'static UpdateCurrentUserActivityTimestampReply {
17832         static instance: ::protobuf::rt::LazyV2<UpdateCurrentUserActivityTimestampReply> = ::protobuf::rt::LazyV2::INIT;
17833         instance.get(UpdateCurrentUserActivityTimestampReply::new)
17834     }
17835 }
17836 
17837 impl ::protobuf::Clear for UpdateCurrentUserActivityTimestampReply {
clear(&mut self)17838     fn clear(&mut self) {
17839         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
17840         self.unknown_fields.clear();
17841     }
17842 }
17843 
17844 impl ::protobuf::reflect::ProtobufValue for UpdateCurrentUserActivityTimestampReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef17845     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
17846         ::protobuf::reflect::ReflectValueRef::Message(self)
17847     }
17848 }
17849 
17850 #[derive(PartialEq,Clone,Default,Debug)]
17851 pub struct GetSanitizedUsernameRequest {
17852     // message fields
17853     pub username: ::std::string::String,
17854     // special fields
17855     pub unknown_fields: ::protobuf::UnknownFields,
17856     pub cached_size: ::protobuf::CachedSize,
17857 }
17858 
17859 impl<'a> ::std::default::Default for &'a GetSanitizedUsernameRequest {
default() -> &'a GetSanitizedUsernameRequest17860     fn default() -> &'a GetSanitizedUsernameRequest {
17861         <GetSanitizedUsernameRequest as ::protobuf::Message>::default_instance()
17862     }
17863 }
17864 
17865 impl GetSanitizedUsernameRequest {
new() -> GetSanitizedUsernameRequest17866     pub fn new() -> GetSanitizedUsernameRequest {
17867         ::std::default::Default::default()
17868     }
17869 
17870     // string username = 1;
17871 
17872 
get_username(&self) -> &str17873     pub fn get_username(&self) -> &str {
17874         &self.username
17875     }
clear_username(&mut self)17876     pub fn clear_username(&mut self) {
17877         self.username.clear();
17878     }
17879 
17880     // Param is passed by value, moved
set_username(&mut self, v: ::std::string::String)17881     pub fn set_username(&mut self, v: ::std::string::String) {
17882         self.username = v;
17883     }
17884 
17885     // Mutable pointer to the field.
17886     // If field is not initialized, it is initialized with default value first.
mut_username(&mut self) -> &mut ::std::string::String17887     pub fn mut_username(&mut self) -> &mut ::std::string::String {
17888         &mut self.username
17889     }
17890 
17891     // Take field
take_username(&mut self) -> ::std::string::String17892     pub fn take_username(&mut self) -> ::std::string::String {
17893         ::std::mem::replace(&mut self.username, ::std::string::String::new())
17894     }
17895 }
17896 
17897 impl ::protobuf::Message for GetSanitizedUsernameRequest {
is_initialized(&self) -> bool17898     fn is_initialized(&self) -> bool {
17899         true
17900     }
17901 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>17902     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17903         while !is.eof()? {
17904             let (field_number, wire_type) = is.read_tag_unpack()?;
17905             match field_number {
17906                 1 => {
17907                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.username)?;
17908                 },
17909                 _ => {
17910                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
17911                 },
17912             };
17913         }
17914         ::std::result::Result::Ok(())
17915     }
17916 
17917     // Compute sizes of nested messages
17918     #[allow(unused_variables)]
compute_size(&self) -> u3217919     fn compute_size(&self) -> u32 {
17920         let mut my_size = 0;
17921         if !self.username.is_empty() {
17922             my_size += ::protobuf::rt::string_size(1, &self.username);
17923         }
17924         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
17925         self.cached_size.set(my_size);
17926         my_size
17927     }
17928 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>17929     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
17930         if !self.username.is_empty() {
17931             os.write_string(1, &self.username)?;
17932         }
17933         os.write_unknown_fields(self.get_unknown_fields())?;
17934         ::std::result::Result::Ok(())
17935     }
17936 
get_cached_size(&self) -> u3217937     fn get_cached_size(&self) -> u32 {
17938         self.cached_size.get()
17939     }
17940 
get_unknown_fields(&self) -> &::protobuf::UnknownFields17941     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
17942         &self.unknown_fields
17943     }
17944 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields17945     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
17946         &mut self.unknown_fields
17947     }
17948 
as_any(&self) -> &dyn (::std::any::Any)17949     fn as_any(&self) -> &dyn (::std::any::Any) {
17950         self as &dyn (::std::any::Any)
17951     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)17952     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
17953         self as &mut dyn (::std::any::Any)
17954     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>17955     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
17956         self
17957     }
17958 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor17959     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
17960         Self::descriptor_static()
17961     }
17962 
new() -> GetSanitizedUsernameRequest17963     fn new() -> GetSanitizedUsernameRequest {
17964         GetSanitizedUsernameRequest::new()
17965     }
17966 
default_instance() -> &'static GetSanitizedUsernameRequest17967     fn default_instance() -> &'static GetSanitizedUsernameRequest {
17968         static instance: ::protobuf::rt::LazyV2<GetSanitizedUsernameRequest> = ::protobuf::rt::LazyV2::INIT;
17969         instance.get(GetSanitizedUsernameRequest::new)
17970     }
17971 }
17972 
17973 impl ::protobuf::Clear for GetSanitizedUsernameRequest {
clear(&mut self)17974     fn clear(&mut self) {
17975         self.username.clear();
17976         self.unknown_fields.clear();
17977     }
17978 }
17979 
17980 impl ::protobuf::reflect::ProtobufValue for GetSanitizedUsernameRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef17981     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
17982         ::protobuf::reflect::ReflectValueRef::Message(self)
17983     }
17984 }
17985 
17986 #[derive(PartialEq,Clone,Default,Debug)]
17987 pub struct GetSanitizedUsernameReply {
17988     // message fields
17989     pub sanitized_username: ::std::string::String,
17990     // special fields
17991     pub unknown_fields: ::protobuf::UnknownFields,
17992     pub cached_size: ::protobuf::CachedSize,
17993 }
17994 
17995 impl<'a> ::std::default::Default for &'a GetSanitizedUsernameReply {
default() -> &'a GetSanitizedUsernameReply17996     fn default() -> &'a GetSanitizedUsernameReply {
17997         <GetSanitizedUsernameReply as ::protobuf::Message>::default_instance()
17998     }
17999 }
18000 
18001 impl GetSanitizedUsernameReply {
new() -> GetSanitizedUsernameReply18002     pub fn new() -> GetSanitizedUsernameReply {
18003         ::std::default::Default::default()
18004     }
18005 
18006     // string sanitized_username = 1;
18007 
18008 
get_sanitized_username(&self) -> &str18009     pub fn get_sanitized_username(&self) -> &str {
18010         &self.sanitized_username
18011     }
clear_sanitized_username(&mut self)18012     pub fn clear_sanitized_username(&mut self) {
18013         self.sanitized_username.clear();
18014     }
18015 
18016     // Param is passed by value, moved
set_sanitized_username(&mut self, v: ::std::string::String)18017     pub fn set_sanitized_username(&mut self, v: ::std::string::String) {
18018         self.sanitized_username = v;
18019     }
18020 
18021     // Mutable pointer to the field.
18022     // If field is not initialized, it is initialized with default value first.
mut_sanitized_username(&mut self) -> &mut ::std::string::String18023     pub fn mut_sanitized_username(&mut self) -> &mut ::std::string::String {
18024         &mut self.sanitized_username
18025     }
18026 
18027     // Take field
take_sanitized_username(&mut self) -> ::std::string::String18028     pub fn take_sanitized_username(&mut self) -> ::std::string::String {
18029         ::std::mem::replace(&mut self.sanitized_username, ::std::string::String::new())
18030     }
18031 }
18032 
18033 impl ::protobuf::Message for GetSanitizedUsernameReply {
is_initialized(&self) -> bool18034     fn is_initialized(&self) -> bool {
18035         true
18036     }
18037 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>18038     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18039         while !is.eof()? {
18040             let (field_number, wire_type) = is.read_tag_unpack()?;
18041             match field_number {
18042                 1 => {
18043                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sanitized_username)?;
18044                 },
18045                 _ => {
18046                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
18047                 },
18048             };
18049         }
18050         ::std::result::Result::Ok(())
18051     }
18052 
18053     // Compute sizes of nested messages
18054     #[allow(unused_variables)]
compute_size(&self) -> u3218055     fn compute_size(&self) -> u32 {
18056         let mut my_size = 0;
18057         if !self.sanitized_username.is_empty() {
18058             my_size += ::protobuf::rt::string_size(1, &self.sanitized_username);
18059         }
18060         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
18061         self.cached_size.set(my_size);
18062         my_size
18063     }
18064 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>18065     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18066         if !self.sanitized_username.is_empty() {
18067             os.write_string(1, &self.sanitized_username)?;
18068         }
18069         os.write_unknown_fields(self.get_unknown_fields())?;
18070         ::std::result::Result::Ok(())
18071     }
18072 
get_cached_size(&self) -> u3218073     fn get_cached_size(&self) -> u32 {
18074         self.cached_size.get()
18075     }
18076 
get_unknown_fields(&self) -> &::protobuf::UnknownFields18077     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
18078         &self.unknown_fields
18079     }
18080 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields18081     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
18082         &mut self.unknown_fields
18083     }
18084 
as_any(&self) -> &dyn (::std::any::Any)18085     fn as_any(&self) -> &dyn (::std::any::Any) {
18086         self as &dyn (::std::any::Any)
18087     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)18088     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
18089         self as &mut dyn (::std::any::Any)
18090     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>18091     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
18092         self
18093     }
18094 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor18095     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
18096         Self::descriptor_static()
18097     }
18098 
new() -> GetSanitizedUsernameReply18099     fn new() -> GetSanitizedUsernameReply {
18100         GetSanitizedUsernameReply::new()
18101     }
18102 
default_instance() -> &'static GetSanitizedUsernameReply18103     fn default_instance() -> &'static GetSanitizedUsernameReply {
18104         static instance: ::protobuf::rt::LazyV2<GetSanitizedUsernameReply> = ::protobuf::rt::LazyV2::INIT;
18105         instance.get(GetSanitizedUsernameReply::new)
18106     }
18107 }
18108 
18109 impl ::protobuf::Clear for GetSanitizedUsernameReply {
clear(&mut self)18110     fn clear(&mut self) {
18111         self.sanitized_username.clear();
18112         self.unknown_fields.clear();
18113     }
18114 }
18115 
18116 impl ::protobuf::reflect::ProtobufValue for GetSanitizedUsernameReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef18117     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
18118         ::protobuf::reflect::ReflectValueRef::Message(self)
18119     }
18120 }
18121 
18122 #[derive(PartialEq,Clone,Default,Debug)]
18123 pub struct GetLoginStatusRequest {
18124     // special fields
18125     pub unknown_fields: ::protobuf::UnknownFields,
18126     pub cached_size: ::protobuf::CachedSize,
18127 }
18128 
18129 impl<'a> ::std::default::Default for &'a GetLoginStatusRequest {
default() -> &'a GetLoginStatusRequest18130     fn default() -> &'a GetLoginStatusRequest {
18131         <GetLoginStatusRequest as ::protobuf::Message>::default_instance()
18132     }
18133 }
18134 
18135 impl GetLoginStatusRequest {
new() -> GetLoginStatusRequest18136     pub fn new() -> GetLoginStatusRequest {
18137         ::std::default::Default::default()
18138     }
18139 }
18140 
18141 impl ::protobuf::Message for GetLoginStatusRequest {
is_initialized(&self) -> bool18142     fn is_initialized(&self) -> bool {
18143         true
18144     }
18145 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>18146     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18147         while !is.eof()? {
18148             let (field_number, wire_type) = is.read_tag_unpack()?;
18149             match field_number {
18150                 _ => {
18151                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
18152                 },
18153             };
18154         }
18155         ::std::result::Result::Ok(())
18156     }
18157 
18158     // Compute sizes of nested messages
18159     #[allow(unused_variables)]
compute_size(&self) -> u3218160     fn compute_size(&self) -> u32 {
18161         let mut my_size = 0;
18162         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
18163         self.cached_size.set(my_size);
18164         my_size
18165     }
18166 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>18167     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18168         os.write_unknown_fields(self.get_unknown_fields())?;
18169         ::std::result::Result::Ok(())
18170     }
18171 
get_cached_size(&self) -> u3218172     fn get_cached_size(&self) -> u32 {
18173         self.cached_size.get()
18174     }
18175 
get_unknown_fields(&self) -> &::protobuf::UnknownFields18176     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
18177         &self.unknown_fields
18178     }
18179 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields18180     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
18181         &mut self.unknown_fields
18182     }
18183 
as_any(&self) -> &dyn (::std::any::Any)18184     fn as_any(&self) -> &dyn (::std::any::Any) {
18185         self as &dyn (::std::any::Any)
18186     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)18187     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
18188         self as &mut dyn (::std::any::Any)
18189     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>18190     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
18191         self
18192     }
18193 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor18194     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
18195         Self::descriptor_static()
18196     }
18197 
new() -> GetLoginStatusRequest18198     fn new() -> GetLoginStatusRequest {
18199         GetLoginStatusRequest::new()
18200     }
18201 
default_instance() -> &'static GetLoginStatusRequest18202     fn default_instance() -> &'static GetLoginStatusRequest {
18203         static instance: ::protobuf::rt::LazyV2<GetLoginStatusRequest> = ::protobuf::rt::LazyV2::INIT;
18204         instance.get(GetLoginStatusRequest::new)
18205     }
18206 }
18207 
18208 impl ::protobuf::Clear for GetLoginStatusRequest {
clear(&mut self)18209     fn clear(&mut self) {
18210         self.unknown_fields.clear();
18211     }
18212 }
18213 
18214 impl ::protobuf::reflect::ProtobufValue for GetLoginStatusRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef18215     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
18216         ::protobuf::reflect::ReflectValueRef::Message(self)
18217     }
18218 }
18219 
18220 #[derive(PartialEq,Clone,Default,Debug)]
18221 pub struct GetLoginStatusReply {
18222     // message fields
18223     pub error: CryptohomeErrorCode,
18224     pub owner_user_exists: bool,
18225     pub is_locked_to_single_user: bool,
18226     // special fields
18227     pub unknown_fields: ::protobuf::UnknownFields,
18228     pub cached_size: ::protobuf::CachedSize,
18229 }
18230 
18231 impl<'a> ::std::default::Default for &'a GetLoginStatusReply {
default() -> &'a GetLoginStatusReply18232     fn default() -> &'a GetLoginStatusReply {
18233         <GetLoginStatusReply as ::protobuf::Message>::default_instance()
18234     }
18235 }
18236 
18237 impl GetLoginStatusReply {
new() -> GetLoginStatusReply18238     pub fn new() -> GetLoginStatusReply {
18239         ::std::default::Default::default()
18240     }
18241 
18242     // .user_data_auth.CryptohomeErrorCode error = 1;
18243 
18244 
get_error(&self) -> CryptohomeErrorCode18245     pub fn get_error(&self) -> CryptohomeErrorCode {
18246         self.error
18247     }
clear_error(&mut self)18248     pub fn clear_error(&mut self) {
18249         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
18250     }
18251 
18252     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)18253     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
18254         self.error = v;
18255     }
18256 
18257     // bool owner_user_exists = 2;
18258 
18259 
get_owner_user_exists(&self) -> bool18260     pub fn get_owner_user_exists(&self) -> bool {
18261         self.owner_user_exists
18262     }
clear_owner_user_exists(&mut self)18263     pub fn clear_owner_user_exists(&mut self) {
18264         self.owner_user_exists = false;
18265     }
18266 
18267     // Param is passed by value, moved
set_owner_user_exists(&mut self, v: bool)18268     pub fn set_owner_user_exists(&mut self, v: bool) {
18269         self.owner_user_exists = v;
18270     }
18271 
18272     // bool is_locked_to_single_user = 3;
18273 
18274 
get_is_locked_to_single_user(&self) -> bool18275     pub fn get_is_locked_to_single_user(&self) -> bool {
18276         self.is_locked_to_single_user
18277     }
clear_is_locked_to_single_user(&mut self)18278     pub fn clear_is_locked_to_single_user(&mut self) {
18279         self.is_locked_to_single_user = false;
18280     }
18281 
18282     // Param is passed by value, moved
set_is_locked_to_single_user(&mut self, v: bool)18283     pub fn set_is_locked_to_single_user(&mut self, v: bool) {
18284         self.is_locked_to_single_user = v;
18285     }
18286 }
18287 
18288 impl ::protobuf::Message for GetLoginStatusReply {
is_initialized(&self) -> bool18289     fn is_initialized(&self) -> bool {
18290         true
18291     }
18292 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>18293     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18294         while !is.eof()? {
18295             let (field_number, wire_type) = is.read_tag_unpack()?;
18296             match field_number {
18297                 1 => {
18298                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
18299                 },
18300                 2 => {
18301                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
18302                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
18303                     }
18304                     let tmp = is.read_bool()?;
18305                     self.owner_user_exists = tmp;
18306                 },
18307                 3 => {
18308                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
18309                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
18310                     }
18311                     let tmp = is.read_bool()?;
18312                     self.is_locked_to_single_user = tmp;
18313                 },
18314                 _ => {
18315                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
18316                 },
18317             };
18318         }
18319         ::std::result::Result::Ok(())
18320     }
18321 
18322     // Compute sizes of nested messages
18323     #[allow(unused_variables)]
compute_size(&self) -> u3218324     fn compute_size(&self) -> u32 {
18325         let mut my_size = 0;
18326         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
18327             my_size += ::protobuf::rt::enum_size(1, self.error);
18328         }
18329         if self.owner_user_exists != false {
18330             my_size += 2;
18331         }
18332         if self.is_locked_to_single_user != false {
18333             my_size += 2;
18334         }
18335         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
18336         self.cached_size.set(my_size);
18337         my_size
18338     }
18339 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>18340     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18341         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
18342             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
18343         }
18344         if self.owner_user_exists != false {
18345             os.write_bool(2, self.owner_user_exists)?;
18346         }
18347         if self.is_locked_to_single_user != false {
18348             os.write_bool(3, self.is_locked_to_single_user)?;
18349         }
18350         os.write_unknown_fields(self.get_unknown_fields())?;
18351         ::std::result::Result::Ok(())
18352     }
18353 
get_cached_size(&self) -> u3218354     fn get_cached_size(&self) -> u32 {
18355         self.cached_size.get()
18356     }
18357 
get_unknown_fields(&self) -> &::protobuf::UnknownFields18358     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
18359         &self.unknown_fields
18360     }
18361 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields18362     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
18363         &mut self.unknown_fields
18364     }
18365 
as_any(&self) -> &dyn (::std::any::Any)18366     fn as_any(&self) -> &dyn (::std::any::Any) {
18367         self as &dyn (::std::any::Any)
18368     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)18369     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
18370         self as &mut dyn (::std::any::Any)
18371     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>18372     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
18373         self
18374     }
18375 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor18376     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
18377         Self::descriptor_static()
18378     }
18379 
new() -> GetLoginStatusReply18380     fn new() -> GetLoginStatusReply {
18381         GetLoginStatusReply::new()
18382     }
18383 
default_instance() -> &'static GetLoginStatusReply18384     fn default_instance() -> &'static GetLoginStatusReply {
18385         static instance: ::protobuf::rt::LazyV2<GetLoginStatusReply> = ::protobuf::rt::LazyV2::INIT;
18386         instance.get(GetLoginStatusReply::new)
18387     }
18388 }
18389 
18390 impl ::protobuf::Clear for GetLoginStatusReply {
clear(&mut self)18391     fn clear(&mut self) {
18392         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
18393         self.owner_user_exists = false;
18394         self.is_locked_to_single_user = false;
18395         self.unknown_fields.clear();
18396     }
18397 }
18398 
18399 impl ::protobuf::reflect::ProtobufValue for GetLoginStatusReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef18400     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
18401         ::protobuf::reflect::ReflectValueRef::Message(self)
18402     }
18403 }
18404 
18405 #[derive(PartialEq,Clone,Default,Debug)]
18406 pub struct GetStatusStringRequest {
18407     // special fields
18408     pub unknown_fields: ::protobuf::UnknownFields,
18409     pub cached_size: ::protobuf::CachedSize,
18410 }
18411 
18412 impl<'a> ::std::default::Default for &'a GetStatusStringRequest {
default() -> &'a GetStatusStringRequest18413     fn default() -> &'a GetStatusStringRequest {
18414         <GetStatusStringRequest as ::protobuf::Message>::default_instance()
18415     }
18416 }
18417 
18418 impl GetStatusStringRequest {
new() -> GetStatusStringRequest18419     pub fn new() -> GetStatusStringRequest {
18420         ::std::default::Default::default()
18421     }
18422 }
18423 
18424 impl ::protobuf::Message for GetStatusStringRequest {
is_initialized(&self) -> bool18425     fn is_initialized(&self) -> bool {
18426         true
18427     }
18428 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>18429     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18430         while !is.eof()? {
18431             let (field_number, wire_type) = is.read_tag_unpack()?;
18432             match field_number {
18433                 _ => {
18434                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
18435                 },
18436             };
18437         }
18438         ::std::result::Result::Ok(())
18439     }
18440 
18441     // Compute sizes of nested messages
18442     #[allow(unused_variables)]
compute_size(&self) -> u3218443     fn compute_size(&self) -> u32 {
18444         let mut my_size = 0;
18445         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
18446         self.cached_size.set(my_size);
18447         my_size
18448     }
18449 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>18450     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18451         os.write_unknown_fields(self.get_unknown_fields())?;
18452         ::std::result::Result::Ok(())
18453     }
18454 
get_cached_size(&self) -> u3218455     fn get_cached_size(&self) -> u32 {
18456         self.cached_size.get()
18457     }
18458 
get_unknown_fields(&self) -> &::protobuf::UnknownFields18459     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
18460         &self.unknown_fields
18461     }
18462 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields18463     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
18464         &mut self.unknown_fields
18465     }
18466 
as_any(&self) -> &dyn (::std::any::Any)18467     fn as_any(&self) -> &dyn (::std::any::Any) {
18468         self as &dyn (::std::any::Any)
18469     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)18470     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
18471         self as &mut dyn (::std::any::Any)
18472     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>18473     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
18474         self
18475     }
18476 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor18477     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
18478         Self::descriptor_static()
18479     }
18480 
new() -> GetStatusStringRequest18481     fn new() -> GetStatusStringRequest {
18482         GetStatusStringRequest::new()
18483     }
18484 
default_instance() -> &'static GetStatusStringRequest18485     fn default_instance() -> &'static GetStatusStringRequest {
18486         static instance: ::protobuf::rt::LazyV2<GetStatusStringRequest> = ::protobuf::rt::LazyV2::INIT;
18487         instance.get(GetStatusStringRequest::new)
18488     }
18489 }
18490 
18491 impl ::protobuf::Clear for GetStatusStringRequest {
clear(&mut self)18492     fn clear(&mut self) {
18493         self.unknown_fields.clear();
18494     }
18495 }
18496 
18497 impl ::protobuf::reflect::ProtobufValue for GetStatusStringRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef18498     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
18499         ::protobuf::reflect::ReflectValueRef::Message(self)
18500     }
18501 }
18502 
18503 #[derive(PartialEq,Clone,Default,Debug)]
18504 pub struct GetStatusStringReply {
18505     // message fields
18506     pub status: ::std::string::String,
18507     // special fields
18508     pub unknown_fields: ::protobuf::UnknownFields,
18509     pub cached_size: ::protobuf::CachedSize,
18510 }
18511 
18512 impl<'a> ::std::default::Default for &'a GetStatusStringReply {
default() -> &'a GetStatusStringReply18513     fn default() -> &'a GetStatusStringReply {
18514         <GetStatusStringReply as ::protobuf::Message>::default_instance()
18515     }
18516 }
18517 
18518 impl GetStatusStringReply {
new() -> GetStatusStringReply18519     pub fn new() -> GetStatusStringReply {
18520         ::std::default::Default::default()
18521     }
18522 
18523     // string status = 1;
18524 
18525 
get_status(&self) -> &str18526     pub fn get_status(&self) -> &str {
18527         &self.status
18528     }
clear_status(&mut self)18529     pub fn clear_status(&mut self) {
18530         self.status.clear();
18531     }
18532 
18533     // Param is passed by value, moved
set_status(&mut self, v: ::std::string::String)18534     pub fn set_status(&mut self, v: ::std::string::String) {
18535         self.status = v;
18536     }
18537 
18538     // Mutable pointer to the field.
18539     // If field is not initialized, it is initialized with default value first.
mut_status(&mut self) -> &mut ::std::string::String18540     pub fn mut_status(&mut self) -> &mut ::std::string::String {
18541         &mut self.status
18542     }
18543 
18544     // Take field
take_status(&mut self) -> ::std::string::String18545     pub fn take_status(&mut self) -> ::std::string::String {
18546         ::std::mem::replace(&mut self.status, ::std::string::String::new())
18547     }
18548 }
18549 
18550 impl ::protobuf::Message for GetStatusStringReply {
is_initialized(&self) -> bool18551     fn is_initialized(&self) -> bool {
18552         true
18553     }
18554 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>18555     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18556         while !is.eof()? {
18557             let (field_number, wire_type) = is.read_tag_unpack()?;
18558             match field_number {
18559                 1 => {
18560                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.status)?;
18561                 },
18562                 _ => {
18563                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
18564                 },
18565             };
18566         }
18567         ::std::result::Result::Ok(())
18568     }
18569 
18570     // Compute sizes of nested messages
18571     #[allow(unused_variables)]
compute_size(&self) -> u3218572     fn compute_size(&self) -> u32 {
18573         let mut my_size = 0;
18574         if !self.status.is_empty() {
18575             my_size += ::protobuf::rt::string_size(1, &self.status);
18576         }
18577         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
18578         self.cached_size.set(my_size);
18579         my_size
18580     }
18581 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>18582     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18583         if !self.status.is_empty() {
18584             os.write_string(1, &self.status)?;
18585         }
18586         os.write_unknown_fields(self.get_unknown_fields())?;
18587         ::std::result::Result::Ok(())
18588     }
18589 
get_cached_size(&self) -> u3218590     fn get_cached_size(&self) -> u32 {
18591         self.cached_size.get()
18592     }
18593 
get_unknown_fields(&self) -> &::protobuf::UnknownFields18594     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
18595         &self.unknown_fields
18596     }
18597 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields18598     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
18599         &mut self.unknown_fields
18600     }
18601 
as_any(&self) -> &dyn (::std::any::Any)18602     fn as_any(&self) -> &dyn (::std::any::Any) {
18603         self as &dyn (::std::any::Any)
18604     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)18605     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
18606         self as &mut dyn (::std::any::Any)
18607     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>18608     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
18609         self
18610     }
18611 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor18612     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
18613         Self::descriptor_static()
18614     }
18615 
new() -> GetStatusStringReply18616     fn new() -> GetStatusStringReply {
18617         GetStatusStringReply::new()
18618     }
18619 
default_instance() -> &'static GetStatusStringReply18620     fn default_instance() -> &'static GetStatusStringReply {
18621         static instance: ::protobuf::rt::LazyV2<GetStatusStringReply> = ::protobuf::rt::LazyV2::INIT;
18622         instance.get(GetStatusStringReply::new)
18623     }
18624 }
18625 
18626 impl ::protobuf::Clear for GetStatusStringReply {
clear(&mut self)18627     fn clear(&mut self) {
18628         self.status.clear();
18629         self.unknown_fields.clear();
18630     }
18631 }
18632 
18633 impl ::protobuf::reflect::ProtobufValue for GetStatusStringReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef18634     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
18635         ::protobuf::reflect::ReflectValueRef::Message(self)
18636     }
18637 }
18638 
18639 #[derive(PartialEq,Clone,Default,Debug)]
18640 pub struct LockToSingleUserMountUntilRebootRequest {
18641     // message fields
18642     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
18643     // special fields
18644     pub unknown_fields: ::protobuf::UnknownFields,
18645     pub cached_size: ::protobuf::CachedSize,
18646 }
18647 
18648 impl<'a> ::std::default::Default for &'a LockToSingleUserMountUntilRebootRequest {
default() -> &'a LockToSingleUserMountUntilRebootRequest18649     fn default() -> &'a LockToSingleUserMountUntilRebootRequest {
18650         <LockToSingleUserMountUntilRebootRequest as ::protobuf::Message>::default_instance()
18651     }
18652 }
18653 
18654 impl LockToSingleUserMountUntilRebootRequest {
new() -> LockToSingleUserMountUntilRebootRequest18655     pub fn new() -> LockToSingleUserMountUntilRebootRequest {
18656         ::std::default::Default::default()
18657     }
18658 
18659     // .cryptohome.AccountIdentifier account_id = 1;
18660 
18661 
get_account_id(&self) -> &super::rpc::AccountIdentifier18662     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
18663         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
18664     }
clear_account_id(&mut self)18665     pub fn clear_account_id(&mut self) {
18666         self.account_id.clear();
18667     }
18668 
has_account_id(&self) -> bool18669     pub fn has_account_id(&self) -> bool {
18670         self.account_id.is_some()
18671     }
18672 
18673     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)18674     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
18675         self.account_id = ::protobuf::SingularPtrField::some(v);
18676     }
18677 
18678     // Mutable pointer to the field.
18679     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier18680     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
18681         if self.account_id.is_none() {
18682             self.account_id.set_default();
18683         }
18684         self.account_id.as_mut().unwrap()
18685     }
18686 
18687     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier18688     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
18689         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
18690     }
18691 }
18692 
18693 impl ::protobuf::Message for LockToSingleUserMountUntilRebootRequest {
is_initialized(&self) -> bool18694     fn is_initialized(&self) -> bool {
18695         for v in &self.account_id {
18696             if !v.is_initialized() {
18697                 return false;
18698             }
18699         };
18700         true
18701     }
18702 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>18703     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18704         while !is.eof()? {
18705             let (field_number, wire_type) = is.read_tag_unpack()?;
18706             match field_number {
18707                 1 => {
18708                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
18709                 },
18710                 _ => {
18711                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
18712                 },
18713             };
18714         }
18715         ::std::result::Result::Ok(())
18716     }
18717 
18718     // Compute sizes of nested messages
18719     #[allow(unused_variables)]
compute_size(&self) -> u3218720     fn compute_size(&self) -> u32 {
18721         let mut my_size = 0;
18722         if let Some(ref v) = self.account_id.as_ref() {
18723             let len = v.compute_size();
18724             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
18725         }
18726         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
18727         self.cached_size.set(my_size);
18728         my_size
18729     }
18730 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>18731     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18732         if let Some(ref v) = self.account_id.as_ref() {
18733             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
18734             os.write_raw_varint32(v.get_cached_size())?;
18735             v.write_to_with_cached_sizes(os)?;
18736         }
18737         os.write_unknown_fields(self.get_unknown_fields())?;
18738         ::std::result::Result::Ok(())
18739     }
18740 
get_cached_size(&self) -> u3218741     fn get_cached_size(&self) -> u32 {
18742         self.cached_size.get()
18743     }
18744 
get_unknown_fields(&self) -> &::protobuf::UnknownFields18745     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
18746         &self.unknown_fields
18747     }
18748 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields18749     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
18750         &mut self.unknown_fields
18751     }
18752 
as_any(&self) -> &dyn (::std::any::Any)18753     fn as_any(&self) -> &dyn (::std::any::Any) {
18754         self as &dyn (::std::any::Any)
18755     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)18756     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
18757         self as &mut dyn (::std::any::Any)
18758     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>18759     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
18760         self
18761     }
18762 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor18763     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
18764         Self::descriptor_static()
18765     }
18766 
new() -> LockToSingleUserMountUntilRebootRequest18767     fn new() -> LockToSingleUserMountUntilRebootRequest {
18768         LockToSingleUserMountUntilRebootRequest::new()
18769     }
18770 
default_instance() -> &'static LockToSingleUserMountUntilRebootRequest18771     fn default_instance() -> &'static LockToSingleUserMountUntilRebootRequest {
18772         static instance: ::protobuf::rt::LazyV2<LockToSingleUserMountUntilRebootRequest> = ::protobuf::rt::LazyV2::INIT;
18773         instance.get(LockToSingleUserMountUntilRebootRequest::new)
18774     }
18775 }
18776 
18777 impl ::protobuf::Clear for LockToSingleUserMountUntilRebootRequest {
clear(&mut self)18778     fn clear(&mut self) {
18779         self.account_id.clear();
18780         self.unknown_fields.clear();
18781     }
18782 }
18783 
18784 impl ::protobuf::reflect::ProtobufValue for LockToSingleUserMountUntilRebootRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef18785     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
18786         ::protobuf::reflect::ReflectValueRef::Message(self)
18787     }
18788 }
18789 
18790 #[derive(PartialEq,Clone,Default,Debug)]
18791 pub struct LockToSingleUserMountUntilRebootReply {
18792     // message fields
18793     pub error: CryptohomeErrorCode,
18794     // special fields
18795     pub unknown_fields: ::protobuf::UnknownFields,
18796     pub cached_size: ::protobuf::CachedSize,
18797 }
18798 
18799 impl<'a> ::std::default::Default for &'a LockToSingleUserMountUntilRebootReply {
default() -> &'a LockToSingleUserMountUntilRebootReply18800     fn default() -> &'a LockToSingleUserMountUntilRebootReply {
18801         <LockToSingleUserMountUntilRebootReply as ::protobuf::Message>::default_instance()
18802     }
18803 }
18804 
18805 impl LockToSingleUserMountUntilRebootReply {
new() -> LockToSingleUserMountUntilRebootReply18806     pub fn new() -> LockToSingleUserMountUntilRebootReply {
18807         ::std::default::Default::default()
18808     }
18809 
18810     // .user_data_auth.CryptohomeErrorCode error = 1;
18811 
18812 
get_error(&self) -> CryptohomeErrorCode18813     pub fn get_error(&self) -> CryptohomeErrorCode {
18814         self.error
18815     }
clear_error(&mut self)18816     pub fn clear_error(&mut self) {
18817         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
18818     }
18819 
18820     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)18821     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
18822         self.error = v;
18823     }
18824 }
18825 
18826 impl ::protobuf::Message for LockToSingleUserMountUntilRebootReply {
is_initialized(&self) -> bool18827     fn is_initialized(&self) -> bool {
18828         true
18829     }
18830 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>18831     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18832         while !is.eof()? {
18833             let (field_number, wire_type) = is.read_tag_unpack()?;
18834             match field_number {
18835                 1 => {
18836                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
18837                 },
18838                 _ => {
18839                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
18840                 },
18841             };
18842         }
18843         ::std::result::Result::Ok(())
18844     }
18845 
18846     // Compute sizes of nested messages
18847     #[allow(unused_variables)]
compute_size(&self) -> u3218848     fn compute_size(&self) -> u32 {
18849         let mut my_size = 0;
18850         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
18851             my_size += ::protobuf::rt::enum_size(1, self.error);
18852         }
18853         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
18854         self.cached_size.set(my_size);
18855         my_size
18856     }
18857 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>18858     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18859         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
18860             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
18861         }
18862         os.write_unknown_fields(self.get_unknown_fields())?;
18863         ::std::result::Result::Ok(())
18864     }
18865 
get_cached_size(&self) -> u3218866     fn get_cached_size(&self) -> u32 {
18867         self.cached_size.get()
18868     }
18869 
get_unknown_fields(&self) -> &::protobuf::UnknownFields18870     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
18871         &self.unknown_fields
18872     }
18873 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields18874     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
18875         &mut self.unknown_fields
18876     }
18877 
as_any(&self) -> &dyn (::std::any::Any)18878     fn as_any(&self) -> &dyn (::std::any::Any) {
18879         self as &dyn (::std::any::Any)
18880     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)18881     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
18882         self as &mut dyn (::std::any::Any)
18883     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>18884     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
18885         self
18886     }
18887 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor18888     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
18889         Self::descriptor_static()
18890     }
18891 
new() -> LockToSingleUserMountUntilRebootReply18892     fn new() -> LockToSingleUserMountUntilRebootReply {
18893         LockToSingleUserMountUntilRebootReply::new()
18894     }
18895 
default_instance() -> &'static LockToSingleUserMountUntilRebootReply18896     fn default_instance() -> &'static LockToSingleUserMountUntilRebootReply {
18897         static instance: ::protobuf::rt::LazyV2<LockToSingleUserMountUntilRebootReply> = ::protobuf::rt::LazyV2::INIT;
18898         instance.get(LockToSingleUserMountUntilRebootReply::new)
18899     }
18900 }
18901 
18902 impl ::protobuf::Clear for LockToSingleUserMountUntilRebootReply {
clear(&mut self)18903     fn clear(&mut self) {
18904         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
18905         self.unknown_fields.clear();
18906     }
18907 }
18908 
18909 impl ::protobuf::reflect::ProtobufValue for LockToSingleUserMountUntilRebootReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef18910     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
18911         ::protobuf::reflect::ReflectValueRef::Message(self)
18912     }
18913 }
18914 
18915 #[derive(PartialEq,Clone,Default,Debug)]
18916 pub struct GetRsuDeviceIdReply {
18917     // message fields
18918     pub error: CryptohomeErrorCode,
18919     pub rsu_device_id: ::std::vec::Vec<u8>,
18920     // special fields
18921     pub unknown_fields: ::protobuf::UnknownFields,
18922     pub cached_size: ::protobuf::CachedSize,
18923 }
18924 
18925 impl<'a> ::std::default::Default for &'a GetRsuDeviceIdReply {
default() -> &'a GetRsuDeviceIdReply18926     fn default() -> &'a GetRsuDeviceIdReply {
18927         <GetRsuDeviceIdReply as ::protobuf::Message>::default_instance()
18928     }
18929 }
18930 
18931 impl GetRsuDeviceIdReply {
new() -> GetRsuDeviceIdReply18932     pub fn new() -> GetRsuDeviceIdReply {
18933         ::std::default::Default::default()
18934     }
18935 
18936     // .user_data_auth.CryptohomeErrorCode error = 1;
18937 
18938 
get_error(&self) -> CryptohomeErrorCode18939     pub fn get_error(&self) -> CryptohomeErrorCode {
18940         self.error
18941     }
clear_error(&mut self)18942     pub fn clear_error(&mut self) {
18943         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
18944     }
18945 
18946     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)18947     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
18948         self.error = v;
18949     }
18950 
18951     // bytes rsu_device_id = 2;
18952 
18953 
get_rsu_device_id(&self) -> &[u8]18954     pub fn get_rsu_device_id(&self) -> &[u8] {
18955         &self.rsu_device_id
18956     }
clear_rsu_device_id(&mut self)18957     pub fn clear_rsu_device_id(&mut self) {
18958         self.rsu_device_id.clear();
18959     }
18960 
18961     // Param is passed by value, moved
set_rsu_device_id(&mut self, v: ::std::vec::Vec<u8>)18962     pub fn set_rsu_device_id(&mut self, v: ::std::vec::Vec<u8>) {
18963         self.rsu_device_id = v;
18964     }
18965 
18966     // Mutable pointer to the field.
18967     // If field is not initialized, it is initialized with default value first.
mut_rsu_device_id(&mut self) -> &mut ::std::vec::Vec<u8>18968     pub fn mut_rsu_device_id(&mut self) -> &mut ::std::vec::Vec<u8> {
18969         &mut self.rsu_device_id
18970     }
18971 
18972     // Take field
take_rsu_device_id(&mut self) -> ::std::vec::Vec<u8>18973     pub fn take_rsu_device_id(&mut self) -> ::std::vec::Vec<u8> {
18974         ::std::mem::replace(&mut self.rsu_device_id, ::std::vec::Vec::new())
18975     }
18976 }
18977 
18978 impl ::protobuf::Message for GetRsuDeviceIdReply {
is_initialized(&self) -> bool18979     fn is_initialized(&self) -> bool {
18980         true
18981     }
18982 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>18983     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
18984         while !is.eof()? {
18985             let (field_number, wire_type) = is.read_tag_unpack()?;
18986             match field_number {
18987                 1 => {
18988                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
18989                 },
18990                 2 => {
18991                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.rsu_device_id)?;
18992                 },
18993                 _ => {
18994                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
18995                 },
18996             };
18997         }
18998         ::std::result::Result::Ok(())
18999     }
19000 
19001     // Compute sizes of nested messages
19002     #[allow(unused_variables)]
compute_size(&self) -> u3219003     fn compute_size(&self) -> u32 {
19004         let mut my_size = 0;
19005         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
19006             my_size += ::protobuf::rt::enum_size(1, self.error);
19007         }
19008         if !self.rsu_device_id.is_empty() {
19009             my_size += ::protobuf::rt::bytes_size(2, &self.rsu_device_id);
19010         }
19011         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
19012         self.cached_size.set(my_size);
19013         my_size
19014     }
19015 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>19016     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19017         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
19018             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
19019         }
19020         if !self.rsu_device_id.is_empty() {
19021             os.write_bytes(2, &self.rsu_device_id)?;
19022         }
19023         os.write_unknown_fields(self.get_unknown_fields())?;
19024         ::std::result::Result::Ok(())
19025     }
19026 
get_cached_size(&self) -> u3219027     fn get_cached_size(&self) -> u32 {
19028         self.cached_size.get()
19029     }
19030 
get_unknown_fields(&self) -> &::protobuf::UnknownFields19031     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
19032         &self.unknown_fields
19033     }
19034 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields19035     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
19036         &mut self.unknown_fields
19037     }
19038 
as_any(&self) -> &dyn (::std::any::Any)19039     fn as_any(&self) -> &dyn (::std::any::Any) {
19040         self as &dyn (::std::any::Any)
19041     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)19042     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
19043         self as &mut dyn (::std::any::Any)
19044     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>19045     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
19046         self
19047     }
19048 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor19049     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
19050         Self::descriptor_static()
19051     }
19052 
new() -> GetRsuDeviceIdReply19053     fn new() -> GetRsuDeviceIdReply {
19054         GetRsuDeviceIdReply::new()
19055     }
19056 
default_instance() -> &'static GetRsuDeviceIdReply19057     fn default_instance() -> &'static GetRsuDeviceIdReply {
19058         static instance: ::protobuf::rt::LazyV2<GetRsuDeviceIdReply> = ::protobuf::rt::LazyV2::INIT;
19059         instance.get(GetRsuDeviceIdReply::new)
19060     }
19061 }
19062 
19063 impl ::protobuf::Clear for GetRsuDeviceIdReply {
clear(&mut self)19064     fn clear(&mut self) {
19065         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
19066         self.rsu_device_id.clear();
19067         self.unknown_fields.clear();
19068     }
19069 }
19070 
19071 impl ::protobuf::reflect::ProtobufValue for GetRsuDeviceIdReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef19072     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
19073         ::protobuf::reflect::ReflectValueRef::Message(self)
19074     }
19075 }
19076 
19077 #[derive(PartialEq,Clone,Default,Debug)]
19078 pub struct GetRsuDeviceIdRequest {
19079     // special fields
19080     pub unknown_fields: ::protobuf::UnknownFields,
19081     pub cached_size: ::protobuf::CachedSize,
19082 }
19083 
19084 impl<'a> ::std::default::Default for &'a GetRsuDeviceIdRequest {
default() -> &'a GetRsuDeviceIdRequest19085     fn default() -> &'a GetRsuDeviceIdRequest {
19086         <GetRsuDeviceIdRequest as ::protobuf::Message>::default_instance()
19087     }
19088 }
19089 
19090 impl GetRsuDeviceIdRequest {
new() -> GetRsuDeviceIdRequest19091     pub fn new() -> GetRsuDeviceIdRequest {
19092         ::std::default::Default::default()
19093     }
19094 }
19095 
19096 impl ::protobuf::Message for GetRsuDeviceIdRequest {
is_initialized(&self) -> bool19097     fn is_initialized(&self) -> bool {
19098         true
19099     }
19100 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>19101     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19102         while !is.eof()? {
19103             let (field_number, wire_type) = is.read_tag_unpack()?;
19104             match field_number {
19105                 _ => {
19106                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
19107                 },
19108             };
19109         }
19110         ::std::result::Result::Ok(())
19111     }
19112 
19113     // Compute sizes of nested messages
19114     #[allow(unused_variables)]
compute_size(&self) -> u3219115     fn compute_size(&self) -> u32 {
19116         let mut my_size = 0;
19117         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
19118         self.cached_size.set(my_size);
19119         my_size
19120     }
19121 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>19122     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19123         os.write_unknown_fields(self.get_unknown_fields())?;
19124         ::std::result::Result::Ok(())
19125     }
19126 
get_cached_size(&self) -> u3219127     fn get_cached_size(&self) -> u32 {
19128         self.cached_size.get()
19129     }
19130 
get_unknown_fields(&self) -> &::protobuf::UnknownFields19131     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
19132         &self.unknown_fields
19133     }
19134 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields19135     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
19136         &mut self.unknown_fields
19137     }
19138 
as_any(&self) -> &dyn (::std::any::Any)19139     fn as_any(&self) -> &dyn (::std::any::Any) {
19140         self as &dyn (::std::any::Any)
19141     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)19142     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
19143         self as &mut dyn (::std::any::Any)
19144     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>19145     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
19146         self
19147     }
19148 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor19149     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
19150         Self::descriptor_static()
19151     }
19152 
new() -> GetRsuDeviceIdRequest19153     fn new() -> GetRsuDeviceIdRequest {
19154         GetRsuDeviceIdRequest::new()
19155     }
19156 
default_instance() -> &'static GetRsuDeviceIdRequest19157     fn default_instance() -> &'static GetRsuDeviceIdRequest {
19158         static instance: ::protobuf::rt::LazyV2<GetRsuDeviceIdRequest> = ::protobuf::rt::LazyV2::INIT;
19159         instance.get(GetRsuDeviceIdRequest::new)
19160     }
19161 }
19162 
19163 impl ::protobuf::Clear for GetRsuDeviceIdRequest {
clear(&mut self)19164     fn clear(&mut self) {
19165         self.unknown_fields.clear();
19166     }
19167 }
19168 
19169 impl ::protobuf::reflect::ProtobufValue for GetRsuDeviceIdRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef19170     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
19171         ::protobuf::reflect::ReflectValueRef::Message(self)
19172     }
19173 }
19174 
19175 #[derive(PartialEq,Clone,Default,Debug)]
19176 pub struct CheckHealthRequest {
19177     // special fields
19178     pub unknown_fields: ::protobuf::UnknownFields,
19179     pub cached_size: ::protobuf::CachedSize,
19180 }
19181 
19182 impl<'a> ::std::default::Default for &'a CheckHealthRequest {
default() -> &'a CheckHealthRequest19183     fn default() -> &'a CheckHealthRequest {
19184         <CheckHealthRequest as ::protobuf::Message>::default_instance()
19185     }
19186 }
19187 
19188 impl CheckHealthRequest {
new() -> CheckHealthRequest19189     pub fn new() -> CheckHealthRequest {
19190         ::std::default::Default::default()
19191     }
19192 }
19193 
19194 impl ::protobuf::Message for CheckHealthRequest {
is_initialized(&self) -> bool19195     fn is_initialized(&self) -> bool {
19196         true
19197     }
19198 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>19199     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19200         while !is.eof()? {
19201             let (field_number, wire_type) = is.read_tag_unpack()?;
19202             match field_number {
19203                 _ => {
19204                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
19205                 },
19206             };
19207         }
19208         ::std::result::Result::Ok(())
19209     }
19210 
19211     // Compute sizes of nested messages
19212     #[allow(unused_variables)]
compute_size(&self) -> u3219213     fn compute_size(&self) -> u32 {
19214         let mut my_size = 0;
19215         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
19216         self.cached_size.set(my_size);
19217         my_size
19218     }
19219 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>19220     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19221         os.write_unknown_fields(self.get_unknown_fields())?;
19222         ::std::result::Result::Ok(())
19223     }
19224 
get_cached_size(&self) -> u3219225     fn get_cached_size(&self) -> u32 {
19226         self.cached_size.get()
19227     }
19228 
get_unknown_fields(&self) -> &::protobuf::UnknownFields19229     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
19230         &self.unknown_fields
19231     }
19232 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields19233     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
19234         &mut self.unknown_fields
19235     }
19236 
as_any(&self) -> &dyn (::std::any::Any)19237     fn as_any(&self) -> &dyn (::std::any::Any) {
19238         self as &dyn (::std::any::Any)
19239     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)19240     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
19241         self as &mut dyn (::std::any::Any)
19242     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>19243     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
19244         self
19245     }
19246 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor19247     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
19248         Self::descriptor_static()
19249     }
19250 
new() -> CheckHealthRequest19251     fn new() -> CheckHealthRequest {
19252         CheckHealthRequest::new()
19253     }
19254 
default_instance() -> &'static CheckHealthRequest19255     fn default_instance() -> &'static CheckHealthRequest {
19256         static instance: ::protobuf::rt::LazyV2<CheckHealthRequest> = ::protobuf::rt::LazyV2::INIT;
19257         instance.get(CheckHealthRequest::new)
19258     }
19259 }
19260 
19261 impl ::protobuf::Clear for CheckHealthRequest {
clear(&mut self)19262     fn clear(&mut self) {
19263         self.unknown_fields.clear();
19264     }
19265 }
19266 
19267 impl ::protobuf::reflect::ProtobufValue for CheckHealthRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef19268     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
19269         ::protobuf::reflect::ReflectValueRef::Message(self)
19270     }
19271 }
19272 
19273 #[derive(PartialEq,Clone,Default,Debug)]
19274 pub struct CheckHealthReply {
19275     // message fields
19276     pub requires_powerwash: bool,
19277     // special fields
19278     pub unknown_fields: ::protobuf::UnknownFields,
19279     pub cached_size: ::protobuf::CachedSize,
19280 }
19281 
19282 impl<'a> ::std::default::Default for &'a CheckHealthReply {
default() -> &'a CheckHealthReply19283     fn default() -> &'a CheckHealthReply {
19284         <CheckHealthReply as ::protobuf::Message>::default_instance()
19285     }
19286 }
19287 
19288 impl CheckHealthReply {
new() -> CheckHealthReply19289     pub fn new() -> CheckHealthReply {
19290         ::std::default::Default::default()
19291     }
19292 
19293     // bool requires_powerwash = 2;
19294 
19295 
get_requires_powerwash(&self) -> bool19296     pub fn get_requires_powerwash(&self) -> bool {
19297         self.requires_powerwash
19298     }
clear_requires_powerwash(&mut self)19299     pub fn clear_requires_powerwash(&mut self) {
19300         self.requires_powerwash = false;
19301     }
19302 
19303     // Param is passed by value, moved
set_requires_powerwash(&mut self, v: bool)19304     pub fn set_requires_powerwash(&mut self, v: bool) {
19305         self.requires_powerwash = v;
19306     }
19307 }
19308 
19309 impl ::protobuf::Message for CheckHealthReply {
is_initialized(&self) -> bool19310     fn is_initialized(&self) -> bool {
19311         true
19312     }
19313 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>19314     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19315         while !is.eof()? {
19316             let (field_number, wire_type) = is.read_tag_unpack()?;
19317             match field_number {
19318                 2 => {
19319                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
19320                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
19321                     }
19322                     let tmp = is.read_bool()?;
19323                     self.requires_powerwash = tmp;
19324                 },
19325                 _ => {
19326                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
19327                 },
19328             };
19329         }
19330         ::std::result::Result::Ok(())
19331     }
19332 
19333     // Compute sizes of nested messages
19334     #[allow(unused_variables)]
compute_size(&self) -> u3219335     fn compute_size(&self) -> u32 {
19336         let mut my_size = 0;
19337         if self.requires_powerwash != false {
19338             my_size += 2;
19339         }
19340         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
19341         self.cached_size.set(my_size);
19342         my_size
19343     }
19344 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>19345     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19346         if self.requires_powerwash != false {
19347             os.write_bool(2, self.requires_powerwash)?;
19348         }
19349         os.write_unknown_fields(self.get_unknown_fields())?;
19350         ::std::result::Result::Ok(())
19351     }
19352 
get_cached_size(&self) -> u3219353     fn get_cached_size(&self) -> u32 {
19354         self.cached_size.get()
19355     }
19356 
get_unknown_fields(&self) -> &::protobuf::UnknownFields19357     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
19358         &self.unknown_fields
19359     }
19360 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields19361     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
19362         &mut self.unknown_fields
19363     }
19364 
as_any(&self) -> &dyn (::std::any::Any)19365     fn as_any(&self) -> &dyn (::std::any::Any) {
19366         self as &dyn (::std::any::Any)
19367     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)19368     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
19369         self as &mut dyn (::std::any::Any)
19370     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>19371     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
19372         self
19373     }
19374 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor19375     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
19376         Self::descriptor_static()
19377     }
19378 
new() -> CheckHealthReply19379     fn new() -> CheckHealthReply {
19380         CheckHealthReply::new()
19381     }
19382 
default_instance() -> &'static CheckHealthReply19383     fn default_instance() -> &'static CheckHealthReply {
19384         static instance: ::protobuf::rt::LazyV2<CheckHealthReply> = ::protobuf::rt::LazyV2::INIT;
19385         instance.get(CheckHealthReply::new)
19386     }
19387 }
19388 
19389 impl ::protobuf::Clear for CheckHealthReply {
clear(&mut self)19390     fn clear(&mut self) {
19391         self.requires_powerwash = false;
19392         self.unknown_fields.clear();
19393     }
19394 }
19395 
19396 impl ::protobuf::reflect::ProtobufValue for CheckHealthReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef19397     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
19398         ::protobuf::reflect::ReflectValueRef::Message(self)
19399     }
19400 }
19401 
19402 #[derive(PartialEq,Clone,Default,Debug)]
19403 pub struct ResetApplicationContainerRequest {
19404     // message fields
19405     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
19406     pub application_name: ::std::string::String,
19407     // special fields
19408     pub unknown_fields: ::protobuf::UnknownFields,
19409     pub cached_size: ::protobuf::CachedSize,
19410 }
19411 
19412 impl<'a> ::std::default::Default for &'a ResetApplicationContainerRequest {
default() -> &'a ResetApplicationContainerRequest19413     fn default() -> &'a ResetApplicationContainerRequest {
19414         <ResetApplicationContainerRequest as ::protobuf::Message>::default_instance()
19415     }
19416 }
19417 
19418 impl ResetApplicationContainerRequest {
new() -> ResetApplicationContainerRequest19419     pub fn new() -> ResetApplicationContainerRequest {
19420         ::std::default::Default::default()
19421     }
19422 
19423     // .cryptohome.AccountIdentifier account_id = 1;
19424 
19425 
get_account_id(&self) -> &super::rpc::AccountIdentifier19426     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
19427         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
19428     }
clear_account_id(&mut self)19429     pub fn clear_account_id(&mut self) {
19430         self.account_id.clear();
19431     }
19432 
has_account_id(&self) -> bool19433     pub fn has_account_id(&self) -> bool {
19434         self.account_id.is_some()
19435     }
19436 
19437     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)19438     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
19439         self.account_id = ::protobuf::SingularPtrField::some(v);
19440     }
19441 
19442     // Mutable pointer to the field.
19443     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier19444     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
19445         if self.account_id.is_none() {
19446             self.account_id.set_default();
19447         }
19448         self.account_id.as_mut().unwrap()
19449     }
19450 
19451     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier19452     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
19453         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
19454     }
19455 
19456     // string application_name = 2;
19457 
19458 
get_application_name(&self) -> &str19459     pub fn get_application_name(&self) -> &str {
19460         &self.application_name
19461     }
clear_application_name(&mut self)19462     pub fn clear_application_name(&mut self) {
19463         self.application_name.clear();
19464     }
19465 
19466     // Param is passed by value, moved
set_application_name(&mut self, v: ::std::string::String)19467     pub fn set_application_name(&mut self, v: ::std::string::String) {
19468         self.application_name = v;
19469     }
19470 
19471     // Mutable pointer to the field.
19472     // If field is not initialized, it is initialized with default value first.
mut_application_name(&mut self) -> &mut ::std::string::String19473     pub fn mut_application_name(&mut self) -> &mut ::std::string::String {
19474         &mut self.application_name
19475     }
19476 
19477     // Take field
take_application_name(&mut self) -> ::std::string::String19478     pub fn take_application_name(&mut self) -> ::std::string::String {
19479         ::std::mem::replace(&mut self.application_name, ::std::string::String::new())
19480     }
19481 }
19482 
19483 impl ::protobuf::Message for ResetApplicationContainerRequest {
is_initialized(&self) -> bool19484     fn is_initialized(&self) -> bool {
19485         for v in &self.account_id {
19486             if !v.is_initialized() {
19487                 return false;
19488             }
19489         };
19490         true
19491     }
19492 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>19493     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19494         while !is.eof()? {
19495             let (field_number, wire_type) = is.read_tag_unpack()?;
19496             match field_number {
19497                 1 => {
19498                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
19499                 },
19500                 2 => {
19501                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.application_name)?;
19502                 },
19503                 _ => {
19504                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
19505                 },
19506             };
19507         }
19508         ::std::result::Result::Ok(())
19509     }
19510 
19511     // Compute sizes of nested messages
19512     #[allow(unused_variables)]
compute_size(&self) -> u3219513     fn compute_size(&self) -> u32 {
19514         let mut my_size = 0;
19515         if let Some(ref v) = self.account_id.as_ref() {
19516             let len = v.compute_size();
19517             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
19518         }
19519         if !self.application_name.is_empty() {
19520             my_size += ::protobuf::rt::string_size(2, &self.application_name);
19521         }
19522         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
19523         self.cached_size.set(my_size);
19524         my_size
19525     }
19526 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>19527     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19528         if let Some(ref v) = self.account_id.as_ref() {
19529             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
19530             os.write_raw_varint32(v.get_cached_size())?;
19531             v.write_to_with_cached_sizes(os)?;
19532         }
19533         if !self.application_name.is_empty() {
19534             os.write_string(2, &self.application_name)?;
19535         }
19536         os.write_unknown_fields(self.get_unknown_fields())?;
19537         ::std::result::Result::Ok(())
19538     }
19539 
get_cached_size(&self) -> u3219540     fn get_cached_size(&self) -> u32 {
19541         self.cached_size.get()
19542     }
19543 
get_unknown_fields(&self) -> &::protobuf::UnknownFields19544     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
19545         &self.unknown_fields
19546     }
19547 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields19548     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
19549         &mut self.unknown_fields
19550     }
19551 
as_any(&self) -> &dyn (::std::any::Any)19552     fn as_any(&self) -> &dyn (::std::any::Any) {
19553         self as &dyn (::std::any::Any)
19554     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)19555     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
19556         self as &mut dyn (::std::any::Any)
19557     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>19558     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
19559         self
19560     }
19561 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor19562     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
19563         Self::descriptor_static()
19564     }
19565 
new() -> ResetApplicationContainerRequest19566     fn new() -> ResetApplicationContainerRequest {
19567         ResetApplicationContainerRequest::new()
19568     }
19569 
default_instance() -> &'static ResetApplicationContainerRequest19570     fn default_instance() -> &'static ResetApplicationContainerRequest {
19571         static instance: ::protobuf::rt::LazyV2<ResetApplicationContainerRequest> = ::protobuf::rt::LazyV2::INIT;
19572         instance.get(ResetApplicationContainerRequest::new)
19573     }
19574 }
19575 
19576 impl ::protobuf::Clear for ResetApplicationContainerRequest {
clear(&mut self)19577     fn clear(&mut self) {
19578         self.account_id.clear();
19579         self.application_name.clear();
19580         self.unknown_fields.clear();
19581     }
19582 }
19583 
19584 impl ::protobuf::reflect::ProtobufValue for ResetApplicationContainerRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef19585     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
19586         ::protobuf::reflect::ReflectValueRef::Message(self)
19587     }
19588 }
19589 
19590 #[derive(PartialEq,Clone,Default,Debug)]
19591 pub struct ResetApplicationContainerReply {
19592     // message fields
19593     pub error: CryptohomeErrorCode,
19594     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
19595     // special fields
19596     pub unknown_fields: ::protobuf::UnknownFields,
19597     pub cached_size: ::protobuf::CachedSize,
19598 }
19599 
19600 impl<'a> ::std::default::Default for &'a ResetApplicationContainerReply {
default() -> &'a ResetApplicationContainerReply19601     fn default() -> &'a ResetApplicationContainerReply {
19602         <ResetApplicationContainerReply as ::protobuf::Message>::default_instance()
19603     }
19604 }
19605 
19606 impl ResetApplicationContainerReply {
new() -> ResetApplicationContainerReply19607     pub fn new() -> ResetApplicationContainerReply {
19608         ::std::default::Default::default()
19609     }
19610 
19611     // .user_data_auth.CryptohomeErrorCode error = 1;
19612 
19613 
get_error(&self) -> CryptohomeErrorCode19614     pub fn get_error(&self) -> CryptohomeErrorCode {
19615         self.error
19616     }
clear_error(&mut self)19617     pub fn clear_error(&mut self) {
19618         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
19619     }
19620 
19621     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)19622     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
19623         self.error = v;
19624     }
19625 
19626     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
19627 
19628 
get_error_info(&self) -> &CryptohomeErrorInfo19629     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
19630         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
19631     }
clear_error_info(&mut self)19632     pub fn clear_error_info(&mut self) {
19633         self.error_info.clear();
19634     }
19635 
has_error_info(&self) -> bool19636     pub fn has_error_info(&self) -> bool {
19637         self.error_info.is_some()
19638     }
19639 
19640     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)19641     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
19642         self.error_info = ::protobuf::SingularPtrField::some(v);
19643     }
19644 
19645     // Mutable pointer to the field.
19646     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo19647     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
19648         if self.error_info.is_none() {
19649             self.error_info.set_default();
19650         }
19651         self.error_info.as_mut().unwrap()
19652     }
19653 
19654     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo19655     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
19656         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
19657     }
19658 }
19659 
19660 impl ::protobuf::Message for ResetApplicationContainerReply {
is_initialized(&self) -> bool19661     fn is_initialized(&self) -> bool {
19662         for v in &self.error_info {
19663             if !v.is_initialized() {
19664                 return false;
19665             }
19666         };
19667         true
19668     }
19669 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>19670     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19671         while !is.eof()? {
19672             let (field_number, wire_type) = is.read_tag_unpack()?;
19673             match field_number {
19674                 1 => {
19675                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
19676                 },
19677                 2 => {
19678                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
19679                 },
19680                 _ => {
19681                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
19682                 },
19683             };
19684         }
19685         ::std::result::Result::Ok(())
19686     }
19687 
19688     // Compute sizes of nested messages
19689     #[allow(unused_variables)]
compute_size(&self) -> u3219690     fn compute_size(&self) -> u32 {
19691         let mut my_size = 0;
19692         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
19693             my_size += ::protobuf::rt::enum_size(1, self.error);
19694         }
19695         if let Some(ref v) = self.error_info.as_ref() {
19696             let len = v.compute_size();
19697             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
19698         }
19699         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
19700         self.cached_size.set(my_size);
19701         my_size
19702     }
19703 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>19704     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19705         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
19706             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
19707         }
19708         if let Some(ref v) = self.error_info.as_ref() {
19709             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
19710             os.write_raw_varint32(v.get_cached_size())?;
19711             v.write_to_with_cached_sizes(os)?;
19712         }
19713         os.write_unknown_fields(self.get_unknown_fields())?;
19714         ::std::result::Result::Ok(())
19715     }
19716 
get_cached_size(&self) -> u3219717     fn get_cached_size(&self) -> u32 {
19718         self.cached_size.get()
19719     }
19720 
get_unknown_fields(&self) -> &::protobuf::UnknownFields19721     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
19722         &self.unknown_fields
19723     }
19724 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields19725     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
19726         &mut self.unknown_fields
19727     }
19728 
as_any(&self) -> &dyn (::std::any::Any)19729     fn as_any(&self) -> &dyn (::std::any::Any) {
19730         self as &dyn (::std::any::Any)
19731     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)19732     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
19733         self as &mut dyn (::std::any::Any)
19734     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>19735     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
19736         self
19737     }
19738 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor19739     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
19740         Self::descriptor_static()
19741     }
19742 
new() -> ResetApplicationContainerReply19743     fn new() -> ResetApplicationContainerReply {
19744         ResetApplicationContainerReply::new()
19745     }
19746 
default_instance() -> &'static ResetApplicationContainerReply19747     fn default_instance() -> &'static ResetApplicationContainerReply {
19748         static instance: ::protobuf::rt::LazyV2<ResetApplicationContainerReply> = ::protobuf::rt::LazyV2::INIT;
19749         instance.get(ResetApplicationContainerReply::new)
19750     }
19751 }
19752 
19753 impl ::protobuf::Clear for ResetApplicationContainerReply {
clear(&mut self)19754     fn clear(&mut self) {
19755         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
19756         self.error_info.clear();
19757         self.unknown_fields.clear();
19758     }
19759 }
19760 
19761 impl ::protobuf::reflect::ProtobufValue for ResetApplicationContainerReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef19762     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
19763         ::protobuf::reflect::ReflectValueRef::Message(self)
19764     }
19765 }
19766 
19767 #[derive(PartialEq,Clone,Default,Debug)]
19768 pub struct FidoMakeCredentialRequest {
19769     // message fields
19770     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
19771     pub make_credential_options: ::protobuf::SingularPtrField<super::fido::PublicKeyCredentialCreationOptions>,
19772     // special fields
19773     pub unknown_fields: ::protobuf::UnknownFields,
19774     pub cached_size: ::protobuf::CachedSize,
19775 }
19776 
19777 impl<'a> ::std::default::Default for &'a FidoMakeCredentialRequest {
default() -> &'a FidoMakeCredentialRequest19778     fn default() -> &'a FidoMakeCredentialRequest {
19779         <FidoMakeCredentialRequest as ::protobuf::Message>::default_instance()
19780     }
19781 }
19782 
19783 impl FidoMakeCredentialRequest {
new() -> FidoMakeCredentialRequest19784     pub fn new() -> FidoMakeCredentialRequest {
19785         ::std::default::Default::default()
19786     }
19787 
19788     // .cryptohome.AccountIdentifier account_id = 1;
19789 
19790 
get_account_id(&self) -> &super::rpc::AccountIdentifier19791     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
19792         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
19793     }
clear_account_id(&mut self)19794     pub fn clear_account_id(&mut self) {
19795         self.account_id.clear();
19796     }
19797 
has_account_id(&self) -> bool19798     pub fn has_account_id(&self) -> bool {
19799         self.account_id.is_some()
19800     }
19801 
19802     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)19803     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
19804         self.account_id = ::protobuf::SingularPtrField::some(v);
19805     }
19806 
19807     // Mutable pointer to the field.
19808     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier19809     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
19810         if self.account_id.is_none() {
19811             self.account_id.set_default();
19812         }
19813         self.account_id.as_mut().unwrap()
19814     }
19815 
19816     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier19817     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
19818         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
19819     }
19820 
19821     // .cryptohome.fido.PublicKeyCredentialCreationOptions make_credential_options = 2;
19822 
19823 
get_make_credential_options(&self) -> &super::fido::PublicKeyCredentialCreationOptions19824     pub fn get_make_credential_options(&self) -> &super::fido::PublicKeyCredentialCreationOptions {
19825         self.make_credential_options.as_ref().unwrap_or_else(|| <super::fido::PublicKeyCredentialCreationOptions as ::protobuf::Message>::default_instance())
19826     }
clear_make_credential_options(&mut self)19827     pub fn clear_make_credential_options(&mut self) {
19828         self.make_credential_options.clear();
19829     }
19830 
has_make_credential_options(&self) -> bool19831     pub fn has_make_credential_options(&self) -> bool {
19832         self.make_credential_options.is_some()
19833     }
19834 
19835     // Param is passed by value, moved
set_make_credential_options(&mut self, v: super::fido::PublicKeyCredentialCreationOptions)19836     pub fn set_make_credential_options(&mut self, v: super::fido::PublicKeyCredentialCreationOptions) {
19837         self.make_credential_options = ::protobuf::SingularPtrField::some(v);
19838     }
19839 
19840     // Mutable pointer to the field.
19841     // If field is not initialized, it is initialized with default value first.
mut_make_credential_options(&mut self) -> &mut super::fido::PublicKeyCredentialCreationOptions19842     pub fn mut_make_credential_options(&mut self) -> &mut super::fido::PublicKeyCredentialCreationOptions {
19843         if self.make_credential_options.is_none() {
19844             self.make_credential_options.set_default();
19845         }
19846         self.make_credential_options.as_mut().unwrap()
19847     }
19848 
19849     // Take field
take_make_credential_options(&mut self) -> super::fido::PublicKeyCredentialCreationOptions19850     pub fn take_make_credential_options(&mut self) -> super::fido::PublicKeyCredentialCreationOptions {
19851         self.make_credential_options.take().unwrap_or_else(|| super::fido::PublicKeyCredentialCreationOptions::new())
19852     }
19853 }
19854 
19855 impl ::protobuf::Message for FidoMakeCredentialRequest {
is_initialized(&self) -> bool19856     fn is_initialized(&self) -> bool {
19857         for v in &self.account_id {
19858             if !v.is_initialized() {
19859                 return false;
19860             }
19861         };
19862         for v in &self.make_credential_options {
19863             if !v.is_initialized() {
19864                 return false;
19865             }
19866         };
19867         true
19868     }
19869 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>19870     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19871         while !is.eof()? {
19872             let (field_number, wire_type) = is.read_tag_unpack()?;
19873             match field_number {
19874                 1 => {
19875                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
19876                 },
19877                 2 => {
19878                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.make_credential_options)?;
19879                 },
19880                 _ => {
19881                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
19882                 },
19883             };
19884         }
19885         ::std::result::Result::Ok(())
19886     }
19887 
19888     // Compute sizes of nested messages
19889     #[allow(unused_variables)]
compute_size(&self) -> u3219890     fn compute_size(&self) -> u32 {
19891         let mut my_size = 0;
19892         if let Some(ref v) = self.account_id.as_ref() {
19893             let len = v.compute_size();
19894             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
19895         }
19896         if let Some(ref v) = self.make_credential_options.as_ref() {
19897             let len = v.compute_size();
19898             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
19899         }
19900         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
19901         self.cached_size.set(my_size);
19902         my_size
19903     }
19904 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>19905     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
19906         if let Some(ref v) = self.account_id.as_ref() {
19907             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
19908             os.write_raw_varint32(v.get_cached_size())?;
19909             v.write_to_with_cached_sizes(os)?;
19910         }
19911         if let Some(ref v) = self.make_credential_options.as_ref() {
19912             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
19913             os.write_raw_varint32(v.get_cached_size())?;
19914             v.write_to_with_cached_sizes(os)?;
19915         }
19916         os.write_unknown_fields(self.get_unknown_fields())?;
19917         ::std::result::Result::Ok(())
19918     }
19919 
get_cached_size(&self) -> u3219920     fn get_cached_size(&self) -> u32 {
19921         self.cached_size.get()
19922     }
19923 
get_unknown_fields(&self) -> &::protobuf::UnknownFields19924     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
19925         &self.unknown_fields
19926     }
19927 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields19928     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
19929         &mut self.unknown_fields
19930     }
19931 
as_any(&self) -> &dyn (::std::any::Any)19932     fn as_any(&self) -> &dyn (::std::any::Any) {
19933         self as &dyn (::std::any::Any)
19934     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)19935     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
19936         self as &mut dyn (::std::any::Any)
19937     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>19938     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
19939         self
19940     }
19941 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor19942     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
19943         Self::descriptor_static()
19944     }
19945 
new() -> FidoMakeCredentialRequest19946     fn new() -> FidoMakeCredentialRequest {
19947         FidoMakeCredentialRequest::new()
19948     }
19949 
default_instance() -> &'static FidoMakeCredentialRequest19950     fn default_instance() -> &'static FidoMakeCredentialRequest {
19951         static instance: ::protobuf::rt::LazyV2<FidoMakeCredentialRequest> = ::protobuf::rt::LazyV2::INIT;
19952         instance.get(FidoMakeCredentialRequest::new)
19953     }
19954 }
19955 
19956 impl ::protobuf::Clear for FidoMakeCredentialRequest {
clear(&mut self)19957     fn clear(&mut self) {
19958         self.account_id.clear();
19959         self.make_credential_options.clear();
19960         self.unknown_fields.clear();
19961     }
19962 }
19963 
19964 impl ::protobuf::reflect::ProtobufValue for FidoMakeCredentialRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef19965     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
19966         ::protobuf::reflect::ReflectValueRef::Message(self)
19967     }
19968 }
19969 
19970 #[derive(PartialEq,Clone,Default,Debug)]
19971 pub struct FidoMakeCredentialReply {
19972     // message fields
19973     pub error: CryptohomeErrorCode,
19974     pub make_credential_response: ::protobuf::SingularPtrField<super::fido::MakeCredentialAuthenticatorResponse>,
19975     // special fields
19976     pub unknown_fields: ::protobuf::UnknownFields,
19977     pub cached_size: ::protobuf::CachedSize,
19978 }
19979 
19980 impl<'a> ::std::default::Default for &'a FidoMakeCredentialReply {
default() -> &'a FidoMakeCredentialReply19981     fn default() -> &'a FidoMakeCredentialReply {
19982         <FidoMakeCredentialReply as ::protobuf::Message>::default_instance()
19983     }
19984 }
19985 
19986 impl FidoMakeCredentialReply {
new() -> FidoMakeCredentialReply19987     pub fn new() -> FidoMakeCredentialReply {
19988         ::std::default::Default::default()
19989     }
19990 
19991     // .user_data_auth.CryptohomeErrorCode error = 1;
19992 
19993 
get_error(&self) -> CryptohomeErrorCode19994     pub fn get_error(&self) -> CryptohomeErrorCode {
19995         self.error
19996     }
clear_error(&mut self)19997     pub fn clear_error(&mut self) {
19998         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
19999     }
20000 
20001     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)20002     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
20003         self.error = v;
20004     }
20005 
20006     // .cryptohome.fido.MakeCredentialAuthenticatorResponse make_credential_response = 2;
20007 
20008 
get_make_credential_response(&self) -> &super::fido::MakeCredentialAuthenticatorResponse20009     pub fn get_make_credential_response(&self) -> &super::fido::MakeCredentialAuthenticatorResponse {
20010         self.make_credential_response.as_ref().unwrap_or_else(|| <super::fido::MakeCredentialAuthenticatorResponse as ::protobuf::Message>::default_instance())
20011     }
clear_make_credential_response(&mut self)20012     pub fn clear_make_credential_response(&mut self) {
20013         self.make_credential_response.clear();
20014     }
20015 
has_make_credential_response(&self) -> bool20016     pub fn has_make_credential_response(&self) -> bool {
20017         self.make_credential_response.is_some()
20018     }
20019 
20020     // Param is passed by value, moved
set_make_credential_response(&mut self, v: super::fido::MakeCredentialAuthenticatorResponse)20021     pub fn set_make_credential_response(&mut self, v: super::fido::MakeCredentialAuthenticatorResponse) {
20022         self.make_credential_response = ::protobuf::SingularPtrField::some(v);
20023     }
20024 
20025     // Mutable pointer to the field.
20026     // If field is not initialized, it is initialized with default value first.
mut_make_credential_response(&mut self) -> &mut super::fido::MakeCredentialAuthenticatorResponse20027     pub fn mut_make_credential_response(&mut self) -> &mut super::fido::MakeCredentialAuthenticatorResponse {
20028         if self.make_credential_response.is_none() {
20029             self.make_credential_response.set_default();
20030         }
20031         self.make_credential_response.as_mut().unwrap()
20032     }
20033 
20034     // Take field
take_make_credential_response(&mut self) -> super::fido::MakeCredentialAuthenticatorResponse20035     pub fn take_make_credential_response(&mut self) -> super::fido::MakeCredentialAuthenticatorResponse {
20036         self.make_credential_response.take().unwrap_or_else(|| super::fido::MakeCredentialAuthenticatorResponse::new())
20037     }
20038 }
20039 
20040 impl ::protobuf::Message for FidoMakeCredentialReply {
is_initialized(&self) -> bool20041     fn is_initialized(&self) -> bool {
20042         for v in &self.make_credential_response {
20043             if !v.is_initialized() {
20044                 return false;
20045             }
20046         };
20047         true
20048     }
20049 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>20050     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
20051         while !is.eof()? {
20052             let (field_number, wire_type) = is.read_tag_unpack()?;
20053             match field_number {
20054                 1 => {
20055                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
20056                 },
20057                 2 => {
20058                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.make_credential_response)?;
20059                 },
20060                 _ => {
20061                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
20062                 },
20063             };
20064         }
20065         ::std::result::Result::Ok(())
20066     }
20067 
20068     // Compute sizes of nested messages
20069     #[allow(unused_variables)]
compute_size(&self) -> u3220070     fn compute_size(&self) -> u32 {
20071         let mut my_size = 0;
20072         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
20073             my_size += ::protobuf::rt::enum_size(1, self.error);
20074         }
20075         if let Some(ref v) = self.make_credential_response.as_ref() {
20076             let len = v.compute_size();
20077             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
20078         }
20079         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
20080         self.cached_size.set(my_size);
20081         my_size
20082     }
20083 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>20084     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
20085         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
20086             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
20087         }
20088         if let Some(ref v) = self.make_credential_response.as_ref() {
20089             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
20090             os.write_raw_varint32(v.get_cached_size())?;
20091             v.write_to_with_cached_sizes(os)?;
20092         }
20093         os.write_unknown_fields(self.get_unknown_fields())?;
20094         ::std::result::Result::Ok(())
20095     }
20096 
get_cached_size(&self) -> u3220097     fn get_cached_size(&self) -> u32 {
20098         self.cached_size.get()
20099     }
20100 
get_unknown_fields(&self) -> &::protobuf::UnknownFields20101     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
20102         &self.unknown_fields
20103     }
20104 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields20105     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
20106         &mut self.unknown_fields
20107     }
20108 
as_any(&self) -> &dyn (::std::any::Any)20109     fn as_any(&self) -> &dyn (::std::any::Any) {
20110         self as &dyn (::std::any::Any)
20111     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)20112     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
20113         self as &mut dyn (::std::any::Any)
20114     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>20115     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
20116         self
20117     }
20118 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor20119     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
20120         Self::descriptor_static()
20121     }
20122 
new() -> FidoMakeCredentialReply20123     fn new() -> FidoMakeCredentialReply {
20124         FidoMakeCredentialReply::new()
20125     }
20126 
default_instance() -> &'static FidoMakeCredentialReply20127     fn default_instance() -> &'static FidoMakeCredentialReply {
20128         static instance: ::protobuf::rt::LazyV2<FidoMakeCredentialReply> = ::protobuf::rt::LazyV2::INIT;
20129         instance.get(FidoMakeCredentialReply::new)
20130     }
20131 }
20132 
20133 impl ::protobuf::Clear for FidoMakeCredentialReply {
clear(&mut self)20134     fn clear(&mut self) {
20135         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
20136         self.make_credential_response.clear();
20137         self.unknown_fields.clear();
20138     }
20139 }
20140 
20141 impl ::protobuf::reflect::ProtobufValue for FidoMakeCredentialReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef20142     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
20143         ::protobuf::reflect::ReflectValueRef::Message(self)
20144     }
20145 }
20146 
20147 #[derive(PartialEq,Clone,Default,Debug)]
20148 pub struct FidoGetAssertionRequest {
20149     // message fields
20150     pub get_assertion_options: ::protobuf::SingularPtrField<super::fido::PublicKeyCredentialRequestOptions>,
20151     // special fields
20152     pub unknown_fields: ::protobuf::UnknownFields,
20153     pub cached_size: ::protobuf::CachedSize,
20154 }
20155 
20156 impl<'a> ::std::default::Default for &'a FidoGetAssertionRequest {
default() -> &'a FidoGetAssertionRequest20157     fn default() -> &'a FidoGetAssertionRequest {
20158         <FidoGetAssertionRequest as ::protobuf::Message>::default_instance()
20159     }
20160 }
20161 
20162 impl FidoGetAssertionRequest {
new() -> FidoGetAssertionRequest20163     pub fn new() -> FidoGetAssertionRequest {
20164         ::std::default::Default::default()
20165     }
20166 
20167     // .cryptohome.fido.PublicKeyCredentialRequestOptions get_assertion_options = 1;
20168 
20169 
get_get_assertion_options(&self) -> &super::fido::PublicKeyCredentialRequestOptions20170     pub fn get_get_assertion_options(&self) -> &super::fido::PublicKeyCredentialRequestOptions {
20171         self.get_assertion_options.as_ref().unwrap_or_else(|| <super::fido::PublicKeyCredentialRequestOptions as ::protobuf::Message>::default_instance())
20172     }
clear_get_assertion_options(&mut self)20173     pub fn clear_get_assertion_options(&mut self) {
20174         self.get_assertion_options.clear();
20175     }
20176 
has_get_assertion_options(&self) -> bool20177     pub fn has_get_assertion_options(&self) -> bool {
20178         self.get_assertion_options.is_some()
20179     }
20180 
20181     // Param is passed by value, moved
set_get_assertion_options(&mut self, v: super::fido::PublicKeyCredentialRequestOptions)20182     pub fn set_get_assertion_options(&mut self, v: super::fido::PublicKeyCredentialRequestOptions) {
20183         self.get_assertion_options = ::protobuf::SingularPtrField::some(v);
20184     }
20185 
20186     // Mutable pointer to the field.
20187     // If field is not initialized, it is initialized with default value first.
mut_get_assertion_options(&mut self) -> &mut super::fido::PublicKeyCredentialRequestOptions20188     pub fn mut_get_assertion_options(&mut self) -> &mut super::fido::PublicKeyCredentialRequestOptions {
20189         if self.get_assertion_options.is_none() {
20190             self.get_assertion_options.set_default();
20191         }
20192         self.get_assertion_options.as_mut().unwrap()
20193     }
20194 
20195     // Take field
take_get_assertion_options(&mut self) -> super::fido::PublicKeyCredentialRequestOptions20196     pub fn take_get_assertion_options(&mut self) -> super::fido::PublicKeyCredentialRequestOptions {
20197         self.get_assertion_options.take().unwrap_or_else(|| super::fido::PublicKeyCredentialRequestOptions::new())
20198     }
20199 }
20200 
20201 impl ::protobuf::Message for FidoGetAssertionRequest {
is_initialized(&self) -> bool20202     fn is_initialized(&self) -> bool {
20203         for v in &self.get_assertion_options {
20204             if !v.is_initialized() {
20205                 return false;
20206             }
20207         };
20208         true
20209     }
20210 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>20211     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
20212         while !is.eof()? {
20213             let (field_number, wire_type) = is.read_tag_unpack()?;
20214             match field_number {
20215                 1 => {
20216                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.get_assertion_options)?;
20217                 },
20218                 _ => {
20219                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
20220                 },
20221             };
20222         }
20223         ::std::result::Result::Ok(())
20224     }
20225 
20226     // Compute sizes of nested messages
20227     #[allow(unused_variables)]
compute_size(&self) -> u3220228     fn compute_size(&self) -> u32 {
20229         let mut my_size = 0;
20230         if let Some(ref v) = self.get_assertion_options.as_ref() {
20231             let len = v.compute_size();
20232             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
20233         }
20234         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
20235         self.cached_size.set(my_size);
20236         my_size
20237     }
20238 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>20239     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
20240         if let Some(ref v) = self.get_assertion_options.as_ref() {
20241             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
20242             os.write_raw_varint32(v.get_cached_size())?;
20243             v.write_to_with_cached_sizes(os)?;
20244         }
20245         os.write_unknown_fields(self.get_unknown_fields())?;
20246         ::std::result::Result::Ok(())
20247     }
20248 
get_cached_size(&self) -> u3220249     fn get_cached_size(&self) -> u32 {
20250         self.cached_size.get()
20251     }
20252 
get_unknown_fields(&self) -> &::protobuf::UnknownFields20253     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
20254         &self.unknown_fields
20255     }
20256 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields20257     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
20258         &mut self.unknown_fields
20259     }
20260 
as_any(&self) -> &dyn (::std::any::Any)20261     fn as_any(&self) -> &dyn (::std::any::Any) {
20262         self as &dyn (::std::any::Any)
20263     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)20264     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
20265         self as &mut dyn (::std::any::Any)
20266     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>20267     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
20268         self
20269     }
20270 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor20271     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
20272         Self::descriptor_static()
20273     }
20274 
new() -> FidoGetAssertionRequest20275     fn new() -> FidoGetAssertionRequest {
20276         FidoGetAssertionRequest::new()
20277     }
20278 
default_instance() -> &'static FidoGetAssertionRequest20279     fn default_instance() -> &'static FidoGetAssertionRequest {
20280         static instance: ::protobuf::rt::LazyV2<FidoGetAssertionRequest> = ::protobuf::rt::LazyV2::INIT;
20281         instance.get(FidoGetAssertionRequest::new)
20282     }
20283 }
20284 
20285 impl ::protobuf::Clear for FidoGetAssertionRequest {
clear(&mut self)20286     fn clear(&mut self) {
20287         self.get_assertion_options.clear();
20288         self.unknown_fields.clear();
20289     }
20290 }
20291 
20292 impl ::protobuf::reflect::ProtobufValue for FidoGetAssertionRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef20293     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
20294         ::protobuf::reflect::ReflectValueRef::Message(self)
20295     }
20296 }
20297 
20298 #[derive(PartialEq,Clone,Default,Debug)]
20299 pub struct FidoGetAssertionReply {
20300     // message fields
20301     pub error: CryptohomeErrorCode,
20302     pub get_assertion_response: ::protobuf::SingularPtrField<super::fido::GetAssertionAuthenticatorResponse>,
20303     // special fields
20304     pub unknown_fields: ::protobuf::UnknownFields,
20305     pub cached_size: ::protobuf::CachedSize,
20306 }
20307 
20308 impl<'a> ::std::default::Default for &'a FidoGetAssertionReply {
default() -> &'a FidoGetAssertionReply20309     fn default() -> &'a FidoGetAssertionReply {
20310         <FidoGetAssertionReply as ::protobuf::Message>::default_instance()
20311     }
20312 }
20313 
20314 impl FidoGetAssertionReply {
new() -> FidoGetAssertionReply20315     pub fn new() -> FidoGetAssertionReply {
20316         ::std::default::Default::default()
20317     }
20318 
20319     // .user_data_auth.CryptohomeErrorCode error = 1;
20320 
20321 
get_error(&self) -> CryptohomeErrorCode20322     pub fn get_error(&self) -> CryptohomeErrorCode {
20323         self.error
20324     }
clear_error(&mut self)20325     pub fn clear_error(&mut self) {
20326         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
20327     }
20328 
20329     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)20330     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
20331         self.error = v;
20332     }
20333 
20334     // .cryptohome.fido.GetAssertionAuthenticatorResponse get_assertion_response = 2;
20335 
20336 
get_get_assertion_response(&self) -> &super::fido::GetAssertionAuthenticatorResponse20337     pub fn get_get_assertion_response(&self) -> &super::fido::GetAssertionAuthenticatorResponse {
20338         self.get_assertion_response.as_ref().unwrap_or_else(|| <super::fido::GetAssertionAuthenticatorResponse as ::protobuf::Message>::default_instance())
20339     }
clear_get_assertion_response(&mut self)20340     pub fn clear_get_assertion_response(&mut self) {
20341         self.get_assertion_response.clear();
20342     }
20343 
has_get_assertion_response(&self) -> bool20344     pub fn has_get_assertion_response(&self) -> bool {
20345         self.get_assertion_response.is_some()
20346     }
20347 
20348     // Param is passed by value, moved
set_get_assertion_response(&mut self, v: super::fido::GetAssertionAuthenticatorResponse)20349     pub fn set_get_assertion_response(&mut self, v: super::fido::GetAssertionAuthenticatorResponse) {
20350         self.get_assertion_response = ::protobuf::SingularPtrField::some(v);
20351     }
20352 
20353     // Mutable pointer to the field.
20354     // If field is not initialized, it is initialized with default value first.
mut_get_assertion_response(&mut self) -> &mut super::fido::GetAssertionAuthenticatorResponse20355     pub fn mut_get_assertion_response(&mut self) -> &mut super::fido::GetAssertionAuthenticatorResponse {
20356         if self.get_assertion_response.is_none() {
20357             self.get_assertion_response.set_default();
20358         }
20359         self.get_assertion_response.as_mut().unwrap()
20360     }
20361 
20362     // Take field
take_get_assertion_response(&mut self) -> super::fido::GetAssertionAuthenticatorResponse20363     pub fn take_get_assertion_response(&mut self) -> super::fido::GetAssertionAuthenticatorResponse {
20364         self.get_assertion_response.take().unwrap_or_else(|| super::fido::GetAssertionAuthenticatorResponse::new())
20365     }
20366 }
20367 
20368 impl ::protobuf::Message for FidoGetAssertionReply {
is_initialized(&self) -> bool20369     fn is_initialized(&self) -> bool {
20370         for v in &self.get_assertion_response {
20371             if !v.is_initialized() {
20372                 return false;
20373             }
20374         };
20375         true
20376     }
20377 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>20378     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
20379         while !is.eof()? {
20380             let (field_number, wire_type) = is.read_tag_unpack()?;
20381             match field_number {
20382                 1 => {
20383                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
20384                 },
20385                 2 => {
20386                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.get_assertion_response)?;
20387                 },
20388                 _ => {
20389                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
20390                 },
20391             };
20392         }
20393         ::std::result::Result::Ok(())
20394     }
20395 
20396     // Compute sizes of nested messages
20397     #[allow(unused_variables)]
compute_size(&self) -> u3220398     fn compute_size(&self) -> u32 {
20399         let mut my_size = 0;
20400         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
20401             my_size += ::protobuf::rt::enum_size(1, self.error);
20402         }
20403         if let Some(ref v) = self.get_assertion_response.as_ref() {
20404             let len = v.compute_size();
20405             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
20406         }
20407         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
20408         self.cached_size.set(my_size);
20409         my_size
20410     }
20411 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>20412     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
20413         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
20414             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
20415         }
20416         if let Some(ref v) = self.get_assertion_response.as_ref() {
20417             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
20418             os.write_raw_varint32(v.get_cached_size())?;
20419             v.write_to_with_cached_sizes(os)?;
20420         }
20421         os.write_unknown_fields(self.get_unknown_fields())?;
20422         ::std::result::Result::Ok(())
20423     }
20424 
get_cached_size(&self) -> u3220425     fn get_cached_size(&self) -> u32 {
20426         self.cached_size.get()
20427     }
20428 
get_unknown_fields(&self) -> &::protobuf::UnknownFields20429     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
20430         &self.unknown_fields
20431     }
20432 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields20433     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
20434         &mut self.unknown_fields
20435     }
20436 
as_any(&self) -> &dyn (::std::any::Any)20437     fn as_any(&self) -> &dyn (::std::any::Any) {
20438         self as &dyn (::std::any::Any)
20439     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)20440     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
20441         self as &mut dyn (::std::any::Any)
20442     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>20443     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
20444         self
20445     }
20446 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor20447     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
20448         Self::descriptor_static()
20449     }
20450 
new() -> FidoGetAssertionReply20451     fn new() -> FidoGetAssertionReply {
20452         FidoGetAssertionReply::new()
20453     }
20454 
default_instance() -> &'static FidoGetAssertionReply20455     fn default_instance() -> &'static FidoGetAssertionReply {
20456         static instance: ::protobuf::rt::LazyV2<FidoGetAssertionReply> = ::protobuf::rt::LazyV2::INIT;
20457         instance.get(FidoGetAssertionReply::new)
20458     }
20459 }
20460 
20461 impl ::protobuf::Clear for FidoGetAssertionReply {
clear(&mut self)20462     fn clear(&mut self) {
20463         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
20464         self.get_assertion_response.clear();
20465         self.unknown_fields.clear();
20466     }
20467 }
20468 
20469 impl ::protobuf::reflect::ProtobufValue for FidoGetAssertionReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef20470     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
20471         ::protobuf::reflect::ReflectValueRef::Message(self)
20472     }
20473 }
20474 
20475 #[derive(PartialEq,Clone,Default,Debug)]
20476 pub struct AddAuthFactorRequest {
20477     // message fields
20478     pub auth_session_id: ::std::vec::Vec<u8>,
20479     pub auth_factor: ::protobuf::SingularPtrField<super::auth_factor::AuthFactor>,
20480     pub auth_input: ::protobuf::SingularPtrField<super::auth_factor::AuthInput>,
20481     // special fields
20482     pub unknown_fields: ::protobuf::UnknownFields,
20483     pub cached_size: ::protobuf::CachedSize,
20484 }
20485 
20486 impl<'a> ::std::default::Default for &'a AddAuthFactorRequest {
default() -> &'a AddAuthFactorRequest20487     fn default() -> &'a AddAuthFactorRequest {
20488         <AddAuthFactorRequest as ::protobuf::Message>::default_instance()
20489     }
20490 }
20491 
20492 impl AddAuthFactorRequest {
new() -> AddAuthFactorRequest20493     pub fn new() -> AddAuthFactorRequest {
20494         ::std::default::Default::default()
20495     }
20496 
20497     // bytes auth_session_id = 1;
20498 
20499 
get_auth_session_id(&self) -> &[u8]20500     pub fn get_auth_session_id(&self) -> &[u8] {
20501         &self.auth_session_id
20502     }
clear_auth_session_id(&mut self)20503     pub fn clear_auth_session_id(&mut self) {
20504         self.auth_session_id.clear();
20505     }
20506 
20507     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)20508     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
20509         self.auth_session_id = v;
20510     }
20511 
20512     // Mutable pointer to the field.
20513     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>20514     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
20515         &mut self.auth_session_id
20516     }
20517 
20518     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>20519     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
20520         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
20521     }
20522 
20523     // .user_data_auth.AuthFactor auth_factor = 2;
20524 
20525 
get_auth_factor(&self) -> &super::auth_factor::AuthFactor20526     pub fn get_auth_factor(&self) -> &super::auth_factor::AuthFactor {
20527         self.auth_factor.as_ref().unwrap_or_else(|| <super::auth_factor::AuthFactor as ::protobuf::Message>::default_instance())
20528     }
clear_auth_factor(&mut self)20529     pub fn clear_auth_factor(&mut self) {
20530         self.auth_factor.clear();
20531     }
20532 
has_auth_factor(&self) -> bool20533     pub fn has_auth_factor(&self) -> bool {
20534         self.auth_factor.is_some()
20535     }
20536 
20537     // Param is passed by value, moved
set_auth_factor(&mut self, v: super::auth_factor::AuthFactor)20538     pub fn set_auth_factor(&mut self, v: super::auth_factor::AuthFactor) {
20539         self.auth_factor = ::protobuf::SingularPtrField::some(v);
20540     }
20541 
20542     // Mutable pointer to the field.
20543     // If field is not initialized, it is initialized with default value first.
mut_auth_factor(&mut self) -> &mut super::auth_factor::AuthFactor20544     pub fn mut_auth_factor(&mut self) -> &mut super::auth_factor::AuthFactor {
20545         if self.auth_factor.is_none() {
20546             self.auth_factor.set_default();
20547         }
20548         self.auth_factor.as_mut().unwrap()
20549     }
20550 
20551     // Take field
take_auth_factor(&mut self) -> super::auth_factor::AuthFactor20552     pub fn take_auth_factor(&mut self) -> super::auth_factor::AuthFactor {
20553         self.auth_factor.take().unwrap_or_else(|| super::auth_factor::AuthFactor::new())
20554     }
20555 
20556     // .user_data_auth.AuthInput auth_input = 3;
20557 
20558 
get_auth_input(&self) -> &super::auth_factor::AuthInput20559     pub fn get_auth_input(&self) -> &super::auth_factor::AuthInput {
20560         self.auth_input.as_ref().unwrap_or_else(|| <super::auth_factor::AuthInput as ::protobuf::Message>::default_instance())
20561     }
clear_auth_input(&mut self)20562     pub fn clear_auth_input(&mut self) {
20563         self.auth_input.clear();
20564     }
20565 
has_auth_input(&self) -> bool20566     pub fn has_auth_input(&self) -> bool {
20567         self.auth_input.is_some()
20568     }
20569 
20570     // Param is passed by value, moved
set_auth_input(&mut self, v: super::auth_factor::AuthInput)20571     pub fn set_auth_input(&mut self, v: super::auth_factor::AuthInput) {
20572         self.auth_input = ::protobuf::SingularPtrField::some(v);
20573     }
20574 
20575     // Mutable pointer to the field.
20576     // If field is not initialized, it is initialized with default value first.
mut_auth_input(&mut self) -> &mut super::auth_factor::AuthInput20577     pub fn mut_auth_input(&mut self) -> &mut super::auth_factor::AuthInput {
20578         if self.auth_input.is_none() {
20579             self.auth_input.set_default();
20580         }
20581         self.auth_input.as_mut().unwrap()
20582     }
20583 
20584     // Take field
take_auth_input(&mut self) -> super::auth_factor::AuthInput20585     pub fn take_auth_input(&mut self) -> super::auth_factor::AuthInput {
20586         self.auth_input.take().unwrap_or_else(|| super::auth_factor::AuthInput::new())
20587     }
20588 }
20589 
20590 impl ::protobuf::Message for AddAuthFactorRequest {
is_initialized(&self) -> bool20591     fn is_initialized(&self) -> bool {
20592         for v in &self.auth_factor {
20593             if !v.is_initialized() {
20594                 return false;
20595             }
20596         };
20597         for v in &self.auth_input {
20598             if !v.is_initialized() {
20599                 return false;
20600             }
20601         };
20602         true
20603     }
20604 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>20605     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
20606         while !is.eof()? {
20607             let (field_number, wire_type) = is.read_tag_unpack()?;
20608             match field_number {
20609                 1 => {
20610                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
20611                 },
20612                 2 => {
20613                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.auth_factor)?;
20614                 },
20615                 3 => {
20616                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.auth_input)?;
20617                 },
20618                 _ => {
20619                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
20620                 },
20621             };
20622         }
20623         ::std::result::Result::Ok(())
20624     }
20625 
20626     // Compute sizes of nested messages
20627     #[allow(unused_variables)]
compute_size(&self) -> u3220628     fn compute_size(&self) -> u32 {
20629         let mut my_size = 0;
20630         if !self.auth_session_id.is_empty() {
20631             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
20632         }
20633         if let Some(ref v) = self.auth_factor.as_ref() {
20634             let len = v.compute_size();
20635             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
20636         }
20637         if let Some(ref v) = self.auth_input.as_ref() {
20638             let len = v.compute_size();
20639             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
20640         }
20641         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
20642         self.cached_size.set(my_size);
20643         my_size
20644     }
20645 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>20646     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
20647         if !self.auth_session_id.is_empty() {
20648             os.write_bytes(1, &self.auth_session_id)?;
20649         }
20650         if let Some(ref v) = self.auth_factor.as_ref() {
20651             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
20652             os.write_raw_varint32(v.get_cached_size())?;
20653             v.write_to_with_cached_sizes(os)?;
20654         }
20655         if let Some(ref v) = self.auth_input.as_ref() {
20656             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
20657             os.write_raw_varint32(v.get_cached_size())?;
20658             v.write_to_with_cached_sizes(os)?;
20659         }
20660         os.write_unknown_fields(self.get_unknown_fields())?;
20661         ::std::result::Result::Ok(())
20662     }
20663 
get_cached_size(&self) -> u3220664     fn get_cached_size(&self) -> u32 {
20665         self.cached_size.get()
20666     }
20667 
get_unknown_fields(&self) -> &::protobuf::UnknownFields20668     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
20669         &self.unknown_fields
20670     }
20671 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields20672     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
20673         &mut self.unknown_fields
20674     }
20675 
as_any(&self) -> &dyn (::std::any::Any)20676     fn as_any(&self) -> &dyn (::std::any::Any) {
20677         self as &dyn (::std::any::Any)
20678     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)20679     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
20680         self as &mut dyn (::std::any::Any)
20681     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>20682     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
20683         self
20684     }
20685 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor20686     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
20687         Self::descriptor_static()
20688     }
20689 
new() -> AddAuthFactorRequest20690     fn new() -> AddAuthFactorRequest {
20691         AddAuthFactorRequest::new()
20692     }
20693 
default_instance() -> &'static AddAuthFactorRequest20694     fn default_instance() -> &'static AddAuthFactorRequest {
20695         static instance: ::protobuf::rt::LazyV2<AddAuthFactorRequest> = ::protobuf::rt::LazyV2::INIT;
20696         instance.get(AddAuthFactorRequest::new)
20697     }
20698 }
20699 
20700 impl ::protobuf::Clear for AddAuthFactorRequest {
clear(&mut self)20701     fn clear(&mut self) {
20702         self.auth_session_id.clear();
20703         self.auth_factor.clear();
20704         self.auth_input.clear();
20705         self.unknown_fields.clear();
20706     }
20707 }
20708 
20709 impl ::protobuf::reflect::ProtobufValue for AddAuthFactorRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef20710     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
20711         ::protobuf::reflect::ReflectValueRef::Message(self)
20712     }
20713 }
20714 
20715 #[derive(PartialEq,Clone,Default,Debug)]
20716 pub struct AddAuthFactorReply {
20717     // message fields
20718     pub error: CryptohomeErrorCode,
20719     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
20720     // special fields
20721     pub unknown_fields: ::protobuf::UnknownFields,
20722     pub cached_size: ::protobuf::CachedSize,
20723 }
20724 
20725 impl<'a> ::std::default::Default for &'a AddAuthFactorReply {
default() -> &'a AddAuthFactorReply20726     fn default() -> &'a AddAuthFactorReply {
20727         <AddAuthFactorReply as ::protobuf::Message>::default_instance()
20728     }
20729 }
20730 
20731 impl AddAuthFactorReply {
new() -> AddAuthFactorReply20732     pub fn new() -> AddAuthFactorReply {
20733         ::std::default::Default::default()
20734     }
20735 
20736     // .user_data_auth.CryptohomeErrorCode error = 1;
20737 
20738 
get_error(&self) -> CryptohomeErrorCode20739     pub fn get_error(&self) -> CryptohomeErrorCode {
20740         self.error
20741     }
clear_error(&mut self)20742     pub fn clear_error(&mut self) {
20743         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
20744     }
20745 
20746     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)20747     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
20748         self.error = v;
20749     }
20750 
20751     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
20752 
20753 
get_error_info(&self) -> &CryptohomeErrorInfo20754     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
20755         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
20756     }
clear_error_info(&mut self)20757     pub fn clear_error_info(&mut self) {
20758         self.error_info.clear();
20759     }
20760 
has_error_info(&self) -> bool20761     pub fn has_error_info(&self) -> bool {
20762         self.error_info.is_some()
20763     }
20764 
20765     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)20766     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
20767         self.error_info = ::protobuf::SingularPtrField::some(v);
20768     }
20769 
20770     // Mutable pointer to the field.
20771     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo20772     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
20773         if self.error_info.is_none() {
20774             self.error_info.set_default();
20775         }
20776         self.error_info.as_mut().unwrap()
20777     }
20778 
20779     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo20780     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
20781         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
20782     }
20783 }
20784 
20785 impl ::protobuf::Message for AddAuthFactorReply {
is_initialized(&self) -> bool20786     fn is_initialized(&self) -> bool {
20787         for v in &self.error_info {
20788             if !v.is_initialized() {
20789                 return false;
20790             }
20791         };
20792         true
20793     }
20794 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>20795     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
20796         while !is.eof()? {
20797             let (field_number, wire_type) = is.read_tag_unpack()?;
20798             match field_number {
20799                 1 => {
20800                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
20801                 },
20802                 2 => {
20803                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
20804                 },
20805                 _ => {
20806                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
20807                 },
20808             };
20809         }
20810         ::std::result::Result::Ok(())
20811     }
20812 
20813     // Compute sizes of nested messages
20814     #[allow(unused_variables)]
compute_size(&self) -> u3220815     fn compute_size(&self) -> u32 {
20816         let mut my_size = 0;
20817         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
20818             my_size += ::protobuf::rt::enum_size(1, self.error);
20819         }
20820         if let Some(ref v) = self.error_info.as_ref() {
20821             let len = v.compute_size();
20822             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
20823         }
20824         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
20825         self.cached_size.set(my_size);
20826         my_size
20827     }
20828 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>20829     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
20830         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
20831             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
20832         }
20833         if let Some(ref v) = self.error_info.as_ref() {
20834             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
20835             os.write_raw_varint32(v.get_cached_size())?;
20836             v.write_to_with_cached_sizes(os)?;
20837         }
20838         os.write_unknown_fields(self.get_unknown_fields())?;
20839         ::std::result::Result::Ok(())
20840     }
20841 
get_cached_size(&self) -> u3220842     fn get_cached_size(&self) -> u32 {
20843         self.cached_size.get()
20844     }
20845 
get_unknown_fields(&self) -> &::protobuf::UnknownFields20846     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
20847         &self.unknown_fields
20848     }
20849 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields20850     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
20851         &mut self.unknown_fields
20852     }
20853 
as_any(&self) -> &dyn (::std::any::Any)20854     fn as_any(&self) -> &dyn (::std::any::Any) {
20855         self as &dyn (::std::any::Any)
20856     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)20857     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
20858         self as &mut dyn (::std::any::Any)
20859     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>20860     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
20861         self
20862     }
20863 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor20864     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
20865         Self::descriptor_static()
20866     }
20867 
new() -> AddAuthFactorReply20868     fn new() -> AddAuthFactorReply {
20869         AddAuthFactorReply::new()
20870     }
20871 
default_instance() -> &'static AddAuthFactorReply20872     fn default_instance() -> &'static AddAuthFactorReply {
20873         static instance: ::protobuf::rt::LazyV2<AddAuthFactorReply> = ::protobuf::rt::LazyV2::INIT;
20874         instance.get(AddAuthFactorReply::new)
20875     }
20876 }
20877 
20878 impl ::protobuf::Clear for AddAuthFactorReply {
clear(&mut self)20879     fn clear(&mut self) {
20880         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
20881         self.error_info.clear();
20882         self.unknown_fields.clear();
20883     }
20884 }
20885 
20886 impl ::protobuf::reflect::ProtobufValue for AddAuthFactorReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef20887     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
20888         ::protobuf::reflect::ReflectValueRef::Message(self)
20889     }
20890 }
20891 
20892 #[derive(PartialEq,Clone,Default,Debug)]
20893 pub struct AuthenticateAuthFactorRequest {
20894     // message fields
20895     pub auth_session_id: ::std::vec::Vec<u8>,
20896     pub auth_factor_label: ::std::string::String,
20897     pub auth_input: ::protobuf::SingularPtrField<super::auth_factor::AuthInput>,
20898     // special fields
20899     pub unknown_fields: ::protobuf::UnknownFields,
20900     pub cached_size: ::protobuf::CachedSize,
20901 }
20902 
20903 impl<'a> ::std::default::Default for &'a AuthenticateAuthFactorRequest {
default() -> &'a AuthenticateAuthFactorRequest20904     fn default() -> &'a AuthenticateAuthFactorRequest {
20905         <AuthenticateAuthFactorRequest as ::protobuf::Message>::default_instance()
20906     }
20907 }
20908 
20909 impl AuthenticateAuthFactorRequest {
new() -> AuthenticateAuthFactorRequest20910     pub fn new() -> AuthenticateAuthFactorRequest {
20911         ::std::default::Default::default()
20912     }
20913 
20914     // bytes auth_session_id = 1;
20915 
20916 
get_auth_session_id(&self) -> &[u8]20917     pub fn get_auth_session_id(&self) -> &[u8] {
20918         &self.auth_session_id
20919     }
clear_auth_session_id(&mut self)20920     pub fn clear_auth_session_id(&mut self) {
20921         self.auth_session_id.clear();
20922     }
20923 
20924     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)20925     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
20926         self.auth_session_id = v;
20927     }
20928 
20929     // Mutable pointer to the field.
20930     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>20931     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
20932         &mut self.auth_session_id
20933     }
20934 
20935     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>20936     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
20937         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
20938     }
20939 
20940     // string auth_factor_label = 2;
20941 
20942 
get_auth_factor_label(&self) -> &str20943     pub fn get_auth_factor_label(&self) -> &str {
20944         &self.auth_factor_label
20945     }
clear_auth_factor_label(&mut self)20946     pub fn clear_auth_factor_label(&mut self) {
20947         self.auth_factor_label.clear();
20948     }
20949 
20950     // Param is passed by value, moved
set_auth_factor_label(&mut self, v: ::std::string::String)20951     pub fn set_auth_factor_label(&mut self, v: ::std::string::String) {
20952         self.auth_factor_label = v;
20953     }
20954 
20955     // Mutable pointer to the field.
20956     // If field is not initialized, it is initialized with default value first.
mut_auth_factor_label(&mut self) -> &mut ::std::string::String20957     pub fn mut_auth_factor_label(&mut self) -> &mut ::std::string::String {
20958         &mut self.auth_factor_label
20959     }
20960 
20961     // Take field
take_auth_factor_label(&mut self) -> ::std::string::String20962     pub fn take_auth_factor_label(&mut self) -> ::std::string::String {
20963         ::std::mem::replace(&mut self.auth_factor_label, ::std::string::String::new())
20964     }
20965 
20966     // .user_data_auth.AuthInput auth_input = 3;
20967 
20968 
get_auth_input(&self) -> &super::auth_factor::AuthInput20969     pub fn get_auth_input(&self) -> &super::auth_factor::AuthInput {
20970         self.auth_input.as_ref().unwrap_or_else(|| <super::auth_factor::AuthInput as ::protobuf::Message>::default_instance())
20971     }
clear_auth_input(&mut self)20972     pub fn clear_auth_input(&mut self) {
20973         self.auth_input.clear();
20974     }
20975 
has_auth_input(&self) -> bool20976     pub fn has_auth_input(&self) -> bool {
20977         self.auth_input.is_some()
20978     }
20979 
20980     // Param is passed by value, moved
set_auth_input(&mut self, v: super::auth_factor::AuthInput)20981     pub fn set_auth_input(&mut self, v: super::auth_factor::AuthInput) {
20982         self.auth_input = ::protobuf::SingularPtrField::some(v);
20983     }
20984 
20985     // Mutable pointer to the field.
20986     // If field is not initialized, it is initialized with default value first.
mut_auth_input(&mut self) -> &mut super::auth_factor::AuthInput20987     pub fn mut_auth_input(&mut self) -> &mut super::auth_factor::AuthInput {
20988         if self.auth_input.is_none() {
20989             self.auth_input.set_default();
20990         }
20991         self.auth_input.as_mut().unwrap()
20992     }
20993 
20994     // Take field
take_auth_input(&mut self) -> super::auth_factor::AuthInput20995     pub fn take_auth_input(&mut self) -> super::auth_factor::AuthInput {
20996         self.auth_input.take().unwrap_or_else(|| super::auth_factor::AuthInput::new())
20997     }
20998 }
20999 
21000 impl ::protobuf::Message for AuthenticateAuthFactorRequest {
is_initialized(&self) -> bool21001     fn is_initialized(&self) -> bool {
21002         for v in &self.auth_input {
21003             if !v.is_initialized() {
21004                 return false;
21005             }
21006         };
21007         true
21008     }
21009 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>21010     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
21011         while !is.eof()? {
21012             let (field_number, wire_type) = is.read_tag_unpack()?;
21013             match field_number {
21014                 1 => {
21015                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
21016                 },
21017                 2 => {
21018                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.auth_factor_label)?;
21019                 },
21020                 3 => {
21021                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.auth_input)?;
21022                 },
21023                 _ => {
21024                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
21025                 },
21026             };
21027         }
21028         ::std::result::Result::Ok(())
21029     }
21030 
21031     // Compute sizes of nested messages
21032     #[allow(unused_variables)]
compute_size(&self) -> u3221033     fn compute_size(&self) -> u32 {
21034         let mut my_size = 0;
21035         if !self.auth_session_id.is_empty() {
21036             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
21037         }
21038         if !self.auth_factor_label.is_empty() {
21039             my_size += ::protobuf::rt::string_size(2, &self.auth_factor_label);
21040         }
21041         if let Some(ref v) = self.auth_input.as_ref() {
21042             let len = v.compute_size();
21043             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
21044         }
21045         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
21046         self.cached_size.set(my_size);
21047         my_size
21048     }
21049 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>21050     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
21051         if !self.auth_session_id.is_empty() {
21052             os.write_bytes(1, &self.auth_session_id)?;
21053         }
21054         if !self.auth_factor_label.is_empty() {
21055             os.write_string(2, &self.auth_factor_label)?;
21056         }
21057         if let Some(ref v) = self.auth_input.as_ref() {
21058             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
21059             os.write_raw_varint32(v.get_cached_size())?;
21060             v.write_to_with_cached_sizes(os)?;
21061         }
21062         os.write_unknown_fields(self.get_unknown_fields())?;
21063         ::std::result::Result::Ok(())
21064     }
21065 
get_cached_size(&self) -> u3221066     fn get_cached_size(&self) -> u32 {
21067         self.cached_size.get()
21068     }
21069 
get_unknown_fields(&self) -> &::protobuf::UnknownFields21070     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
21071         &self.unknown_fields
21072     }
21073 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields21074     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
21075         &mut self.unknown_fields
21076     }
21077 
as_any(&self) -> &dyn (::std::any::Any)21078     fn as_any(&self) -> &dyn (::std::any::Any) {
21079         self as &dyn (::std::any::Any)
21080     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)21081     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
21082         self as &mut dyn (::std::any::Any)
21083     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>21084     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
21085         self
21086     }
21087 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor21088     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
21089         Self::descriptor_static()
21090     }
21091 
new() -> AuthenticateAuthFactorRequest21092     fn new() -> AuthenticateAuthFactorRequest {
21093         AuthenticateAuthFactorRequest::new()
21094     }
21095 
default_instance() -> &'static AuthenticateAuthFactorRequest21096     fn default_instance() -> &'static AuthenticateAuthFactorRequest {
21097         static instance: ::protobuf::rt::LazyV2<AuthenticateAuthFactorRequest> = ::protobuf::rt::LazyV2::INIT;
21098         instance.get(AuthenticateAuthFactorRequest::new)
21099     }
21100 }
21101 
21102 impl ::protobuf::Clear for AuthenticateAuthFactorRequest {
clear(&mut self)21103     fn clear(&mut self) {
21104         self.auth_session_id.clear();
21105         self.auth_factor_label.clear();
21106         self.auth_input.clear();
21107         self.unknown_fields.clear();
21108     }
21109 }
21110 
21111 impl ::protobuf::reflect::ProtobufValue for AuthenticateAuthFactorRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef21112     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
21113         ::protobuf::reflect::ReflectValueRef::Message(self)
21114     }
21115 }
21116 
21117 #[derive(PartialEq,Clone,Default,Debug)]
21118 pub struct AuthenticateAuthFactorReply {
21119     // message fields
21120     pub error: CryptohomeErrorCode,
21121     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
21122     pub authenticated: bool,
21123     pub authorized_for: ::std::vec::Vec<super::auth_factor::AuthIntent>,
21124     // message oneof groups
21125     pub _seconds_left: ::std::option::Option<AuthenticateAuthFactorReply_oneof__seconds_left>,
21126     // special fields
21127     pub unknown_fields: ::protobuf::UnknownFields,
21128     pub cached_size: ::protobuf::CachedSize,
21129 }
21130 
21131 impl<'a> ::std::default::Default for &'a AuthenticateAuthFactorReply {
default() -> &'a AuthenticateAuthFactorReply21132     fn default() -> &'a AuthenticateAuthFactorReply {
21133         <AuthenticateAuthFactorReply as ::protobuf::Message>::default_instance()
21134     }
21135 }
21136 
21137 #[derive(Clone,PartialEq,Debug)]
21138 pub enum AuthenticateAuthFactorReply_oneof__seconds_left {
21139     seconds_left(u32),
21140 }
21141 
21142 impl AuthenticateAuthFactorReply {
new() -> AuthenticateAuthFactorReply21143     pub fn new() -> AuthenticateAuthFactorReply {
21144         ::std::default::Default::default()
21145     }
21146 
21147     // .user_data_auth.CryptohomeErrorCode error = 1;
21148 
21149 
get_error(&self) -> CryptohomeErrorCode21150     pub fn get_error(&self) -> CryptohomeErrorCode {
21151         self.error
21152     }
clear_error(&mut self)21153     pub fn clear_error(&mut self) {
21154         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
21155     }
21156 
21157     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)21158     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
21159         self.error = v;
21160     }
21161 
21162     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
21163 
21164 
get_error_info(&self) -> &CryptohomeErrorInfo21165     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
21166         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
21167     }
clear_error_info(&mut self)21168     pub fn clear_error_info(&mut self) {
21169         self.error_info.clear();
21170     }
21171 
has_error_info(&self) -> bool21172     pub fn has_error_info(&self) -> bool {
21173         self.error_info.is_some()
21174     }
21175 
21176     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)21177     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
21178         self.error_info = ::protobuf::SingularPtrField::some(v);
21179     }
21180 
21181     // Mutable pointer to the field.
21182     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo21183     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
21184         if self.error_info.is_none() {
21185             self.error_info.set_default();
21186         }
21187         self.error_info.as_mut().unwrap()
21188     }
21189 
21190     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo21191     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
21192         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
21193     }
21194 
21195     // bool authenticated = 3;
21196 
21197 
get_authenticated(&self) -> bool21198     pub fn get_authenticated(&self) -> bool {
21199         self.authenticated
21200     }
clear_authenticated(&mut self)21201     pub fn clear_authenticated(&mut self) {
21202         self.authenticated = false;
21203     }
21204 
21205     // Param is passed by value, moved
set_authenticated(&mut self, v: bool)21206     pub fn set_authenticated(&mut self, v: bool) {
21207         self.authenticated = v;
21208     }
21209 
21210     // repeated .user_data_auth.AuthIntent authorized_for = 4;
21211 
21212 
get_authorized_for(&self) -> &[super::auth_factor::AuthIntent]21213     pub fn get_authorized_for(&self) -> &[super::auth_factor::AuthIntent] {
21214         &self.authorized_for
21215     }
clear_authorized_for(&mut self)21216     pub fn clear_authorized_for(&mut self) {
21217         self.authorized_for.clear();
21218     }
21219 
21220     // Param is passed by value, moved
set_authorized_for(&mut self, v: ::std::vec::Vec<super::auth_factor::AuthIntent>)21221     pub fn set_authorized_for(&mut self, v: ::std::vec::Vec<super::auth_factor::AuthIntent>) {
21222         self.authorized_for = v;
21223     }
21224 
21225     // Mutable pointer to the field.
mut_authorized_for(&mut self) -> &mut ::std::vec::Vec<super::auth_factor::AuthIntent>21226     pub fn mut_authorized_for(&mut self) -> &mut ::std::vec::Vec<super::auth_factor::AuthIntent> {
21227         &mut self.authorized_for
21228     }
21229 
21230     // Take field
take_authorized_for(&mut self) -> ::std::vec::Vec<super::auth_factor::AuthIntent>21231     pub fn take_authorized_for(&mut self) -> ::std::vec::Vec<super::auth_factor::AuthIntent> {
21232         ::std::mem::replace(&mut self.authorized_for, ::std::vec::Vec::new())
21233     }
21234 
21235     // uint32 seconds_left = 5;
21236 
21237 
get_seconds_left(&self) -> u3221238     pub fn get_seconds_left(&self) -> u32 {
21239         match self._seconds_left {
21240             ::std::option::Option::Some(AuthenticateAuthFactorReply_oneof__seconds_left::seconds_left(v)) => v,
21241             _ => 0,
21242         }
21243     }
clear_seconds_left(&mut self)21244     pub fn clear_seconds_left(&mut self) {
21245         self._seconds_left = ::std::option::Option::None;
21246     }
21247 
has_seconds_left(&self) -> bool21248     pub fn has_seconds_left(&self) -> bool {
21249         match self._seconds_left {
21250             ::std::option::Option::Some(AuthenticateAuthFactorReply_oneof__seconds_left::seconds_left(..)) => true,
21251             _ => false,
21252         }
21253     }
21254 
21255     // Param is passed by value, moved
set_seconds_left(&mut self, v: u32)21256     pub fn set_seconds_left(&mut self, v: u32) {
21257         self._seconds_left = ::std::option::Option::Some(AuthenticateAuthFactorReply_oneof__seconds_left::seconds_left(v))
21258     }
21259 }
21260 
21261 impl ::protobuf::Message for AuthenticateAuthFactorReply {
is_initialized(&self) -> bool21262     fn is_initialized(&self) -> bool {
21263         for v in &self.error_info {
21264             if !v.is_initialized() {
21265                 return false;
21266             }
21267         };
21268         true
21269     }
21270 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>21271     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
21272         while !is.eof()? {
21273             let (field_number, wire_type) = is.read_tag_unpack()?;
21274             match field_number {
21275                 1 => {
21276                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
21277                 },
21278                 2 => {
21279                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
21280                 },
21281                 3 => {
21282                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
21283                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
21284                     }
21285                     let tmp = is.read_bool()?;
21286                     self.authenticated = tmp;
21287                 },
21288                 4 => {
21289                     ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.authorized_for, 4, &mut self.unknown_fields)?
21290                 },
21291                 5 => {
21292                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
21293                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
21294                     }
21295                     self._seconds_left = ::std::option::Option::Some(AuthenticateAuthFactorReply_oneof__seconds_left::seconds_left(is.read_uint32()?));
21296                 },
21297                 _ => {
21298                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
21299                 },
21300             };
21301         }
21302         ::std::result::Result::Ok(())
21303     }
21304 
21305     // Compute sizes of nested messages
21306     #[allow(unused_variables)]
compute_size(&self) -> u3221307     fn compute_size(&self) -> u32 {
21308         let mut my_size = 0;
21309         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
21310             my_size += ::protobuf::rt::enum_size(1, self.error);
21311         }
21312         if let Some(ref v) = self.error_info.as_ref() {
21313             let len = v.compute_size();
21314             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
21315         }
21316         if self.authenticated != false {
21317             my_size += 2;
21318         }
21319         for value in &self.authorized_for {
21320             my_size += ::protobuf::rt::enum_size(4, *value);
21321         };
21322         if let ::std::option::Option::Some(ref v) = self._seconds_left {
21323             match v {
21324                 &AuthenticateAuthFactorReply_oneof__seconds_left::seconds_left(v) => {
21325                     my_size += ::protobuf::rt::value_size(5, v, ::protobuf::wire_format::WireTypeVarint);
21326                 },
21327             };
21328         }
21329         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
21330         self.cached_size.set(my_size);
21331         my_size
21332     }
21333 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>21334     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
21335         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
21336             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
21337         }
21338         if let Some(ref v) = self.error_info.as_ref() {
21339             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
21340             os.write_raw_varint32(v.get_cached_size())?;
21341             v.write_to_with_cached_sizes(os)?;
21342         }
21343         if self.authenticated != false {
21344             os.write_bool(3, self.authenticated)?;
21345         }
21346         for v in &self.authorized_for {
21347             os.write_enum(4, ::protobuf::ProtobufEnum::value(v))?;
21348         };
21349         if let ::std::option::Option::Some(ref v) = self._seconds_left {
21350             match v {
21351                 &AuthenticateAuthFactorReply_oneof__seconds_left::seconds_left(v) => {
21352                     os.write_uint32(5, v)?;
21353                 },
21354             };
21355         }
21356         os.write_unknown_fields(self.get_unknown_fields())?;
21357         ::std::result::Result::Ok(())
21358     }
21359 
get_cached_size(&self) -> u3221360     fn get_cached_size(&self) -> u32 {
21361         self.cached_size.get()
21362     }
21363 
get_unknown_fields(&self) -> &::protobuf::UnknownFields21364     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
21365         &self.unknown_fields
21366     }
21367 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields21368     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
21369         &mut self.unknown_fields
21370     }
21371 
as_any(&self) -> &dyn (::std::any::Any)21372     fn as_any(&self) -> &dyn (::std::any::Any) {
21373         self as &dyn (::std::any::Any)
21374     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)21375     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
21376         self as &mut dyn (::std::any::Any)
21377     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>21378     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
21379         self
21380     }
21381 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor21382     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
21383         Self::descriptor_static()
21384     }
21385 
new() -> AuthenticateAuthFactorReply21386     fn new() -> AuthenticateAuthFactorReply {
21387         AuthenticateAuthFactorReply::new()
21388     }
21389 
default_instance() -> &'static AuthenticateAuthFactorReply21390     fn default_instance() -> &'static AuthenticateAuthFactorReply {
21391         static instance: ::protobuf::rt::LazyV2<AuthenticateAuthFactorReply> = ::protobuf::rt::LazyV2::INIT;
21392         instance.get(AuthenticateAuthFactorReply::new)
21393     }
21394 }
21395 
21396 impl ::protobuf::Clear for AuthenticateAuthFactorReply {
clear(&mut self)21397     fn clear(&mut self) {
21398         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
21399         self.error_info.clear();
21400         self.authenticated = false;
21401         self.authorized_for.clear();
21402         self._seconds_left = ::std::option::Option::None;
21403         self.unknown_fields.clear();
21404     }
21405 }
21406 
21407 impl ::protobuf::reflect::ProtobufValue for AuthenticateAuthFactorReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef21408     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
21409         ::protobuf::reflect::ReflectValueRef::Message(self)
21410     }
21411 }
21412 
21413 #[derive(PartialEq,Clone,Default,Debug)]
21414 pub struct UpdateAuthFactorRequest {
21415     // message fields
21416     pub auth_session_id: ::std::vec::Vec<u8>,
21417     pub auth_factor_label: ::std::string::String,
21418     pub auth_factor: ::protobuf::SingularPtrField<super::auth_factor::AuthFactor>,
21419     pub auth_input: ::protobuf::SingularPtrField<super::auth_factor::AuthInput>,
21420     // special fields
21421     pub unknown_fields: ::protobuf::UnknownFields,
21422     pub cached_size: ::protobuf::CachedSize,
21423 }
21424 
21425 impl<'a> ::std::default::Default for &'a UpdateAuthFactorRequest {
default() -> &'a UpdateAuthFactorRequest21426     fn default() -> &'a UpdateAuthFactorRequest {
21427         <UpdateAuthFactorRequest as ::protobuf::Message>::default_instance()
21428     }
21429 }
21430 
21431 impl UpdateAuthFactorRequest {
new() -> UpdateAuthFactorRequest21432     pub fn new() -> UpdateAuthFactorRequest {
21433         ::std::default::Default::default()
21434     }
21435 
21436     // bytes auth_session_id = 1;
21437 
21438 
get_auth_session_id(&self) -> &[u8]21439     pub fn get_auth_session_id(&self) -> &[u8] {
21440         &self.auth_session_id
21441     }
clear_auth_session_id(&mut self)21442     pub fn clear_auth_session_id(&mut self) {
21443         self.auth_session_id.clear();
21444     }
21445 
21446     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)21447     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
21448         self.auth_session_id = v;
21449     }
21450 
21451     // Mutable pointer to the field.
21452     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>21453     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
21454         &mut self.auth_session_id
21455     }
21456 
21457     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>21458     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
21459         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
21460     }
21461 
21462     // string auth_factor_label = 2;
21463 
21464 
get_auth_factor_label(&self) -> &str21465     pub fn get_auth_factor_label(&self) -> &str {
21466         &self.auth_factor_label
21467     }
clear_auth_factor_label(&mut self)21468     pub fn clear_auth_factor_label(&mut self) {
21469         self.auth_factor_label.clear();
21470     }
21471 
21472     // Param is passed by value, moved
set_auth_factor_label(&mut self, v: ::std::string::String)21473     pub fn set_auth_factor_label(&mut self, v: ::std::string::String) {
21474         self.auth_factor_label = v;
21475     }
21476 
21477     // Mutable pointer to the field.
21478     // If field is not initialized, it is initialized with default value first.
mut_auth_factor_label(&mut self) -> &mut ::std::string::String21479     pub fn mut_auth_factor_label(&mut self) -> &mut ::std::string::String {
21480         &mut self.auth_factor_label
21481     }
21482 
21483     // Take field
take_auth_factor_label(&mut self) -> ::std::string::String21484     pub fn take_auth_factor_label(&mut self) -> ::std::string::String {
21485         ::std::mem::replace(&mut self.auth_factor_label, ::std::string::String::new())
21486     }
21487 
21488     // .user_data_auth.AuthFactor auth_factor = 3;
21489 
21490 
get_auth_factor(&self) -> &super::auth_factor::AuthFactor21491     pub fn get_auth_factor(&self) -> &super::auth_factor::AuthFactor {
21492         self.auth_factor.as_ref().unwrap_or_else(|| <super::auth_factor::AuthFactor as ::protobuf::Message>::default_instance())
21493     }
clear_auth_factor(&mut self)21494     pub fn clear_auth_factor(&mut self) {
21495         self.auth_factor.clear();
21496     }
21497 
has_auth_factor(&self) -> bool21498     pub fn has_auth_factor(&self) -> bool {
21499         self.auth_factor.is_some()
21500     }
21501 
21502     // Param is passed by value, moved
set_auth_factor(&mut self, v: super::auth_factor::AuthFactor)21503     pub fn set_auth_factor(&mut self, v: super::auth_factor::AuthFactor) {
21504         self.auth_factor = ::protobuf::SingularPtrField::some(v);
21505     }
21506 
21507     // Mutable pointer to the field.
21508     // If field is not initialized, it is initialized with default value first.
mut_auth_factor(&mut self) -> &mut super::auth_factor::AuthFactor21509     pub fn mut_auth_factor(&mut self) -> &mut super::auth_factor::AuthFactor {
21510         if self.auth_factor.is_none() {
21511             self.auth_factor.set_default();
21512         }
21513         self.auth_factor.as_mut().unwrap()
21514     }
21515 
21516     // Take field
take_auth_factor(&mut self) -> super::auth_factor::AuthFactor21517     pub fn take_auth_factor(&mut self) -> super::auth_factor::AuthFactor {
21518         self.auth_factor.take().unwrap_or_else(|| super::auth_factor::AuthFactor::new())
21519     }
21520 
21521     // .user_data_auth.AuthInput auth_input = 4;
21522 
21523 
get_auth_input(&self) -> &super::auth_factor::AuthInput21524     pub fn get_auth_input(&self) -> &super::auth_factor::AuthInput {
21525         self.auth_input.as_ref().unwrap_or_else(|| <super::auth_factor::AuthInput as ::protobuf::Message>::default_instance())
21526     }
clear_auth_input(&mut self)21527     pub fn clear_auth_input(&mut self) {
21528         self.auth_input.clear();
21529     }
21530 
has_auth_input(&self) -> bool21531     pub fn has_auth_input(&self) -> bool {
21532         self.auth_input.is_some()
21533     }
21534 
21535     // Param is passed by value, moved
set_auth_input(&mut self, v: super::auth_factor::AuthInput)21536     pub fn set_auth_input(&mut self, v: super::auth_factor::AuthInput) {
21537         self.auth_input = ::protobuf::SingularPtrField::some(v);
21538     }
21539 
21540     // Mutable pointer to the field.
21541     // If field is not initialized, it is initialized with default value first.
mut_auth_input(&mut self) -> &mut super::auth_factor::AuthInput21542     pub fn mut_auth_input(&mut self) -> &mut super::auth_factor::AuthInput {
21543         if self.auth_input.is_none() {
21544             self.auth_input.set_default();
21545         }
21546         self.auth_input.as_mut().unwrap()
21547     }
21548 
21549     // Take field
take_auth_input(&mut self) -> super::auth_factor::AuthInput21550     pub fn take_auth_input(&mut self) -> super::auth_factor::AuthInput {
21551         self.auth_input.take().unwrap_or_else(|| super::auth_factor::AuthInput::new())
21552     }
21553 }
21554 
21555 impl ::protobuf::Message for UpdateAuthFactorRequest {
is_initialized(&self) -> bool21556     fn is_initialized(&self) -> bool {
21557         for v in &self.auth_factor {
21558             if !v.is_initialized() {
21559                 return false;
21560             }
21561         };
21562         for v in &self.auth_input {
21563             if !v.is_initialized() {
21564                 return false;
21565             }
21566         };
21567         true
21568     }
21569 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>21570     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
21571         while !is.eof()? {
21572             let (field_number, wire_type) = is.read_tag_unpack()?;
21573             match field_number {
21574                 1 => {
21575                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
21576                 },
21577                 2 => {
21578                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.auth_factor_label)?;
21579                 },
21580                 3 => {
21581                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.auth_factor)?;
21582                 },
21583                 4 => {
21584                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.auth_input)?;
21585                 },
21586                 _ => {
21587                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
21588                 },
21589             };
21590         }
21591         ::std::result::Result::Ok(())
21592     }
21593 
21594     // Compute sizes of nested messages
21595     #[allow(unused_variables)]
compute_size(&self) -> u3221596     fn compute_size(&self) -> u32 {
21597         let mut my_size = 0;
21598         if !self.auth_session_id.is_empty() {
21599             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
21600         }
21601         if !self.auth_factor_label.is_empty() {
21602             my_size += ::protobuf::rt::string_size(2, &self.auth_factor_label);
21603         }
21604         if let Some(ref v) = self.auth_factor.as_ref() {
21605             let len = v.compute_size();
21606             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
21607         }
21608         if let Some(ref v) = self.auth_input.as_ref() {
21609             let len = v.compute_size();
21610             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
21611         }
21612         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
21613         self.cached_size.set(my_size);
21614         my_size
21615     }
21616 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>21617     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
21618         if !self.auth_session_id.is_empty() {
21619             os.write_bytes(1, &self.auth_session_id)?;
21620         }
21621         if !self.auth_factor_label.is_empty() {
21622             os.write_string(2, &self.auth_factor_label)?;
21623         }
21624         if let Some(ref v) = self.auth_factor.as_ref() {
21625             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
21626             os.write_raw_varint32(v.get_cached_size())?;
21627             v.write_to_with_cached_sizes(os)?;
21628         }
21629         if let Some(ref v) = self.auth_input.as_ref() {
21630             os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
21631             os.write_raw_varint32(v.get_cached_size())?;
21632             v.write_to_with_cached_sizes(os)?;
21633         }
21634         os.write_unknown_fields(self.get_unknown_fields())?;
21635         ::std::result::Result::Ok(())
21636     }
21637 
get_cached_size(&self) -> u3221638     fn get_cached_size(&self) -> u32 {
21639         self.cached_size.get()
21640     }
21641 
get_unknown_fields(&self) -> &::protobuf::UnknownFields21642     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
21643         &self.unknown_fields
21644     }
21645 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields21646     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
21647         &mut self.unknown_fields
21648     }
21649 
as_any(&self) -> &dyn (::std::any::Any)21650     fn as_any(&self) -> &dyn (::std::any::Any) {
21651         self as &dyn (::std::any::Any)
21652     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)21653     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
21654         self as &mut dyn (::std::any::Any)
21655     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>21656     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
21657         self
21658     }
21659 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor21660     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
21661         Self::descriptor_static()
21662     }
21663 
new() -> UpdateAuthFactorRequest21664     fn new() -> UpdateAuthFactorRequest {
21665         UpdateAuthFactorRequest::new()
21666     }
21667 
default_instance() -> &'static UpdateAuthFactorRequest21668     fn default_instance() -> &'static UpdateAuthFactorRequest {
21669         static instance: ::protobuf::rt::LazyV2<UpdateAuthFactorRequest> = ::protobuf::rt::LazyV2::INIT;
21670         instance.get(UpdateAuthFactorRequest::new)
21671     }
21672 }
21673 
21674 impl ::protobuf::Clear for UpdateAuthFactorRequest {
clear(&mut self)21675     fn clear(&mut self) {
21676         self.auth_session_id.clear();
21677         self.auth_factor_label.clear();
21678         self.auth_factor.clear();
21679         self.auth_input.clear();
21680         self.unknown_fields.clear();
21681     }
21682 }
21683 
21684 impl ::protobuf::reflect::ProtobufValue for UpdateAuthFactorRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef21685     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
21686         ::protobuf::reflect::ReflectValueRef::Message(self)
21687     }
21688 }
21689 
21690 #[derive(PartialEq,Clone,Default,Debug)]
21691 pub struct UpdateAuthFactorReply {
21692     // message fields
21693     pub error: CryptohomeErrorCode,
21694     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
21695     // special fields
21696     pub unknown_fields: ::protobuf::UnknownFields,
21697     pub cached_size: ::protobuf::CachedSize,
21698 }
21699 
21700 impl<'a> ::std::default::Default for &'a UpdateAuthFactorReply {
default() -> &'a UpdateAuthFactorReply21701     fn default() -> &'a UpdateAuthFactorReply {
21702         <UpdateAuthFactorReply as ::protobuf::Message>::default_instance()
21703     }
21704 }
21705 
21706 impl UpdateAuthFactorReply {
new() -> UpdateAuthFactorReply21707     pub fn new() -> UpdateAuthFactorReply {
21708         ::std::default::Default::default()
21709     }
21710 
21711     // .user_data_auth.CryptohomeErrorCode error = 1;
21712 
21713 
get_error(&self) -> CryptohomeErrorCode21714     pub fn get_error(&self) -> CryptohomeErrorCode {
21715         self.error
21716     }
clear_error(&mut self)21717     pub fn clear_error(&mut self) {
21718         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
21719     }
21720 
21721     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)21722     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
21723         self.error = v;
21724     }
21725 
21726     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
21727 
21728 
get_error_info(&self) -> &CryptohomeErrorInfo21729     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
21730         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
21731     }
clear_error_info(&mut self)21732     pub fn clear_error_info(&mut self) {
21733         self.error_info.clear();
21734     }
21735 
has_error_info(&self) -> bool21736     pub fn has_error_info(&self) -> bool {
21737         self.error_info.is_some()
21738     }
21739 
21740     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)21741     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
21742         self.error_info = ::protobuf::SingularPtrField::some(v);
21743     }
21744 
21745     // Mutable pointer to the field.
21746     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo21747     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
21748         if self.error_info.is_none() {
21749             self.error_info.set_default();
21750         }
21751         self.error_info.as_mut().unwrap()
21752     }
21753 
21754     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo21755     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
21756         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
21757     }
21758 }
21759 
21760 impl ::protobuf::Message for UpdateAuthFactorReply {
is_initialized(&self) -> bool21761     fn is_initialized(&self) -> bool {
21762         for v in &self.error_info {
21763             if !v.is_initialized() {
21764                 return false;
21765             }
21766         };
21767         true
21768     }
21769 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>21770     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
21771         while !is.eof()? {
21772             let (field_number, wire_type) = is.read_tag_unpack()?;
21773             match field_number {
21774                 1 => {
21775                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
21776                 },
21777                 2 => {
21778                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
21779                 },
21780                 _ => {
21781                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
21782                 },
21783             };
21784         }
21785         ::std::result::Result::Ok(())
21786     }
21787 
21788     // Compute sizes of nested messages
21789     #[allow(unused_variables)]
compute_size(&self) -> u3221790     fn compute_size(&self) -> u32 {
21791         let mut my_size = 0;
21792         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
21793             my_size += ::protobuf::rt::enum_size(1, self.error);
21794         }
21795         if let Some(ref v) = self.error_info.as_ref() {
21796             let len = v.compute_size();
21797             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
21798         }
21799         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
21800         self.cached_size.set(my_size);
21801         my_size
21802     }
21803 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>21804     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
21805         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
21806             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
21807         }
21808         if let Some(ref v) = self.error_info.as_ref() {
21809             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
21810             os.write_raw_varint32(v.get_cached_size())?;
21811             v.write_to_with_cached_sizes(os)?;
21812         }
21813         os.write_unknown_fields(self.get_unknown_fields())?;
21814         ::std::result::Result::Ok(())
21815     }
21816 
get_cached_size(&self) -> u3221817     fn get_cached_size(&self) -> u32 {
21818         self.cached_size.get()
21819     }
21820 
get_unknown_fields(&self) -> &::protobuf::UnknownFields21821     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
21822         &self.unknown_fields
21823     }
21824 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields21825     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
21826         &mut self.unknown_fields
21827     }
21828 
as_any(&self) -> &dyn (::std::any::Any)21829     fn as_any(&self) -> &dyn (::std::any::Any) {
21830         self as &dyn (::std::any::Any)
21831     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)21832     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
21833         self as &mut dyn (::std::any::Any)
21834     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>21835     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
21836         self
21837     }
21838 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor21839     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
21840         Self::descriptor_static()
21841     }
21842 
new() -> UpdateAuthFactorReply21843     fn new() -> UpdateAuthFactorReply {
21844         UpdateAuthFactorReply::new()
21845     }
21846 
default_instance() -> &'static UpdateAuthFactorReply21847     fn default_instance() -> &'static UpdateAuthFactorReply {
21848         static instance: ::protobuf::rt::LazyV2<UpdateAuthFactorReply> = ::protobuf::rt::LazyV2::INIT;
21849         instance.get(UpdateAuthFactorReply::new)
21850     }
21851 }
21852 
21853 impl ::protobuf::Clear for UpdateAuthFactorReply {
clear(&mut self)21854     fn clear(&mut self) {
21855         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
21856         self.error_info.clear();
21857         self.unknown_fields.clear();
21858     }
21859 }
21860 
21861 impl ::protobuf::reflect::ProtobufValue for UpdateAuthFactorReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef21862     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
21863         ::protobuf::reflect::ReflectValueRef::Message(self)
21864     }
21865 }
21866 
21867 #[derive(PartialEq,Clone,Default,Debug)]
21868 pub struct RemoveAuthFactorRequest {
21869     // message fields
21870     pub auth_session_id: ::std::vec::Vec<u8>,
21871     pub auth_factor_label: ::std::string::String,
21872     // special fields
21873     pub unknown_fields: ::protobuf::UnknownFields,
21874     pub cached_size: ::protobuf::CachedSize,
21875 }
21876 
21877 impl<'a> ::std::default::Default for &'a RemoveAuthFactorRequest {
default() -> &'a RemoveAuthFactorRequest21878     fn default() -> &'a RemoveAuthFactorRequest {
21879         <RemoveAuthFactorRequest as ::protobuf::Message>::default_instance()
21880     }
21881 }
21882 
21883 impl RemoveAuthFactorRequest {
new() -> RemoveAuthFactorRequest21884     pub fn new() -> RemoveAuthFactorRequest {
21885         ::std::default::Default::default()
21886     }
21887 
21888     // bytes auth_session_id = 1;
21889 
21890 
get_auth_session_id(&self) -> &[u8]21891     pub fn get_auth_session_id(&self) -> &[u8] {
21892         &self.auth_session_id
21893     }
clear_auth_session_id(&mut self)21894     pub fn clear_auth_session_id(&mut self) {
21895         self.auth_session_id.clear();
21896     }
21897 
21898     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)21899     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
21900         self.auth_session_id = v;
21901     }
21902 
21903     // Mutable pointer to the field.
21904     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>21905     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
21906         &mut self.auth_session_id
21907     }
21908 
21909     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>21910     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
21911         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
21912     }
21913 
21914     // string auth_factor_label = 2;
21915 
21916 
get_auth_factor_label(&self) -> &str21917     pub fn get_auth_factor_label(&self) -> &str {
21918         &self.auth_factor_label
21919     }
clear_auth_factor_label(&mut self)21920     pub fn clear_auth_factor_label(&mut self) {
21921         self.auth_factor_label.clear();
21922     }
21923 
21924     // Param is passed by value, moved
set_auth_factor_label(&mut self, v: ::std::string::String)21925     pub fn set_auth_factor_label(&mut self, v: ::std::string::String) {
21926         self.auth_factor_label = v;
21927     }
21928 
21929     // Mutable pointer to the field.
21930     // If field is not initialized, it is initialized with default value first.
mut_auth_factor_label(&mut self) -> &mut ::std::string::String21931     pub fn mut_auth_factor_label(&mut self) -> &mut ::std::string::String {
21932         &mut self.auth_factor_label
21933     }
21934 
21935     // Take field
take_auth_factor_label(&mut self) -> ::std::string::String21936     pub fn take_auth_factor_label(&mut self) -> ::std::string::String {
21937         ::std::mem::replace(&mut self.auth_factor_label, ::std::string::String::new())
21938     }
21939 }
21940 
21941 impl ::protobuf::Message for RemoveAuthFactorRequest {
is_initialized(&self) -> bool21942     fn is_initialized(&self) -> bool {
21943         true
21944     }
21945 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>21946     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
21947         while !is.eof()? {
21948             let (field_number, wire_type) = is.read_tag_unpack()?;
21949             match field_number {
21950                 1 => {
21951                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
21952                 },
21953                 2 => {
21954                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.auth_factor_label)?;
21955                 },
21956                 _ => {
21957                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
21958                 },
21959             };
21960         }
21961         ::std::result::Result::Ok(())
21962     }
21963 
21964     // Compute sizes of nested messages
21965     #[allow(unused_variables)]
compute_size(&self) -> u3221966     fn compute_size(&self) -> u32 {
21967         let mut my_size = 0;
21968         if !self.auth_session_id.is_empty() {
21969             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
21970         }
21971         if !self.auth_factor_label.is_empty() {
21972             my_size += ::protobuf::rt::string_size(2, &self.auth_factor_label);
21973         }
21974         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
21975         self.cached_size.set(my_size);
21976         my_size
21977     }
21978 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>21979     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
21980         if !self.auth_session_id.is_empty() {
21981             os.write_bytes(1, &self.auth_session_id)?;
21982         }
21983         if !self.auth_factor_label.is_empty() {
21984             os.write_string(2, &self.auth_factor_label)?;
21985         }
21986         os.write_unknown_fields(self.get_unknown_fields())?;
21987         ::std::result::Result::Ok(())
21988     }
21989 
get_cached_size(&self) -> u3221990     fn get_cached_size(&self) -> u32 {
21991         self.cached_size.get()
21992     }
21993 
get_unknown_fields(&self) -> &::protobuf::UnknownFields21994     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
21995         &self.unknown_fields
21996     }
21997 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields21998     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
21999         &mut self.unknown_fields
22000     }
22001 
as_any(&self) -> &dyn (::std::any::Any)22002     fn as_any(&self) -> &dyn (::std::any::Any) {
22003         self as &dyn (::std::any::Any)
22004     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)22005     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
22006         self as &mut dyn (::std::any::Any)
22007     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>22008     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
22009         self
22010     }
22011 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor22012     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
22013         Self::descriptor_static()
22014     }
22015 
new() -> RemoveAuthFactorRequest22016     fn new() -> RemoveAuthFactorRequest {
22017         RemoveAuthFactorRequest::new()
22018     }
22019 
default_instance() -> &'static RemoveAuthFactorRequest22020     fn default_instance() -> &'static RemoveAuthFactorRequest {
22021         static instance: ::protobuf::rt::LazyV2<RemoveAuthFactorRequest> = ::protobuf::rt::LazyV2::INIT;
22022         instance.get(RemoveAuthFactorRequest::new)
22023     }
22024 }
22025 
22026 impl ::protobuf::Clear for RemoveAuthFactorRequest {
clear(&mut self)22027     fn clear(&mut self) {
22028         self.auth_session_id.clear();
22029         self.auth_factor_label.clear();
22030         self.unknown_fields.clear();
22031     }
22032 }
22033 
22034 impl ::protobuf::reflect::ProtobufValue for RemoveAuthFactorRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef22035     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
22036         ::protobuf::reflect::ReflectValueRef::Message(self)
22037     }
22038 }
22039 
22040 #[derive(PartialEq,Clone,Default,Debug)]
22041 pub struct RemoveAuthFactorReply {
22042     // message fields
22043     pub error: CryptohomeErrorCode,
22044     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
22045     // special fields
22046     pub unknown_fields: ::protobuf::UnknownFields,
22047     pub cached_size: ::protobuf::CachedSize,
22048 }
22049 
22050 impl<'a> ::std::default::Default for &'a RemoveAuthFactorReply {
default() -> &'a RemoveAuthFactorReply22051     fn default() -> &'a RemoveAuthFactorReply {
22052         <RemoveAuthFactorReply as ::protobuf::Message>::default_instance()
22053     }
22054 }
22055 
22056 impl RemoveAuthFactorReply {
new() -> RemoveAuthFactorReply22057     pub fn new() -> RemoveAuthFactorReply {
22058         ::std::default::Default::default()
22059     }
22060 
22061     // .user_data_auth.CryptohomeErrorCode error = 1;
22062 
22063 
get_error(&self) -> CryptohomeErrorCode22064     pub fn get_error(&self) -> CryptohomeErrorCode {
22065         self.error
22066     }
clear_error(&mut self)22067     pub fn clear_error(&mut self) {
22068         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
22069     }
22070 
22071     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)22072     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
22073         self.error = v;
22074     }
22075 
22076     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
22077 
22078 
get_error_info(&self) -> &CryptohomeErrorInfo22079     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
22080         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
22081     }
clear_error_info(&mut self)22082     pub fn clear_error_info(&mut self) {
22083         self.error_info.clear();
22084     }
22085 
has_error_info(&self) -> bool22086     pub fn has_error_info(&self) -> bool {
22087         self.error_info.is_some()
22088     }
22089 
22090     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)22091     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
22092         self.error_info = ::protobuf::SingularPtrField::some(v);
22093     }
22094 
22095     // Mutable pointer to the field.
22096     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo22097     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
22098         if self.error_info.is_none() {
22099             self.error_info.set_default();
22100         }
22101         self.error_info.as_mut().unwrap()
22102     }
22103 
22104     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo22105     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
22106         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
22107     }
22108 }
22109 
22110 impl ::protobuf::Message for RemoveAuthFactorReply {
is_initialized(&self) -> bool22111     fn is_initialized(&self) -> bool {
22112         for v in &self.error_info {
22113             if !v.is_initialized() {
22114                 return false;
22115             }
22116         };
22117         true
22118     }
22119 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>22120     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
22121         while !is.eof()? {
22122             let (field_number, wire_type) = is.read_tag_unpack()?;
22123             match field_number {
22124                 1 => {
22125                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
22126                 },
22127                 2 => {
22128                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
22129                 },
22130                 _ => {
22131                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
22132                 },
22133             };
22134         }
22135         ::std::result::Result::Ok(())
22136     }
22137 
22138     // Compute sizes of nested messages
22139     #[allow(unused_variables)]
compute_size(&self) -> u3222140     fn compute_size(&self) -> u32 {
22141         let mut my_size = 0;
22142         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
22143             my_size += ::protobuf::rt::enum_size(1, self.error);
22144         }
22145         if let Some(ref v) = self.error_info.as_ref() {
22146             let len = v.compute_size();
22147             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
22148         }
22149         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
22150         self.cached_size.set(my_size);
22151         my_size
22152     }
22153 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>22154     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
22155         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
22156             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
22157         }
22158         if let Some(ref v) = self.error_info.as_ref() {
22159             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
22160             os.write_raw_varint32(v.get_cached_size())?;
22161             v.write_to_with_cached_sizes(os)?;
22162         }
22163         os.write_unknown_fields(self.get_unknown_fields())?;
22164         ::std::result::Result::Ok(())
22165     }
22166 
get_cached_size(&self) -> u3222167     fn get_cached_size(&self) -> u32 {
22168         self.cached_size.get()
22169     }
22170 
get_unknown_fields(&self) -> &::protobuf::UnknownFields22171     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
22172         &self.unknown_fields
22173     }
22174 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields22175     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
22176         &mut self.unknown_fields
22177     }
22178 
as_any(&self) -> &dyn (::std::any::Any)22179     fn as_any(&self) -> &dyn (::std::any::Any) {
22180         self as &dyn (::std::any::Any)
22181     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)22182     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
22183         self as &mut dyn (::std::any::Any)
22184     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>22185     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
22186         self
22187     }
22188 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor22189     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
22190         Self::descriptor_static()
22191     }
22192 
new() -> RemoveAuthFactorReply22193     fn new() -> RemoveAuthFactorReply {
22194         RemoveAuthFactorReply::new()
22195     }
22196 
default_instance() -> &'static RemoveAuthFactorReply22197     fn default_instance() -> &'static RemoveAuthFactorReply {
22198         static instance: ::protobuf::rt::LazyV2<RemoveAuthFactorReply> = ::protobuf::rt::LazyV2::INIT;
22199         instance.get(RemoveAuthFactorReply::new)
22200     }
22201 }
22202 
22203 impl ::protobuf::Clear for RemoveAuthFactorReply {
clear(&mut self)22204     fn clear(&mut self) {
22205         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
22206         self.error_info.clear();
22207         self.unknown_fields.clear();
22208     }
22209 }
22210 
22211 impl ::protobuf::reflect::ProtobufValue for RemoveAuthFactorReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef22212     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
22213         ::protobuf::reflect::ReflectValueRef::Message(self)
22214     }
22215 }
22216 
22217 #[derive(PartialEq,Clone,Default,Debug)]
22218 pub struct ListAuthFactorsRequest {
22219     // message fields
22220     pub account_id: ::protobuf::SingularPtrField<super::rpc::AccountIdentifier>,
22221     // special fields
22222     pub unknown_fields: ::protobuf::UnknownFields,
22223     pub cached_size: ::protobuf::CachedSize,
22224 }
22225 
22226 impl<'a> ::std::default::Default for &'a ListAuthFactorsRequest {
default() -> &'a ListAuthFactorsRequest22227     fn default() -> &'a ListAuthFactorsRequest {
22228         <ListAuthFactorsRequest as ::protobuf::Message>::default_instance()
22229     }
22230 }
22231 
22232 impl ListAuthFactorsRequest {
new() -> ListAuthFactorsRequest22233     pub fn new() -> ListAuthFactorsRequest {
22234         ::std::default::Default::default()
22235     }
22236 
22237     // .cryptohome.AccountIdentifier account_id = 1;
22238 
22239 
get_account_id(&self) -> &super::rpc::AccountIdentifier22240     pub fn get_account_id(&self) -> &super::rpc::AccountIdentifier {
22241         self.account_id.as_ref().unwrap_or_else(|| <super::rpc::AccountIdentifier as ::protobuf::Message>::default_instance())
22242     }
clear_account_id(&mut self)22243     pub fn clear_account_id(&mut self) {
22244         self.account_id.clear();
22245     }
22246 
has_account_id(&self) -> bool22247     pub fn has_account_id(&self) -> bool {
22248         self.account_id.is_some()
22249     }
22250 
22251     // Param is passed by value, moved
set_account_id(&mut self, v: super::rpc::AccountIdentifier)22252     pub fn set_account_id(&mut self, v: super::rpc::AccountIdentifier) {
22253         self.account_id = ::protobuf::SingularPtrField::some(v);
22254     }
22255 
22256     // Mutable pointer to the field.
22257     // If field is not initialized, it is initialized with default value first.
mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier22258     pub fn mut_account_id(&mut self) -> &mut super::rpc::AccountIdentifier {
22259         if self.account_id.is_none() {
22260             self.account_id.set_default();
22261         }
22262         self.account_id.as_mut().unwrap()
22263     }
22264 
22265     // Take field
take_account_id(&mut self) -> super::rpc::AccountIdentifier22266     pub fn take_account_id(&mut self) -> super::rpc::AccountIdentifier {
22267         self.account_id.take().unwrap_or_else(|| super::rpc::AccountIdentifier::new())
22268     }
22269 }
22270 
22271 impl ::protobuf::Message for ListAuthFactorsRequest {
is_initialized(&self) -> bool22272     fn is_initialized(&self) -> bool {
22273         for v in &self.account_id {
22274             if !v.is_initialized() {
22275                 return false;
22276             }
22277         };
22278         true
22279     }
22280 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>22281     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
22282         while !is.eof()? {
22283             let (field_number, wire_type) = is.read_tag_unpack()?;
22284             match field_number {
22285                 1 => {
22286                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_id)?;
22287                 },
22288                 _ => {
22289                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
22290                 },
22291             };
22292         }
22293         ::std::result::Result::Ok(())
22294     }
22295 
22296     // Compute sizes of nested messages
22297     #[allow(unused_variables)]
compute_size(&self) -> u3222298     fn compute_size(&self) -> u32 {
22299         let mut my_size = 0;
22300         if let Some(ref v) = self.account_id.as_ref() {
22301             let len = v.compute_size();
22302             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
22303         }
22304         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
22305         self.cached_size.set(my_size);
22306         my_size
22307     }
22308 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>22309     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
22310         if let Some(ref v) = self.account_id.as_ref() {
22311             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
22312             os.write_raw_varint32(v.get_cached_size())?;
22313             v.write_to_with_cached_sizes(os)?;
22314         }
22315         os.write_unknown_fields(self.get_unknown_fields())?;
22316         ::std::result::Result::Ok(())
22317     }
22318 
get_cached_size(&self) -> u3222319     fn get_cached_size(&self) -> u32 {
22320         self.cached_size.get()
22321     }
22322 
get_unknown_fields(&self) -> &::protobuf::UnknownFields22323     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
22324         &self.unknown_fields
22325     }
22326 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields22327     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
22328         &mut self.unknown_fields
22329     }
22330 
as_any(&self) -> &dyn (::std::any::Any)22331     fn as_any(&self) -> &dyn (::std::any::Any) {
22332         self as &dyn (::std::any::Any)
22333     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)22334     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
22335         self as &mut dyn (::std::any::Any)
22336     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>22337     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
22338         self
22339     }
22340 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor22341     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
22342         Self::descriptor_static()
22343     }
22344 
new() -> ListAuthFactorsRequest22345     fn new() -> ListAuthFactorsRequest {
22346         ListAuthFactorsRequest::new()
22347     }
22348 
default_instance() -> &'static ListAuthFactorsRequest22349     fn default_instance() -> &'static ListAuthFactorsRequest {
22350         static instance: ::protobuf::rt::LazyV2<ListAuthFactorsRequest> = ::protobuf::rt::LazyV2::INIT;
22351         instance.get(ListAuthFactorsRequest::new)
22352     }
22353 }
22354 
22355 impl ::protobuf::Clear for ListAuthFactorsRequest {
clear(&mut self)22356     fn clear(&mut self) {
22357         self.account_id.clear();
22358         self.unknown_fields.clear();
22359     }
22360 }
22361 
22362 impl ::protobuf::reflect::ProtobufValue for ListAuthFactorsRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef22363     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
22364         ::protobuf::reflect::ReflectValueRef::Message(self)
22365     }
22366 }
22367 
22368 #[derive(PartialEq,Clone,Default,Debug)]
22369 pub struct ListAuthFactorsReply {
22370     // message fields
22371     pub error: CryptohomeErrorCode,
22372     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
22373     pub configured_auth_factors_with_status: ::protobuf::RepeatedField<AuthFactorWithStatus>,
22374     pub supported_auth_factors: ::std::vec::Vec<super::auth_factor::AuthFactorType>,
22375     // special fields
22376     pub unknown_fields: ::protobuf::UnknownFields,
22377     pub cached_size: ::protobuf::CachedSize,
22378 }
22379 
22380 impl<'a> ::std::default::Default for &'a ListAuthFactorsReply {
default() -> &'a ListAuthFactorsReply22381     fn default() -> &'a ListAuthFactorsReply {
22382         <ListAuthFactorsReply as ::protobuf::Message>::default_instance()
22383     }
22384 }
22385 
22386 impl ListAuthFactorsReply {
new() -> ListAuthFactorsReply22387     pub fn new() -> ListAuthFactorsReply {
22388         ::std::default::Default::default()
22389     }
22390 
22391     // .user_data_auth.CryptohomeErrorCode error = 1;
22392 
22393 
get_error(&self) -> CryptohomeErrorCode22394     pub fn get_error(&self) -> CryptohomeErrorCode {
22395         self.error
22396     }
clear_error(&mut self)22397     pub fn clear_error(&mut self) {
22398         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
22399     }
22400 
22401     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)22402     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
22403         self.error = v;
22404     }
22405 
22406     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
22407 
22408 
get_error_info(&self) -> &CryptohomeErrorInfo22409     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
22410         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
22411     }
clear_error_info(&mut self)22412     pub fn clear_error_info(&mut self) {
22413         self.error_info.clear();
22414     }
22415 
has_error_info(&self) -> bool22416     pub fn has_error_info(&self) -> bool {
22417         self.error_info.is_some()
22418     }
22419 
22420     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)22421     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
22422         self.error_info = ::protobuf::SingularPtrField::some(v);
22423     }
22424 
22425     // Mutable pointer to the field.
22426     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo22427     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
22428         if self.error_info.is_none() {
22429             self.error_info.set_default();
22430         }
22431         self.error_info.as_mut().unwrap()
22432     }
22433 
22434     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo22435     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
22436         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
22437     }
22438 
22439     // repeated .user_data_auth.AuthFactorWithStatus configured_auth_factors_with_status = 5;
22440 
22441 
get_configured_auth_factors_with_status(&self) -> &[AuthFactorWithStatus]22442     pub fn get_configured_auth_factors_with_status(&self) -> &[AuthFactorWithStatus] {
22443         &self.configured_auth_factors_with_status
22444     }
clear_configured_auth_factors_with_status(&mut self)22445     pub fn clear_configured_auth_factors_with_status(&mut self) {
22446         self.configured_auth_factors_with_status.clear();
22447     }
22448 
22449     // Param is passed by value, moved
set_configured_auth_factors_with_status(&mut self, v: ::protobuf::RepeatedField<AuthFactorWithStatus>)22450     pub fn set_configured_auth_factors_with_status(&mut self, v: ::protobuf::RepeatedField<AuthFactorWithStatus>) {
22451         self.configured_auth_factors_with_status = v;
22452     }
22453 
22454     // Mutable pointer to the field.
mut_configured_auth_factors_with_status(&mut self) -> &mut ::protobuf::RepeatedField<AuthFactorWithStatus>22455     pub fn mut_configured_auth_factors_with_status(&mut self) -> &mut ::protobuf::RepeatedField<AuthFactorWithStatus> {
22456         &mut self.configured_auth_factors_with_status
22457     }
22458 
22459     // Take field
take_configured_auth_factors_with_status(&mut self) -> ::protobuf::RepeatedField<AuthFactorWithStatus>22460     pub fn take_configured_auth_factors_with_status(&mut self) -> ::protobuf::RepeatedField<AuthFactorWithStatus> {
22461         ::std::mem::replace(&mut self.configured_auth_factors_with_status, ::protobuf::RepeatedField::new())
22462     }
22463 
22464     // repeated .user_data_auth.AuthFactorType supported_auth_factors = 4;
22465 
22466 
get_supported_auth_factors(&self) -> &[super::auth_factor::AuthFactorType]22467     pub fn get_supported_auth_factors(&self) -> &[super::auth_factor::AuthFactorType] {
22468         &self.supported_auth_factors
22469     }
clear_supported_auth_factors(&mut self)22470     pub fn clear_supported_auth_factors(&mut self) {
22471         self.supported_auth_factors.clear();
22472     }
22473 
22474     // Param is passed by value, moved
set_supported_auth_factors(&mut self, v: ::std::vec::Vec<super::auth_factor::AuthFactorType>)22475     pub fn set_supported_auth_factors(&mut self, v: ::std::vec::Vec<super::auth_factor::AuthFactorType>) {
22476         self.supported_auth_factors = v;
22477     }
22478 
22479     // Mutable pointer to the field.
mut_supported_auth_factors(&mut self) -> &mut ::std::vec::Vec<super::auth_factor::AuthFactorType>22480     pub fn mut_supported_auth_factors(&mut self) -> &mut ::std::vec::Vec<super::auth_factor::AuthFactorType> {
22481         &mut self.supported_auth_factors
22482     }
22483 
22484     // Take field
take_supported_auth_factors(&mut self) -> ::std::vec::Vec<super::auth_factor::AuthFactorType>22485     pub fn take_supported_auth_factors(&mut self) -> ::std::vec::Vec<super::auth_factor::AuthFactorType> {
22486         ::std::mem::replace(&mut self.supported_auth_factors, ::std::vec::Vec::new())
22487     }
22488 }
22489 
22490 impl ::protobuf::Message for ListAuthFactorsReply {
is_initialized(&self) -> bool22491     fn is_initialized(&self) -> bool {
22492         for v in &self.error_info {
22493             if !v.is_initialized() {
22494                 return false;
22495             }
22496         };
22497         for v in &self.configured_auth_factors_with_status {
22498             if !v.is_initialized() {
22499                 return false;
22500             }
22501         };
22502         true
22503     }
22504 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>22505     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
22506         while !is.eof()? {
22507             let (field_number, wire_type) = is.read_tag_unpack()?;
22508             match field_number {
22509                 1 => {
22510                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
22511                 },
22512                 2 => {
22513                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
22514                 },
22515                 5 => {
22516                     ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.configured_auth_factors_with_status)?;
22517                 },
22518                 4 => {
22519                     ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.supported_auth_factors, 4, &mut self.unknown_fields)?
22520                 },
22521                 _ => {
22522                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
22523                 },
22524             };
22525         }
22526         ::std::result::Result::Ok(())
22527     }
22528 
22529     // Compute sizes of nested messages
22530     #[allow(unused_variables)]
compute_size(&self) -> u3222531     fn compute_size(&self) -> u32 {
22532         let mut my_size = 0;
22533         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
22534             my_size += ::protobuf::rt::enum_size(1, self.error);
22535         }
22536         if let Some(ref v) = self.error_info.as_ref() {
22537             let len = v.compute_size();
22538             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
22539         }
22540         for value in &self.configured_auth_factors_with_status {
22541             let len = value.compute_size();
22542             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
22543         };
22544         for value in &self.supported_auth_factors {
22545             my_size += ::protobuf::rt::enum_size(4, *value);
22546         };
22547         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
22548         self.cached_size.set(my_size);
22549         my_size
22550     }
22551 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>22552     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
22553         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
22554             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
22555         }
22556         if let Some(ref v) = self.error_info.as_ref() {
22557             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
22558             os.write_raw_varint32(v.get_cached_size())?;
22559             v.write_to_with_cached_sizes(os)?;
22560         }
22561         for v in &self.configured_auth_factors_with_status {
22562             os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
22563             os.write_raw_varint32(v.get_cached_size())?;
22564             v.write_to_with_cached_sizes(os)?;
22565         };
22566         for v in &self.supported_auth_factors {
22567             os.write_enum(4, ::protobuf::ProtobufEnum::value(v))?;
22568         };
22569         os.write_unknown_fields(self.get_unknown_fields())?;
22570         ::std::result::Result::Ok(())
22571     }
22572 
get_cached_size(&self) -> u3222573     fn get_cached_size(&self) -> u32 {
22574         self.cached_size.get()
22575     }
22576 
get_unknown_fields(&self) -> &::protobuf::UnknownFields22577     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
22578         &self.unknown_fields
22579     }
22580 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields22581     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
22582         &mut self.unknown_fields
22583     }
22584 
as_any(&self) -> &dyn (::std::any::Any)22585     fn as_any(&self) -> &dyn (::std::any::Any) {
22586         self as &dyn (::std::any::Any)
22587     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)22588     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
22589         self as &mut dyn (::std::any::Any)
22590     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>22591     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
22592         self
22593     }
22594 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor22595     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
22596         Self::descriptor_static()
22597     }
22598 
new() -> ListAuthFactorsReply22599     fn new() -> ListAuthFactorsReply {
22600         ListAuthFactorsReply::new()
22601     }
22602 
default_instance() -> &'static ListAuthFactorsReply22603     fn default_instance() -> &'static ListAuthFactorsReply {
22604         static instance: ::protobuf::rt::LazyV2<ListAuthFactorsReply> = ::protobuf::rt::LazyV2::INIT;
22605         instance.get(ListAuthFactorsReply::new)
22606     }
22607 }
22608 
22609 impl ::protobuf::Clear for ListAuthFactorsReply {
clear(&mut self)22610     fn clear(&mut self) {
22611         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
22612         self.error_info.clear();
22613         self.configured_auth_factors_with_status.clear();
22614         self.supported_auth_factors.clear();
22615         self.unknown_fields.clear();
22616     }
22617 }
22618 
22619 impl ::protobuf::reflect::ProtobufValue for ListAuthFactorsReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef22620     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
22621         ::protobuf::reflect::ReflectValueRef::Message(self)
22622     }
22623 }
22624 
22625 #[derive(PartialEq,Clone,Default,Debug)]
22626 pub struct GetRecoveryRequestRequest {
22627     // message fields
22628     pub auth_session_id: ::std::vec::Vec<u8>,
22629     pub auth_factor_label: ::std::string::String,
22630     pub requestor_user_id_type: GetRecoveryRequestRequest_UserType,
22631     pub requestor_user_id: ::std::string::String,
22632     pub gaia_access_token: ::std::string::String,
22633     pub gaia_reauth_proof_token: ::std::string::String,
22634     pub epoch_response: ::std::vec::Vec<u8>,
22635     // special fields
22636     pub unknown_fields: ::protobuf::UnknownFields,
22637     pub cached_size: ::protobuf::CachedSize,
22638 }
22639 
22640 impl<'a> ::std::default::Default for &'a GetRecoveryRequestRequest {
default() -> &'a GetRecoveryRequestRequest22641     fn default() -> &'a GetRecoveryRequestRequest {
22642         <GetRecoveryRequestRequest as ::protobuf::Message>::default_instance()
22643     }
22644 }
22645 
22646 impl GetRecoveryRequestRequest {
new() -> GetRecoveryRequestRequest22647     pub fn new() -> GetRecoveryRequestRequest {
22648         ::std::default::Default::default()
22649     }
22650 
22651     // bytes auth_session_id = 1;
22652 
22653 
get_auth_session_id(&self) -> &[u8]22654     pub fn get_auth_session_id(&self) -> &[u8] {
22655         &self.auth_session_id
22656     }
clear_auth_session_id(&mut self)22657     pub fn clear_auth_session_id(&mut self) {
22658         self.auth_session_id.clear();
22659     }
22660 
22661     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)22662     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
22663         self.auth_session_id = v;
22664     }
22665 
22666     // Mutable pointer to the field.
22667     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>22668     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
22669         &mut self.auth_session_id
22670     }
22671 
22672     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>22673     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
22674         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
22675     }
22676 
22677     // string auth_factor_label = 2;
22678 
22679 
get_auth_factor_label(&self) -> &str22680     pub fn get_auth_factor_label(&self) -> &str {
22681         &self.auth_factor_label
22682     }
clear_auth_factor_label(&mut self)22683     pub fn clear_auth_factor_label(&mut self) {
22684         self.auth_factor_label.clear();
22685     }
22686 
22687     // Param is passed by value, moved
set_auth_factor_label(&mut self, v: ::std::string::String)22688     pub fn set_auth_factor_label(&mut self, v: ::std::string::String) {
22689         self.auth_factor_label = v;
22690     }
22691 
22692     // Mutable pointer to the field.
22693     // If field is not initialized, it is initialized with default value first.
mut_auth_factor_label(&mut self) -> &mut ::std::string::String22694     pub fn mut_auth_factor_label(&mut self) -> &mut ::std::string::String {
22695         &mut self.auth_factor_label
22696     }
22697 
22698     // Take field
take_auth_factor_label(&mut self) -> ::std::string::String22699     pub fn take_auth_factor_label(&mut self) -> ::std::string::String {
22700         ::std::mem::replace(&mut self.auth_factor_label, ::std::string::String::new())
22701     }
22702 
22703     // .user_data_auth.GetRecoveryRequestRequest.UserType requestor_user_id_type = 3;
22704 
22705 
get_requestor_user_id_type(&self) -> GetRecoveryRequestRequest_UserType22706     pub fn get_requestor_user_id_type(&self) -> GetRecoveryRequestRequest_UserType {
22707         self.requestor_user_id_type
22708     }
clear_requestor_user_id_type(&mut self)22709     pub fn clear_requestor_user_id_type(&mut self) {
22710         self.requestor_user_id_type = GetRecoveryRequestRequest_UserType::UNKNOWN;
22711     }
22712 
22713     // Param is passed by value, moved
set_requestor_user_id_type(&mut self, v: GetRecoveryRequestRequest_UserType)22714     pub fn set_requestor_user_id_type(&mut self, v: GetRecoveryRequestRequest_UserType) {
22715         self.requestor_user_id_type = v;
22716     }
22717 
22718     // string requestor_user_id = 4;
22719 
22720 
get_requestor_user_id(&self) -> &str22721     pub fn get_requestor_user_id(&self) -> &str {
22722         &self.requestor_user_id
22723     }
clear_requestor_user_id(&mut self)22724     pub fn clear_requestor_user_id(&mut self) {
22725         self.requestor_user_id.clear();
22726     }
22727 
22728     // Param is passed by value, moved
set_requestor_user_id(&mut self, v: ::std::string::String)22729     pub fn set_requestor_user_id(&mut self, v: ::std::string::String) {
22730         self.requestor_user_id = v;
22731     }
22732 
22733     // Mutable pointer to the field.
22734     // If field is not initialized, it is initialized with default value first.
mut_requestor_user_id(&mut self) -> &mut ::std::string::String22735     pub fn mut_requestor_user_id(&mut self) -> &mut ::std::string::String {
22736         &mut self.requestor_user_id
22737     }
22738 
22739     // Take field
take_requestor_user_id(&mut self) -> ::std::string::String22740     pub fn take_requestor_user_id(&mut self) -> ::std::string::String {
22741         ::std::mem::replace(&mut self.requestor_user_id, ::std::string::String::new())
22742     }
22743 
22744     // string gaia_access_token = 5;
22745 
22746 
get_gaia_access_token(&self) -> &str22747     pub fn get_gaia_access_token(&self) -> &str {
22748         &self.gaia_access_token
22749     }
clear_gaia_access_token(&mut self)22750     pub fn clear_gaia_access_token(&mut self) {
22751         self.gaia_access_token.clear();
22752     }
22753 
22754     // Param is passed by value, moved
set_gaia_access_token(&mut self, v: ::std::string::String)22755     pub fn set_gaia_access_token(&mut self, v: ::std::string::String) {
22756         self.gaia_access_token = v;
22757     }
22758 
22759     // Mutable pointer to the field.
22760     // If field is not initialized, it is initialized with default value first.
mut_gaia_access_token(&mut self) -> &mut ::std::string::String22761     pub fn mut_gaia_access_token(&mut self) -> &mut ::std::string::String {
22762         &mut self.gaia_access_token
22763     }
22764 
22765     // Take field
take_gaia_access_token(&mut self) -> ::std::string::String22766     pub fn take_gaia_access_token(&mut self) -> ::std::string::String {
22767         ::std::mem::replace(&mut self.gaia_access_token, ::std::string::String::new())
22768     }
22769 
22770     // string gaia_reauth_proof_token = 6;
22771 
22772 
get_gaia_reauth_proof_token(&self) -> &str22773     pub fn get_gaia_reauth_proof_token(&self) -> &str {
22774         &self.gaia_reauth_proof_token
22775     }
clear_gaia_reauth_proof_token(&mut self)22776     pub fn clear_gaia_reauth_proof_token(&mut self) {
22777         self.gaia_reauth_proof_token.clear();
22778     }
22779 
22780     // Param is passed by value, moved
set_gaia_reauth_proof_token(&mut self, v: ::std::string::String)22781     pub fn set_gaia_reauth_proof_token(&mut self, v: ::std::string::String) {
22782         self.gaia_reauth_proof_token = v;
22783     }
22784 
22785     // Mutable pointer to the field.
22786     // If field is not initialized, it is initialized with default value first.
mut_gaia_reauth_proof_token(&mut self) -> &mut ::std::string::String22787     pub fn mut_gaia_reauth_proof_token(&mut self) -> &mut ::std::string::String {
22788         &mut self.gaia_reauth_proof_token
22789     }
22790 
22791     // Take field
take_gaia_reauth_proof_token(&mut self) -> ::std::string::String22792     pub fn take_gaia_reauth_proof_token(&mut self) -> ::std::string::String {
22793         ::std::mem::replace(&mut self.gaia_reauth_proof_token, ::std::string::String::new())
22794     }
22795 
22796     // bytes epoch_response = 7;
22797 
22798 
get_epoch_response(&self) -> &[u8]22799     pub fn get_epoch_response(&self) -> &[u8] {
22800         &self.epoch_response
22801     }
clear_epoch_response(&mut self)22802     pub fn clear_epoch_response(&mut self) {
22803         self.epoch_response.clear();
22804     }
22805 
22806     // Param is passed by value, moved
set_epoch_response(&mut self, v: ::std::vec::Vec<u8>)22807     pub fn set_epoch_response(&mut self, v: ::std::vec::Vec<u8>) {
22808         self.epoch_response = v;
22809     }
22810 
22811     // Mutable pointer to the field.
22812     // If field is not initialized, it is initialized with default value first.
mut_epoch_response(&mut self) -> &mut ::std::vec::Vec<u8>22813     pub fn mut_epoch_response(&mut self) -> &mut ::std::vec::Vec<u8> {
22814         &mut self.epoch_response
22815     }
22816 
22817     // Take field
take_epoch_response(&mut self) -> ::std::vec::Vec<u8>22818     pub fn take_epoch_response(&mut self) -> ::std::vec::Vec<u8> {
22819         ::std::mem::replace(&mut self.epoch_response, ::std::vec::Vec::new())
22820     }
22821 }
22822 
22823 impl ::protobuf::Message for GetRecoveryRequestRequest {
is_initialized(&self) -> bool22824     fn is_initialized(&self) -> bool {
22825         true
22826     }
22827 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>22828     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
22829         while !is.eof()? {
22830             let (field_number, wire_type) = is.read_tag_unpack()?;
22831             match field_number {
22832                 1 => {
22833                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
22834                 },
22835                 2 => {
22836                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.auth_factor_label)?;
22837                 },
22838                 3 => {
22839                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.requestor_user_id_type, 3, &mut self.unknown_fields)?
22840                 },
22841                 4 => {
22842                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.requestor_user_id)?;
22843                 },
22844                 5 => {
22845                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.gaia_access_token)?;
22846                 },
22847                 6 => {
22848                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.gaia_reauth_proof_token)?;
22849                 },
22850                 7 => {
22851                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.epoch_response)?;
22852                 },
22853                 _ => {
22854                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
22855                 },
22856             };
22857         }
22858         ::std::result::Result::Ok(())
22859     }
22860 
22861     // Compute sizes of nested messages
22862     #[allow(unused_variables)]
compute_size(&self) -> u3222863     fn compute_size(&self) -> u32 {
22864         let mut my_size = 0;
22865         if !self.auth_session_id.is_empty() {
22866             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
22867         }
22868         if !self.auth_factor_label.is_empty() {
22869             my_size += ::protobuf::rt::string_size(2, &self.auth_factor_label);
22870         }
22871         if self.requestor_user_id_type != GetRecoveryRequestRequest_UserType::UNKNOWN {
22872             my_size += ::protobuf::rt::enum_size(3, self.requestor_user_id_type);
22873         }
22874         if !self.requestor_user_id.is_empty() {
22875             my_size += ::protobuf::rt::string_size(4, &self.requestor_user_id);
22876         }
22877         if !self.gaia_access_token.is_empty() {
22878             my_size += ::protobuf::rt::string_size(5, &self.gaia_access_token);
22879         }
22880         if !self.gaia_reauth_proof_token.is_empty() {
22881             my_size += ::protobuf::rt::string_size(6, &self.gaia_reauth_proof_token);
22882         }
22883         if !self.epoch_response.is_empty() {
22884             my_size += ::protobuf::rt::bytes_size(7, &self.epoch_response);
22885         }
22886         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
22887         self.cached_size.set(my_size);
22888         my_size
22889     }
22890 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>22891     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
22892         if !self.auth_session_id.is_empty() {
22893             os.write_bytes(1, &self.auth_session_id)?;
22894         }
22895         if !self.auth_factor_label.is_empty() {
22896             os.write_string(2, &self.auth_factor_label)?;
22897         }
22898         if self.requestor_user_id_type != GetRecoveryRequestRequest_UserType::UNKNOWN {
22899             os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.requestor_user_id_type))?;
22900         }
22901         if !self.requestor_user_id.is_empty() {
22902             os.write_string(4, &self.requestor_user_id)?;
22903         }
22904         if !self.gaia_access_token.is_empty() {
22905             os.write_string(5, &self.gaia_access_token)?;
22906         }
22907         if !self.gaia_reauth_proof_token.is_empty() {
22908             os.write_string(6, &self.gaia_reauth_proof_token)?;
22909         }
22910         if !self.epoch_response.is_empty() {
22911             os.write_bytes(7, &self.epoch_response)?;
22912         }
22913         os.write_unknown_fields(self.get_unknown_fields())?;
22914         ::std::result::Result::Ok(())
22915     }
22916 
get_cached_size(&self) -> u3222917     fn get_cached_size(&self) -> u32 {
22918         self.cached_size.get()
22919     }
22920 
get_unknown_fields(&self) -> &::protobuf::UnknownFields22921     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
22922         &self.unknown_fields
22923     }
22924 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields22925     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
22926         &mut self.unknown_fields
22927     }
22928 
as_any(&self) -> &dyn (::std::any::Any)22929     fn as_any(&self) -> &dyn (::std::any::Any) {
22930         self as &dyn (::std::any::Any)
22931     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)22932     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
22933         self as &mut dyn (::std::any::Any)
22934     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>22935     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
22936         self
22937     }
22938 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor22939     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
22940         Self::descriptor_static()
22941     }
22942 
new() -> GetRecoveryRequestRequest22943     fn new() -> GetRecoveryRequestRequest {
22944         GetRecoveryRequestRequest::new()
22945     }
22946 
default_instance() -> &'static GetRecoveryRequestRequest22947     fn default_instance() -> &'static GetRecoveryRequestRequest {
22948         static instance: ::protobuf::rt::LazyV2<GetRecoveryRequestRequest> = ::protobuf::rt::LazyV2::INIT;
22949         instance.get(GetRecoveryRequestRequest::new)
22950     }
22951 }
22952 
22953 impl ::protobuf::Clear for GetRecoveryRequestRequest {
clear(&mut self)22954     fn clear(&mut self) {
22955         self.auth_session_id.clear();
22956         self.auth_factor_label.clear();
22957         self.requestor_user_id_type = GetRecoveryRequestRequest_UserType::UNKNOWN;
22958         self.requestor_user_id.clear();
22959         self.gaia_access_token.clear();
22960         self.gaia_reauth_proof_token.clear();
22961         self.epoch_response.clear();
22962         self.unknown_fields.clear();
22963     }
22964 }
22965 
22966 impl ::protobuf::reflect::ProtobufValue for GetRecoveryRequestRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef22967     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
22968         ::protobuf::reflect::ReflectValueRef::Message(self)
22969     }
22970 }
22971 
22972 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
22973 pub enum GetRecoveryRequestRequest_UserType {
22974     UNKNOWN = 0,
22975     GAIA_ID = 1,
22976 }
22977 
22978 impl ::protobuf::ProtobufEnum for GetRecoveryRequestRequest_UserType {
value(&self) -> i3222979     fn value(&self) -> i32 {
22980         *self as i32
22981     }
22982 
from_i32(value: i32) -> ::std::option::Option<GetRecoveryRequestRequest_UserType>22983     fn from_i32(value: i32) -> ::std::option::Option<GetRecoveryRequestRequest_UserType> {
22984         match value {
22985             0 => ::std::option::Option::Some(GetRecoveryRequestRequest_UserType::UNKNOWN),
22986             1 => ::std::option::Option::Some(GetRecoveryRequestRequest_UserType::GAIA_ID),
22987             _ => ::std::option::Option::None
22988         }
22989     }
22990 
values() -> &'static [Self]22991     fn values() -> &'static [Self] {
22992         static values: &'static [GetRecoveryRequestRequest_UserType] = &[
22993             GetRecoveryRequestRequest_UserType::UNKNOWN,
22994             GetRecoveryRequestRequest_UserType::GAIA_ID,
22995         ];
22996         values
22997     }
22998 }
22999 
23000 impl ::std::marker::Copy for GetRecoveryRequestRequest_UserType {
23001 }
23002 
23003 impl ::std::default::Default for GetRecoveryRequestRequest_UserType {
default() -> Self23004     fn default() -> Self {
23005         GetRecoveryRequestRequest_UserType::UNKNOWN
23006     }
23007 }
23008 
23009 impl ::protobuf::reflect::ProtobufValue for GetRecoveryRequestRequest_UserType {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef23010     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
23011         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
23012     }
23013 }
23014 
23015 #[derive(PartialEq,Clone,Default,Debug)]
23016 pub struct GetRecoveryRequestReply {
23017     // message fields
23018     pub error: CryptohomeErrorCode,
23019     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
23020     pub recovery_request: ::std::vec::Vec<u8>,
23021     // special fields
23022     pub unknown_fields: ::protobuf::UnknownFields,
23023     pub cached_size: ::protobuf::CachedSize,
23024 }
23025 
23026 impl<'a> ::std::default::Default for &'a GetRecoveryRequestReply {
default() -> &'a GetRecoveryRequestReply23027     fn default() -> &'a GetRecoveryRequestReply {
23028         <GetRecoveryRequestReply as ::protobuf::Message>::default_instance()
23029     }
23030 }
23031 
23032 impl GetRecoveryRequestReply {
new() -> GetRecoveryRequestReply23033     pub fn new() -> GetRecoveryRequestReply {
23034         ::std::default::Default::default()
23035     }
23036 
23037     // .user_data_auth.CryptohomeErrorCode error = 1;
23038 
23039 
get_error(&self) -> CryptohomeErrorCode23040     pub fn get_error(&self) -> CryptohomeErrorCode {
23041         self.error
23042     }
clear_error(&mut self)23043     pub fn clear_error(&mut self) {
23044         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
23045     }
23046 
23047     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)23048     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
23049         self.error = v;
23050     }
23051 
23052     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
23053 
23054 
get_error_info(&self) -> &CryptohomeErrorInfo23055     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
23056         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
23057     }
clear_error_info(&mut self)23058     pub fn clear_error_info(&mut self) {
23059         self.error_info.clear();
23060     }
23061 
has_error_info(&self) -> bool23062     pub fn has_error_info(&self) -> bool {
23063         self.error_info.is_some()
23064     }
23065 
23066     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)23067     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
23068         self.error_info = ::protobuf::SingularPtrField::some(v);
23069     }
23070 
23071     // Mutable pointer to the field.
23072     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo23073     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
23074         if self.error_info.is_none() {
23075             self.error_info.set_default();
23076         }
23077         self.error_info.as_mut().unwrap()
23078     }
23079 
23080     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo23081     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
23082         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
23083     }
23084 
23085     // bytes recovery_request = 3;
23086 
23087 
get_recovery_request(&self) -> &[u8]23088     pub fn get_recovery_request(&self) -> &[u8] {
23089         &self.recovery_request
23090     }
clear_recovery_request(&mut self)23091     pub fn clear_recovery_request(&mut self) {
23092         self.recovery_request.clear();
23093     }
23094 
23095     // Param is passed by value, moved
set_recovery_request(&mut self, v: ::std::vec::Vec<u8>)23096     pub fn set_recovery_request(&mut self, v: ::std::vec::Vec<u8>) {
23097         self.recovery_request = v;
23098     }
23099 
23100     // Mutable pointer to the field.
23101     // If field is not initialized, it is initialized with default value first.
mut_recovery_request(&mut self) -> &mut ::std::vec::Vec<u8>23102     pub fn mut_recovery_request(&mut self) -> &mut ::std::vec::Vec<u8> {
23103         &mut self.recovery_request
23104     }
23105 
23106     // Take field
take_recovery_request(&mut self) -> ::std::vec::Vec<u8>23107     pub fn take_recovery_request(&mut self) -> ::std::vec::Vec<u8> {
23108         ::std::mem::replace(&mut self.recovery_request, ::std::vec::Vec::new())
23109     }
23110 }
23111 
23112 impl ::protobuf::Message for GetRecoveryRequestReply {
is_initialized(&self) -> bool23113     fn is_initialized(&self) -> bool {
23114         for v in &self.error_info {
23115             if !v.is_initialized() {
23116                 return false;
23117             }
23118         };
23119         true
23120     }
23121 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>23122     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
23123         while !is.eof()? {
23124             let (field_number, wire_type) = is.read_tag_unpack()?;
23125             match field_number {
23126                 1 => {
23127                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
23128                 },
23129                 2 => {
23130                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
23131                 },
23132                 3 => {
23133                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.recovery_request)?;
23134                 },
23135                 _ => {
23136                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
23137                 },
23138             };
23139         }
23140         ::std::result::Result::Ok(())
23141     }
23142 
23143     // Compute sizes of nested messages
23144     #[allow(unused_variables)]
compute_size(&self) -> u3223145     fn compute_size(&self) -> u32 {
23146         let mut my_size = 0;
23147         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
23148             my_size += ::protobuf::rt::enum_size(1, self.error);
23149         }
23150         if let Some(ref v) = self.error_info.as_ref() {
23151             let len = v.compute_size();
23152             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
23153         }
23154         if !self.recovery_request.is_empty() {
23155             my_size += ::protobuf::rt::bytes_size(3, &self.recovery_request);
23156         }
23157         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
23158         self.cached_size.set(my_size);
23159         my_size
23160     }
23161 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>23162     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
23163         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
23164             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
23165         }
23166         if let Some(ref v) = self.error_info.as_ref() {
23167             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
23168             os.write_raw_varint32(v.get_cached_size())?;
23169             v.write_to_with_cached_sizes(os)?;
23170         }
23171         if !self.recovery_request.is_empty() {
23172             os.write_bytes(3, &self.recovery_request)?;
23173         }
23174         os.write_unknown_fields(self.get_unknown_fields())?;
23175         ::std::result::Result::Ok(())
23176     }
23177 
get_cached_size(&self) -> u3223178     fn get_cached_size(&self) -> u32 {
23179         self.cached_size.get()
23180     }
23181 
get_unknown_fields(&self) -> &::protobuf::UnknownFields23182     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
23183         &self.unknown_fields
23184     }
23185 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields23186     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
23187         &mut self.unknown_fields
23188     }
23189 
as_any(&self) -> &dyn (::std::any::Any)23190     fn as_any(&self) -> &dyn (::std::any::Any) {
23191         self as &dyn (::std::any::Any)
23192     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)23193     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
23194         self as &mut dyn (::std::any::Any)
23195     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>23196     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
23197         self
23198     }
23199 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor23200     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
23201         Self::descriptor_static()
23202     }
23203 
new() -> GetRecoveryRequestReply23204     fn new() -> GetRecoveryRequestReply {
23205         GetRecoveryRequestReply::new()
23206     }
23207 
default_instance() -> &'static GetRecoveryRequestReply23208     fn default_instance() -> &'static GetRecoveryRequestReply {
23209         static instance: ::protobuf::rt::LazyV2<GetRecoveryRequestReply> = ::protobuf::rt::LazyV2::INIT;
23210         instance.get(GetRecoveryRequestReply::new)
23211     }
23212 }
23213 
23214 impl ::protobuf::Clear for GetRecoveryRequestReply {
clear(&mut self)23215     fn clear(&mut self) {
23216         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
23217         self.error_info.clear();
23218         self.recovery_request.clear();
23219         self.unknown_fields.clear();
23220     }
23221 }
23222 
23223 impl ::protobuf::reflect::ProtobufValue for GetRecoveryRequestReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef23224     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
23225         ::protobuf::reflect::ReflectValueRef::Message(self)
23226     }
23227 }
23228 
23229 #[derive(PartialEq,Clone,Default,Debug)]
23230 pub struct PrepareAsyncAuthFactorRequest {
23231     // message fields
23232     pub auth_session_id: ::std::vec::Vec<u8>,
23233     pub auth_factor_type: super::auth_factor::AuthFactorType,
23234     pub purpose: super::auth_factor::AuthFactorPreparePurpose,
23235     // special fields
23236     pub unknown_fields: ::protobuf::UnknownFields,
23237     pub cached_size: ::protobuf::CachedSize,
23238 }
23239 
23240 impl<'a> ::std::default::Default for &'a PrepareAsyncAuthFactorRequest {
default() -> &'a PrepareAsyncAuthFactorRequest23241     fn default() -> &'a PrepareAsyncAuthFactorRequest {
23242         <PrepareAsyncAuthFactorRequest as ::protobuf::Message>::default_instance()
23243     }
23244 }
23245 
23246 impl PrepareAsyncAuthFactorRequest {
new() -> PrepareAsyncAuthFactorRequest23247     pub fn new() -> PrepareAsyncAuthFactorRequest {
23248         ::std::default::Default::default()
23249     }
23250 
23251     // bytes auth_session_id = 1;
23252 
23253 
get_auth_session_id(&self) -> &[u8]23254     pub fn get_auth_session_id(&self) -> &[u8] {
23255         &self.auth_session_id
23256     }
clear_auth_session_id(&mut self)23257     pub fn clear_auth_session_id(&mut self) {
23258         self.auth_session_id.clear();
23259     }
23260 
23261     // Param is passed by value, moved
set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>)23262     pub fn set_auth_session_id(&mut self, v: ::std::vec::Vec<u8>) {
23263         self.auth_session_id = v;
23264     }
23265 
23266     // Mutable pointer to the field.
23267     // If field is not initialized, it is initialized with default value first.
mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8>23268     pub fn mut_auth_session_id(&mut self) -> &mut ::std::vec::Vec<u8> {
23269         &mut self.auth_session_id
23270     }
23271 
23272     // Take field
take_auth_session_id(&mut self) -> ::std::vec::Vec<u8>23273     pub fn take_auth_session_id(&mut self) -> ::std::vec::Vec<u8> {
23274         ::std::mem::replace(&mut self.auth_session_id, ::std::vec::Vec::new())
23275     }
23276 
23277     // .user_data_auth.AuthFactorType auth_factor_type = 2;
23278 
23279 
get_auth_factor_type(&self) -> super::auth_factor::AuthFactorType23280     pub fn get_auth_factor_type(&self) -> super::auth_factor::AuthFactorType {
23281         self.auth_factor_type
23282     }
clear_auth_factor_type(&mut self)23283     pub fn clear_auth_factor_type(&mut self) {
23284         self.auth_factor_type = super::auth_factor::AuthFactorType::AUTH_FACTOR_TYPE_UNSPECIFIED;
23285     }
23286 
23287     // Param is passed by value, moved
set_auth_factor_type(&mut self, v: super::auth_factor::AuthFactorType)23288     pub fn set_auth_factor_type(&mut self, v: super::auth_factor::AuthFactorType) {
23289         self.auth_factor_type = v;
23290     }
23291 
23292     // .user_data_auth.AuthFactorPreparePurpose purpose = 3;
23293 
23294 
get_purpose(&self) -> super::auth_factor::AuthFactorPreparePurpose23295     pub fn get_purpose(&self) -> super::auth_factor::AuthFactorPreparePurpose {
23296         self.purpose
23297     }
clear_purpose(&mut self)23298     pub fn clear_purpose(&mut self) {
23299         self.purpose = super::auth_factor::AuthFactorPreparePurpose::PURPOSE_UNSPECIFIED;
23300     }
23301 
23302     // Param is passed by value, moved
set_purpose(&mut self, v: super::auth_factor::AuthFactorPreparePurpose)23303     pub fn set_purpose(&mut self, v: super::auth_factor::AuthFactorPreparePurpose) {
23304         self.purpose = v;
23305     }
23306 }
23307 
23308 impl ::protobuf::Message for PrepareAsyncAuthFactorRequest {
is_initialized(&self) -> bool23309     fn is_initialized(&self) -> bool {
23310         true
23311     }
23312 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>23313     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
23314         while !is.eof()? {
23315             let (field_number, wire_type) = is.read_tag_unpack()?;
23316             match field_number {
23317                 1 => {
23318                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.auth_session_id)?;
23319                 },
23320                 2 => {
23321                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.auth_factor_type, 2, &mut self.unknown_fields)?
23322                 },
23323                 3 => {
23324                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.purpose, 3, &mut self.unknown_fields)?
23325                 },
23326                 _ => {
23327                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
23328                 },
23329             };
23330         }
23331         ::std::result::Result::Ok(())
23332     }
23333 
23334     // Compute sizes of nested messages
23335     #[allow(unused_variables)]
compute_size(&self) -> u3223336     fn compute_size(&self) -> u32 {
23337         let mut my_size = 0;
23338         if !self.auth_session_id.is_empty() {
23339             my_size += ::protobuf::rt::bytes_size(1, &self.auth_session_id);
23340         }
23341         if self.auth_factor_type != super::auth_factor::AuthFactorType::AUTH_FACTOR_TYPE_UNSPECIFIED {
23342             my_size += ::protobuf::rt::enum_size(2, self.auth_factor_type);
23343         }
23344         if self.purpose != super::auth_factor::AuthFactorPreparePurpose::PURPOSE_UNSPECIFIED {
23345             my_size += ::protobuf::rt::enum_size(3, self.purpose);
23346         }
23347         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
23348         self.cached_size.set(my_size);
23349         my_size
23350     }
23351 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>23352     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
23353         if !self.auth_session_id.is_empty() {
23354             os.write_bytes(1, &self.auth_session_id)?;
23355         }
23356         if self.auth_factor_type != super::auth_factor::AuthFactorType::AUTH_FACTOR_TYPE_UNSPECIFIED {
23357             os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.auth_factor_type))?;
23358         }
23359         if self.purpose != super::auth_factor::AuthFactorPreparePurpose::PURPOSE_UNSPECIFIED {
23360             os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.purpose))?;
23361         }
23362         os.write_unknown_fields(self.get_unknown_fields())?;
23363         ::std::result::Result::Ok(())
23364     }
23365 
get_cached_size(&self) -> u3223366     fn get_cached_size(&self) -> u32 {
23367         self.cached_size.get()
23368     }
23369 
get_unknown_fields(&self) -> &::protobuf::UnknownFields23370     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
23371         &self.unknown_fields
23372     }
23373 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields23374     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
23375         &mut self.unknown_fields
23376     }
23377 
as_any(&self) -> &dyn (::std::any::Any)23378     fn as_any(&self) -> &dyn (::std::any::Any) {
23379         self as &dyn (::std::any::Any)
23380     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)23381     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
23382         self as &mut dyn (::std::any::Any)
23383     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>23384     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
23385         self
23386     }
23387 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor23388     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
23389         Self::descriptor_static()
23390     }
23391 
new() -> PrepareAsyncAuthFactorRequest23392     fn new() -> PrepareAsyncAuthFactorRequest {
23393         PrepareAsyncAuthFactorRequest::new()
23394     }
23395 
default_instance() -> &'static PrepareAsyncAuthFactorRequest23396     fn default_instance() -> &'static PrepareAsyncAuthFactorRequest {
23397         static instance: ::protobuf::rt::LazyV2<PrepareAsyncAuthFactorRequest> = ::protobuf::rt::LazyV2::INIT;
23398         instance.get(PrepareAsyncAuthFactorRequest::new)
23399     }
23400 }
23401 
23402 impl ::protobuf::Clear for PrepareAsyncAuthFactorRequest {
clear(&mut self)23403     fn clear(&mut self) {
23404         self.auth_session_id.clear();
23405         self.auth_factor_type = super::auth_factor::AuthFactorType::AUTH_FACTOR_TYPE_UNSPECIFIED;
23406         self.purpose = super::auth_factor::AuthFactorPreparePurpose::PURPOSE_UNSPECIFIED;
23407         self.unknown_fields.clear();
23408     }
23409 }
23410 
23411 impl ::protobuf::reflect::ProtobufValue for PrepareAsyncAuthFactorRequest {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef23412     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
23413         ::protobuf::reflect::ReflectValueRef::Message(self)
23414     }
23415 }
23416 
23417 #[derive(PartialEq,Clone,Default,Debug)]
23418 pub struct PrepareAsyncAuthFactorReply {
23419     // message fields
23420     pub error: CryptohomeErrorCode,
23421     pub error_info: ::protobuf::SingularPtrField<CryptohomeErrorInfo>,
23422     // special fields
23423     pub unknown_fields: ::protobuf::UnknownFields,
23424     pub cached_size: ::protobuf::CachedSize,
23425 }
23426 
23427 impl<'a> ::std::default::Default for &'a PrepareAsyncAuthFactorReply {
default() -> &'a PrepareAsyncAuthFactorReply23428     fn default() -> &'a PrepareAsyncAuthFactorReply {
23429         <PrepareAsyncAuthFactorReply as ::protobuf::Message>::default_instance()
23430     }
23431 }
23432 
23433 impl PrepareAsyncAuthFactorReply {
new() -> PrepareAsyncAuthFactorReply23434     pub fn new() -> PrepareAsyncAuthFactorReply {
23435         ::std::default::Default::default()
23436     }
23437 
23438     // .user_data_auth.CryptohomeErrorCode error = 1;
23439 
23440 
get_error(&self) -> CryptohomeErrorCode23441     pub fn get_error(&self) -> CryptohomeErrorCode {
23442         self.error
23443     }
clear_error(&mut self)23444     pub fn clear_error(&mut self) {
23445         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
23446     }
23447 
23448     // Param is passed by value, moved
set_error(&mut self, v: CryptohomeErrorCode)23449     pub fn set_error(&mut self, v: CryptohomeErrorCode) {
23450         self.error = v;
23451     }
23452 
23453     // .user_data_auth.CryptohomeErrorInfo error_info = 2;
23454 
23455 
get_error_info(&self) -> &CryptohomeErrorInfo23456     pub fn get_error_info(&self) -> &CryptohomeErrorInfo {
23457         self.error_info.as_ref().unwrap_or_else(|| <CryptohomeErrorInfo as ::protobuf::Message>::default_instance())
23458     }
clear_error_info(&mut self)23459     pub fn clear_error_info(&mut self) {
23460         self.error_info.clear();
23461     }
23462 
has_error_info(&self) -> bool23463     pub fn has_error_info(&self) -> bool {
23464         self.error_info.is_some()
23465     }
23466 
23467     // Param is passed by value, moved
set_error_info(&mut self, v: CryptohomeErrorInfo)23468     pub fn set_error_info(&mut self, v: CryptohomeErrorInfo) {
23469         self.error_info = ::protobuf::SingularPtrField::some(v);
23470     }
23471 
23472     // Mutable pointer to the field.
23473     // If field is not initialized, it is initialized with default value first.
mut_error_info(&mut self) -> &mut CryptohomeErrorInfo23474     pub fn mut_error_info(&mut self) -> &mut CryptohomeErrorInfo {
23475         if self.error_info.is_none() {
23476             self.error_info.set_default();
23477         }
23478         self.error_info.as_mut().unwrap()
23479     }
23480 
23481     // Take field
take_error_info(&mut self) -> CryptohomeErrorInfo23482     pub fn take_error_info(&mut self) -> CryptohomeErrorInfo {
23483         self.error_info.take().unwrap_or_else(|| CryptohomeErrorInfo::new())
23484     }
23485 }
23486 
23487 impl ::protobuf::Message for PrepareAsyncAuthFactorReply {
is_initialized(&self) -> bool23488     fn is_initialized(&self) -> bool {
23489         for v in &self.error_info {
23490             if !v.is_initialized() {
23491                 return false;
23492             }
23493         };
23494         true
23495     }
23496 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>23497     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
23498         while !is.eof()? {
23499             let (field_number, wire_type) = is.read_tag_unpack()?;
23500             match field_number {
23501                 1 => {
23502                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.error, 1, &mut self.unknown_fields)?
23503                 },
23504                 2 => {
23505                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.error_info)?;
23506                 },
23507                 _ => {
23508                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
23509                 },
23510             };
23511         }
23512         ::std::result::Result::Ok(())
23513     }
23514 
23515     // Compute sizes of nested messages
23516     #[allow(unused_variables)]
compute_size(&self) -> u3223517     fn compute_size(&self) -> u32 {
23518         let mut my_size = 0;
23519         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
23520             my_size += ::protobuf::rt::enum_size(1, self.error);
23521         }
23522         if let Some(ref v) = self.error_info.as_ref() {
23523             let len = v.compute_size();
23524             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
23525         }
23526         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
23527         self.cached_size.set(my_size);
23528         my_size
23529     }
23530 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>23531     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
23532         if self.error != CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET {
23533             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.error))?;
23534         }
23535         if let Some(ref v) = self.error_info.as_ref() {
23536             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
23537             os.write_raw_varint32(v.get_cached_size())?;
23538             v.write_to_with_cached_sizes(os)?;
23539         }
23540         os.write_unknown_fields(self.get_unknown_fields())?;
23541         ::std::result::Result::Ok(())
23542     }
23543 
get_cached_size(&self) -> u3223544     fn get_cached_size(&self) -> u32 {
23545         self.cached_size.get()
23546     }
23547 
get_unknown_fields(&self) -> &::protobuf::UnknownFields23548     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
23549         &self.unknown_fields
23550     }
23551 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields23552     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
23553         &mut self.unknown_fields
23554     }
23555 
as_any(&self) -> &dyn (::std::any::Any)23556     fn as_any(&self) -> &dyn (::std::any::Any) {
23557         self as &dyn (::std::any::Any)
23558     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)23559     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
23560         self as &mut dyn (::std::any::Any)
23561     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>23562     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
23563         self
23564     }
23565 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor23566     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
23567         Self::descriptor_static()
23568     }
23569 
new() -> PrepareAsyncAuthFactorReply23570     fn new() -> PrepareAsyncAuthFactorReply {
23571         PrepareAsyncAuthFactorReply::new()
23572     }
23573 
default_instance() -> &'static PrepareAsyncAuthFactorReply23574     fn default_instance() -> &'static PrepareAsyncAuthFactorReply {
23575         static instance: ::protobuf::rt::LazyV2<PrepareAsyncAuthFactorReply> = ::protobuf::rt::LazyV2::INIT;
23576         instance.get(PrepareAsyncAuthFactorReply::new)
23577     }
23578 }
23579 
23580 impl ::protobuf::Clear for PrepareAsyncAuthFactorReply {
clear(&mut self)23581     fn clear(&mut self) {
23582         self.error = CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET;
23583         self.error_info.clear();
23584         self.unknown_fields.clear();
23585     }
23586 }
23587 
23588 impl ::protobuf::reflect::ProtobufValue for PrepareAsyncAuthFactorReply {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef23589     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
23590         ::protobuf::reflect::ReflectValueRef::Message(self)
23591     }
23592 }
23593 
23594 #[derive(PartialEq,Clone,Default,Debug)]
23595 pub struct AsyncAuthScanResult {
23596     // message oneof groups
23597     pub scan_result: ::std::option::Option<AsyncAuthScanResult_oneof_scan_result>,
23598     // special fields
23599     pub unknown_fields: ::protobuf::UnknownFields,
23600     pub cached_size: ::protobuf::CachedSize,
23601 }
23602 
23603 impl<'a> ::std::default::Default for &'a AsyncAuthScanResult {
default() -> &'a AsyncAuthScanResult23604     fn default() -> &'a AsyncAuthScanResult {
23605         <AsyncAuthScanResult as ::protobuf::Message>::default_instance()
23606     }
23607 }
23608 
23609 #[derive(Clone,PartialEq,Debug)]
23610 pub enum AsyncAuthScanResult_oneof_scan_result {
23611     fingerprint_result(FingerprintScanResult),
23612 }
23613 
23614 impl AsyncAuthScanResult {
new() -> AsyncAuthScanResult23615     pub fn new() -> AsyncAuthScanResult {
23616         ::std::default::Default::default()
23617     }
23618 
23619     // .user_data_auth.FingerprintScanResult fingerprint_result = 1;
23620 
23621 
get_fingerprint_result(&self) -> FingerprintScanResult23622     pub fn get_fingerprint_result(&self) -> FingerprintScanResult {
23623         match self.scan_result {
23624             ::std::option::Option::Some(AsyncAuthScanResult_oneof_scan_result::fingerprint_result(v)) => v,
23625             _ => FingerprintScanResult::FINGERPRINT_SCAN_RESULT_SUCCESS,
23626         }
23627     }
clear_fingerprint_result(&mut self)23628     pub fn clear_fingerprint_result(&mut self) {
23629         self.scan_result = ::std::option::Option::None;
23630     }
23631 
has_fingerprint_result(&self) -> bool23632     pub fn has_fingerprint_result(&self) -> bool {
23633         match self.scan_result {
23634             ::std::option::Option::Some(AsyncAuthScanResult_oneof_scan_result::fingerprint_result(..)) => true,
23635             _ => false,
23636         }
23637     }
23638 
23639     // Param is passed by value, moved
set_fingerprint_result(&mut self, v: FingerprintScanResult)23640     pub fn set_fingerprint_result(&mut self, v: FingerprintScanResult) {
23641         self.scan_result = ::std::option::Option::Some(AsyncAuthScanResult_oneof_scan_result::fingerprint_result(v))
23642     }
23643 }
23644 
23645 impl ::protobuf::Message for AsyncAuthScanResult {
is_initialized(&self) -> bool23646     fn is_initialized(&self) -> bool {
23647         true
23648     }
23649 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>23650     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
23651         while !is.eof()? {
23652             let (field_number, wire_type) = is.read_tag_unpack()?;
23653             match field_number {
23654                 1 => {
23655                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
23656                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
23657                     }
23658                     self.scan_result = ::std::option::Option::Some(AsyncAuthScanResult_oneof_scan_result::fingerprint_result(is.read_enum()?));
23659                 },
23660                 _ => {
23661                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
23662                 },
23663             };
23664         }
23665         ::std::result::Result::Ok(())
23666     }
23667 
23668     // Compute sizes of nested messages
23669     #[allow(unused_variables)]
compute_size(&self) -> u3223670     fn compute_size(&self) -> u32 {
23671         let mut my_size = 0;
23672         if let ::std::option::Option::Some(ref v) = self.scan_result {
23673             match v {
23674                 &AsyncAuthScanResult_oneof_scan_result::fingerprint_result(v) => {
23675                     my_size += ::protobuf::rt::enum_size(1, v);
23676                 },
23677             };
23678         }
23679         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
23680         self.cached_size.set(my_size);
23681         my_size
23682     }
23683 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>23684     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
23685         if let ::std::option::Option::Some(ref v) = self.scan_result {
23686             match v {
23687                 &AsyncAuthScanResult_oneof_scan_result::fingerprint_result(v) => {
23688                     os.write_enum(1, ::protobuf::ProtobufEnum::value(&v))?;
23689                 },
23690             };
23691         }
23692         os.write_unknown_fields(self.get_unknown_fields())?;
23693         ::std::result::Result::Ok(())
23694     }
23695 
get_cached_size(&self) -> u3223696     fn get_cached_size(&self) -> u32 {
23697         self.cached_size.get()
23698     }
23699 
get_unknown_fields(&self) -> &::protobuf::UnknownFields23700     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
23701         &self.unknown_fields
23702     }
23703 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields23704     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
23705         &mut self.unknown_fields
23706     }
23707 
as_any(&self) -> &dyn (::std::any::Any)23708     fn as_any(&self) -> &dyn (::std::any::Any) {
23709         self as &dyn (::std::any::Any)
23710     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)23711     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
23712         self as &mut dyn (::std::any::Any)
23713     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>23714     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
23715         self
23716     }
23717 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor23718     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
23719         Self::descriptor_static()
23720     }
23721 
new() -> AsyncAuthScanResult23722     fn new() -> AsyncAuthScanResult {
23723         AsyncAuthScanResult::new()
23724     }
23725 
default_instance() -> &'static AsyncAuthScanResult23726     fn default_instance() -> &'static AsyncAuthScanResult {
23727         static instance: ::protobuf::rt::LazyV2<AsyncAuthScanResult> = ::protobuf::rt::LazyV2::INIT;
23728         instance.get(AsyncAuthScanResult::new)
23729     }
23730 }
23731 
23732 impl ::protobuf::Clear for AsyncAuthScanResult {
clear(&mut self)23733     fn clear(&mut self) {
23734         self.scan_result = ::std::option::Option::None;
23735         self.unknown_fields.clear();
23736     }
23737 }
23738 
23739 impl ::protobuf::reflect::ProtobufValue for AsyncAuthScanResult {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef23740     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
23741         ::protobuf::reflect::ReflectValueRef::Message(self)
23742     }
23743 }
23744 
23745 #[derive(PartialEq,Clone,Default,Debug)]
23746 pub struct FingerprintEnrollmentProgress {
23747     // message fields
23748     pub percent_complete: i32,
23749     // special fields
23750     pub unknown_fields: ::protobuf::UnknownFields,
23751     pub cached_size: ::protobuf::CachedSize,
23752 }
23753 
23754 impl<'a> ::std::default::Default for &'a FingerprintEnrollmentProgress {
default() -> &'a FingerprintEnrollmentProgress23755     fn default() -> &'a FingerprintEnrollmentProgress {
23756         <FingerprintEnrollmentProgress as ::protobuf::Message>::default_instance()
23757     }
23758 }
23759 
23760 impl FingerprintEnrollmentProgress {
new() -> FingerprintEnrollmentProgress23761     pub fn new() -> FingerprintEnrollmentProgress {
23762         ::std::default::Default::default()
23763     }
23764 
23765     // int32 percent_complete = 1;
23766 
23767 
get_percent_complete(&self) -> i3223768     pub fn get_percent_complete(&self) -> i32 {
23769         self.percent_complete
23770     }
clear_percent_complete(&mut self)23771     pub fn clear_percent_complete(&mut self) {
23772         self.percent_complete = 0;
23773     }
23774 
23775     // Param is passed by value, moved
set_percent_complete(&mut self, v: i32)23776     pub fn set_percent_complete(&mut self, v: i32) {
23777         self.percent_complete = v;
23778     }
23779 }
23780 
23781 impl ::protobuf::Message for FingerprintEnrollmentProgress {
is_initialized(&self) -> bool23782     fn is_initialized(&self) -> bool {
23783         true
23784     }
23785 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>23786     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
23787         while !is.eof()? {
23788             let (field_number, wire_type) = is.read_tag_unpack()?;
23789             match field_number {
23790                 1 => {
23791                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
23792                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
23793                     }
23794                     let tmp = is.read_int32()?;
23795                     self.percent_complete = tmp;
23796                 },
23797                 _ => {
23798                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
23799                 },
23800             };
23801         }
23802         ::std::result::Result::Ok(())
23803     }
23804 
23805     // Compute sizes of nested messages
23806     #[allow(unused_variables)]
compute_size(&self) -> u3223807     fn compute_size(&self) -> u32 {
23808         let mut my_size = 0;
23809         if self.percent_complete != 0 {
23810             my_size += ::protobuf::rt::value_size(1, self.percent_complete, ::protobuf::wire_format::WireTypeVarint);
23811         }
23812         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
23813         self.cached_size.set(my_size);
23814         my_size
23815     }
23816 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>23817     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
23818         if self.percent_complete != 0 {
23819             os.write_int32(1, self.percent_complete)?;
23820         }
23821         os.write_unknown_fields(self.get_unknown_fields())?;
23822         ::std::result::Result::Ok(())
23823     }
23824 
get_cached_size(&self) -> u3223825     fn get_cached_size(&self) -> u32 {
23826         self.cached_size.get()
23827     }
23828 
get_unknown_fields(&self) -> &::protobuf::UnknownFields23829     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
23830         &self.unknown_fields
23831     }
23832 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields23833     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
23834         &mut self.unknown_fields
23835     }
23836 
as_any(&self) -> &dyn (::std::any::Any)23837     fn as_any(&self) -> &dyn (::std::any::Any) {
23838         self as &dyn (::std::any::Any)
23839     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)23840     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
23841         self as &mut dyn (::std::any::Any)
23842     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>23843     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
23844         self
23845     }
23846 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor23847     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
23848         Self::descriptor_static()
23849     }
23850 
new() -> FingerprintEnrollmentProgress23851     fn new() -> FingerprintEnrollmentProgress {
23852         FingerprintEnrollmentProgress::new()
23853     }
23854 
default_instance() -> &'static FingerprintEnrollmentProgress23855     fn default_instance() -> &'static FingerprintEnrollmentProgress {
23856         static instance: ::protobuf::rt::LazyV2<FingerprintEnrollmentProgress> = ::protobuf::rt::LazyV2::INIT;
23857         instance.get(FingerprintEnrollmentProgress::new)
23858     }
23859 }
23860 
23861 impl ::protobuf::Clear for FingerprintEnrollmentProgress {
clear(&mut self)23862     fn clear(&mut self) {
23863         self.percent_complete = 0;
23864         self.unknown_fields.clear();
23865     }
23866 }
23867 
23868 impl ::protobuf::reflect::ProtobufValue for FingerprintEnrollmentProgress {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef23869     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
23870         ::protobuf::reflect::ReflectValueRef::Message(self)
23871     }
23872 }
23873 
23874 #[derive(PartialEq,Clone,Default,Debug)]
23875 pub struct AsyncAuthEnrollmentProgress {
23876     // message fields
23877     pub scan_result: ::protobuf::SingularPtrField<AsyncAuthScanResult>,
23878     pub done: bool,
23879     // message oneof groups
23880     pub progress: ::std::option::Option<AsyncAuthEnrollmentProgress_oneof_progress>,
23881     // special fields
23882     pub unknown_fields: ::protobuf::UnknownFields,
23883     pub cached_size: ::protobuf::CachedSize,
23884 }
23885 
23886 impl<'a> ::std::default::Default for &'a AsyncAuthEnrollmentProgress {
default() -> &'a AsyncAuthEnrollmentProgress23887     fn default() -> &'a AsyncAuthEnrollmentProgress {
23888         <AsyncAuthEnrollmentProgress as ::protobuf::Message>::default_instance()
23889     }
23890 }
23891 
23892 #[derive(Clone,PartialEq,Debug)]
23893 pub enum AsyncAuthEnrollmentProgress_oneof_progress {
23894     fingerprint_progress(FingerprintEnrollmentProgress),
23895 }
23896 
23897 impl AsyncAuthEnrollmentProgress {
new() -> AsyncAuthEnrollmentProgress23898     pub fn new() -> AsyncAuthEnrollmentProgress {
23899         ::std::default::Default::default()
23900     }
23901 
23902     // .user_data_auth.AsyncAuthScanResult scan_result = 1;
23903 
23904 
get_scan_result(&self) -> &AsyncAuthScanResult23905     pub fn get_scan_result(&self) -> &AsyncAuthScanResult {
23906         self.scan_result.as_ref().unwrap_or_else(|| <AsyncAuthScanResult as ::protobuf::Message>::default_instance())
23907     }
clear_scan_result(&mut self)23908     pub fn clear_scan_result(&mut self) {
23909         self.scan_result.clear();
23910     }
23911 
has_scan_result(&self) -> bool23912     pub fn has_scan_result(&self) -> bool {
23913         self.scan_result.is_some()
23914     }
23915 
23916     // Param is passed by value, moved
set_scan_result(&mut self, v: AsyncAuthScanResult)23917     pub fn set_scan_result(&mut self, v: AsyncAuthScanResult) {
23918         self.scan_result = ::protobuf::SingularPtrField::some(v);
23919     }
23920 
23921     // Mutable pointer to the field.
23922     // If field is not initialized, it is initialized with default value first.
mut_scan_result(&mut self) -> &mut AsyncAuthScanResult23923     pub fn mut_scan_result(&mut self) -> &mut AsyncAuthScanResult {
23924         if self.scan_result.is_none() {
23925             self.scan_result.set_default();
23926         }
23927         self.scan_result.as_mut().unwrap()
23928     }
23929 
23930     // Take field
take_scan_result(&mut self) -> AsyncAuthScanResult23931     pub fn take_scan_result(&mut self) -> AsyncAuthScanResult {
23932         self.scan_result.take().unwrap_or_else(|| AsyncAuthScanResult::new())
23933     }
23934 
23935     // bool done = 2;
23936 
23937 
get_done(&self) -> bool23938     pub fn get_done(&self) -> bool {
23939         self.done
23940     }
clear_done(&mut self)23941     pub fn clear_done(&mut self) {
23942         self.done = false;
23943     }
23944 
23945     // Param is passed by value, moved
set_done(&mut self, v: bool)23946     pub fn set_done(&mut self, v: bool) {
23947         self.done = v;
23948     }
23949 
23950     // .user_data_auth.FingerprintEnrollmentProgress fingerprint_progress = 3;
23951 
23952 
get_fingerprint_progress(&self) -> &FingerprintEnrollmentProgress23953     pub fn get_fingerprint_progress(&self) -> &FingerprintEnrollmentProgress {
23954         match self.progress {
23955             ::std::option::Option::Some(AsyncAuthEnrollmentProgress_oneof_progress::fingerprint_progress(ref v)) => v,
23956             _ => <FingerprintEnrollmentProgress as ::protobuf::Message>::default_instance(),
23957         }
23958     }
clear_fingerprint_progress(&mut self)23959     pub fn clear_fingerprint_progress(&mut self) {
23960         self.progress = ::std::option::Option::None;
23961     }
23962 
has_fingerprint_progress(&self) -> bool23963     pub fn has_fingerprint_progress(&self) -> bool {
23964         match self.progress {
23965             ::std::option::Option::Some(AsyncAuthEnrollmentProgress_oneof_progress::fingerprint_progress(..)) => true,
23966             _ => false,
23967         }
23968     }
23969 
23970     // Param is passed by value, moved
set_fingerprint_progress(&mut self, v: FingerprintEnrollmentProgress)23971     pub fn set_fingerprint_progress(&mut self, v: FingerprintEnrollmentProgress) {
23972         self.progress = ::std::option::Option::Some(AsyncAuthEnrollmentProgress_oneof_progress::fingerprint_progress(v))
23973     }
23974 
23975     // Mutable pointer to the field.
mut_fingerprint_progress(&mut self) -> &mut FingerprintEnrollmentProgress23976     pub fn mut_fingerprint_progress(&mut self) -> &mut FingerprintEnrollmentProgress {
23977         if let ::std::option::Option::Some(AsyncAuthEnrollmentProgress_oneof_progress::fingerprint_progress(_)) = self.progress {
23978         } else {
23979             self.progress = ::std::option::Option::Some(AsyncAuthEnrollmentProgress_oneof_progress::fingerprint_progress(FingerprintEnrollmentProgress::new()));
23980         }
23981         match self.progress {
23982             ::std::option::Option::Some(AsyncAuthEnrollmentProgress_oneof_progress::fingerprint_progress(ref mut v)) => v,
23983             _ => panic!(),
23984         }
23985     }
23986 
23987     // Take field
take_fingerprint_progress(&mut self) -> FingerprintEnrollmentProgress23988     pub fn take_fingerprint_progress(&mut self) -> FingerprintEnrollmentProgress {
23989         if self.has_fingerprint_progress() {
23990             match self.progress.take() {
23991                 ::std::option::Option::Some(AsyncAuthEnrollmentProgress_oneof_progress::fingerprint_progress(v)) => v,
23992                 _ => panic!(),
23993             }
23994         } else {
23995             FingerprintEnrollmentProgress::new()
23996         }
23997     }
23998 }
23999 
24000 impl ::protobuf::Message for AsyncAuthEnrollmentProgress {
is_initialized(&self) -> bool24001     fn is_initialized(&self) -> bool {
24002         for v in &self.scan_result {
24003             if !v.is_initialized() {
24004                 return false;
24005             }
24006         };
24007         if let Some(AsyncAuthEnrollmentProgress_oneof_progress::fingerprint_progress(ref v)) = self.progress {
24008             if !v.is_initialized() {
24009                 return false;
24010             }
24011         }
24012         true
24013     }
24014 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>24015     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
24016         while !is.eof()? {
24017             let (field_number, wire_type) = is.read_tag_unpack()?;
24018             match field_number {
24019                 1 => {
24020                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.scan_result)?;
24021                 },
24022                 2 => {
24023                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
24024                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
24025                     }
24026                     let tmp = is.read_bool()?;
24027                     self.done = tmp;
24028                 },
24029                 3 => {
24030                     if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
24031                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
24032                     }
24033                     self.progress = ::std::option::Option::Some(AsyncAuthEnrollmentProgress_oneof_progress::fingerprint_progress(is.read_message()?));
24034                 },
24035                 _ => {
24036                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
24037                 },
24038             };
24039         }
24040         ::std::result::Result::Ok(())
24041     }
24042 
24043     // Compute sizes of nested messages
24044     #[allow(unused_variables)]
compute_size(&self) -> u3224045     fn compute_size(&self) -> u32 {
24046         let mut my_size = 0;
24047         if let Some(ref v) = self.scan_result.as_ref() {
24048             let len = v.compute_size();
24049             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
24050         }
24051         if self.done != false {
24052             my_size += 2;
24053         }
24054         if let ::std::option::Option::Some(ref v) = self.progress {
24055             match v {
24056                 &AsyncAuthEnrollmentProgress_oneof_progress::fingerprint_progress(ref v) => {
24057                     let len = v.compute_size();
24058                     my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
24059                 },
24060             };
24061         }
24062         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
24063         self.cached_size.set(my_size);
24064         my_size
24065     }
24066 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>24067     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
24068         if let Some(ref v) = self.scan_result.as_ref() {
24069             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
24070             os.write_raw_varint32(v.get_cached_size())?;
24071             v.write_to_with_cached_sizes(os)?;
24072         }
24073         if self.done != false {
24074             os.write_bool(2, self.done)?;
24075         }
24076         if let ::std::option::Option::Some(ref v) = self.progress {
24077             match v {
24078                 &AsyncAuthEnrollmentProgress_oneof_progress::fingerprint_progress(ref v) => {
24079                     os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
24080                     os.write_raw_varint32(v.get_cached_size())?;
24081                     v.write_to_with_cached_sizes(os)?;
24082                 },
24083             };
24084         }
24085         os.write_unknown_fields(self.get_unknown_fields())?;
24086         ::std::result::Result::Ok(())
24087     }
24088 
get_cached_size(&self) -> u3224089     fn get_cached_size(&self) -> u32 {
24090         self.cached_size.get()
24091     }
24092 
get_unknown_fields(&self) -> &::protobuf::UnknownFields24093     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
24094         &self.unknown_fields
24095     }
24096 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields24097     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
24098         &mut self.unknown_fields
24099     }
24100 
as_any(&self) -> &dyn (::std::any::Any)24101     fn as_any(&self) -> &dyn (::std::any::Any) {
24102         self as &dyn (::std::any::Any)
24103     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)24104     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
24105         self as &mut dyn (::std::any::Any)
24106     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>24107     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
24108         self
24109     }
24110 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor24111     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
24112         Self::descriptor_static()
24113     }
24114 
new() -> AsyncAuthEnrollmentProgress24115     fn new() -> AsyncAuthEnrollmentProgress {
24116         AsyncAuthEnrollmentProgress::new()
24117     }
24118 
default_instance() -> &'static AsyncAuthEnrollmentProgress24119     fn default_instance() -> &'static AsyncAuthEnrollmentProgress {
24120         static instance: ::protobuf::rt::LazyV2<AsyncAuthEnrollmentProgress> = ::protobuf::rt::LazyV2::INIT;
24121         instance.get(AsyncAuthEnrollmentProgress::new)
24122     }
24123 }
24124 
24125 impl ::protobuf::Clear for AsyncAuthEnrollmentProgress {
clear(&mut self)24126     fn clear(&mut self) {
24127         self.scan_result.clear();
24128         self.done = false;
24129         self.progress = ::std::option::Option::None;
24130         self.unknown_fields.clear();
24131     }
24132 }
24133 
24134 impl ::protobuf::reflect::ProtobufValue for AsyncAuthEnrollmentProgress {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef24135     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
24136         ::protobuf::reflect::ReflectValueRef::Message(self)
24137     }
24138 }
24139 
24140 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
24141 pub enum CryptohomeErrorCode {
24142     CRYPTOHOME_ERROR_NOT_SET = 0,
24143     CRYPTOHOME_ERROR_ACCOUNT_NOT_FOUND = 1,
24144     CRYPTOHOME_ERROR_AUTHORIZATION_KEY_NOT_FOUND = 2,
24145     CRYPTOHOME_ERROR_AUTHORIZATION_KEY_FAILED = 3,
24146     CRYPTOHOME_ERROR_NOT_IMPLEMENTED = 4,
24147     CRYPTOHOME_ERROR_MOUNT_FATAL = 5,
24148     CRYPTOHOME_ERROR_MOUNT_MOUNT_POINT_BUSY = 6,
24149     CRYPTOHOME_ERROR_TPM_COMM_ERROR = 7,
24150     CRYPTOHOME_ERROR_TPM_DEFEND_LOCK = 8,
24151     CRYPTOHOME_ERROR_TPM_NEEDS_REBOOT = 9,
24152     CRYPTOHOME_ERROR_AUTHORIZATION_KEY_DENIED = 10,
24153     CRYPTOHOME_ERROR_KEY_QUOTA_EXCEEDED = 11,
24154     CRYPTOHOME_ERROR_KEY_LABEL_EXISTS = 12,
24155     CRYPTOHOME_ERROR_BACKING_STORE_FAILURE = 13,
24156     CRYPTOHOME_ERROR_UPDATE_SIGNATURE_INVALID = 14,
24157     CRYPTOHOME_ERROR_KEY_NOT_FOUND = 15,
24158     CRYPTOHOME_ERROR_LOCKBOX_SIGNATURE_INVALID = 16,
24159     CRYPTOHOME_ERROR_LOCKBOX_CANNOT_SIGN = 17,
24160     CRYPTOHOME_ERROR_BOOT_ATTRIBUTE_NOT_FOUND = 18,
24161     CRYPTOHOME_ERROR_BOOT_ATTRIBUTES_CANNOT_SIGN = 19,
24162     CRYPTOHOME_ERROR_TPM_EK_NOT_AVAILABLE = 20,
24163     CRYPTOHOME_ERROR_ATTESTATION_NOT_READY = 21,
24164     CRYPTOHOME_ERROR_CANNOT_CONNECT_TO_CA = 22,
24165     CRYPTOHOME_ERROR_CA_REFUSED_ENROLLMENT = 23,
24166     CRYPTOHOME_ERROR_CA_REFUSED_CERTIFICATE = 24,
24167     CRYPTOHOME_ERROR_INTERNAL_ATTESTATION_ERROR = 25,
24168     CRYPTOHOME_ERROR_FIRMWARE_MANAGEMENT_PARAMETERS_INVALID = 26,
24169     CRYPTOHOME_ERROR_FIRMWARE_MANAGEMENT_PARAMETERS_CANNOT_STORE = 27,
24170     CRYPTOHOME_ERROR_FIRMWARE_MANAGEMENT_PARAMETERS_CANNOT_REMOVE = 28,
24171     CRYPTOHOME_ERROR_MOUNT_OLD_ENCRYPTION = 29,
24172     CRYPTOHOME_ERROR_MOUNT_PREVIOUS_MIGRATION_INCOMPLETE = 30,
24173     CRYPTOHOME_ERROR_MIGRATE_KEY_FAILED = 31,
24174     CRYPTOHOME_ERROR_REMOVE_FAILED = 32,
24175     CRYPTOHOME_ERROR_INVALID_ARGUMENT = 33,
24176     CRYPTOHOME_ERROR_INSTALL_ATTRIBUTES_GET_FAILED = 34,
24177     CRYPTOHOME_ERROR_INSTALL_ATTRIBUTES_SET_FAILED = 35,
24178     CRYPTOHOME_ERROR_INSTALL_ATTRIBUTES_FINALIZE_FAILED = 36,
24179     CRYPTOHOME_ERROR_UPDATE_USER_ACTIVITY_TIMESTAMP_FAILED = 37,
24180     CRYPTOHOME_ERROR_FAILED_TO_READ_PCR = 38,
24181     CRYPTOHOME_ERROR_PCR_ALREADY_EXTENDED = 39,
24182     CRYPTOHOME_ERROR_FAILED_TO_EXTEND_PCR = 40,
24183     CRYPTOHOME_ERROR_TPM_UPDATE_REQUIRED = 41,
24184     CRYPTOHOME_ERROR_FINGERPRINT_ERROR_INTERNAL = 42,
24185     CRYPTOHOME_ERROR_FINGERPRINT_RETRY_REQUIRED = 43,
24186     CRYPTOHOME_ERROR_FINGERPRINT_DENIED = 44,
24187     CRYPTOHOME_ERROR_VAULT_UNRECOVERABLE = 45,
24188     CRYPTOHOME_ERROR_FIDO_MAKE_CREDENTIAL_FAILED = 46,
24189     CRYPTOHOME_ERROR_FIDO_GET_ASSERTION_FAILED = 47,
24190     CRYPTOHOME_TOKEN_SERIALIZATION_FAILED = 48,
24191     CRYPTOHOME_INVALID_AUTH_SESSION_TOKEN = 49,
24192     CRYPTOHOME_ADD_CREDENTIALS_FAILED = 50,
24193     CRYPTOHOME_ERROR_UNAUTHENTICATED_AUTH_SESSION = 51,
24194     CRYPTOHOME_ERROR_UNKNOWN_LEGACY = 52,
24195     CRYPTOHOME_ERROR_UNUSABLE_VAULT = 53,
24196     CRYPTOHOME_REMOVE_CREDENTIALS_FAILED = 54,
24197     CRYPTOHOME_UPDATE_CREDENTIALS_FAILED = 55,
24198 }
24199 
24200 impl ::protobuf::ProtobufEnum for CryptohomeErrorCode {
value(&self) -> i3224201     fn value(&self) -> i32 {
24202         *self as i32
24203     }
24204 
from_i32(value: i32) -> ::std::option::Option<CryptohomeErrorCode>24205     fn from_i32(value: i32) -> ::std::option::Option<CryptohomeErrorCode> {
24206         match value {
24207             0 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET),
24208             1 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_ACCOUNT_NOT_FOUND),
24209             2 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_AUTHORIZATION_KEY_NOT_FOUND),
24210             3 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_AUTHORIZATION_KEY_FAILED),
24211             4 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_IMPLEMENTED),
24212             5 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_MOUNT_FATAL),
24213             6 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_MOUNT_MOUNT_POINT_BUSY),
24214             7 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_TPM_COMM_ERROR),
24215             8 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_TPM_DEFEND_LOCK),
24216             9 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_TPM_NEEDS_REBOOT),
24217             10 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_AUTHORIZATION_KEY_DENIED),
24218             11 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_KEY_QUOTA_EXCEEDED),
24219             12 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_KEY_LABEL_EXISTS),
24220             13 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_BACKING_STORE_FAILURE),
24221             14 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_UPDATE_SIGNATURE_INVALID),
24222             15 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_KEY_NOT_FOUND),
24223             16 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_LOCKBOX_SIGNATURE_INVALID),
24224             17 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_LOCKBOX_CANNOT_SIGN),
24225             18 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_BOOT_ATTRIBUTE_NOT_FOUND),
24226             19 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_BOOT_ATTRIBUTES_CANNOT_SIGN),
24227             20 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_TPM_EK_NOT_AVAILABLE),
24228             21 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_ATTESTATION_NOT_READY),
24229             22 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_CANNOT_CONNECT_TO_CA),
24230             23 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_CA_REFUSED_ENROLLMENT),
24231             24 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_CA_REFUSED_CERTIFICATE),
24232             25 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_INTERNAL_ATTESTATION_ERROR),
24233             26 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_FIRMWARE_MANAGEMENT_PARAMETERS_INVALID),
24234             27 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_FIRMWARE_MANAGEMENT_PARAMETERS_CANNOT_STORE),
24235             28 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_FIRMWARE_MANAGEMENT_PARAMETERS_CANNOT_REMOVE),
24236             29 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_MOUNT_OLD_ENCRYPTION),
24237             30 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_MOUNT_PREVIOUS_MIGRATION_INCOMPLETE),
24238             31 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_MIGRATE_KEY_FAILED),
24239             32 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_REMOVE_FAILED),
24240             33 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_INVALID_ARGUMENT),
24241             34 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_INSTALL_ATTRIBUTES_GET_FAILED),
24242             35 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_INSTALL_ATTRIBUTES_SET_FAILED),
24243             36 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_INSTALL_ATTRIBUTES_FINALIZE_FAILED),
24244             37 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_UPDATE_USER_ACTIVITY_TIMESTAMP_FAILED),
24245             38 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_FAILED_TO_READ_PCR),
24246             39 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_PCR_ALREADY_EXTENDED),
24247             40 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_FAILED_TO_EXTEND_PCR),
24248             41 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_TPM_UPDATE_REQUIRED),
24249             42 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_FINGERPRINT_ERROR_INTERNAL),
24250             43 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_FINGERPRINT_RETRY_REQUIRED),
24251             44 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_FINGERPRINT_DENIED),
24252             45 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_VAULT_UNRECOVERABLE),
24253             46 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_FIDO_MAKE_CREDENTIAL_FAILED),
24254             47 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_FIDO_GET_ASSERTION_FAILED),
24255             48 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_TOKEN_SERIALIZATION_FAILED),
24256             49 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_INVALID_AUTH_SESSION_TOKEN),
24257             50 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ADD_CREDENTIALS_FAILED),
24258             51 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_UNAUTHENTICATED_AUTH_SESSION),
24259             52 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_UNKNOWN_LEGACY),
24260             53 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_ERROR_UNUSABLE_VAULT),
24261             54 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_REMOVE_CREDENTIALS_FAILED),
24262             55 => ::std::option::Option::Some(CryptohomeErrorCode::CRYPTOHOME_UPDATE_CREDENTIALS_FAILED),
24263             _ => ::std::option::Option::None
24264         }
24265     }
24266 
values() -> &'static [Self]24267     fn values() -> &'static [Self] {
24268         static values: &'static [CryptohomeErrorCode] = &[
24269             CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET,
24270             CryptohomeErrorCode::CRYPTOHOME_ERROR_ACCOUNT_NOT_FOUND,
24271             CryptohomeErrorCode::CRYPTOHOME_ERROR_AUTHORIZATION_KEY_NOT_FOUND,
24272             CryptohomeErrorCode::CRYPTOHOME_ERROR_AUTHORIZATION_KEY_FAILED,
24273             CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_IMPLEMENTED,
24274             CryptohomeErrorCode::CRYPTOHOME_ERROR_MOUNT_FATAL,
24275             CryptohomeErrorCode::CRYPTOHOME_ERROR_MOUNT_MOUNT_POINT_BUSY,
24276             CryptohomeErrorCode::CRYPTOHOME_ERROR_TPM_COMM_ERROR,
24277             CryptohomeErrorCode::CRYPTOHOME_ERROR_TPM_DEFEND_LOCK,
24278             CryptohomeErrorCode::CRYPTOHOME_ERROR_TPM_NEEDS_REBOOT,
24279             CryptohomeErrorCode::CRYPTOHOME_ERROR_AUTHORIZATION_KEY_DENIED,
24280             CryptohomeErrorCode::CRYPTOHOME_ERROR_KEY_QUOTA_EXCEEDED,
24281             CryptohomeErrorCode::CRYPTOHOME_ERROR_KEY_LABEL_EXISTS,
24282             CryptohomeErrorCode::CRYPTOHOME_ERROR_BACKING_STORE_FAILURE,
24283             CryptohomeErrorCode::CRYPTOHOME_ERROR_UPDATE_SIGNATURE_INVALID,
24284             CryptohomeErrorCode::CRYPTOHOME_ERROR_KEY_NOT_FOUND,
24285             CryptohomeErrorCode::CRYPTOHOME_ERROR_LOCKBOX_SIGNATURE_INVALID,
24286             CryptohomeErrorCode::CRYPTOHOME_ERROR_LOCKBOX_CANNOT_SIGN,
24287             CryptohomeErrorCode::CRYPTOHOME_ERROR_BOOT_ATTRIBUTE_NOT_FOUND,
24288             CryptohomeErrorCode::CRYPTOHOME_ERROR_BOOT_ATTRIBUTES_CANNOT_SIGN,
24289             CryptohomeErrorCode::CRYPTOHOME_ERROR_TPM_EK_NOT_AVAILABLE,
24290             CryptohomeErrorCode::CRYPTOHOME_ERROR_ATTESTATION_NOT_READY,
24291             CryptohomeErrorCode::CRYPTOHOME_ERROR_CANNOT_CONNECT_TO_CA,
24292             CryptohomeErrorCode::CRYPTOHOME_ERROR_CA_REFUSED_ENROLLMENT,
24293             CryptohomeErrorCode::CRYPTOHOME_ERROR_CA_REFUSED_CERTIFICATE,
24294             CryptohomeErrorCode::CRYPTOHOME_ERROR_INTERNAL_ATTESTATION_ERROR,
24295             CryptohomeErrorCode::CRYPTOHOME_ERROR_FIRMWARE_MANAGEMENT_PARAMETERS_INVALID,
24296             CryptohomeErrorCode::CRYPTOHOME_ERROR_FIRMWARE_MANAGEMENT_PARAMETERS_CANNOT_STORE,
24297             CryptohomeErrorCode::CRYPTOHOME_ERROR_FIRMWARE_MANAGEMENT_PARAMETERS_CANNOT_REMOVE,
24298             CryptohomeErrorCode::CRYPTOHOME_ERROR_MOUNT_OLD_ENCRYPTION,
24299             CryptohomeErrorCode::CRYPTOHOME_ERROR_MOUNT_PREVIOUS_MIGRATION_INCOMPLETE,
24300             CryptohomeErrorCode::CRYPTOHOME_ERROR_MIGRATE_KEY_FAILED,
24301             CryptohomeErrorCode::CRYPTOHOME_ERROR_REMOVE_FAILED,
24302             CryptohomeErrorCode::CRYPTOHOME_ERROR_INVALID_ARGUMENT,
24303             CryptohomeErrorCode::CRYPTOHOME_ERROR_INSTALL_ATTRIBUTES_GET_FAILED,
24304             CryptohomeErrorCode::CRYPTOHOME_ERROR_INSTALL_ATTRIBUTES_SET_FAILED,
24305             CryptohomeErrorCode::CRYPTOHOME_ERROR_INSTALL_ATTRIBUTES_FINALIZE_FAILED,
24306             CryptohomeErrorCode::CRYPTOHOME_ERROR_UPDATE_USER_ACTIVITY_TIMESTAMP_FAILED,
24307             CryptohomeErrorCode::CRYPTOHOME_ERROR_FAILED_TO_READ_PCR,
24308             CryptohomeErrorCode::CRYPTOHOME_ERROR_PCR_ALREADY_EXTENDED,
24309             CryptohomeErrorCode::CRYPTOHOME_ERROR_FAILED_TO_EXTEND_PCR,
24310             CryptohomeErrorCode::CRYPTOHOME_ERROR_TPM_UPDATE_REQUIRED,
24311             CryptohomeErrorCode::CRYPTOHOME_ERROR_FINGERPRINT_ERROR_INTERNAL,
24312             CryptohomeErrorCode::CRYPTOHOME_ERROR_FINGERPRINT_RETRY_REQUIRED,
24313             CryptohomeErrorCode::CRYPTOHOME_ERROR_FINGERPRINT_DENIED,
24314             CryptohomeErrorCode::CRYPTOHOME_ERROR_VAULT_UNRECOVERABLE,
24315             CryptohomeErrorCode::CRYPTOHOME_ERROR_FIDO_MAKE_CREDENTIAL_FAILED,
24316             CryptohomeErrorCode::CRYPTOHOME_ERROR_FIDO_GET_ASSERTION_FAILED,
24317             CryptohomeErrorCode::CRYPTOHOME_TOKEN_SERIALIZATION_FAILED,
24318             CryptohomeErrorCode::CRYPTOHOME_INVALID_AUTH_SESSION_TOKEN,
24319             CryptohomeErrorCode::CRYPTOHOME_ADD_CREDENTIALS_FAILED,
24320             CryptohomeErrorCode::CRYPTOHOME_ERROR_UNAUTHENTICATED_AUTH_SESSION,
24321             CryptohomeErrorCode::CRYPTOHOME_ERROR_UNKNOWN_LEGACY,
24322             CryptohomeErrorCode::CRYPTOHOME_ERROR_UNUSABLE_VAULT,
24323             CryptohomeErrorCode::CRYPTOHOME_REMOVE_CREDENTIALS_FAILED,
24324             CryptohomeErrorCode::CRYPTOHOME_UPDATE_CREDENTIALS_FAILED,
24325         ];
24326         values
24327     }
24328 }
24329 
24330 impl ::std::marker::Copy for CryptohomeErrorCode {
24331 }
24332 
24333 impl ::std::default::Default for CryptohomeErrorCode {
default() -> Self24334     fn default() -> Self {
24335         CryptohomeErrorCode::CRYPTOHOME_ERROR_NOT_SET
24336     }
24337 }
24338 
24339 impl ::protobuf::reflect::ProtobufValue for CryptohomeErrorCode {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef24340     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
24341         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
24342     }
24343 }
24344 
24345 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
24346 pub enum PrimaryAction {
24347     PRIMARY_NO_ERROR = 0,
24348     PRIMARY_NONE = 1,
24349     PRIMARY_CREATE_REQUIRED = 2,
24350     PRIMARY_NOTIFY_OLD_ENCRYPTION_POLICY = 3,
24351     PRIMARY_RESUME_PREVIOUS_MIGRATION = 4,
24352     PRIMARY_TPM_UDPATE_REQUIRED = 5,
24353     PRIMARY_TPM_NEEDS_REBOOT = 6,
24354     PRIMARY_TPM_LOCKOUT = 7,
24355     PRIMARY_INCORRECT_AUTH = 8,
24356 }
24357 
24358 impl ::protobuf::ProtobufEnum for PrimaryAction {
value(&self) -> i3224359     fn value(&self) -> i32 {
24360         *self as i32
24361     }
24362 
from_i32(value: i32) -> ::std::option::Option<PrimaryAction>24363     fn from_i32(value: i32) -> ::std::option::Option<PrimaryAction> {
24364         match value {
24365             0 => ::std::option::Option::Some(PrimaryAction::PRIMARY_NO_ERROR),
24366             1 => ::std::option::Option::Some(PrimaryAction::PRIMARY_NONE),
24367             2 => ::std::option::Option::Some(PrimaryAction::PRIMARY_CREATE_REQUIRED),
24368             3 => ::std::option::Option::Some(PrimaryAction::PRIMARY_NOTIFY_OLD_ENCRYPTION_POLICY),
24369             4 => ::std::option::Option::Some(PrimaryAction::PRIMARY_RESUME_PREVIOUS_MIGRATION),
24370             5 => ::std::option::Option::Some(PrimaryAction::PRIMARY_TPM_UDPATE_REQUIRED),
24371             6 => ::std::option::Option::Some(PrimaryAction::PRIMARY_TPM_NEEDS_REBOOT),
24372             7 => ::std::option::Option::Some(PrimaryAction::PRIMARY_TPM_LOCKOUT),
24373             8 => ::std::option::Option::Some(PrimaryAction::PRIMARY_INCORRECT_AUTH),
24374             _ => ::std::option::Option::None
24375         }
24376     }
24377 
values() -> &'static [Self]24378     fn values() -> &'static [Self] {
24379         static values: &'static [PrimaryAction] = &[
24380             PrimaryAction::PRIMARY_NO_ERROR,
24381             PrimaryAction::PRIMARY_NONE,
24382             PrimaryAction::PRIMARY_CREATE_REQUIRED,
24383             PrimaryAction::PRIMARY_NOTIFY_OLD_ENCRYPTION_POLICY,
24384             PrimaryAction::PRIMARY_RESUME_PREVIOUS_MIGRATION,
24385             PrimaryAction::PRIMARY_TPM_UDPATE_REQUIRED,
24386             PrimaryAction::PRIMARY_TPM_NEEDS_REBOOT,
24387             PrimaryAction::PRIMARY_TPM_LOCKOUT,
24388             PrimaryAction::PRIMARY_INCORRECT_AUTH,
24389         ];
24390         values
24391     }
24392 }
24393 
24394 impl ::std::marker::Copy for PrimaryAction {
24395 }
24396 
24397 impl ::std::default::Default for PrimaryAction {
default() -> Self24398     fn default() -> Self {
24399         PrimaryAction::PRIMARY_NO_ERROR
24400     }
24401 }
24402 
24403 impl ::protobuf::reflect::ProtobufValue for PrimaryAction {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef24404     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
24405         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
24406     }
24407 }
24408 
24409 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
24410 pub enum PossibleAction {
24411     POSSIBLY_NONE = 0,
24412     POSSIBLY_RETRY = 1,
24413     POSSIBLY_REBOOT = 2,
24414     POSSIBLY_AUTH = 3,
24415     POSSIBLY_INCORRECT_AUTH = 4,
24416     POSSIBLY_DELETE_VAULT = 5,
24417     POSSIBLY_POWERWASH = 6,
24418     POSSIBLY_DEV_CHECK_UNEXPECTED_STATE = 7,
24419     POSSIBLY_FATAL = 8,
24420 }
24421 
24422 impl ::protobuf::ProtobufEnum for PossibleAction {
value(&self) -> i3224423     fn value(&self) -> i32 {
24424         *self as i32
24425     }
24426 
from_i32(value: i32) -> ::std::option::Option<PossibleAction>24427     fn from_i32(value: i32) -> ::std::option::Option<PossibleAction> {
24428         match value {
24429             0 => ::std::option::Option::Some(PossibleAction::POSSIBLY_NONE),
24430             1 => ::std::option::Option::Some(PossibleAction::POSSIBLY_RETRY),
24431             2 => ::std::option::Option::Some(PossibleAction::POSSIBLY_REBOOT),
24432             3 => ::std::option::Option::Some(PossibleAction::POSSIBLY_AUTH),
24433             4 => ::std::option::Option::Some(PossibleAction::POSSIBLY_INCORRECT_AUTH),
24434             5 => ::std::option::Option::Some(PossibleAction::POSSIBLY_DELETE_VAULT),
24435             6 => ::std::option::Option::Some(PossibleAction::POSSIBLY_POWERWASH),
24436             7 => ::std::option::Option::Some(PossibleAction::POSSIBLY_DEV_CHECK_UNEXPECTED_STATE),
24437             8 => ::std::option::Option::Some(PossibleAction::POSSIBLY_FATAL),
24438             _ => ::std::option::Option::None
24439         }
24440     }
24441 
values() -> &'static [Self]24442     fn values() -> &'static [Self] {
24443         static values: &'static [PossibleAction] = &[
24444             PossibleAction::POSSIBLY_NONE,
24445             PossibleAction::POSSIBLY_RETRY,
24446             PossibleAction::POSSIBLY_REBOOT,
24447             PossibleAction::POSSIBLY_AUTH,
24448             PossibleAction::POSSIBLY_INCORRECT_AUTH,
24449             PossibleAction::POSSIBLY_DELETE_VAULT,
24450             PossibleAction::POSSIBLY_POWERWASH,
24451             PossibleAction::POSSIBLY_DEV_CHECK_UNEXPECTED_STATE,
24452             PossibleAction::POSSIBLY_FATAL,
24453         ];
24454         values
24455     }
24456 }
24457 
24458 impl ::std::marker::Copy for PossibleAction {
24459 }
24460 
24461 impl ::std::default::Default for PossibleAction {
default() -> Self24462     fn default() -> Self {
24463         PossibleAction::POSSIBLY_NONE
24464     }
24465 }
24466 
24467 impl ::protobuf::reflect::ProtobufValue for PossibleAction {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef24468     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
24469         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
24470     }
24471 }
24472 
24473 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
24474 pub enum DircryptoMigrationStatus {
24475     DIRCRYPTO_MIGRATION_SUCCESS = 0,
24476     DIRCRYPTO_MIGRATION_FAILED = 1,
24477     DIRCRYPTO_MIGRATION_INITIALIZING = 2,
24478     DIRCRYPTO_MIGRATION_IN_PROGRESS = 3,
24479 }
24480 
24481 impl ::protobuf::ProtobufEnum for DircryptoMigrationStatus {
value(&self) -> i3224482     fn value(&self) -> i32 {
24483         *self as i32
24484     }
24485 
from_i32(value: i32) -> ::std::option::Option<DircryptoMigrationStatus>24486     fn from_i32(value: i32) -> ::std::option::Option<DircryptoMigrationStatus> {
24487         match value {
24488             0 => ::std::option::Option::Some(DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_SUCCESS),
24489             1 => ::std::option::Option::Some(DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_FAILED),
24490             2 => ::std::option::Option::Some(DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_INITIALIZING),
24491             3 => ::std::option::Option::Some(DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_IN_PROGRESS),
24492             _ => ::std::option::Option::None
24493         }
24494     }
24495 
values() -> &'static [Self]24496     fn values() -> &'static [Self] {
24497         static values: &'static [DircryptoMigrationStatus] = &[
24498             DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_SUCCESS,
24499             DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_FAILED,
24500             DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_INITIALIZING,
24501             DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_IN_PROGRESS,
24502         ];
24503         values
24504     }
24505 }
24506 
24507 impl ::std::marker::Copy for DircryptoMigrationStatus {
24508 }
24509 
24510 impl ::std::default::Default for DircryptoMigrationStatus {
default() -> Self24511     fn default() -> Self {
24512         DircryptoMigrationStatus::DIRCRYPTO_MIGRATION_SUCCESS
24513     }
24514 }
24515 
24516 impl ::protobuf::reflect::ProtobufValue for DircryptoMigrationStatus {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef24517     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
24518         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
24519     }
24520 }
24521 
24522 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
24523 pub enum AuthSessionFlags {
24524     AUTH_SESSION_FLAGS_NONE = 0,
24525     AUTH_SESSION_FLAGS_EPHEMERAL_USER = 2,
24526 }
24527 
24528 impl ::protobuf::ProtobufEnum for AuthSessionFlags {
value(&self) -> i3224529     fn value(&self) -> i32 {
24530         *self as i32
24531     }
24532 
from_i32(value: i32) -> ::std::option::Option<AuthSessionFlags>24533     fn from_i32(value: i32) -> ::std::option::Option<AuthSessionFlags> {
24534         match value {
24535             0 => ::std::option::Option::Some(AuthSessionFlags::AUTH_SESSION_FLAGS_NONE),
24536             2 => ::std::option::Option::Some(AuthSessionFlags::AUTH_SESSION_FLAGS_EPHEMERAL_USER),
24537             _ => ::std::option::Option::None
24538         }
24539     }
24540 
values() -> &'static [Self]24541     fn values() -> &'static [Self] {
24542         static values: &'static [AuthSessionFlags] = &[
24543             AuthSessionFlags::AUTH_SESSION_FLAGS_NONE,
24544             AuthSessionFlags::AUTH_SESSION_FLAGS_EPHEMERAL_USER,
24545         ];
24546         values
24547     }
24548 }
24549 
24550 impl ::std::marker::Copy for AuthSessionFlags {
24551 }
24552 
24553 impl ::std::default::Default for AuthSessionFlags {
default() -> Self24554     fn default() -> Self {
24555         AuthSessionFlags::AUTH_SESSION_FLAGS_NONE
24556     }
24557 }
24558 
24559 impl ::protobuf::reflect::ProtobufValue for AuthSessionFlags {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef24560     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
24561         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
24562     }
24563 }
24564 
24565 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
24566 pub enum AuthSessionStatus {
24567     AUTH_SESSION_STATUS_NOT_SET = 0,
24568     AUTH_SESSION_STATUS_FURTHER_FACTOR_REQUIRED = 1,
24569     AUTH_SESSION_STATUS_AUTHENTICATED = 2,
24570     AUTH_SESSION_STATUS_INVALID_AUTH_SESSION = 3,
24571 }
24572 
24573 impl ::protobuf::ProtobufEnum for AuthSessionStatus {
value(&self) -> i3224574     fn value(&self) -> i32 {
24575         *self as i32
24576     }
24577 
from_i32(value: i32) -> ::std::option::Option<AuthSessionStatus>24578     fn from_i32(value: i32) -> ::std::option::Option<AuthSessionStatus> {
24579         match value {
24580             0 => ::std::option::Option::Some(AuthSessionStatus::AUTH_SESSION_STATUS_NOT_SET),
24581             1 => ::std::option::Option::Some(AuthSessionStatus::AUTH_SESSION_STATUS_FURTHER_FACTOR_REQUIRED),
24582             2 => ::std::option::Option::Some(AuthSessionStatus::AUTH_SESSION_STATUS_AUTHENTICATED),
24583             3 => ::std::option::Option::Some(AuthSessionStatus::AUTH_SESSION_STATUS_INVALID_AUTH_SESSION),
24584             _ => ::std::option::Option::None
24585         }
24586     }
24587 
values() -> &'static [Self]24588     fn values() -> &'static [Self] {
24589         static values: &'static [AuthSessionStatus] = &[
24590             AuthSessionStatus::AUTH_SESSION_STATUS_NOT_SET,
24591             AuthSessionStatus::AUTH_SESSION_STATUS_FURTHER_FACTOR_REQUIRED,
24592             AuthSessionStatus::AUTH_SESSION_STATUS_AUTHENTICATED,
24593             AuthSessionStatus::AUTH_SESSION_STATUS_INVALID_AUTH_SESSION,
24594         ];
24595         values
24596     }
24597 }
24598 
24599 impl ::std::marker::Copy for AuthSessionStatus {
24600 }
24601 
24602 impl ::std::default::Default for AuthSessionStatus {
default() -> Self24603     fn default() -> Self {
24604         AuthSessionStatus::AUTH_SESSION_STATUS_NOT_SET
24605     }
24606 }
24607 
24608 impl ::protobuf::reflect::ProtobufValue for AuthSessionStatus {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef24609     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
24610         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
24611     }
24612 }
24613 
24614 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
24615 pub enum VaultEncryptionType {
24616     CRYPTOHOME_VAULT_ENCRYPTION_ANY = 0,
24617     CRYPTOHOME_VAULT_ENCRYPTION_ECRYPTFS = 1,
24618     CRYPTOHOME_VAULT_ENCRYPTION_FSCRYPT = 2,
24619     CRYPTOHOME_VAULT_ENCRYPTION_DMCRYPT = 3,
24620 }
24621 
24622 impl ::protobuf::ProtobufEnum for VaultEncryptionType {
value(&self) -> i3224623     fn value(&self) -> i32 {
24624         *self as i32
24625     }
24626 
from_i32(value: i32) -> ::std::option::Option<VaultEncryptionType>24627     fn from_i32(value: i32) -> ::std::option::Option<VaultEncryptionType> {
24628         match value {
24629             0 => ::std::option::Option::Some(VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_ANY),
24630             1 => ::std::option::Option::Some(VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_ECRYPTFS),
24631             2 => ::std::option::Option::Some(VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_FSCRYPT),
24632             3 => ::std::option::Option::Some(VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_DMCRYPT),
24633             _ => ::std::option::Option::None
24634         }
24635     }
24636 
values() -> &'static [Self]24637     fn values() -> &'static [Self] {
24638         static values: &'static [VaultEncryptionType] = &[
24639             VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_ANY,
24640             VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_ECRYPTFS,
24641             VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_FSCRYPT,
24642             VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_DMCRYPT,
24643         ];
24644         values
24645     }
24646 }
24647 
24648 impl ::std::marker::Copy for VaultEncryptionType {
24649 }
24650 
24651 impl ::std::default::Default for VaultEncryptionType {
default() -> Self24652     fn default() -> Self {
24653         VaultEncryptionType::CRYPTOHOME_VAULT_ENCRYPTION_ANY
24654     }
24655 }
24656 
24657 impl ::protobuf::reflect::ProtobufValue for VaultEncryptionType {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef24658     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
24659         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
24660     }
24661 }
24662 
24663 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
24664 pub enum InstallAttributesState {
24665     UNKNOWN = 0,
24666     TPM_NOT_OWNED = 1,
24667     FIRST_INSTALL = 2,
24668     VALID = 3,
24669     INVALID = 4,
24670 }
24671 
24672 impl ::protobuf::ProtobufEnum for InstallAttributesState {
value(&self) -> i3224673     fn value(&self) -> i32 {
24674         *self as i32
24675     }
24676 
from_i32(value: i32) -> ::std::option::Option<InstallAttributesState>24677     fn from_i32(value: i32) -> ::std::option::Option<InstallAttributesState> {
24678         match value {
24679             0 => ::std::option::Option::Some(InstallAttributesState::UNKNOWN),
24680             1 => ::std::option::Option::Some(InstallAttributesState::TPM_NOT_OWNED),
24681             2 => ::std::option::Option::Some(InstallAttributesState::FIRST_INSTALL),
24682             3 => ::std::option::Option::Some(InstallAttributesState::VALID),
24683             4 => ::std::option::Option::Some(InstallAttributesState::INVALID),
24684             _ => ::std::option::Option::None
24685         }
24686     }
24687 
values() -> &'static [Self]24688     fn values() -> &'static [Self] {
24689         static values: &'static [InstallAttributesState] = &[
24690             InstallAttributesState::UNKNOWN,
24691             InstallAttributesState::TPM_NOT_OWNED,
24692             InstallAttributesState::FIRST_INSTALL,
24693             InstallAttributesState::VALID,
24694             InstallAttributesState::INVALID,
24695         ];
24696         values
24697     }
24698 }
24699 
24700 impl ::std::marker::Copy for InstallAttributesState {
24701 }
24702 
24703 impl ::std::default::Default for InstallAttributesState {
default() -> Self24704     fn default() -> Self {
24705         InstallAttributesState::UNKNOWN
24706     }
24707 }
24708 
24709 impl ::protobuf::reflect::ProtobufValue for InstallAttributesState {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef24710     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
24711         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
24712     }
24713 }
24714 
24715 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
24716 pub enum FingerprintScanResult {
24717     FINGERPRINT_SCAN_RESULT_SUCCESS = 0,
24718     FINGERPRINT_SCAN_RESULT_RETRY = 1,
24719     FINGERPRINT_SCAN_RESULT_LOCKOUT = 2,
24720     FINGERPRINT_SCAN_RESULT_FATAL_ERROR = 3,
24721 }
24722 
24723 impl ::protobuf::ProtobufEnum for FingerprintScanResult {
value(&self) -> i3224724     fn value(&self) -> i32 {
24725         *self as i32
24726     }
24727 
from_i32(value: i32) -> ::std::option::Option<FingerprintScanResult>24728     fn from_i32(value: i32) -> ::std::option::Option<FingerprintScanResult> {
24729         match value {
24730             0 => ::std::option::Option::Some(FingerprintScanResult::FINGERPRINT_SCAN_RESULT_SUCCESS),
24731             1 => ::std::option::Option::Some(FingerprintScanResult::FINGERPRINT_SCAN_RESULT_RETRY),
24732             2 => ::std::option::Option::Some(FingerprintScanResult::FINGERPRINT_SCAN_RESULT_LOCKOUT),
24733             3 => ::std::option::Option::Some(FingerprintScanResult::FINGERPRINT_SCAN_RESULT_FATAL_ERROR),
24734             _ => ::std::option::Option::None
24735         }
24736     }
24737 
values() -> &'static [Self]24738     fn values() -> &'static [Self] {
24739         static values: &'static [FingerprintScanResult] = &[
24740             FingerprintScanResult::FINGERPRINT_SCAN_RESULT_SUCCESS,
24741             FingerprintScanResult::FINGERPRINT_SCAN_RESULT_RETRY,
24742             FingerprintScanResult::FINGERPRINT_SCAN_RESULT_LOCKOUT,
24743             FingerprintScanResult::FINGERPRINT_SCAN_RESULT_FATAL_ERROR,
24744         ];
24745         values
24746     }
24747 }
24748 
24749 impl ::std::marker::Copy for FingerprintScanResult {
24750 }
24751 
24752 impl ::std::default::Default for FingerprintScanResult {
default() -> Self24753     fn default() -> Self {
24754         FingerprintScanResult::FINGERPRINT_SCAN_RESULT_SUCCESS
24755     }
24756 }
24757 
24758 impl ::protobuf::reflect::ProtobufValue for FingerprintScanResult {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef24759     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
24760         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
24761     }
24762 }
24763