• 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 `fido.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 Url {
28     // message fields
29     pub url: ::std::string::String,
30     // special fields
31     pub unknown_fields: ::protobuf::UnknownFields,
32     pub cached_size: ::protobuf::CachedSize,
33 }
34 
35 impl<'a> ::std::default::Default for &'a Url {
default() -> &'a Url36     fn default() -> &'a Url {
37         <Url as ::protobuf::Message>::default_instance()
38     }
39 }
40 
41 impl Url {
new() -> Url42     pub fn new() -> Url {
43         ::std::default::Default::default()
44     }
45 
46     // string url = 1;
47 
48 
get_url(&self) -> &str49     pub fn get_url(&self) -> &str {
50         &self.url
51     }
clear_url(&mut self)52     pub fn clear_url(&mut self) {
53         self.url.clear();
54     }
55 
56     // Param is passed by value, moved
set_url(&mut self, v: ::std::string::String)57     pub fn set_url(&mut self, v: ::std::string::String) {
58         self.url = v;
59     }
60 
61     // Mutable pointer to the field.
62     // If field is not initialized, it is initialized with default value first.
mut_url(&mut self) -> &mut ::std::string::String63     pub fn mut_url(&mut self) -> &mut ::std::string::String {
64         &mut self.url
65     }
66 
67     // Take field
take_url(&mut self) -> ::std::string::String68     pub fn take_url(&mut self) -> ::std::string::String {
69         ::std::mem::replace(&mut self.url, ::std::string::String::new())
70     }
71 }
72 
73 impl ::protobuf::Message for Url {
is_initialized(&self) -> bool74     fn is_initialized(&self) -> bool {
75         true
76     }
77 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>78     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
79         while !is.eof()? {
80             let (field_number, wire_type) = is.read_tag_unpack()?;
81             match field_number {
82                 1 => {
83                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url)?;
84                 },
85                 _ => {
86                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
87                 },
88             };
89         }
90         ::std::result::Result::Ok(())
91     }
92 
93     // Compute sizes of nested messages
94     #[allow(unused_variables)]
compute_size(&self) -> u3295     fn compute_size(&self) -> u32 {
96         let mut my_size = 0;
97         if !self.url.is_empty() {
98             my_size += ::protobuf::rt::string_size(1, &self.url);
99         }
100         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
101         self.cached_size.set(my_size);
102         my_size
103     }
104 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>105     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
106         if !self.url.is_empty() {
107             os.write_string(1, &self.url)?;
108         }
109         os.write_unknown_fields(self.get_unknown_fields())?;
110         ::std::result::Result::Ok(())
111     }
112 
get_cached_size(&self) -> u32113     fn get_cached_size(&self) -> u32 {
114         self.cached_size.get()
115     }
116 
get_unknown_fields(&self) -> &::protobuf::UnknownFields117     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
118         &self.unknown_fields
119     }
120 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields121     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
122         &mut self.unknown_fields
123     }
124 
as_any(&self) -> &dyn (::std::any::Any)125     fn as_any(&self) -> &dyn (::std::any::Any) {
126         self as &dyn (::std::any::Any)
127     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)128     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
129         self as &mut dyn (::std::any::Any)
130     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>131     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
132         self
133     }
134 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor135     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
136         Self::descriptor_static()
137     }
138 
new() -> Url139     fn new() -> Url {
140         Url::new()
141     }
142 
default_instance() -> &'static Url143     fn default_instance() -> &'static Url {
144         static instance: ::protobuf::rt::LazyV2<Url> = ::protobuf::rt::LazyV2::INIT;
145         instance.get(Url::new)
146     }
147 }
148 
149 impl ::protobuf::Clear for Url {
clear(&mut self)150     fn clear(&mut self) {
151         self.url.clear();
152         self.unknown_fields.clear();
153     }
154 }
155 
156 impl ::protobuf::reflect::ProtobufValue for Url {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef157     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
158         ::protobuf::reflect::ReflectValueRef::Message(self)
159     }
160 }
161 
162 #[derive(PartialEq,Clone,Default,Debug)]
163 pub struct CommonCredentialInfo {
164     // message fields
165     pub id: ::std::string::String,
166     pub raw_id: ::std::vec::Vec<u8>,
167     pub client_data_json: ::std::vec::Vec<u8>,
168     // special fields
169     pub unknown_fields: ::protobuf::UnknownFields,
170     pub cached_size: ::protobuf::CachedSize,
171 }
172 
173 impl<'a> ::std::default::Default for &'a CommonCredentialInfo {
default() -> &'a CommonCredentialInfo174     fn default() -> &'a CommonCredentialInfo {
175         <CommonCredentialInfo as ::protobuf::Message>::default_instance()
176     }
177 }
178 
179 impl CommonCredentialInfo {
new() -> CommonCredentialInfo180     pub fn new() -> CommonCredentialInfo {
181         ::std::default::Default::default()
182     }
183 
184     // string id = 1;
185 
186 
get_id(&self) -> &str187     pub fn get_id(&self) -> &str {
188         &self.id
189     }
clear_id(&mut self)190     pub fn clear_id(&mut self) {
191         self.id.clear();
192     }
193 
194     // Param is passed by value, moved
set_id(&mut self, v: ::std::string::String)195     pub fn set_id(&mut self, v: ::std::string::String) {
196         self.id = v;
197     }
198 
199     // Mutable pointer to the field.
200     // If field is not initialized, it is initialized with default value first.
mut_id(&mut self) -> &mut ::std::string::String201     pub fn mut_id(&mut self) -> &mut ::std::string::String {
202         &mut self.id
203     }
204 
205     // Take field
take_id(&mut self) -> ::std::string::String206     pub fn take_id(&mut self) -> ::std::string::String {
207         ::std::mem::replace(&mut self.id, ::std::string::String::new())
208     }
209 
210     // bytes raw_id = 2;
211 
212 
get_raw_id(&self) -> &[u8]213     pub fn get_raw_id(&self) -> &[u8] {
214         &self.raw_id
215     }
clear_raw_id(&mut self)216     pub fn clear_raw_id(&mut self) {
217         self.raw_id.clear();
218     }
219 
220     // Param is passed by value, moved
set_raw_id(&mut self, v: ::std::vec::Vec<u8>)221     pub fn set_raw_id(&mut self, v: ::std::vec::Vec<u8>) {
222         self.raw_id = v;
223     }
224 
225     // Mutable pointer to the field.
226     // If field is not initialized, it is initialized with default value first.
mut_raw_id(&mut self) -> &mut ::std::vec::Vec<u8>227     pub fn mut_raw_id(&mut self) -> &mut ::std::vec::Vec<u8> {
228         &mut self.raw_id
229     }
230 
231     // Take field
take_raw_id(&mut self) -> ::std::vec::Vec<u8>232     pub fn take_raw_id(&mut self) -> ::std::vec::Vec<u8> {
233         ::std::mem::replace(&mut self.raw_id, ::std::vec::Vec::new())
234     }
235 
236     // bytes client_data_json = 3;
237 
238 
get_client_data_json(&self) -> &[u8]239     pub fn get_client_data_json(&self) -> &[u8] {
240         &self.client_data_json
241     }
clear_client_data_json(&mut self)242     pub fn clear_client_data_json(&mut self) {
243         self.client_data_json.clear();
244     }
245 
246     // Param is passed by value, moved
set_client_data_json(&mut self, v: ::std::vec::Vec<u8>)247     pub fn set_client_data_json(&mut self, v: ::std::vec::Vec<u8>) {
248         self.client_data_json = v;
249     }
250 
251     // Mutable pointer to the field.
252     // If field is not initialized, it is initialized with default value first.
mut_client_data_json(&mut self) -> &mut ::std::vec::Vec<u8>253     pub fn mut_client_data_json(&mut self) -> &mut ::std::vec::Vec<u8> {
254         &mut self.client_data_json
255     }
256 
257     // Take field
take_client_data_json(&mut self) -> ::std::vec::Vec<u8>258     pub fn take_client_data_json(&mut self) -> ::std::vec::Vec<u8> {
259         ::std::mem::replace(&mut self.client_data_json, ::std::vec::Vec::new())
260     }
261 }
262 
263 impl ::protobuf::Message for CommonCredentialInfo {
is_initialized(&self) -> bool264     fn is_initialized(&self) -> bool {
265         true
266     }
267 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>268     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
269         while !is.eof()? {
270             let (field_number, wire_type) = is.read_tag_unpack()?;
271             match field_number {
272                 1 => {
273                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
274                 },
275                 2 => {
276                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.raw_id)?;
277                 },
278                 3 => {
279                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.client_data_json)?;
280                 },
281                 _ => {
282                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
283                 },
284             };
285         }
286         ::std::result::Result::Ok(())
287     }
288 
289     // Compute sizes of nested messages
290     #[allow(unused_variables)]
compute_size(&self) -> u32291     fn compute_size(&self) -> u32 {
292         let mut my_size = 0;
293         if !self.id.is_empty() {
294             my_size += ::protobuf::rt::string_size(1, &self.id);
295         }
296         if !self.raw_id.is_empty() {
297             my_size += ::protobuf::rt::bytes_size(2, &self.raw_id);
298         }
299         if !self.client_data_json.is_empty() {
300             my_size += ::protobuf::rt::bytes_size(3, &self.client_data_json);
301         }
302         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
303         self.cached_size.set(my_size);
304         my_size
305     }
306 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>307     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
308         if !self.id.is_empty() {
309             os.write_string(1, &self.id)?;
310         }
311         if !self.raw_id.is_empty() {
312             os.write_bytes(2, &self.raw_id)?;
313         }
314         if !self.client_data_json.is_empty() {
315             os.write_bytes(3, &self.client_data_json)?;
316         }
317         os.write_unknown_fields(self.get_unknown_fields())?;
318         ::std::result::Result::Ok(())
319     }
320 
get_cached_size(&self) -> u32321     fn get_cached_size(&self) -> u32 {
322         self.cached_size.get()
323     }
324 
get_unknown_fields(&self) -> &::protobuf::UnknownFields325     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
326         &self.unknown_fields
327     }
328 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields329     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
330         &mut self.unknown_fields
331     }
332 
as_any(&self) -> &dyn (::std::any::Any)333     fn as_any(&self) -> &dyn (::std::any::Any) {
334         self as &dyn (::std::any::Any)
335     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)336     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
337         self as &mut dyn (::std::any::Any)
338     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>339     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
340         self
341     }
342 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor343     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
344         Self::descriptor_static()
345     }
346 
new() -> CommonCredentialInfo347     fn new() -> CommonCredentialInfo {
348         CommonCredentialInfo::new()
349     }
350 
default_instance() -> &'static CommonCredentialInfo351     fn default_instance() -> &'static CommonCredentialInfo {
352         static instance: ::protobuf::rt::LazyV2<CommonCredentialInfo> = ::protobuf::rt::LazyV2::INIT;
353         instance.get(CommonCredentialInfo::new)
354     }
355 }
356 
357 impl ::protobuf::Clear for CommonCredentialInfo {
clear(&mut self)358     fn clear(&mut self) {
359         self.id.clear();
360         self.raw_id.clear();
361         self.client_data_json.clear();
362         self.unknown_fields.clear();
363     }
364 }
365 
366 impl ::protobuf::reflect::ProtobufValue for CommonCredentialInfo {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef367     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
368         ::protobuf::reflect::ReflectValueRef::Message(self)
369     }
370 }
371 
372 #[derive(PartialEq,Clone,Default,Debug)]
373 pub struct MakeCredentialAuthenticatorResponse {
374     // message fields
375     pub info: ::protobuf::SingularPtrField<CommonCredentialInfo>,
376     pub attestation_object: ::std::vec::Vec<u8>,
377     pub transports: ::std::vec::Vec<AuthenticatorTransport>,
378     pub echo_hmac_create_secret: bool,
379     pub hmac_create_secret: bool,
380     // special fields
381     pub unknown_fields: ::protobuf::UnknownFields,
382     pub cached_size: ::protobuf::CachedSize,
383 }
384 
385 impl<'a> ::std::default::Default for &'a MakeCredentialAuthenticatorResponse {
default() -> &'a MakeCredentialAuthenticatorResponse386     fn default() -> &'a MakeCredentialAuthenticatorResponse {
387         <MakeCredentialAuthenticatorResponse as ::protobuf::Message>::default_instance()
388     }
389 }
390 
391 impl MakeCredentialAuthenticatorResponse {
new() -> MakeCredentialAuthenticatorResponse392     pub fn new() -> MakeCredentialAuthenticatorResponse {
393         ::std::default::Default::default()
394     }
395 
396     // .cryptohome.fido.CommonCredentialInfo info = 1;
397 
398 
get_info(&self) -> &CommonCredentialInfo399     pub fn get_info(&self) -> &CommonCredentialInfo {
400         self.info.as_ref().unwrap_or_else(|| <CommonCredentialInfo as ::protobuf::Message>::default_instance())
401     }
clear_info(&mut self)402     pub fn clear_info(&mut self) {
403         self.info.clear();
404     }
405 
has_info(&self) -> bool406     pub fn has_info(&self) -> bool {
407         self.info.is_some()
408     }
409 
410     // Param is passed by value, moved
set_info(&mut self, v: CommonCredentialInfo)411     pub fn set_info(&mut self, v: CommonCredentialInfo) {
412         self.info = ::protobuf::SingularPtrField::some(v);
413     }
414 
415     // Mutable pointer to the field.
416     // If field is not initialized, it is initialized with default value first.
mut_info(&mut self) -> &mut CommonCredentialInfo417     pub fn mut_info(&mut self) -> &mut CommonCredentialInfo {
418         if self.info.is_none() {
419             self.info.set_default();
420         }
421         self.info.as_mut().unwrap()
422     }
423 
424     // Take field
take_info(&mut self) -> CommonCredentialInfo425     pub fn take_info(&mut self) -> CommonCredentialInfo {
426         self.info.take().unwrap_or_else(|| CommonCredentialInfo::new())
427     }
428 
429     // bytes attestation_object = 2;
430 
431 
get_attestation_object(&self) -> &[u8]432     pub fn get_attestation_object(&self) -> &[u8] {
433         &self.attestation_object
434     }
clear_attestation_object(&mut self)435     pub fn clear_attestation_object(&mut self) {
436         self.attestation_object.clear();
437     }
438 
439     // Param is passed by value, moved
set_attestation_object(&mut self, v: ::std::vec::Vec<u8>)440     pub fn set_attestation_object(&mut self, v: ::std::vec::Vec<u8>) {
441         self.attestation_object = v;
442     }
443 
444     // Mutable pointer to the field.
445     // If field is not initialized, it is initialized with default value first.
mut_attestation_object(&mut self) -> &mut ::std::vec::Vec<u8>446     pub fn mut_attestation_object(&mut self) -> &mut ::std::vec::Vec<u8> {
447         &mut self.attestation_object
448     }
449 
450     // Take field
take_attestation_object(&mut self) -> ::std::vec::Vec<u8>451     pub fn take_attestation_object(&mut self) -> ::std::vec::Vec<u8> {
452         ::std::mem::replace(&mut self.attestation_object, ::std::vec::Vec::new())
453     }
454 
455     // repeated .cryptohome.fido.AuthenticatorTransport transports = 3;
456 
457 
get_transports(&self) -> &[AuthenticatorTransport]458     pub fn get_transports(&self) -> &[AuthenticatorTransport] {
459         &self.transports
460     }
clear_transports(&mut self)461     pub fn clear_transports(&mut self) {
462         self.transports.clear();
463     }
464 
465     // Param is passed by value, moved
set_transports(&mut self, v: ::std::vec::Vec<AuthenticatorTransport>)466     pub fn set_transports(&mut self, v: ::std::vec::Vec<AuthenticatorTransport>) {
467         self.transports = v;
468     }
469 
470     // Mutable pointer to the field.
mut_transports(&mut self) -> &mut ::std::vec::Vec<AuthenticatorTransport>471     pub fn mut_transports(&mut self) -> &mut ::std::vec::Vec<AuthenticatorTransport> {
472         &mut self.transports
473     }
474 
475     // Take field
take_transports(&mut self) -> ::std::vec::Vec<AuthenticatorTransport>476     pub fn take_transports(&mut self) -> ::std::vec::Vec<AuthenticatorTransport> {
477         ::std::mem::replace(&mut self.transports, ::std::vec::Vec::new())
478     }
479 
480     // bool echo_hmac_create_secret = 4;
481 
482 
get_echo_hmac_create_secret(&self) -> bool483     pub fn get_echo_hmac_create_secret(&self) -> bool {
484         self.echo_hmac_create_secret
485     }
clear_echo_hmac_create_secret(&mut self)486     pub fn clear_echo_hmac_create_secret(&mut self) {
487         self.echo_hmac_create_secret = false;
488     }
489 
490     // Param is passed by value, moved
set_echo_hmac_create_secret(&mut self, v: bool)491     pub fn set_echo_hmac_create_secret(&mut self, v: bool) {
492         self.echo_hmac_create_secret = v;
493     }
494 
495     // bool hmac_create_secret = 5;
496 
497 
get_hmac_create_secret(&self) -> bool498     pub fn get_hmac_create_secret(&self) -> bool {
499         self.hmac_create_secret
500     }
clear_hmac_create_secret(&mut self)501     pub fn clear_hmac_create_secret(&mut self) {
502         self.hmac_create_secret = false;
503     }
504 
505     // Param is passed by value, moved
set_hmac_create_secret(&mut self, v: bool)506     pub fn set_hmac_create_secret(&mut self, v: bool) {
507         self.hmac_create_secret = v;
508     }
509 }
510 
511 impl ::protobuf::Message for MakeCredentialAuthenticatorResponse {
is_initialized(&self) -> bool512     fn is_initialized(&self) -> bool {
513         for v in &self.info {
514             if !v.is_initialized() {
515                 return false;
516             }
517         };
518         true
519     }
520 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>521     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
522         while !is.eof()? {
523             let (field_number, wire_type) = is.read_tag_unpack()?;
524             match field_number {
525                 1 => {
526                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.info)?;
527                 },
528                 2 => {
529                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.attestation_object)?;
530                 },
531                 3 => {
532                     ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.transports, 3, &mut self.unknown_fields)?
533                 },
534                 4 => {
535                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
536                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
537                     }
538                     let tmp = is.read_bool()?;
539                     self.echo_hmac_create_secret = tmp;
540                 },
541                 5 => {
542                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
543                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
544                     }
545                     let tmp = is.read_bool()?;
546                     self.hmac_create_secret = tmp;
547                 },
548                 _ => {
549                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
550                 },
551             };
552         }
553         ::std::result::Result::Ok(())
554     }
555 
556     // Compute sizes of nested messages
557     #[allow(unused_variables)]
compute_size(&self) -> u32558     fn compute_size(&self) -> u32 {
559         let mut my_size = 0;
560         if let Some(ref v) = self.info.as_ref() {
561             let len = v.compute_size();
562             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
563         }
564         if !self.attestation_object.is_empty() {
565             my_size += ::protobuf::rt::bytes_size(2, &self.attestation_object);
566         }
567         for value in &self.transports {
568             my_size += ::protobuf::rt::enum_size(3, *value);
569         };
570         if self.echo_hmac_create_secret != false {
571             my_size += 2;
572         }
573         if self.hmac_create_secret != false {
574             my_size += 2;
575         }
576         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
577         self.cached_size.set(my_size);
578         my_size
579     }
580 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>581     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
582         if let Some(ref v) = self.info.as_ref() {
583             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
584             os.write_raw_varint32(v.get_cached_size())?;
585             v.write_to_with_cached_sizes(os)?;
586         }
587         if !self.attestation_object.is_empty() {
588             os.write_bytes(2, &self.attestation_object)?;
589         }
590         for v in &self.transports {
591             os.write_enum(3, ::protobuf::ProtobufEnum::value(v))?;
592         };
593         if self.echo_hmac_create_secret != false {
594             os.write_bool(4, self.echo_hmac_create_secret)?;
595         }
596         if self.hmac_create_secret != false {
597             os.write_bool(5, self.hmac_create_secret)?;
598         }
599         os.write_unknown_fields(self.get_unknown_fields())?;
600         ::std::result::Result::Ok(())
601     }
602 
get_cached_size(&self) -> u32603     fn get_cached_size(&self) -> u32 {
604         self.cached_size.get()
605     }
606 
get_unknown_fields(&self) -> &::protobuf::UnknownFields607     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
608         &self.unknown_fields
609     }
610 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields611     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
612         &mut self.unknown_fields
613     }
614 
as_any(&self) -> &dyn (::std::any::Any)615     fn as_any(&self) -> &dyn (::std::any::Any) {
616         self as &dyn (::std::any::Any)
617     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)618     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
619         self as &mut dyn (::std::any::Any)
620     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>621     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
622         self
623     }
624 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor625     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
626         Self::descriptor_static()
627     }
628 
new() -> MakeCredentialAuthenticatorResponse629     fn new() -> MakeCredentialAuthenticatorResponse {
630         MakeCredentialAuthenticatorResponse::new()
631     }
632 
default_instance() -> &'static MakeCredentialAuthenticatorResponse633     fn default_instance() -> &'static MakeCredentialAuthenticatorResponse {
634         static instance: ::protobuf::rt::LazyV2<MakeCredentialAuthenticatorResponse> = ::protobuf::rt::LazyV2::INIT;
635         instance.get(MakeCredentialAuthenticatorResponse::new)
636     }
637 }
638 
639 impl ::protobuf::Clear for MakeCredentialAuthenticatorResponse {
clear(&mut self)640     fn clear(&mut self) {
641         self.info.clear();
642         self.attestation_object.clear();
643         self.transports.clear();
644         self.echo_hmac_create_secret = false;
645         self.hmac_create_secret = false;
646         self.unknown_fields.clear();
647     }
648 }
649 
650 impl ::protobuf::reflect::ProtobufValue for MakeCredentialAuthenticatorResponse {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef651     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
652         ::protobuf::reflect::ReflectValueRef::Message(self)
653     }
654 }
655 
656 #[derive(PartialEq,Clone,Default,Debug)]
657 pub struct GetAssertionAuthenticatorResponse {
658     // message fields
659     pub info: ::protobuf::SingularPtrField<CommonCredentialInfo>,
660     pub authenticator_data: ::std::vec::Vec<u8>,
661     pub signature: ::std::vec::Vec<u8>,
662     pub user_handle: ::std::vec::Vec<u8>,
663     pub echo_appid_extension: bool,
664     pub appid_extension: bool,
665     // special fields
666     pub unknown_fields: ::protobuf::UnknownFields,
667     pub cached_size: ::protobuf::CachedSize,
668 }
669 
670 impl<'a> ::std::default::Default for &'a GetAssertionAuthenticatorResponse {
default() -> &'a GetAssertionAuthenticatorResponse671     fn default() -> &'a GetAssertionAuthenticatorResponse {
672         <GetAssertionAuthenticatorResponse as ::protobuf::Message>::default_instance()
673     }
674 }
675 
676 impl GetAssertionAuthenticatorResponse {
new() -> GetAssertionAuthenticatorResponse677     pub fn new() -> GetAssertionAuthenticatorResponse {
678         ::std::default::Default::default()
679     }
680 
681     // .cryptohome.fido.CommonCredentialInfo info = 1;
682 
683 
get_info(&self) -> &CommonCredentialInfo684     pub fn get_info(&self) -> &CommonCredentialInfo {
685         self.info.as_ref().unwrap_or_else(|| <CommonCredentialInfo as ::protobuf::Message>::default_instance())
686     }
clear_info(&mut self)687     pub fn clear_info(&mut self) {
688         self.info.clear();
689     }
690 
has_info(&self) -> bool691     pub fn has_info(&self) -> bool {
692         self.info.is_some()
693     }
694 
695     // Param is passed by value, moved
set_info(&mut self, v: CommonCredentialInfo)696     pub fn set_info(&mut self, v: CommonCredentialInfo) {
697         self.info = ::protobuf::SingularPtrField::some(v);
698     }
699 
700     // Mutable pointer to the field.
701     // If field is not initialized, it is initialized with default value first.
mut_info(&mut self) -> &mut CommonCredentialInfo702     pub fn mut_info(&mut self) -> &mut CommonCredentialInfo {
703         if self.info.is_none() {
704             self.info.set_default();
705         }
706         self.info.as_mut().unwrap()
707     }
708 
709     // Take field
take_info(&mut self) -> CommonCredentialInfo710     pub fn take_info(&mut self) -> CommonCredentialInfo {
711         self.info.take().unwrap_or_else(|| CommonCredentialInfo::new())
712     }
713 
714     // bytes authenticator_data = 2;
715 
716 
get_authenticator_data(&self) -> &[u8]717     pub fn get_authenticator_data(&self) -> &[u8] {
718         &self.authenticator_data
719     }
clear_authenticator_data(&mut self)720     pub fn clear_authenticator_data(&mut self) {
721         self.authenticator_data.clear();
722     }
723 
724     // Param is passed by value, moved
set_authenticator_data(&mut self, v: ::std::vec::Vec<u8>)725     pub fn set_authenticator_data(&mut self, v: ::std::vec::Vec<u8>) {
726         self.authenticator_data = v;
727     }
728 
729     // Mutable pointer to the field.
730     // If field is not initialized, it is initialized with default value first.
mut_authenticator_data(&mut self) -> &mut ::std::vec::Vec<u8>731     pub fn mut_authenticator_data(&mut self) -> &mut ::std::vec::Vec<u8> {
732         &mut self.authenticator_data
733     }
734 
735     // Take field
take_authenticator_data(&mut self) -> ::std::vec::Vec<u8>736     pub fn take_authenticator_data(&mut self) -> ::std::vec::Vec<u8> {
737         ::std::mem::replace(&mut self.authenticator_data, ::std::vec::Vec::new())
738     }
739 
740     // bytes signature = 3;
741 
742 
get_signature(&self) -> &[u8]743     pub fn get_signature(&self) -> &[u8] {
744         &self.signature
745     }
clear_signature(&mut self)746     pub fn clear_signature(&mut self) {
747         self.signature.clear();
748     }
749 
750     // Param is passed by value, moved
set_signature(&mut self, v: ::std::vec::Vec<u8>)751     pub fn set_signature(&mut self, v: ::std::vec::Vec<u8>) {
752         self.signature = v;
753     }
754 
755     // Mutable pointer to the field.
756     // If field is not initialized, it is initialized with default value first.
mut_signature(&mut self) -> &mut ::std::vec::Vec<u8>757     pub fn mut_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
758         &mut self.signature
759     }
760 
761     // Take field
take_signature(&mut self) -> ::std::vec::Vec<u8>762     pub fn take_signature(&mut self) -> ::std::vec::Vec<u8> {
763         ::std::mem::replace(&mut self.signature, ::std::vec::Vec::new())
764     }
765 
766     // bytes user_handle = 4;
767 
768 
get_user_handle(&self) -> &[u8]769     pub fn get_user_handle(&self) -> &[u8] {
770         &self.user_handle
771     }
clear_user_handle(&mut self)772     pub fn clear_user_handle(&mut self) {
773         self.user_handle.clear();
774     }
775 
776     // Param is passed by value, moved
set_user_handle(&mut self, v: ::std::vec::Vec<u8>)777     pub fn set_user_handle(&mut self, v: ::std::vec::Vec<u8>) {
778         self.user_handle = v;
779     }
780 
781     // Mutable pointer to the field.
782     // If field is not initialized, it is initialized with default value first.
mut_user_handle(&mut self) -> &mut ::std::vec::Vec<u8>783     pub fn mut_user_handle(&mut self) -> &mut ::std::vec::Vec<u8> {
784         &mut self.user_handle
785     }
786 
787     // Take field
take_user_handle(&mut self) -> ::std::vec::Vec<u8>788     pub fn take_user_handle(&mut self) -> ::std::vec::Vec<u8> {
789         ::std::mem::replace(&mut self.user_handle, ::std::vec::Vec::new())
790     }
791 
792     // bool echo_appid_extension = 5;
793 
794 
get_echo_appid_extension(&self) -> bool795     pub fn get_echo_appid_extension(&self) -> bool {
796         self.echo_appid_extension
797     }
clear_echo_appid_extension(&mut self)798     pub fn clear_echo_appid_extension(&mut self) {
799         self.echo_appid_extension = false;
800     }
801 
802     // Param is passed by value, moved
set_echo_appid_extension(&mut self, v: bool)803     pub fn set_echo_appid_extension(&mut self, v: bool) {
804         self.echo_appid_extension = v;
805     }
806 
807     // bool appid_extension = 6;
808 
809 
get_appid_extension(&self) -> bool810     pub fn get_appid_extension(&self) -> bool {
811         self.appid_extension
812     }
clear_appid_extension(&mut self)813     pub fn clear_appid_extension(&mut self) {
814         self.appid_extension = false;
815     }
816 
817     // Param is passed by value, moved
set_appid_extension(&mut self, v: bool)818     pub fn set_appid_extension(&mut self, v: bool) {
819         self.appid_extension = v;
820     }
821 }
822 
823 impl ::protobuf::Message for GetAssertionAuthenticatorResponse {
is_initialized(&self) -> bool824     fn is_initialized(&self) -> bool {
825         for v in &self.info {
826             if !v.is_initialized() {
827                 return false;
828             }
829         };
830         true
831     }
832 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>833     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
834         while !is.eof()? {
835             let (field_number, wire_type) = is.read_tag_unpack()?;
836             match field_number {
837                 1 => {
838                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.info)?;
839                 },
840                 2 => {
841                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.authenticator_data)?;
842                 },
843                 3 => {
844                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.signature)?;
845                 },
846                 4 => {
847                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.user_handle)?;
848                 },
849                 5 => {
850                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
851                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
852                     }
853                     let tmp = is.read_bool()?;
854                     self.echo_appid_extension = tmp;
855                 },
856                 6 => {
857                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
858                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
859                     }
860                     let tmp = is.read_bool()?;
861                     self.appid_extension = tmp;
862                 },
863                 _ => {
864                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
865                 },
866             };
867         }
868         ::std::result::Result::Ok(())
869     }
870 
871     // Compute sizes of nested messages
872     #[allow(unused_variables)]
compute_size(&self) -> u32873     fn compute_size(&self) -> u32 {
874         let mut my_size = 0;
875         if let Some(ref v) = self.info.as_ref() {
876             let len = v.compute_size();
877             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
878         }
879         if !self.authenticator_data.is_empty() {
880             my_size += ::protobuf::rt::bytes_size(2, &self.authenticator_data);
881         }
882         if !self.signature.is_empty() {
883             my_size += ::protobuf::rt::bytes_size(3, &self.signature);
884         }
885         if !self.user_handle.is_empty() {
886             my_size += ::protobuf::rt::bytes_size(4, &self.user_handle);
887         }
888         if self.echo_appid_extension != false {
889             my_size += 2;
890         }
891         if self.appid_extension != false {
892             my_size += 2;
893         }
894         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
895         self.cached_size.set(my_size);
896         my_size
897     }
898 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>899     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
900         if let Some(ref v) = self.info.as_ref() {
901             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
902             os.write_raw_varint32(v.get_cached_size())?;
903             v.write_to_with_cached_sizes(os)?;
904         }
905         if !self.authenticator_data.is_empty() {
906             os.write_bytes(2, &self.authenticator_data)?;
907         }
908         if !self.signature.is_empty() {
909             os.write_bytes(3, &self.signature)?;
910         }
911         if !self.user_handle.is_empty() {
912             os.write_bytes(4, &self.user_handle)?;
913         }
914         if self.echo_appid_extension != false {
915             os.write_bool(5, self.echo_appid_extension)?;
916         }
917         if self.appid_extension != false {
918             os.write_bool(6, self.appid_extension)?;
919         }
920         os.write_unknown_fields(self.get_unknown_fields())?;
921         ::std::result::Result::Ok(())
922     }
923 
get_cached_size(&self) -> u32924     fn get_cached_size(&self) -> u32 {
925         self.cached_size.get()
926     }
927 
get_unknown_fields(&self) -> &::protobuf::UnknownFields928     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
929         &self.unknown_fields
930     }
931 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields932     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
933         &mut self.unknown_fields
934     }
935 
as_any(&self) -> &dyn (::std::any::Any)936     fn as_any(&self) -> &dyn (::std::any::Any) {
937         self as &dyn (::std::any::Any)
938     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)939     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
940         self as &mut dyn (::std::any::Any)
941     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>942     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
943         self
944     }
945 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor946     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
947         Self::descriptor_static()
948     }
949 
new() -> GetAssertionAuthenticatorResponse950     fn new() -> GetAssertionAuthenticatorResponse {
951         GetAssertionAuthenticatorResponse::new()
952     }
953 
default_instance() -> &'static GetAssertionAuthenticatorResponse954     fn default_instance() -> &'static GetAssertionAuthenticatorResponse {
955         static instance: ::protobuf::rt::LazyV2<GetAssertionAuthenticatorResponse> = ::protobuf::rt::LazyV2::INIT;
956         instance.get(GetAssertionAuthenticatorResponse::new)
957     }
958 }
959 
960 impl ::protobuf::Clear for GetAssertionAuthenticatorResponse {
clear(&mut self)961     fn clear(&mut self) {
962         self.info.clear();
963         self.authenticator_data.clear();
964         self.signature.clear();
965         self.user_handle.clear();
966         self.echo_appid_extension = false;
967         self.appid_extension = false;
968         self.unknown_fields.clear();
969     }
970 }
971 
972 impl ::protobuf::reflect::ProtobufValue for GetAssertionAuthenticatorResponse {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef973     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
974         ::protobuf::reflect::ReflectValueRef::Message(self)
975     }
976 }
977 
978 #[derive(PartialEq,Clone,Default,Debug)]
979 pub struct PublicKeyCredentialRpEntity {
980     // message fields
981     pub id: ::std::string::String,
982     pub name: ::std::string::String,
983     pub icon: ::protobuf::SingularPtrField<Url>,
984     // special fields
985     pub unknown_fields: ::protobuf::UnknownFields,
986     pub cached_size: ::protobuf::CachedSize,
987 }
988 
989 impl<'a> ::std::default::Default for &'a PublicKeyCredentialRpEntity {
default() -> &'a PublicKeyCredentialRpEntity990     fn default() -> &'a PublicKeyCredentialRpEntity {
991         <PublicKeyCredentialRpEntity as ::protobuf::Message>::default_instance()
992     }
993 }
994 
995 impl PublicKeyCredentialRpEntity {
new() -> PublicKeyCredentialRpEntity996     pub fn new() -> PublicKeyCredentialRpEntity {
997         ::std::default::Default::default()
998     }
999 
1000     // string id = 1;
1001 
1002 
get_id(&self) -> &str1003     pub fn get_id(&self) -> &str {
1004         &self.id
1005     }
clear_id(&mut self)1006     pub fn clear_id(&mut self) {
1007         self.id.clear();
1008     }
1009 
1010     // Param is passed by value, moved
set_id(&mut self, v: ::std::string::String)1011     pub fn set_id(&mut self, v: ::std::string::String) {
1012         self.id = v;
1013     }
1014 
1015     // Mutable pointer to the field.
1016     // If field is not initialized, it is initialized with default value first.
mut_id(&mut self) -> &mut ::std::string::String1017     pub fn mut_id(&mut self) -> &mut ::std::string::String {
1018         &mut self.id
1019     }
1020 
1021     // Take field
take_id(&mut self) -> ::std::string::String1022     pub fn take_id(&mut self) -> ::std::string::String {
1023         ::std::mem::replace(&mut self.id, ::std::string::String::new())
1024     }
1025 
1026     // string name = 2;
1027 
1028 
get_name(&self) -> &str1029     pub fn get_name(&self) -> &str {
1030         &self.name
1031     }
clear_name(&mut self)1032     pub fn clear_name(&mut self) {
1033         self.name.clear();
1034     }
1035 
1036     // Param is passed by value, moved
set_name(&mut self, v: ::std::string::String)1037     pub fn set_name(&mut self, v: ::std::string::String) {
1038         self.name = v;
1039     }
1040 
1041     // Mutable pointer to the field.
1042     // If field is not initialized, it is initialized with default value first.
mut_name(&mut self) -> &mut ::std::string::String1043     pub fn mut_name(&mut self) -> &mut ::std::string::String {
1044         &mut self.name
1045     }
1046 
1047     // Take field
take_name(&mut self) -> ::std::string::String1048     pub fn take_name(&mut self) -> ::std::string::String {
1049         ::std::mem::replace(&mut self.name, ::std::string::String::new())
1050     }
1051 
1052     // .cryptohome.fido.Url icon = 3;
1053 
1054 
get_icon(&self) -> &Url1055     pub fn get_icon(&self) -> &Url {
1056         self.icon.as_ref().unwrap_or_else(|| <Url as ::protobuf::Message>::default_instance())
1057     }
clear_icon(&mut self)1058     pub fn clear_icon(&mut self) {
1059         self.icon.clear();
1060     }
1061 
has_icon(&self) -> bool1062     pub fn has_icon(&self) -> bool {
1063         self.icon.is_some()
1064     }
1065 
1066     // Param is passed by value, moved
set_icon(&mut self, v: Url)1067     pub fn set_icon(&mut self, v: Url) {
1068         self.icon = ::protobuf::SingularPtrField::some(v);
1069     }
1070 
1071     // Mutable pointer to the field.
1072     // If field is not initialized, it is initialized with default value first.
mut_icon(&mut self) -> &mut Url1073     pub fn mut_icon(&mut self) -> &mut Url {
1074         if self.icon.is_none() {
1075             self.icon.set_default();
1076         }
1077         self.icon.as_mut().unwrap()
1078     }
1079 
1080     // Take field
take_icon(&mut self) -> Url1081     pub fn take_icon(&mut self) -> Url {
1082         self.icon.take().unwrap_or_else(|| Url::new())
1083     }
1084 }
1085 
1086 impl ::protobuf::Message for PublicKeyCredentialRpEntity {
is_initialized(&self) -> bool1087     fn is_initialized(&self) -> bool {
1088         for v in &self.icon {
1089             if !v.is_initialized() {
1090                 return false;
1091             }
1092         };
1093         true
1094     }
1095 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1096     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1097         while !is.eof()? {
1098             let (field_number, wire_type) = is.read_tag_unpack()?;
1099             match field_number {
1100                 1 => {
1101                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
1102                 },
1103                 2 => {
1104                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
1105                 },
1106                 3 => {
1107                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.icon)?;
1108                 },
1109                 _ => {
1110                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1111                 },
1112             };
1113         }
1114         ::std::result::Result::Ok(())
1115     }
1116 
1117     // Compute sizes of nested messages
1118     #[allow(unused_variables)]
compute_size(&self) -> u321119     fn compute_size(&self) -> u32 {
1120         let mut my_size = 0;
1121         if !self.id.is_empty() {
1122             my_size += ::protobuf::rt::string_size(1, &self.id);
1123         }
1124         if !self.name.is_empty() {
1125             my_size += ::protobuf::rt::string_size(2, &self.name);
1126         }
1127         if let Some(ref v) = self.icon.as_ref() {
1128             let len = v.compute_size();
1129             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1130         }
1131         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1132         self.cached_size.set(my_size);
1133         my_size
1134     }
1135 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1136     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1137         if !self.id.is_empty() {
1138             os.write_string(1, &self.id)?;
1139         }
1140         if !self.name.is_empty() {
1141             os.write_string(2, &self.name)?;
1142         }
1143         if let Some(ref v) = self.icon.as_ref() {
1144             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1145             os.write_raw_varint32(v.get_cached_size())?;
1146             v.write_to_with_cached_sizes(os)?;
1147         }
1148         os.write_unknown_fields(self.get_unknown_fields())?;
1149         ::std::result::Result::Ok(())
1150     }
1151 
get_cached_size(&self) -> u321152     fn get_cached_size(&self) -> u32 {
1153         self.cached_size.get()
1154     }
1155 
get_unknown_fields(&self) -> &::protobuf::UnknownFields1156     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1157         &self.unknown_fields
1158     }
1159 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1160     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1161         &mut self.unknown_fields
1162     }
1163 
as_any(&self) -> &dyn (::std::any::Any)1164     fn as_any(&self) -> &dyn (::std::any::Any) {
1165         self as &dyn (::std::any::Any)
1166     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1167     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1168         self as &mut dyn (::std::any::Any)
1169     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1170     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1171         self
1172     }
1173 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1174     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1175         Self::descriptor_static()
1176     }
1177 
new() -> PublicKeyCredentialRpEntity1178     fn new() -> PublicKeyCredentialRpEntity {
1179         PublicKeyCredentialRpEntity::new()
1180     }
1181 
default_instance() -> &'static PublicKeyCredentialRpEntity1182     fn default_instance() -> &'static PublicKeyCredentialRpEntity {
1183         static instance: ::protobuf::rt::LazyV2<PublicKeyCredentialRpEntity> = ::protobuf::rt::LazyV2::INIT;
1184         instance.get(PublicKeyCredentialRpEntity::new)
1185     }
1186 }
1187 
1188 impl ::protobuf::Clear for PublicKeyCredentialRpEntity {
clear(&mut self)1189     fn clear(&mut self) {
1190         self.id.clear();
1191         self.name.clear();
1192         self.icon.clear();
1193         self.unknown_fields.clear();
1194     }
1195 }
1196 
1197 impl ::protobuf::reflect::ProtobufValue for PublicKeyCredentialRpEntity {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1198     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1199         ::protobuf::reflect::ReflectValueRef::Message(self)
1200     }
1201 }
1202 
1203 #[derive(PartialEq,Clone,Default,Debug)]
1204 pub struct PublicKeyCredentialUserEntity {
1205     // message fields
1206     pub id: ::std::vec::Vec<u8>,
1207     pub name: ::std::string::String,
1208     pub icon: ::protobuf::SingularPtrField<Url>,
1209     pub display_name: ::std::string::String,
1210     // special fields
1211     pub unknown_fields: ::protobuf::UnknownFields,
1212     pub cached_size: ::protobuf::CachedSize,
1213 }
1214 
1215 impl<'a> ::std::default::Default for &'a PublicKeyCredentialUserEntity {
default() -> &'a PublicKeyCredentialUserEntity1216     fn default() -> &'a PublicKeyCredentialUserEntity {
1217         <PublicKeyCredentialUserEntity as ::protobuf::Message>::default_instance()
1218     }
1219 }
1220 
1221 impl PublicKeyCredentialUserEntity {
new() -> PublicKeyCredentialUserEntity1222     pub fn new() -> PublicKeyCredentialUserEntity {
1223         ::std::default::Default::default()
1224     }
1225 
1226     // bytes id = 1;
1227 
1228 
get_id(&self) -> &[u8]1229     pub fn get_id(&self) -> &[u8] {
1230         &self.id
1231     }
clear_id(&mut self)1232     pub fn clear_id(&mut self) {
1233         self.id.clear();
1234     }
1235 
1236     // Param is passed by value, moved
set_id(&mut self, v: ::std::vec::Vec<u8>)1237     pub fn set_id(&mut self, v: ::std::vec::Vec<u8>) {
1238         self.id = v;
1239     }
1240 
1241     // Mutable pointer to the field.
1242     // If field is not initialized, it is initialized with default value first.
mut_id(&mut self) -> &mut ::std::vec::Vec<u8>1243     pub fn mut_id(&mut self) -> &mut ::std::vec::Vec<u8> {
1244         &mut self.id
1245     }
1246 
1247     // Take field
take_id(&mut self) -> ::std::vec::Vec<u8>1248     pub fn take_id(&mut self) -> ::std::vec::Vec<u8> {
1249         ::std::mem::replace(&mut self.id, ::std::vec::Vec::new())
1250     }
1251 
1252     // string name = 2;
1253 
1254 
get_name(&self) -> &str1255     pub fn get_name(&self) -> &str {
1256         &self.name
1257     }
clear_name(&mut self)1258     pub fn clear_name(&mut self) {
1259         self.name.clear();
1260     }
1261 
1262     // Param is passed by value, moved
set_name(&mut self, v: ::std::string::String)1263     pub fn set_name(&mut self, v: ::std::string::String) {
1264         self.name = v;
1265     }
1266 
1267     // Mutable pointer to the field.
1268     // If field is not initialized, it is initialized with default value first.
mut_name(&mut self) -> &mut ::std::string::String1269     pub fn mut_name(&mut self) -> &mut ::std::string::String {
1270         &mut self.name
1271     }
1272 
1273     // Take field
take_name(&mut self) -> ::std::string::String1274     pub fn take_name(&mut self) -> ::std::string::String {
1275         ::std::mem::replace(&mut self.name, ::std::string::String::new())
1276     }
1277 
1278     // .cryptohome.fido.Url icon = 3;
1279 
1280 
get_icon(&self) -> &Url1281     pub fn get_icon(&self) -> &Url {
1282         self.icon.as_ref().unwrap_or_else(|| <Url as ::protobuf::Message>::default_instance())
1283     }
clear_icon(&mut self)1284     pub fn clear_icon(&mut self) {
1285         self.icon.clear();
1286     }
1287 
has_icon(&self) -> bool1288     pub fn has_icon(&self) -> bool {
1289         self.icon.is_some()
1290     }
1291 
1292     // Param is passed by value, moved
set_icon(&mut self, v: Url)1293     pub fn set_icon(&mut self, v: Url) {
1294         self.icon = ::protobuf::SingularPtrField::some(v);
1295     }
1296 
1297     // Mutable pointer to the field.
1298     // If field is not initialized, it is initialized with default value first.
mut_icon(&mut self) -> &mut Url1299     pub fn mut_icon(&mut self) -> &mut Url {
1300         if self.icon.is_none() {
1301             self.icon.set_default();
1302         }
1303         self.icon.as_mut().unwrap()
1304     }
1305 
1306     // Take field
take_icon(&mut self) -> Url1307     pub fn take_icon(&mut self) -> Url {
1308         self.icon.take().unwrap_or_else(|| Url::new())
1309     }
1310 
1311     // string display_name = 4;
1312 
1313 
get_display_name(&self) -> &str1314     pub fn get_display_name(&self) -> &str {
1315         &self.display_name
1316     }
clear_display_name(&mut self)1317     pub fn clear_display_name(&mut self) {
1318         self.display_name.clear();
1319     }
1320 
1321     // Param is passed by value, moved
set_display_name(&mut self, v: ::std::string::String)1322     pub fn set_display_name(&mut self, v: ::std::string::String) {
1323         self.display_name = v;
1324     }
1325 
1326     // Mutable pointer to the field.
1327     // If field is not initialized, it is initialized with default value first.
mut_display_name(&mut self) -> &mut ::std::string::String1328     pub fn mut_display_name(&mut self) -> &mut ::std::string::String {
1329         &mut self.display_name
1330     }
1331 
1332     // Take field
take_display_name(&mut self) -> ::std::string::String1333     pub fn take_display_name(&mut self) -> ::std::string::String {
1334         ::std::mem::replace(&mut self.display_name, ::std::string::String::new())
1335     }
1336 }
1337 
1338 impl ::protobuf::Message for PublicKeyCredentialUserEntity {
is_initialized(&self) -> bool1339     fn is_initialized(&self) -> bool {
1340         for v in &self.icon {
1341             if !v.is_initialized() {
1342                 return false;
1343             }
1344         };
1345         true
1346     }
1347 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1348     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1349         while !is.eof()? {
1350             let (field_number, wire_type) = is.read_tag_unpack()?;
1351             match field_number {
1352                 1 => {
1353                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.id)?;
1354                 },
1355                 2 => {
1356                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
1357                 },
1358                 3 => {
1359                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.icon)?;
1360                 },
1361                 4 => {
1362                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?;
1363                 },
1364                 _ => {
1365                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1366                 },
1367             };
1368         }
1369         ::std::result::Result::Ok(())
1370     }
1371 
1372     // Compute sizes of nested messages
1373     #[allow(unused_variables)]
compute_size(&self) -> u321374     fn compute_size(&self) -> u32 {
1375         let mut my_size = 0;
1376         if !self.id.is_empty() {
1377             my_size += ::protobuf::rt::bytes_size(1, &self.id);
1378         }
1379         if !self.name.is_empty() {
1380             my_size += ::protobuf::rt::string_size(2, &self.name);
1381         }
1382         if let Some(ref v) = self.icon.as_ref() {
1383             let len = v.compute_size();
1384             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1385         }
1386         if !self.display_name.is_empty() {
1387             my_size += ::protobuf::rt::string_size(4, &self.display_name);
1388         }
1389         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1390         self.cached_size.set(my_size);
1391         my_size
1392     }
1393 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1394     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1395         if !self.id.is_empty() {
1396             os.write_bytes(1, &self.id)?;
1397         }
1398         if !self.name.is_empty() {
1399             os.write_string(2, &self.name)?;
1400         }
1401         if let Some(ref v) = self.icon.as_ref() {
1402             os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1403             os.write_raw_varint32(v.get_cached_size())?;
1404             v.write_to_with_cached_sizes(os)?;
1405         }
1406         if !self.display_name.is_empty() {
1407             os.write_string(4, &self.display_name)?;
1408         }
1409         os.write_unknown_fields(self.get_unknown_fields())?;
1410         ::std::result::Result::Ok(())
1411     }
1412 
get_cached_size(&self) -> u321413     fn get_cached_size(&self) -> u32 {
1414         self.cached_size.get()
1415     }
1416 
get_unknown_fields(&self) -> &::protobuf::UnknownFields1417     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1418         &self.unknown_fields
1419     }
1420 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1421     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1422         &mut self.unknown_fields
1423     }
1424 
as_any(&self) -> &dyn (::std::any::Any)1425     fn as_any(&self) -> &dyn (::std::any::Any) {
1426         self as &dyn (::std::any::Any)
1427     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1428     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1429         self as &mut dyn (::std::any::Any)
1430     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1431     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1432         self
1433     }
1434 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1435     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1436         Self::descriptor_static()
1437     }
1438 
new() -> PublicKeyCredentialUserEntity1439     fn new() -> PublicKeyCredentialUserEntity {
1440         PublicKeyCredentialUserEntity::new()
1441     }
1442 
default_instance() -> &'static PublicKeyCredentialUserEntity1443     fn default_instance() -> &'static PublicKeyCredentialUserEntity {
1444         static instance: ::protobuf::rt::LazyV2<PublicKeyCredentialUserEntity> = ::protobuf::rt::LazyV2::INIT;
1445         instance.get(PublicKeyCredentialUserEntity::new)
1446     }
1447 }
1448 
1449 impl ::protobuf::Clear for PublicKeyCredentialUserEntity {
clear(&mut self)1450     fn clear(&mut self) {
1451         self.id.clear();
1452         self.name.clear();
1453         self.icon.clear();
1454         self.display_name.clear();
1455         self.unknown_fields.clear();
1456     }
1457 }
1458 
1459 impl ::protobuf::reflect::ProtobufValue for PublicKeyCredentialUserEntity {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1460     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1461         ::protobuf::reflect::ReflectValueRef::Message(self)
1462     }
1463 }
1464 
1465 #[derive(PartialEq,Clone,Default,Debug)]
1466 pub struct PublicKeyCredentialParameters {
1467     // message fields
1468     pub field_type: PublicKeyCredentialType,
1469     pub algorithm_identifier: i32,
1470     // special fields
1471     pub unknown_fields: ::protobuf::UnknownFields,
1472     pub cached_size: ::protobuf::CachedSize,
1473 }
1474 
1475 impl<'a> ::std::default::Default for &'a PublicKeyCredentialParameters {
default() -> &'a PublicKeyCredentialParameters1476     fn default() -> &'a PublicKeyCredentialParameters {
1477         <PublicKeyCredentialParameters as ::protobuf::Message>::default_instance()
1478     }
1479 }
1480 
1481 impl PublicKeyCredentialParameters {
new() -> PublicKeyCredentialParameters1482     pub fn new() -> PublicKeyCredentialParameters {
1483         ::std::default::Default::default()
1484     }
1485 
1486     // .cryptohome.fido.PublicKeyCredentialType type = 1;
1487 
1488 
get_field_type(&self) -> PublicKeyCredentialType1489     pub fn get_field_type(&self) -> PublicKeyCredentialType {
1490         self.field_type
1491     }
clear_field_type(&mut self)1492     pub fn clear_field_type(&mut self) {
1493         self.field_type = PublicKeyCredentialType::PUBLIC_KEY;
1494     }
1495 
1496     // Param is passed by value, moved
set_field_type(&mut self, v: PublicKeyCredentialType)1497     pub fn set_field_type(&mut self, v: PublicKeyCredentialType) {
1498         self.field_type = v;
1499     }
1500 
1501     // int32 algorithm_identifier = 2;
1502 
1503 
get_algorithm_identifier(&self) -> i321504     pub fn get_algorithm_identifier(&self) -> i32 {
1505         self.algorithm_identifier
1506     }
clear_algorithm_identifier(&mut self)1507     pub fn clear_algorithm_identifier(&mut self) {
1508         self.algorithm_identifier = 0;
1509     }
1510 
1511     // Param is passed by value, moved
set_algorithm_identifier(&mut self, v: i32)1512     pub fn set_algorithm_identifier(&mut self, v: i32) {
1513         self.algorithm_identifier = v;
1514     }
1515 }
1516 
1517 impl ::protobuf::Message for PublicKeyCredentialParameters {
is_initialized(&self) -> bool1518     fn is_initialized(&self) -> bool {
1519         true
1520     }
1521 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1522     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1523         while !is.eof()? {
1524             let (field_number, wire_type) = is.read_tag_unpack()?;
1525             match field_number {
1526                 1 => {
1527                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 1, &mut self.unknown_fields)?
1528                 },
1529                 2 => {
1530                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
1531                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1532                     }
1533                     let tmp = is.read_int32()?;
1534                     self.algorithm_identifier = tmp;
1535                 },
1536                 _ => {
1537                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1538                 },
1539             };
1540         }
1541         ::std::result::Result::Ok(())
1542     }
1543 
1544     // Compute sizes of nested messages
1545     #[allow(unused_variables)]
compute_size(&self) -> u321546     fn compute_size(&self) -> u32 {
1547         let mut my_size = 0;
1548         if self.field_type != PublicKeyCredentialType::PUBLIC_KEY {
1549             my_size += ::protobuf::rt::enum_size(1, self.field_type);
1550         }
1551         if self.algorithm_identifier != 0 {
1552             my_size += ::protobuf::rt::value_size(2, self.algorithm_identifier, ::protobuf::wire_format::WireTypeVarint);
1553         }
1554         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1555         self.cached_size.set(my_size);
1556         my_size
1557     }
1558 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1559     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1560         if self.field_type != PublicKeyCredentialType::PUBLIC_KEY {
1561             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.field_type))?;
1562         }
1563         if self.algorithm_identifier != 0 {
1564             os.write_int32(2, self.algorithm_identifier)?;
1565         }
1566         os.write_unknown_fields(self.get_unknown_fields())?;
1567         ::std::result::Result::Ok(())
1568     }
1569 
get_cached_size(&self) -> u321570     fn get_cached_size(&self) -> u32 {
1571         self.cached_size.get()
1572     }
1573 
get_unknown_fields(&self) -> &::protobuf::UnknownFields1574     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1575         &self.unknown_fields
1576     }
1577 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1578     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1579         &mut self.unknown_fields
1580     }
1581 
as_any(&self) -> &dyn (::std::any::Any)1582     fn as_any(&self) -> &dyn (::std::any::Any) {
1583         self as &dyn (::std::any::Any)
1584     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1585     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1586         self as &mut dyn (::std::any::Any)
1587     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1588     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1589         self
1590     }
1591 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1592     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1593         Self::descriptor_static()
1594     }
1595 
new() -> PublicKeyCredentialParameters1596     fn new() -> PublicKeyCredentialParameters {
1597         PublicKeyCredentialParameters::new()
1598     }
1599 
default_instance() -> &'static PublicKeyCredentialParameters1600     fn default_instance() -> &'static PublicKeyCredentialParameters {
1601         static instance: ::protobuf::rt::LazyV2<PublicKeyCredentialParameters> = ::protobuf::rt::LazyV2::INIT;
1602         instance.get(PublicKeyCredentialParameters::new)
1603     }
1604 }
1605 
1606 impl ::protobuf::Clear for PublicKeyCredentialParameters {
clear(&mut self)1607     fn clear(&mut self) {
1608         self.field_type = PublicKeyCredentialType::PUBLIC_KEY;
1609         self.algorithm_identifier = 0;
1610         self.unknown_fields.clear();
1611     }
1612 }
1613 
1614 impl ::protobuf::reflect::ProtobufValue for PublicKeyCredentialParameters {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1615     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1616         ::protobuf::reflect::ReflectValueRef::Message(self)
1617     }
1618 }
1619 
1620 #[derive(PartialEq,Clone,Default,Debug)]
1621 pub struct CableAuthentication {
1622     // message fields
1623     pub version: u32,
1624     pub client_eid: ::std::vec::Vec<u8>,
1625     pub authenticator_eid: ::std::vec::Vec<u8>,
1626     pub session_pre_key: ::std::vec::Vec<u8>,
1627     // special fields
1628     pub unknown_fields: ::protobuf::UnknownFields,
1629     pub cached_size: ::protobuf::CachedSize,
1630 }
1631 
1632 impl<'a> ::std::default::Default for &'a CableAuthentication {
default() -> &'a CableAuthentication1633     fn default() -> &'a CableAuthentication {
1634         <CableAuthentication as ::protobuf::Message>::default_instance()
1635     }
1636 }
1637 
1638 impl CableAuthentication {
new() -> CableAuthentication1639     pub fn new() -> CableAuthentication {
1640         ::std::default::Default::default()
1641     }
1642 
1643     // uint32 version = 1;
1644 
1645 
get_version(&self) -> u321646     pub fn get_version(&self) -> u32 {
1647         self.version
1648     }
clear_version(&mut self)1649     pub fn clear_version(&mut self) {
1650         self.version = 0;
1651     }
1652 
1653     // Param is passed by value, moved
set_version(&mut self, v: u32)1654     pub fn set_version(&mut self, v: u32) {
1655         self.version = v;
1656     }
1657 
1658     // bytes client_eid = 2;
1659 
1660 
get_client_eid(&self) -> &[u8]1661     pub fn get_client_eid(&self) -> &[u8] {
1662         &self.client_eid
1663     }
clear_client_eid(&mut self)1664     pub fn clear_client_eid(&mut self) {
1665         self.client_eid.clear();
1666     }
1667 
1668     // Param is passed by value, moved
set_client_eid(&mut self, v: ::std::vec::Vec<u8>)1669     pub fn set_client_eid(&mut self, v: ::std::vec::Vec<u8>) {
1670         self.client_eid = v;
1671     }
1672 
1673     // Mutable pointer to the field.
1674     // If field is not initialized, it is initialized with default value first.
mut_client_eid(&mut self) -> &mut ::std::vec::Vec<u8>1675     pub fn mut_client_eid(&mut self) -> &mut ::std::vec::Vec<u8> {
1676         &mut self.client_eid
1677     }
1678 
1679     // Take field
take_client_eid(&mut self) -> ::std::vec::Vec<u8>1680     pub fn take_client_eid(&mut self) -> ::std::vec::Vec<u8> {
1681         ::std::mem::replace(&mut self.client_eid, ::std::vec::Vec::new())
1682     }
1683 
1684     // bytes authenticator_eid = 3;
1685 
1686 
get_authenticator_eid(&self) -> &[u8]1687     pub fn get_authenticator_eid(&self) -> &[u8] {
1688         &self.authenticator_eid
1689     }
clear_authenticator_eid(&mut self)1690     pub fn clear_authenticator_eid(&mut self) {
1691         self.authenticator_eid.clear();
1692     }
1693 
1694     // Param is passed by value, moved
set_authenticator_eid(&mut self, v: ::std::vec::Vec<u8>)1695     pub fn set_authenticator_eid(&mut self, v: ::std::vec::Vec<u8>) {
1696         self.authenticator_eid = v;
1697     }
1698 
1699     // Mutable pointer to the field.
1700     // If field is not initialized, it is initialized with default value first.
mut_authenticator_eid(&mut self) -> &mut ::std::vec::Vec<u8>1701     pub fn mut_authenticator_eid(&mut self) -> &mut ::std::vec::Vec<u8> {
1702         &mut self.authenticator_eid
1703     }
1704 
1705     // Take field
take_authenticator_eid(&mut self) -> ::std::vec::Vec<u8>1706     pub fn take_authenticator_eid(&mut self) -> ::std::vec::Vec<u8> {
1707         ::std::mem::replace(&mut self.authenticator_eid, ::std::vec::Vec::new())
1708     }
1709 
1710     // bytes session_pre_key = 4;
1711 
1712 
get_session_pre_key(&self) -> &[u8]1713     pub fn get_session_pre_key(&self) -> &[u8] {
1714         &self.session_pre_key
1715     }
clear_session_pre_key(&mut self)1716     pub fn clear_session_pre_key(&mut self) {
1717         self.session_pre_key.clear();
1718     }
1719 
1720     // Param is passed by value, moved
set_session_pre_key(&mut self, v: ::std::vec::Vec<u8>)1721     pub fn set_session_pre_key(&mut self, v: ::std::vec::Vec<u8>) {
1722         self.session_pre_key = v;
1723     }
1724 
1725     // Mutable pointer to the field.
1726     // If field is not initialized, it is initialized with default value first.
mut_session_pre_key(&mut self) -> &mut ::std::vec::Vec<u8>1727     pub fn mut_session_pre_key(&mut self) -> &mut ::std::vec::Vec<u8> {
1728         &mut self.session_pre_key
1729     }
1730 
1731     // Take field
take_session_pre_key(&mut self) -> ::std::vec::Vec<u8>1732     pub fn take_session_pre_key(&mut self) -> ::std::vec::Vec<u8> {
1733         ::std::mem::replace(&mut self.session_pre_key, ::std::vec::Vec::new())
1734     }
1735 }
1736 
1737 impl ::protobuf::Message for CableAuthentication {
is_initialized(&self) -> bool1738     fn is_initialized(&self) -> bool {
1739         true
1740     }
1741 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1742     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1743         while !is.eof()? {
1744             let (field_number, wire_type) = is.read_tag_unpack()?;
1745             match field_number {
1746                 1 => {
1747                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
1748                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1749                     }
1750                     let tmp = is.read_uint32()?;
1751                     self.version = tmp;
1752                 },
1753                 2 => {
1754                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.client_eid)?;
1755                 },
1756                 3 => {
1757                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.authenticator_eid)?;
1758                 },
1759                 4 => {
1760                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.session_pre_key)?;
1761                 },
1762                 _ => {
1763                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1764                 },
1765             };
1766         }
1767         ::std::result::Result::Ok(())
1768     }
1769 
1770     // Compute sizes of nested messages
1771     #[allow(unused_variables)]
compute_size(&self) -> u321772     fn compute_size(&self) -> u32 {
1773         let mut my_size = 0;
1774         if self.version != 0 {
1775             my_size += ::protobuf::rt::value_size(1, self.version, ::protobuf::wire_format::WireTypeVarint);
1776         }
1777         if !self.client_eid.is_empty() {
1778             my_size += ::protobuf::rt::bytes_size(2, &self.client_eid);
1779         }
1780         if !self.authenticator_eid.is_empty() {
1781             my_size += ::protobuf::rt::bytes_size(3, &self.authenticator_eid);
1782         }
1783         if !self.session_pre_key.is_empty() {
1784             my_size += ::protobuf::rt::bytes_size(4, &self.session_pre_key);
1785         }
1786         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1787         self.cached_size.set(my_size);
1788         my_size
1789     }
1790 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1791     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1792         if self.version != 0 {
1793             os.write_uint32(1, self.version)?;
1794         }
1795         if !self.client_eid.is_empty() {
1796             os.write_bytes(2, &self.client_eid)?;
1797         }
1798         if !self.authenticator_eid.is_empty() {
1799             os.write_bytes(3, &self.authenticator_eid)?;
1800         }
1801         if !self.session_pre_key.is_empty() {
1802             os.write_bytes(4, &self.session_pre_key)?;
1803         }
1804         os.write_unknown_fields(self.get_unknown_fields())?;
1805         ::std::result::Result::Ok(())
1806     }
1807 
get_cached_size(&self) -> u321808     fn get_cached_size(&self) -> u32 {
1809         self.cached_size.get()
1810     }
1811 
get_unknown_fields(&self) -> &::protobuf::UnknownFields1812     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1813         &self.unknown_fields
1814     }
1815 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1816     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1817         &mut self.unknown_fields
1818     }
1819 
as_any(&self) -> &dyn (::std::any::Any)1820     fn as_any(&self) -> &dyn (::std::any::Any) {
1821         self as &dyn (::std::any::Any)
1822     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1823     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1824         self as &mut dyn (::std::any::Any)
1825     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1826     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1827         self
1828     }
1829 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1830     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1831         Self::descriptor_static()
1832     }
1833 
new() -> CableAuthentication1834     fn new() -> CableAuthentication {
1835         CableAuthentication::new()
1836     }
1837 
default_instance() -> &'static CableAuthentication1838     fn default_instance() -> &'static CableAuthentication {
1839         static instance: ::protobuf::rt::LazyV2<CableAuthentication> = ::protobuf::rt::LazyV2::INIT;
1840         instance.get(CableAuthentication::new)
1841     }
1842 }
1843 
1844 impl ::protobuf::Clear for CableAuthentication {
clear(&mut self)1845     fn clear(&mut self) {
1846         self.version = 0;
1847         self.client_eid.clear();
1848         self.authenticator_eid.clear();
1849         self.session_pre_key.clear();
1850         self.unknown_fields.clear();
1851     }
1852 }
1853 
1854 impl ::protobuf::reflect::ProtobufValue for CableAuthentication {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1855     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1856         ::protobuf::reflect::ReflectValueRef::Message(self)
1857     }
1858 }
1859 
1860 #[derive(PartialEq,Clone,Default,Debug)]
1861 pub struct CableRegistration {
1862     // message fields
1863     pub versions: ::std::vec::Vec<u8>,
1864     pub relying_party_public_key: ::std::vec::Vec<u8>,
1865     // special fields
1866     pub unknown_fields: ::protobuf::UnknownFields,
1867     pub cached_size: ::protobuf::CachedSize,
1868 }
1869 
1870 impl<'a> ::std::default::Default for &'a CableRegistration {
default() -> &'a CableRegistration1871     fn default() -> &'a CableRegistration {
1872         <CableRegistration as ::protobuf::Message>::default_instance()
1873     }
1874 }
1875 
1876 impl CableRegistration {
new() -> CableRegistration1877     pub fn new() -> CableRegistration {
1878         ::std::default::Default::default()
1879     }
1880 
1881     // bytes versions = 1;
1882 
1883 
get_versions(&self) -> &[u8]1884     pub fn get_versions(&self) -> &[u8] {
1885         &self.versions
1886     }
clear_versions(&mut self)1887     pub fn clear_versions(&mut self) {
1888         self.versions.clear();
1889     }
1890 
1891     // Param is passed by value, moved
set_versions(&mut self, v: ::std::vec::Vec<u8>)1892     pub fn set_versions(&mut self, v: ::std::vec::Vec<u8>) {
1893         self.versions = v;
1894     }
1895 
1896     // Mutable pointer to the field.
1897     // If field is not initialized, it is initialized with default value first.
mut_versions(&mut self) -> &mut ::std::vec::Vec<u8>1898     pub fn mut_versions(&mut self) -> &mut ::std::vec::Vec<u8> {
1899         &mut self.versions
1900     }
1901 
1902     // Take field
take_versions(&mut self) -> ::std::vec::Vec<u8>1903     pub fn take_versions(&mut self) -> ::std::vec::Vec<u8> {
1904         ::std::mem::replace(&mut self.versions, ::std::vec::Vec::new())
1905     }
1906 
1907     // bytes relying_party_public_key = 2;
1908 
1909 
get_relying_party_public_key(&self) -> &[u8]1910     pub fn get_relying_party_public_key(&self) -> &[u8] {
1911         &self.relying_party_public_key
1912     }
clear_relying_party_public_key(&mut self)1913     pub fn clear_relying_party_public_key(&mut self) {
1914         self.relying_party_public_key.clear();
1915     }
1916 
1917     // Param is passed by value, moved
set_relying_party_public_key(&mut self, v: ::std::vec::Vec<u8>)1918     pub fn set_relying_party_public_key(&mut self, v: ::std::vec::Vec<u8>) {
1919         self.relying_party_public_key = v;
1920     }
1921 
1922     // Mutable pointer to the field.
1923     // If field is not initialized, it is initialized with default value first.
mut_relying_party_public_key(&mut self) -> &mut ::std::vec::Vec<u8>1924     pub fn mut_relying_party_public_key(&mut self) -> &mut ::std::vec::Vec<u8> {
1925         &mut self.relying_party_public_key
1926     }
1927 
1928     // Take field
take_relying_party_public_key(&mut self) -> ::std::vec::Vec<u8>1929     pub fn take_relying_party_public_key(&mut self) -> ::std::vec::Vec<u8> {
1930         ::std::mem::replace(&mut self.relying_party_public_key, ::std::vec::Vec::new())
1931     }
1932 }
1933 
1934 impl ::protobuf::Message for CableRegistration {
is_initialized(&self) -> bool1935     fn is_initialized(&self) -> bool {
1936         true
1937     }
1938 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1939     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1940         while !is.eof()? {
1941             let (field_number, wire_type) = is.read_tag_unpack()?;
1942             match field_number {
1943                 1 => {
1944                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.versions)?;
1945                 },
1946                 2 => {
1947                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.relying_party_public_key)?;
1948                 },
1949                 _ => {
1950                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1951                 },
1952             };
1953         }
1954         ::std::result::Result::Ok(())
1955     }
1956 
1957     // Compute sizes of nested messages
1958     #[allow(unused_variables)]
compute_size(&self) -> u321959     fn compute_size(&self) -> u32 {
1960         let mut my_size = 0;
1961         if !self.versions.is_empty() {
1962             my_size += ::protobuf::rt::bytes_size(1, &self.versions);
1963         }
1964         if !self.relying_party_public_key.is_empty() {
1965             my_size += ::protobuf::rt::bytes_size(2, &self.relying_party_public_key);
1966         }
1967         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1968         self.cached_size.set(my_size);
1969         my_size
1970     }
1971 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1972     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1973         if !self.versions.is_empty() {
1974             os.write_bytes(1, &self.versions)?;
1975         }
1976         if !self.relying_party_public_key.is_empty() {
1977             os.write_bytes(2, &self.relying_party_public_key)?;
1978         }
1979         os.write_unknown_fields(self.get_unknown_fields())?;
1980         ::std::result::Result::Ok(())
1981     }
1982 
get_cached_size(&self) -> u321983     fn get_cached_size(&self) -> u32 {
1984         self.cached_size.get()
1985     }
1986 
get_unknown_fields(&self) -> &::protobuf::UnknownFields1987     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1988         &self.unknown_fields
1989     }
1990 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1991     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1992         &mut self.unknown_fields
1993     }
1994 
as_any(&self) -> &dyn (::std::any::Any)1995     fn as_any(&self) -> &dyn (::std::any::Any) {
1996         self as &dyn (::std::any::Any)
1997     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1998     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1999         self as &mut dyn (::std::any::Any)
2000     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>2001     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2002         self
2003     }
2004 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor2005     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2006         Self::descriptor_static()
2007     }
2008 
new() -> CableRegistration2009     fn new() -> CableRegistration {
2010         CableRegistration::new()
2011     }
2012 
default_instance() -> &'static CableRegistration2013     fn default_instance() -> &'static CableRegistration {
2014         static instance: ::protobuf::rt::LazyV2<CableRegistration> = ::protobuf::rt::LazyV2::INIT;
2015         instance.get(CableRegistration::new)
2016     }
2017 }
2018 
2019 impl ::protobuf::Clear for CableRegistration {
clear(&mut self)2020     fn clear(&mut self) {
2021         self.versions.clear();
2022         self.relying_party_public_key.clear();
2023         self.unknown_fields.clear();
2024     }
2025 }
2026 
2027 impl ::protobuf::reflect::ProtobufValue for CableRegistration {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef2028     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2029         ::protobuf::reflect::ReflectValueRef::Message(self)
2030     }
2031 }
2032 
2033 #[derive(PartialEq,Clone,Default,Debug)]
2034 pub struct PublicKeyCredentialRequestOptions {
2035     // message fields
2036     pub challenge: ::std::vec::Vec<u8>,
2037     pub adjusted_timeout: i64,
2038     pub relying_party_id: ::std::string::String,
2039     pub allow_credentials: ::protobuf::RepeatedField<PublicKeyCredentialDescriptor>,
2040     pub user_verification: UserVerificationRequirement,
2041     pub appid: ::std::string::String,
2042     pub cable_authentication_data: ::protobuf::RepeatedField<CableAuthentication>,
2043     // special fields
2044     pub unknown_fields: ::protobuf::UnknownFields,
2045     pub cached_size: ::protobuf::CachedSize,
2046 }
2047 
2048 impl<'a> ::std::default::Default for &'a PublicKeyCredentialRequestOptions {
default() -> &'a PublicKeyCredentialRequestOptions2049     fn default() -> &'a PublicKeyCredentialRequestOptions {
2050         <PublicKeyCredentialRequestOptions as ::protobuf::Message>::default_instance()
2051     }
2052 }
2053 
2054 impl PublicKeyCredentialRequestOptions {
new() -> PublicKeyCredentialRequestOptions2055     pub fn new() -> PublicKeyCredentialRequestOptions {
2056         ::std::default::Default::default()
2057     }
2058 
2059     // bytes challenge = 1;
2060 
2061 
get_challenge(&self) -> &[u8]2062     pub fn get_challenge(&self) -> &[u8] {
2063         &self.challenge
2064     }
clear_challenge(&mut self)2065     pub fn clear_challenge(&mut self) {
2066         self.challenge.clear();
2067     }
2068 
2069     // Param is passed by value, moved
set_challenge(&mut self, v: ::std::vec::Vec<u8>)2070     pub fn set_challenge(&mut self, v: ::std::vec::Vec<u8>) {
2071         self.challenge = v;
2072     }
2073 
2074     // Mutable pointer to the field.
2075     // If field is not initialized, it is initialized with default value first.
mut_challenge(&mut self) -> &mut ::std::vec::Vec<u8>2076     pub fn mut_challenge(&mut self) -> &mut ::std::vec::Vec<u8> {
2077         &mut self.challenge
2078     }
2079 
2080     // Take field
take_challenge(&mut self) -> ::std::vec::Vec<u8>2081     pub fn take_challenge(&mut self) -> ::std::vec::Vec<u8> {
2082         ::std::mem::replace(&mut self.challenge, ::std::vec::Vec::new())
2083     }
2084 
2085     // int64 adjusted_timeout = 2;
2086 
2087 
get_adjusted_timeout(&self) -> i642088     pub fn get_adjusted_timeout(&self) -> i64 {
2089         self.adjusted_timeout
2090     }
clear_adjusted_timeout(&mut self)2091     pub fn clear_adjusted_timeout(&mut self) {
2092         self.adjusted_timeout = 0;
2093     }
2094 
2095     // Param is passed by value, moved
set_adjusted_timeout(&mut self, v: i64)2096     pub fn set_adjusted_timeout(&mut self, v: i64) {
2097         self.adjusted_timeout = v;
2098     }
2099 
2100     // string relying_party_id = 3;
2101 
2102 
get_relying_party_id(&self) -> &str2103     pub fn get_relying_party_id(&self) -> &str {
2104         &self.relying_party_id
2105     }
clear_relying_party_id(&mut self)2106     pub fn clear_relying_party_id(&mut self) {
2107         self.relying_party_id.clear();
2108     }
2109 
2110     // Param is passed by value, moved
set_relying_party_id(&mut self, v: ::std::string::String)2111     pub fn set_relying_party_id(&mut self, v: ::std::string::String) {
2112         self.relying_party_id = v;
2113     }
2114 
2115     // Mutable pointer to the field.
2116     // If field is not initialized, it is initialized with default value first.
mut_relying_party_id(&mut self) -> &mut ::std::string::String2117     pub fn mut_relying_party_id(&mut self) -> &mut ::std::string::String {
2118         &mut self.relying_party_id
2119     }
2120 
2121     // Take field
take_relying_party_id(&mut self) -> ::std::string::String2122     pub fn take_relying_party_id(&mut self) -> ::std::string::String {
2123         ::std::mem::replace(&mut self.relying_party_id, ::std::string::String::new())
2124     }
2125 
2126     // repeated .cryptohome.fido.PublicKeyCredentialDescriptor allow_credentials = 4;
2127 
2128 
get_allow_credentials(&self) -> &[PublicKeyCredentialDescriptor]2129     pub fn get_allow_credentials(&self) -> &[PublicKeyCredentialDescriptor] {
2130         &self.allow_credentials
2131     }
clear_allow_credentials(&mut self)2132     pub fn clear_allow_credentials(&mut self) {
2133         self.allow_credentials.clear();
2134     }
2135 
2136     // Param is passed by value, moved
set_allow_credentials(&mut self, v: ::protobuf::RepeatedField<PublicKeyCredentialDescriptor>)2137     pub fn set_allow_credentials(&mut self, v: ::protobuf::RepeatedField<PublicKeyCredentialDescriptor>) {
2138         self.allow_credentials = v;
2139     }
2140 
2141     // Mutable pointer to the field.
mut_allow_credentials(&mut self) -> &mut ::protobuf::RepeatedField<PublicKeyCredentialDescriptor>2142     pub fn mut_allow_credentials(&mut self) -> &mut ::protobuf::RepeatedField<PublicKeyCredentialDescriptor> {
2143         &mut self.allow_credentials
2144     }
2145 
2146     // Take field
take_allow_credentials(&mut self) -> ::protobuf::RepeatedField<PublicKeyCredentialDescriptor>2147     pub fn take_allow_credentials(&mut self) -> ::protobuf::RepeatedField<PublicKeyCredentialDescriptor> {
2148         ::std::mem::replace(&mut self.allow_credentials, ::protobuf::RepeatedField::new())
2149     }
2150 
2151     // .cryptohome.fido.UserVerificationRequirement user_verification = 5;
2152 
2153 
get_user_verification(&self) -> UserVerificationRequirement2154     pub fn get_user_verification(&self) -> UserVerificationRequirement {
2155         self.user_verification
2156     }
clear_user_verification(&mut self)2157     pub fn clear_user_verification(&mut self) {
2158         self.user_verification = UserVerificationRequirement::REQUIRED;
2159     }
2160 
2161     // Param is passed by value, moved
set_user_verification(&mut self, v: UserVerificationRequirement)2162     pub fn set_user_verification(&mut self, v: UserVerificationRequirement) {
2163         self.user_verification = v;
2164     }
2165 
2166     // string appid = 6;
2167 
2168 
get_appid(&self) -> &str2169     pub fn get_appid(&self) -> &str {
2170         &self.appid
2171     }
clear_appid(&mut self)2172     pub fn clear_appid(&mut self) {
2173         self.appid.clear();
2174     }
2175 
2176     // Param is passed by value, moved
set_appid(&mut self, v: ::std::string::String)2177     pub fn set_appid(&mut self, v: ::std::string::String) {
2178         self.appid = v;
2179     }
2180 
2181     // Mutable pointer to the field.
2182     // If field is not initialized, it is initialized with default value first.
mut_appid(&mut self) -> &mut ::std::string::String2183     pub fn mut_appid(&mut self) -> &mut ::std::string::String {
2184         &mut self.appid
2185     }
2186 
2187     // Take field
take_appid(&mut self) -> ::std::string::String2188     pub fn take_appid(&mut self) -> ::std::string::String {
2189         ::std::mem::replace(&mut self.appid, ::std::string::String::new())
2190     }
2191 
2192     // repeated .cryptohome.fido.CableAuthentication cable_authentication_data = 7;
2193 
2194 
get_cable_authentication_data(&self) -> &[CableAuthentication]2195     pub fn get_cable_authentication_data(&self) -> &[CableAuthentication] {
2196         &self.cable_authentication_data
2197     }
clear_cable_authentication_data(&mut self)2198     pub fn clear_cable_authentication_data(&mut self) {
2199         self.cable_authentication_data.clear();
2200     }
2201 
2202     // Param is passed by value, moved
set_cable_authentication_data(&mut self, v: ::protobuf::RepeatedField<CableAuthentication>)2203     pub fn set_cable_authentication_data(&mut self, v: ::protobuf::RepeatedField<CableAuthentication>) {
2204         self.cable_authentication_data = v;
2205     }
2206 
2207     // Mutable pointer to the field.
mut_cable_authentication_data(&mut self) -> &mut ::protobuf::RepeatedField<CableAuthentication>2208     pub fn mut_cable_authentication_data(&mut self) -> &mut ::protobuf::RepeatedField<CableAuthentication> {
2209         &mut self.cable_authentication_data
2210     }
2211 
2212     // Take field
take_cable_authentication_data(&mut self) -> ::protobuf::RepeatedField<CableAuthentication>2213     pub fn take_cable_authentication_data(&mut self) -> ::protobuf::RepeatedField<CableAuthentication> {
2214         ::std::mem::replace(&mut self.cable_authentication_data, ::protobuf::RepeatedField::new())
2215     }
2216 }
2217 
2218 impl ::protobuf::Message for PublicKeyCredentialRequestOptions {
is_initialized(&self) -> bool2219     fn is_initialized(&self) -> bool {
2220         for v in &self.allow_credentials {
2221             if !v.is_initialized() {
2222                 return false;
2223             }
2224         };
2225         for v in &self.cable_authentication_data {
2226             if !v.is_initialized() {
2227                 return false;
2228             }
2229         };
2230         true
2231     }
2232 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>2233     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2234         while !is.eof()? {
2235             let (field_number, wire_type) = is.read_tag_unpack()?;
2236             match field_number {
2237                 1 => {
2238                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.challenge)?;
2239                 },
2240                 2 => {
2241                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
2242                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2243                     }
2244                     let tmp = is.read_int64()?;
2245                     self.adjusted_timeout = tmp;
2246                 },
2247                 3 => {
2248                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.relying_party_id)?;
2249                 },
2250                 4 => {
2251                     ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.allow_credentials)?;
2252                 },
2253                 5 => {
2254                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.user_verification, 5, &mut self.unknown_fields)?
2255                 },
2256                 6 => {
2257                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.appid)?;
2258                 },
2259                 7 => {
2260                     ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.cable_authentication_data)?;
2261                 },
2262                 _ => {
2263                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2264                 },
2265             };
2266         }
2267         ::std::result::Result::Ok(())
2268     }
2269 
2270     // Compute sizes of nested messages
2271     #[allow(unused_variables)]
compute_size(&self) -> u322272     fn compute_size(&self) -> u32 {
2273         let mut my_size = 0;
2274         if !self.challenge.is_empty() {
2275             my_size += ::protobuf::rt::bytes_size(1, &self.challenge);
2276         }
2277         if self.adjusted_timeout != 0 {
2278             my_size += ::protobuf::rt::value_size(2, self.adjusted_timeout, ::protobuf::wire_format::WireTypeVarint);
2279         }
2280         if !self.relying_party_id.is_empty() {
2281             my_size += ::protobuf::rt::string_size(3, &self.relying_party_id);
2282         }
2283         for value in &self.allow_credentials {
2284             let len = value.compute_size();
2285             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2286         };
2287         if self.user_verification != UserVerificationRequirement::REQUIRED {
2288             my_size += ::protobuf::rt::enum_size(5, self.user_verification);
2289         }
2290         if !self.appid.is_empty() {
2291             my_size += ::protobuf::rt::string_size(6, &self.appid);
2292         }
2293         for value in &self.cable_authentication_data {
2294             let len = value.compute_size();
2295             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
2296         };
2297         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2298         self.cached_size.set(my_size);
2299         my_size
2300     }
2301 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>2302     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2303         if !self.challenge.is_empty() {
2304             os.write_bytes(1, &self.challenge)?;
2305         }
2306         if self.adjusted_timeout != 0 {
2307             os.write_int64(2, self.adjusted_timeout)?;
2308         }
2309         if !self.relying_party_id.is_empty() {
2310             os.write_string(3, &self.relying_party_id)?;
2311         }
2312         for v in &self.allow_credentials {
2313             os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2314             os.write_raw_varint32(v.get_cached_size())?;
2315             v.write_to_with_cached_sizes(os)?;
2316         };
2317         if self.user_verification != UserVerificationRequirement::REQUIRED {
2318             os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.user_verification))?;
2319         }
2320         if !self.appid.is_empty() {
2321             os.write_string(6, &self.appid)?;
2322         }
2323         for v in &self.cable_authentication_data {
2324             os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
2325             os.write_raw_varint32(v.get_cached_size())?;
2326             v.write_to_with_cached_sizes(os)?;
2327         };
2328         os.write_unknown_fields(self.get_unknown_fields())?;
2329         ::std::result::Result::Ok(())
2330     }
2331 
get_cached_size(&self) -> u322332     fn get_cached_size(&self) -> u32 {
2333         self.cached_size.get()
2334     }
2335 
get_unknown_fields(&self) -> &::protobuf::UnknownFields2336     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2337         &self.unknown_fields
2338     }
2339 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields2340     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2341         &mut self.unknown_fields
2342     }
2343 
as_any(&self) -> &dyn (::std::any::Any)2344     fn as_any(&self) -> &dyn (::std::any::Any) {
2345         self as &dyn (::std::any::Any)
2346     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)2347     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2348         self as &mut dyn (::std::any::Any)
2349     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>2350     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2351         self
2352     }
2353 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor2354     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2355         Self::descriptor_static()
2356     }
2357 
new() -> PublicKeyCredentialRequestOptions2358     fn new() -> PublicKeyCredentialRequestOptions {
2359         PublicKeyCredentialRequestOptions::new()
2360     }
2361 
default_instance() -> &'static PublicKeyCredentialRequestOptions2362     fn default_instance() -> &'static PublicKeyCredentialRequestOptions {
2363         static instance: ::protobuf::rt::LazyV2<PublicKeyCredentialRequestOptions> = ::protobuf::rt::LazyV2::INIT;
2364         instance.get(PublicKeyCredentialRequestOptions::new)
2365     }
2366 }
2367 
2368 impl ::protobuf::Clear for PublicKeyCredentialRequestOptions {
clear(&mut self)2369     fn clear(&mut self) {
2370         self.challenge.clear();
2371         self.adjusted_timeout = 0;
2372         self.relying_party_id.clear();
2373         self.allow_credentials.clear();
2374         self.user_verification = UserVerificationRequirement::REQUIRED;
2375         self.appid.clear();
2376         self.cable_authentication_data.clear();
2377         self.unknown_fields.clear();
2378     }
2379 }
2380 
2381 impl ::protobuf::reflect::ProtobufValue for PublicKeyCredentialRequestOptions {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef2382     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2383         ::protobuf::reflect::ReflectValueRef::Message(self)
2384     }
2385 }
2386 
2387 #[derive(PartialEq,Clone,Default,Debug)]
2388 pub struct AuthenticatorSelectionCriteria {
2389     // message fields
2390     pub authenticator_attachment: AuthenticatorAttachment,
2391     pub require_resident_key: bool,
2392     pub user_verification: UserVerificationRequirement,
2393     // special fields
2394     pub unknown_fields: ::protobuf::UnknownFields,
2395     pub cached_size: ::protobuf::CachedSize,
2396 }
2397 
2398 impl<'a> ::std::default::Default for &'a AuthenticatorSelectionCriteria {
default() -> &'a AuthenticatorSelectionCriteria2399     fn default() -> &'a AuthenticatorSelectionCriteria {
2400         <AuthenticatorSelectionCriteria as ::protobuf::Message>::default_instance()
2401     }
2402 }
2403 
2404 impl AuthenticatorSelectionCriteria {
new() -> AuthenticatorSelectionCriteria2405     pub fn new() -> AuthenticatorSelectionCriteria {
2406         ::std::default::Default::default()
2407     }
2408 
2409     // .cryptohome.fido.AuthenticatorAttachment authenticator_attachment = 1;
2410 
2411 
get_authenticator_attachment(&self) -> AuthenticatorAttachment2412     pub fn get_authenticator_attachment(&self) -> AuthenticatorAttachment {
2413         self.authenticator_attachment
2414     }
clear_authenticator_attachment(&mut self)2415     pub fn clear_authenticator_attachment(&mut self) {
2416         self.authenticator_attachment = AuthenticatorAttachment::NO_PREFERENCE;
2417     }
2418 
2419     // Param is passed by value, moved
set_authenticator_attachment(&mut self, v: AuthenticatorAttachment)2420     pub fn set_authenticator_attachment(&mut self, v: AuthenticatorAttachment) {
2421         self.authenticator_attachment = v;
2422     }
2423 
2424     // bool require_resident_key = 2;
2425 
2426 
get_require_resident_key(&self) -> bool2427     pub fn get_require_resident_key(&self) -> bool {
2428         self.require_resident_key
2429     }
clear_require_resident_key(&mut self)2430     pub fn clear_require_resident_key(&mut self) {
2431         self.require_resident_key = false;
2432     }
2433 
2434     // Param is passed by value, moved
set_require_resident_key(&mut self, v: bool)2435     pub fn set_require_resident_key(&mut self, v: bool) {
2436         self.require_resident_key = v;
2437     }
2438 
2439     // .cryptohome.fido.UserVerificationRequirement user_verification = 3;
2440 
2441 
get_user_verification(&self) -> UserVerificationRequirement2442     pub fn get_user_verification(&self) -> UserVerificationRequirement {
2443         self.user_verification
2444     }
clear_user_verification(&mut self)2445     pub fn clear_user_verification(&mut self) {
2446         self.user_verification = UserVerificationRequirement::REQUIRED;
2447     }
2448 
2449     // Param is passed by value, moved
set_user_verification(&mut self, v: UserVerificationRequirement)2450     pub fn set_user_verification(&mut self, v: UserVerificationRequirement) {
2451         self.user_verification = v;
2452     }
2453 }
2454 
2455 impl ::protobuf::Message for AuthenticatorSelectionCriteria {
is_initialized(&self) -> bool2456     fn is_initialized(&self) -> bool {
2457         true
2458     }
2459 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>2460     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2461         while !is.eof()? {
2462             let (field_number, wire_type) = is.read_tag_unpack()?;
2463             match field_number {
2464                 1 => {
2465                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.authenticator_attachment, 1, &mut self.unknown_fields)?
2466                 },
2467                 2 => {
2468                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
2469                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2470                     }
2471                     let tmp = is.read_bool()?;
2472                     self.require_resident_key = tmp;
2473                 },
2474                 3 => {
2475                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.user_verification, 3, &mut self.unknown_fields)?
2476                 },
2477                 _ => {
2478                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2479                 },
2480             };
2481         }
2482         ::std::result::Result::Ok(())
2483     }
2484 
2485     // Compute sizes of nested messages
2486     #[allow(unused_variables)]
compute_size(&self) -> u322487     fn compute_size(&self) -> u32 {
2488         let mut my_size = 0;
2489         if self.authenticator_attachment != AuthenticatorAttachment::NO_PREFERENCE {
2490             my_size += ::protobuf::rt::enum_size(1, self.authenticator_attachment);
2491         }
2492         if self.require_resident_key != false {
2493             my_size += 2;
2494         }
2495         if self.user_verification != UserVerificationRequirement::REQUIRED {
2496             my_size += ::protobuf::rt::enum_size(3, self.user_verification);
2497         }
2498         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2499         self.cached_size.set(my_size);
2500         my_size
2501     }
2502 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>2503     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2504         if self.authenticator_attachment != AuthenticatorAttachment::NO_PREFERENCE {
2505             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.authenticator_attachment))?;
2506         }
2507         if self.require_resident_key != false {
2508             os.write_bool(2, self.require_resident_key)?;
2509         }
2510         if self.user_verification != UserVerificationRequirement::REQUIRED {
2511             os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.user_verification))?;
2512         }
2513         os.write_unknown_fields(self.get_unknown_fields())?;
2514         ::std::result::Result::Ok(())
2515     }
2516 
get_cached_size(&self) -> u322517     fn get_cached_size(&self) -> u32 {
2518         self.cached_size.get()
2519     }
2520 
get_unknown_fields(&self) -> &::protobuf::UnknownFields2521     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2522         &self.unknown_fields
2523     }
2524 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields2525     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2526         &mut self.unknown_fields
2527     }
2528 
as_any(&self) -> &dyn (::std::any::Any)2529     fn as_any(&self) -> &dyn (::std::any::Any) {
2530         self as &dyn (::std::any::Any)
2531     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)2532     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2533         self as &mut dyn (::std::any::Any)
2534     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>2535     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2536         self
2537     }
2538 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor2539     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2540         Self::descriptor_static()
2541     }
2542 
new() -> AuthenticatorSelectionCriteria2543     fn new() -> AuthenticatorSelectionCriteria {
2544         AuthenticatorSelectionCriteria::new()
2545     }
2546 
default_instance() -> &'static AuthenticatorSelectionCriteria2547     fn default_instance() -> &'static AuthenticatorSelectionCriteria {
2548         static instance: ::protobuf::rt::LazyV2<AuthenticatorSelectionCriteria> = ::protobuf::rt::LazyV2::INIT;
2549         instance.get(AuthenticatorSelectionCriteria::new)
2550     }
2551 }
2552 
2553 impl ::protobuf::Clear for AuthenticatorSelectionCriteria {
clear(&mut self)2554     fn clear(&mut self) {
2555         self.authenticator_attachment = AuthenticatorAttachment::NO_PREFERENCE;
2556         self.require_resident_key = false;
2557         self.user_verification = UserVerificationRequirement::REQUIRED;
2558         self.unknown_fields.clear();
2559     }
2560 }
2561 
2562 impl ::protobuf::reflect::ProtobufValue for AuthenticatorSelectionCriteria {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef2563     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
2564         ::protobuf::reflect::ReflectValueRef::Message(self)
2565     }
2566 }
2567 
2568 #[derive(PartialEq,Clone,Default,Debug)]
2569 pub struct PublicKeyCredentialCreationOptions {
2570     // message fields
2571     pub relying_party: ::protobuf::SingularPtrField<PublicKeyCredentialRpEntity>,
2572     pub user: ::protobuf::SingularPtrField<PublicKeyCredentialUserEntity>,
2573     pub challenge: ::std::vec::Vec<u8>,
2574     pub public_key_parameters: ::protobuf::RepeatedField<PublicKeyCredentialParameters>,
2575     pub adjusted_timeout: i64,
2576     pub exclude_credentials: ::protobuf::RepeatedField<PublicKeyCredentialDescriptor>,
2577     pub authenticator_selection: ::protobuf::SingularPtrField<AuthenticatorSelectionCriteria>,
2578     pub attestation: AttestationConveyancePreference,
2579     pub cable_registration_data: ::protobuf::SingularPtrField<CableRegistration>,
2580     pub hmac_create_secret: bool,
2581     pub protection_policy: ProtectionPolicy,
2582     pub enforce_protection_policy: bool,
2583     pub appid_exclude: ::std::string::String,
2584     // special fields
2585     pub unknown_fields: ::protobuf::UnknownFields,
2586     pub cached_size: ::protobuf::CachedSize,
2587 }
2588 
2589 impl<'a> ::std::default::Default for &'a PublicKeyCredentialCreationOptions {
default() -> &'a PublicKeyCredentialCreationOptions2590     fn default() -> &'a PublicKeyCredentialCreationOptions {
2591         <PublicKeyCredentialCreationOptions as ::protobuf::Message>::default_instance()
2592     }
2593 }
2594 
2595 impl PublicKeyCredentialCreationOptions {
new() -> PublicKeyCredentialCreationOptions2596     pub fn new() -> PublicKeyCredentialCreationOptions {
2597         ::std::default::Default::default()
2598     }
2599 
2600     // .cryptohome.fido.PublicKeyCredentialRpEntity relying_party = 1;
2601 
2602 
get_relying_party(&self) -> &PublicKeyCredentialRpEntity2603     pub fn get_relying_party(&self) -> &PublicKeyCredentialRpEntity {
2604         self.relying_party.as_ref().unwrap_or_else(|| <PublicKeyCredentialRpEntity as ::protobuf::Message>::default_instance())
2605     }
clear_relying_party(&mut self)2606     pub fn clear_relying_party(&mut self) {
2607         self.relying_party.clear();
2608     }
2609 
has_relying_party(&self) -> bool2610     pub fn has_relying_party(&self) -> bool {
2611         self.relying_party.is_some()
2612     }
2613 
2614     // Param is passed by value, moved
set_relying_party(&mut self, v: PublicKeyCredentialRpEntity)2615     pub fn set_relying_party(&mut self, v: PublicKeyCredentialRpEntity) {
2616         self.relying_party = ::protobuf::SingularPtrField::some(v);
2617     }
2618 
2619     // Mutable pointer to the field.
2620     // If field is not initialized, it is initialized with default value first.
mut_relying_party(&mut self) -> &mut PublicKeyCredentialRpEntity2621     pub fn mut_relying_party(&mut self) -> &mut PublicKeyCredentialRpEntity {
2622         if self.relying_party.is_none() {
2623             self.relying_party.set_default();
2624         }
2625         self.relying_party.as_mut().unwrap()
2626     }
2627 
2628     // Take field
take_relying_party(&mut self) -> PublicKeyCredentialRpEntity2629     pub fn take_relying_party(&mut self) -> PublicKeyCredentialRpEntity {
2630         self.relying_party.take().unwrap_or_else(|| PublicKeyCredentialRpEntity::new())
2631     }
2632 
2633     // .cryptohome.fido.PublicKeyCredentialUserEntity user = 2;
2634 
2635 
get_user(&self) -> &PublicKeyCredentialUserEntity2636     pub fn get_user(&self) -> &PublicKeyCredentialUserEntity {
2637         self.user.as_ref().unwrap_or_else(|| <PublicKeyCredentialUserEntity as ::protobuf::Message>::default_instance())
2638     }
clear_user(&mut self)2639     pub fn clear_user(&mut self) {
2640         self.user.clear();
2641     }
2642 
has_user(&self) -> bool2643     pub fn has_user(&self) -> bool {
2644         self.user.is_some()
2645     }
2646 
2647     // Param is passed by value, moved
set_user(&mut self, v: PublicKeyCredentialUserEntity)2648     pub fn set_user(&mut self, v: PublicKeyCredentialUserEntity) {
2649         self.user = ::protobuf::SingularPtrField::some(v);
2650     }
2651 
2652     // Mutable pointer to the field.
2653     // If field is not initialized, it is initialized with default value first.
mut_user(&mut self) -> &mut PublicKeyCredentialUserEntity2654     pub fn mut_user(&mut self) -> &mut PublicKeyCredentialUserEntity {
2655         if self.user.is_none() {
2656             self.user.set_default();
2657         }
2658         self.user.as_mut().unwrap()
2659     }
2660 
2661     // Take field
take_user(&mut self) -> PublicKeyCredentialUserEntity2662     pub fn take_user(&mut self) -> PublicKeyCredentialUserEntity {
2663         self.user.take().unwrap_or_else(|| PublicKeyCredentialUserEntity::new())
2664     }
2665 
2666     // bytes challenge = 3;
2667 
2668 
get_challenge(&self) -> &[u8]2669     pub fn get_challenge(&self) -> &[u8] {
2670         &self.challenge
2671     }
clear_challenge(&mut self)2672     pub fn clear_challenge(&mut self) {
2673         self.challenge.clear();
2674     }
2675 
2676     // Param is passed by value, moved
set_challenge(&mut self, v: ::std::vec::Vec<u8>)2677     pub fn set_challenge(&mut self, v: ::std::vec::Vec<u8>) {
2678         self.challenge = v;
2679     }
2680 
2681     // Mutable pointer to the field.
2682     // If field is not initialized, it is initialized with default value first.
mut_challenge(&mut self) -> &mut ::std::vec::Vec<u8>2683     pub fn mut_challenge(&mut self) -> &mut ::std::vec::Vec<u8> {
2684         &mut self.challenge
2685     }
2686 
2687     // Take field
take_challenge(&mut self) -> ::std::vec::Vec<u8>2688     pub fn take_challenge(&mut self) -> ::std::vec::Vec<u8> {
2689         ::std::mem::replace(&mut self.challenge, ::std::vec::Vec::new())
2690     }
2691 
2692     // repeated .cryptohome.fido.PublicKeyCredentialParameters public_key_parameters = 4;
2693 
2694 
get_public_key_parameters(&self) -> &[PublicKeyCredentialParameters]2695     pub fn get_public_key_parameters(&self) -> &[PublicKeyCredentialParameters] {
2696         &self.public_key_parameters
2697     }
clear_public_key_parameters(&mut self)2698     pub fn clear_public_key_parameters(&mut self) {
2699         self.public_key_parameters.clear();
2700     }
2701 
2702     // Param is passed by value, moved
set_public_key_parameters(&mut self, v: ::protobuf::RepeatedField<PublicKeyCredentialParameters>)2703     pub fn set_public_key_parameters(&mut self, v: ::protobuf::RepeatedField<PublicKeyCredentialParameters>) {
2704         self.public_key_parameters = v;
2705     }
2706 
2707     // Mutable pointer to the field.
mut_public_key_parameters(&mut self) -> &mut ::protobuf::RepeatedField<PublicKeyCredentialParameters>2708     pub fn mut_public_key_parameters(&mut self) -> &mut ::protobuf::RepeatedField<PublicKeyCredentialParameters> {
2709         &mut self.public_key_parameters
2710     }
2711 
2712     // Take field
take_public_key_parameters(&mut self) -> ::protobuf::RepeatedField<PublicKeyCredentialParameters>2713     pub fn take_public_key_parameters(&mut self) -> ::protobuf::RepeatedField<PublicKeyCredentialParameters> {
2714         ::std::mem::replace(&mut self.public_key_parameters, ::protobuf::RepeatedField::new())
2715     }
2716 
2717     // int64 adjusted_timeout = 5;
2718 
2719 
get_adjusted_timeout(&self) -> i642720     pub fn get_adjusted_timeout(&self) -> i64 {
2721         self.adjusted_timeout
2722     }
clear_adjusted_timeout(&mut self)2723     pub fn clear_adjusted_timeout(&mut self) {
2724         self.adjusted_timeout = 0;
2725     }
2726 
2727     // Param is passed by value, moved
set_adjusted_timeout(&mut self, v: i64)2728     pub fn set_adjusted_timeout(&mut self, v: i64) {
2729         self.adjusted_timeout = v;
2730     }
2731 
2732     // repeated .cryptohome.fido.PublicKeyCredentialDescriptor exclude_credentials = 6;
2733 
2734 
get_exclude_credentials(&self) -> &[PublicKeyCredentialDescriptor]2735     pub fn get_exclude_credentials(&self) -> &[PublicKeyCredentialDescriptor] {
2736         &self.exclude_credentials
2737     }
clear_exclude_credentials(&mut self)2738     pub fn clear_exclude_credentials(&mut self) {
2739         self.exclude_credentials.clear();
2740     }
2741 
2742     // Param is passed by value, moved
set_exclude_credentials(&mut self, v: ::protobuf::RepeatedField<PublicKeyCredentialDescriptor>)2743     pub fn set_exclude_credentials(&mut self, v: ::protobuf::RepeatedField<PublicKeyCredentialDescriptor>) {
2744         self.exclude_credentials = v;
2745     }
2746 
2747     // Mutable pointer to the field.
mut_exclude_credentials(&mut self) -> &mut ::protobuf::RepeatedField<PublicKeyCredentialDescriptor>2748     pub fn mut_exclude_credentials(&mut self) -> &mut ::protobuf::RepeatedField<PublicKeyCredentialDescriptor> {
2749         &mut self.exclude_credentials
2750     }
2751 
2752     // Take field
take_exclude_credentials(&mut self) -> ::protobuf::RepeatedField<PublicKeyCredentialDescriptor>2753     pub fn take_exclude_credentials(&mut self) -> ::protobuf::RepeatedField<PublicKeyCredentialDescriptor> {
2754         ::std::mem::replace(&mut self.exclude_credentials, ::protobuf::RepeatedField::new())
2755     }
2756 
2757     // .cryptohome.fido.AuthenticatorSelectionCriteria authenticator_selection = 7;
2758 
2759 
get_authenticator_selection(&self) -> &AuthenticatorSelectionCriteria2760     pub fn get_authenticator_selection(&self) -> &AuthenticatorSelectionCriteria {
2761         self.authenticator_selection.as_ref().unwrap_or_else(|| <AuthenticatorSelectionCriteria as ::protobuf::Message>::default_instance())
2762     }
clear_authenticator_selection(&mut self)2763     pub fn clear_authenticator_selection(&mut self) {
2764         self.authenticator_selection.clear();
2765     }
2766 
has_authenticator_selection(&self) -> bool2767     pub fn has_authenticator_selection(&self) -> bool {
2768         self.authenticator_selection.is_some()
2769     }
2770 
2771     // Param is passed by value, moved
set_authenticator_selection(&mut self, v: AuthenticatorSelectionCriteria)2772     pub fn set_authenticator_selection(&mut self, v: AuthenticatorSelectionCriteria) {
2773         self.authenticator_selection = ::protobuf::SingularPtrField::some(v);
2774     }
2775 
2776     // Mutable pointer to the field.
2777     // If field is not initialized, it is initialized with default value first.
mut_authenticator_selection(&mut self) -> &mut AuthenticatorSelectionCriteria2778     pub fn mut_authenticator_selection(&mut self) -> &mut AuthenticatorSelectionCriteria {
2779         if self.authenticator_selection.is_none() {
2780             self.authenticator_selection.set_default();
2781         }
2782         self.authenticator_selection.as_mut().unwrap()
2783     }
2784 
2785     // Take field
take_authenticator_selection(&mut self) -> AuthenticatorSelectionCriteria2786     pub fn take_authenticator_selection(&mut self) -> AuthenticatorSelectionCriteria {
2787         self.authenticator_selection.take().unwrap_or_else(|| AuthenticatorSelectionCriteria::new())
2788     }
2789 
2790     // .cryptohome.fido.AttestationConveyancePreference attestation = 8;
2791 
2792 
get_attestation(&self) -> AttestationConveyancePreference2793     pub fn get_attestation(&self) -> AttestationConveyancePreference {
2794         self.attestation
2795     }
clear_attestation(&mut self)2796     pub fn clear_attestation(&mut self) {
2797         self.attestation = AttestationConveyancePreference::NONE_ATTESTATION_PREFERENCE;
2798     }
2799 
2800     // Param is passed by value, moved
set_attestation(&mut self, v: AttestationConveyancePreference)2801     pub fn set_attestation(&mut self, v: AttestationConveyancePreference) {
2802         self.attestation = v;
2803     }
2804 
2805     // .cryptohome.fido.CableRegistration cable_registration_data = 9;
2806 
2807 
get_cable_registration_data(&self) -> &CableRegistration2808     pub fn get_cable_registration_data(&self) -> &CableRegistration {
2809         self.cable_registration_data.as_ref().unwrap_or_else(|| <CableRegistration as ::protobuf::Message>::default_instance())
2810     }
clear_cable_registration_data(&mut self)2811     pub fn clear_cable_registration_data(&mut self) {
2812         self.cable_registration_data.clear();
2813     }
2814 
has_cable_registration_data(&self) -> bool2815     pub fn has_cable_registration_data(&self) -> bool {
2816         self.cable_registration_data.is_some()
2817     }
2818 
2819     // Param is passed by value, moved
set_cable_registration_data(&mut self, v: CableRegistration)2820     pub fn set_cable_registration_data(&mut self, v: CableRegistration) {
2821         self.cable_registration_data = ::protobuf::SingularPtrField::some(v);
2822     }
2823 
2824     // Mutable pointer to the field.
2825     // If field is not initialized, it is initialized with default value first.
mut_cable_registration_data(&mut self) -> &mut CableRegistration2826     pub fn mut_cable_registration_data(&mut self) -> &mut CableRegistration {
2827         if self.cable_registration_data.is_none() {
2828             self.cable_registration_data.set_default();
2829         }
2830         self.cable_registration_data.as_mut().unwrap()
2831     }
2832 
2833     // Take field
take_cable_registration_data(&mut self) -> CableRegistration2834     pub fn take_cable_registration_data(&mut self) -> CableRegistration {
2835         self.cable_registration_data.take().unwrap_or_else(|| CableRegistration::new())
2836     }
2837 
2838     // bool hmac_create_secret = 10;
2839 
2840 
get_hmac_create_secret(&self) -> bool2841     pub fn get_hmac_create_secret(&self) -> bool {
2842         self.hmac_create_secret
2843     }
clear_hmac_create_secret(&mut self)2844     pub fn clear_hmac_create_secret(&mut self) {
2845         self.hmac_create_secret = false;
2846     }
2847 
2848     // Param is passed by value, moved
set_hmac_create_secret(&mut self, v: bool)2849     pub fn set_hmac_create_secret(&mut self, v: bool) {
2850         self.hmac_create_secret = v;
2851     }
2852 
2853     // .cryptohome.fido.ProtectionPolicy protection_policy = 11;
2854 
2855 
get_protection_policy(&self) -> ProtectionPolicy2856     pub fn get_protection_policy(&self) -> ProtectionPolicy {
2857         self.protection_policy
2858     }
clear_protection_policy(&mut self)2859     pub fn clear_protection_policy(&mut self) {
2860         self.protection_policy = ProtectionPolicy::UNSPECIFIED;
2861     }
2862 
2863     // Param is passed by value, moved
set_protection_policy(&mut self, v: ProtectionPolicy)2864     pub fn set_protection_policy(&mut self, v: ProtectionPolicy) {
2865         self.protection_policy = v;
2866     }
2867 
2868     // bool enforce_protection_policy = 12;
2869 
2870 
get_enforce_protection_policy(&self) -> bool2871     pub fn get_enforce_protection_policy(&self) -> bool {
2872         self.enforce_protection_policy
2873     }
clear_enforce_protection_policy(&mut self)2874     pub fn clear_enforce_protection_policy(&mut self) {
2875         self.enforce_protection_policy = false;
2876     }
2877 
2878     // Param is passed by value, moved
set_enforce_protection_policy(&mut self, v: bool)2879     pub fn set_enforce_protection_policy(&mut self, v: bool) {
2880         self.enforce_protection_policy = v;
2881     }
2882 
2883     // string appid_exclude = 13;
2884 
2885 
get_appid_exclude(&self) -> &str2886     pub fn get_appid_exclude(&self) -> &str {
2887         &self.appid_exclude
2888     }
clear_appid_exclude(&mut self)2889     pub fn clear_appid_exclude(&mut self) {
2890         self.appid_exclude.clear();
2891     }
2892 
2893     // Param is passed by value, moved
set_appid_exclude(&mut self, v: ::std::string::String)2894     pub fn set_appid_exclude(&mut self, v: ::std::string::String) {
2895         self.appid_exclude = v;
2896     }
2897 
2898     // Mutable pointer to the field.
2899     // If field is not initialized, it is initialized with default value first.
mut_appid_exclude(&mut self) -> &mut ::std::string::String2900     pub fn mut_appid_exclude(&mut self) -> &mut ::std::string::String {
2901         &mut self.appid_exclude
2902     }
2903 
2904     // Take field
take_appid_exclude(&mut self) -> ::std::string::String2905     pub fn take_appid_exclude(&mut self) -> ::std::string::String {
2906         ::std::mem::replace(&mut self.appid_exclude, ::std::string::String::new())
2907     }
2908 }
2909 
2910 impl ::protobuf::Message for PublicKeyCredentialCreationOptions {
is_initialized(&self) -> bool2911     fn is_initialized(&self) -> bool {
2912         for v in &self.relying_party {
2913             if !v.is_initialized() {
2914                 return false;
2915             }
2916         };
2917         for v in &self.user {
2918             if !v.is_initialized() {
2919                 return false;
2920             }
2921         };
2922         for v in &self.public_key_parameters {
2923             if !v.is_initialized() {
2924                 return false;
2925             }
2926         };
2927         for v in &self.exclude_credentials {
2928             if !v.is_initialized() {
2929                 return false;
2930             }
2931         };
2932         for v in &self.authenticator_selection {
2933             if !v.is_initialized() {
2934                 return false;
2935             }
2936         };
2937         for v in &self.cable_registration_data {
2938             if !v.is_initialized() {
2939                 return false;
2940             }
2941         };
2942         true
2943     }
2944 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>2945     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2946         while !is.eof()? {
2947             let (field_number, wire_type) = is.read_tag_unpack()?;
2948             match field_number {
2949                 1 => {
2950                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.relying_party)?;
2951                 },
2952                 2 => {
2953                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.user)?;
2954                 },
2955                 3 => {
2956                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.challenge)?;
2957                 },
2958                 4 => {
2959                     ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.public_key_parameters)?;
2960                 },
2961                 5 => {
2962                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
2963                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2964                     }
2965                     let tmp = is.read_int64()?;
2966                     self.adjusted_timeout = tmp;
2967                 },
2968                 6 => {
2969                     ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.exclude_credentials)?;
2970                 },
2971                 7 => {
2972                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authenticator_selection)?;
2973                 },
2974                 8 => {
2975                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.attestation, 8, &mut self.unknown_fields)?
2976                 },
2977                 9 => {
2978                     ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cable_registration_data)?;
2979                 },
2980                 10 => {
2981                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
2982                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2983                     }
2984                     let tmp = is.read_bool()?;
2985                     self.hmac_create_secret = tmp;
2986                 },
2987                 11 => {
2988                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.protection_policy, 11, &mut self.unknown_fields)?
2989                 },
2990                 12 => {
2991                     if wire_type != ::protobuf::wire_format::WireTypeVarint {
2992                         return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2993                     }
2994                     let tmp = is.read_bool()?;
2995                     self.enforce_protection_policy = tmp;
2996                 },
2997                 13 => {
2998                     ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.appid_exclude)?;
2999                 },
3000                 _ => {
3001                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
3002                 },
3003             };
3004         }
3005         ::std::result::Result::Ok(())
3006     }
3007 
3008     // Compute sizes of nested messages
3009     #[allow(unused_variables)]
compute_size(&self) -> u323010     fn compute_size(&self) -> u32 {
3011         let mut my_size = 0;
3012         if let Some(ref v) = self.relying_party.as_ref() {
3013             let len = v.compute_size();
3014             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3015         }
3016         if let Some(ref v) = self.user.as_ref() {
3017             let len = v.compute_size();
3018             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3019         }
3020         if !self.challenge.is_empty() {
3021             my_size += ::protobuf::rt::bytes_size(3, &self.challenge);
3022         }
3023         for value in &self.public_key_parameters {
3024             let len = value.compute_size();
3025             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3026         };
3027         if self.adjusted_timeout != 0 {
3028             my_size += ::protobuf::rt::value_size(5, self.adjusted_timeout, ::protobuf::wire_format::WireTypeVarint);
3029         }
3030         for value in &self.exclude_credentials {
3031             let len = value.compute_size();
3032             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3033         };
3034         if let Some(ref v) = self.authenticator_selection.as_ref() {
3035             let len = v.compute_size();
3036             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3037         }
3038         if self.attestation != AttestationConveyancePreference::NONE_ATTESTATION_PREFERENCE {
3039             my_size += ::protobuf::rt::enum_size(8, self.attestation);
3040         }
3041         if let Some(ref v) = self.cable_registration_data.as_ref() {
3042             let len = v.compute_size();
3043             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3044         }
3045         if self.hmac_create_secret != false {
3046             my_size += 2;
3047         }
3048         if self.protection_policy != ProtectionPolicy::UNSPECIFIED {
3049             my_size += ::protobuf::rt::enum_size(11, self.protection_policy);
3050         }
3051         if self.enforce_protection_policy != false {
3052             my_size += 2;
3053         }
3054         if !self.appid_exclude.is_empty() {
3055             my_size += ::protobuf::rt::string_size(13, &self.appid_exclude);
3056         }
3057         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
3058         self.cached_size.set(my_size);
3059         my_size
3060     }
3061 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>3062     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3063         if let Some(ref v) = self.relying_party.as_ref() {
3064             os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3065             os.write_raw_varint32(v.get_cached_size())?;
3066             v.write_to_with_cached_sizes(os)?;
3067         }
3068         if let Some(ref v) = self.user.as_ref() {
3069             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3070             os.write_raw_varint32(v.get_cached_size())?;
3071             v.write_to_with_cached_sizes(os)?;
3072         }
3073         if !self.challenge.is_empty() {
3074             os.write_bytes(3, &self.challenge)?;
3075         }
3076         for v in &self.public_key_parameters {
3077             os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3078             os.write_raw_varint32(v.get_cached_size())?;
3079             v.write_to_with_cached_sizes(os)?;
3080         };
3081         if self.adjusted_timeout != 0 {
3082             os.write_int64(5, self.adjusted_timeout)?;
3083         }
3084         for v in &self.exclude_credentials {
3085             os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3086             os.write_raw_varint32(v.get_cached_size())?;
3087             v.write_to_with_cached_sizes(os)?;
3088         };
3089         if let Some(ref v) = self.authenticator_selection.as_ref() {
3090             os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3091             os.write_raw_varint32(v.get_cached_size())?;
3092             v.write_to_with_cached_sizes(os)?;
3093         }
3094         if self.attestation != AttestationConveyancePreference::NONE_ATTESTATION_PREFERENCE {
3095             os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.attestation))?;
3096         }
3097         if let Some(ref v) = self.cable_registration_data.as_ref() {
3098             os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3099             os.write_raw_varint32(v.get_cached_size())?;
3100             v.write_to_with_cached_sizes(os)?;
3101         }
3102         if self.hmac_create_secret != false {
3103             os.write_bool(10, self.hmac_create_secret)?;
3104         }
3105         if self.protection_policy != ProtectionPolicy::UNSPECIFIED {
3106             os.write_enum(11, ::protobuf::ProtobufEnum::value(&self.protection_policy))?;
3107         }
3108         if self.enforce_protection_policy != false {
3109             os.write_bool(12, self.enforce_protection_policy)?;
3110         }
3111         if !self.appid_exclude.is_empty() {
3112             os.write_string(13, &self.appid_exclude)?;
3113         }
3114         os.write_unknown_fields(self.get_unknown_fields())?;
3115         ::std::result::Result::Ok(())
3116     }
3117 
get_cached_size(&self) -> u323118     fn get_cached_size(&self) -> u32 {
3119         self.cached_size.get()
3120     }
3121 
get_unknown_fields(&self) -> &::protobuf::UnknownFields3122     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
3123         &self.unknown_fields
3124     }
3125 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields3126     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
3127         &mut self.unknown_fields
3128     }
3129 
as_any(&self) -> &dyn (::std::any::Any)3130     fn as_any(&self) -> &dyn (::std::any::Any) {
3131         self as &dyn (::std::any::Any)
3132     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)3133     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
3134         self as &mut dyn (::std::any::Any)
3135     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>3136     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
3137         self
3138     }
3139 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor3140     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
3141         Self::descriptor_static()
3142     }
3143 
new() -> PublicKeyCredentialCreationOptions3144     fn new() -> PublicKeyCredentialCreationOptions {
3145         PublicKeyCredentialCreationOptions::new()
3146     }
3147 
default_instance() -> &'static PublicKeyCredentialCreationOptions3148     fn default_instance() -> &'static PublicKeyCredentialCreationOptions {
3149         static instance: ::protobuf::rt::LazyV2<PublicKeyCredentialCreationOptions> = ::protobuf::rt::LazyV2::INIT;
3150         instance.get(PublicKeyCredentialCreationOptions::new)
3151     }
3152 }
3153 
3154 impl ::protobuf::Clear for PublicKeyCredentialCreationOptions {
clear(&mut self)3155     fn clear(&mut self) {
3156         self.relying_party.clear();
3157         self.user.clear();
3158         self.challenge.clear();
3159         self.public_key_parameters.clear();
3160         self.adjusted_timeout = 0;
3161         self.exclude_credentials.clear();
3162         self.authenticator_selection.clear();
3163         self.attestation = AttestationConveyancePreference::NONE_ATTESTATION_PREFERENCE;
3164         self.cable_registration_data.clear();
3165         self.hmac_create_secret = false;
3166         self.protection_policy = ProtectionPolicy::UNSPECIFIED;
3167         self.enforce_protection_policy = false;
3168         self.appid_exclude.clear();
3169         self.unknown_fields.clear();
3170     }
3171 }
3172 
3173 impl ::protobuf::reflect::ProtobufValue for PublicKeyCredentialCreationOptions {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3174     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3175         ::protobuf::reflect::ReflectValueRef::Message(self)
3176     }
3177 }
3178 
3179 #[derive(PartialEq,Clone,Default,Debug)]
3180 pub struct PublicKeyCredentialDescriptor {
3181     // message fields
3182     pub field_type: PublicKeyCredentialType,
3183     pub id: ::std::vec::Vec<u8>,
3184     pub transports: ::std::vec::Vec<AuthenticatorTransport>,
3185     // special fields
3186     pub unknown_fields: ::protobuf::UnknownFields,
3187     pub cached_size: ::protobuf::CachedSize,
3188 }
3189 
3190 impl<'a> ::std::default::Default for &'a PublicKeyCredentialDescriptor {
default() -> &'a PublicKeyCredentialDescriptor3191     fn default() -> &'a PublicKeyCredentialDescriptor {
3192         <PublicKeyCredentialDescriptor as ::protobuf::Message>::default_instance()
3193     }
3194 }
3195 
3196 impl PublicKeyCredentialDescriptor {
new() -> PublicKeyCredentialDescriptor3197     pub fn new() -> PublicKeyCredentialDescriptor {
3198         ::std::default::Default::default()
3199     }
3200 
3201     // .cryptohome.fido.PublicKeyCredentialType type = 1;
3202 
3203 
get_field_type(&self) -> PublicKeyCredentialType3204     pub fn get_field_type(&self) -> PublicKeyCredentialType {
3205         self.field_type
3206     }
clear_field_type(&mut self)3207     pub fn clear_field_type(&mut self) {
3208         self.field_type = PublicKeyCredentialType::PUBLIC_KEY;
3209     }
3210 
3211     // Param is passed by value, moved
set_field_type(&mut self, v: PublicKeyCredentialType)3212     pub fn set_field_type(&mut self, v: PublicKeyCredentialType) {
3213         self.field_type = v;
3214     }
3215 
3216     // bytes id = 2;
3217 
3218 
get_id(&self) -> &[u8]3219     pub fn get_id(&self) -> &[u8] {
3220         &self.id
3221     }
clear_id(&mut self)3222     pub fn clear_id(&mut self) {
3223         self.id.clear();
3224     }
3225 
3226     // Param is passed by value, moved
set_id(&mut self, v: ::std::vec::Vec<u8>)3227     pub fn set_id(&mut self, v: ::std::vec::Vec<u8>) {
3228         self.id = v;
3229     }
3230 
3231     // Mutable pointer to the field.
3232     // If field is not initialized, it is initialized with default value first.
mut_id(&mut self) -> &mut ::std::vec::Vec<u8>3233     pub fn mut_id(&mut self) -> &mut ::std::vec::Vec<u8> {
3234         &mut self.id
3235     }
3236 
3237     // Take field
take_id(&mut self) -> ::std::vec::Vec<u8>3238     pub fn take_id(&mut self) -> ::std::vec::Vec<u8> {
3239         ::std::mem::replace(&mut self.id, ::std::vec::Vec::new())
3240     }
3241 
3242     // repeated .cryptohome.fido.AuthenticatorTransport transports = 3;
3243 
3244 
get_transports(&self) -> &[AuthenticatorTransport]3245     pub fn get_transports(&self) -> &[AuthenticatorTransport] {
3246         &self.transports
3247     }
clear_transports(&mut self)3248     pub fn clear_transports(&mut self) {
3249         self.transports.clear();
3250     }
3251 
3252     // Param is passed by value, moved
set_transports(&mut self, v: ::std::vec::Vec<AuthenticatorTransport>)3253     pub fn set_transports(&mut self, v: ::std::vec::Vec<AuthenticatorTransport>) {
3254         self.transports = v;
3255     }
3256 
3257     // Mutable pointer to the field.
mut_transports(&mut self) -> &mut ::std::vec::Vec<AuthenticatorTransport>3258     pub fn mut_transports(&mut self) -> &mut ::std::vec::Vec<AuthenticatorTransport> {
3259         &mut self.transports
3260     }
3261 
3262     // Take field
take_transports(&mut self) -> ::std::vec::Vec<AuthenticatorTransport>3263     pub fn take_transports(&mut self) -> ::std::vec::Vec<AuthenticatorTransport> {
3264         ::std::mem::replace(&mut self.transports, ::std::vec::Vec::new())
3265     }
3266 }
3267 
3268 impl ::protobuf::Message for PublicKeyCredentialDescriptor {
is_initialized(&self) -> bool3269     fn is_initialized(&self) -> bool {
3270         true
3271     }
3272 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>3273     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3274         while !is.eof()? {
3275             let (field_number, wire_type) = is.read_tag_unpack()?;
3276             match field_number {
3277                 1 => {
3278                     ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 1, &mut self.unknown_fields)?
3279                 },
3280                 2 => {
3281                     ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.id)?;
3282                 },
3283                 3 => {
3284                     ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.transports, 3, &mut self.unknown_fields)?
3285                 },
3286                 _ => {
3287                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
3288                 },
3289             };
3290         }
3291         ::std::result::Result::Ok(())
3292     }
3293 
3294     // Compute sizes of nested messages
3295     #[allow(unused_variables)]
compute_size(&self) -> u323296     fn compute_size(&self) -> u32 {
3297         let mut my_size = 0;
3298         if self.field_type != PublicKeyCredentialType::PUBLIC_KEY {
3299             my_size += ::protobuf::rt::enum_size(1, self.field_type);
3300         }
3301         if !self.id.is_empty() {
3302             my_size += ::protobuf::rt::bytes_size(2, &self.id);
3303         }
3304         for value in &self.transports {
3305             my_size += ::protobuf::rt::enum_size(3, *value);
3306         };
3307         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
3308         self.cached_size.set(my_size);
3309         my_size
3310     }
3311 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>3312     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3313         if self.field_type != PublicKeyCredentialType::PUBLIC_KEY {
3314             os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.field_type))?;
3315         }
3316         if !self.id.is_empty() {
3317             os.write_bytes(2, &self.id)?;
3318         }
3319         for v in &self.transports {
3320             os.write_enum(3, ::protobuf::ProtobufEnum::value(v))?;
3321         };
3322         os.write_unknown_fields(self.get_unknown_fields())?;
3323         ::std::result::Result::Ok(())
3324     }
3325 
get_cached_size(&self) -> u323326     fn get_cached_size(&self) -> u32 {
3327         self.cached_size.get()
3328     }
3329 
get_unknown_fields(&self) -> &::protobuf::UnknownFields3330     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
3331         &self.unknown_fields
3332     }
3333 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields3334     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
3335         &mut self.unknown_fields
3336     }
3337 
as_any(&self) -> &dyn (::std::any::Any)3338     fn as_any(&self) -> &dyn (::std::any::Any) {
3339         self as &dyn (::std::any::Any)
3340     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)3341     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
3342         self as &mut dyn (::std::any::Any)
3343     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>3344     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
3345         self
3346     }
3347 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor3348     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
3349         Self::descriptor_static()
3350     }
3351 
new() -> PublicKeyCredentialDescriptor3352     fn new() -> PublicKeyCredentialDescriptor {
3353         PublicKeyCredentialDescriptor::new()
3354     }
3355 
default_instance() -> &'static PublicKeyCredentialDescriptor3356     fn default_instance() -> &'static PublicKeyCredentialDescriptor {
3357         static instance: ::protobuf::rt::LazyV2<PublicKeyCredentialDescriptor> = ::protobuf::rt::LazyV2::INIT;
3358         instance.get(PublicKeyCredentialDescriptor::new)
3359     }
3360 }
3361 
3362 impl ::protobuf::Clear for PublicKeyCredentialDescriptor {
clear(&mut self)3363     fn clear(&mut self) {
3364         self.field_type = PublicKeyCredentialType::PUBLIC_KEY;
3365         self.id.clear();
3366         self.transports.clear();
3367         self.unknown_fields.clear();
3368     }
3369 }
3370 
3371 impl ::protobuf::reflect::ProtobufValue for PublicKeyCredentialDescriptor {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3372     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3373         ::protobuf::reflect::ReflectValueRef::Message(self)
3374     }
3375 }
3376 
3377 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
3378 pub enum AuthenticatorStatus {
3379     SUCCESS = 0,
3380     PENDING_REQUEST = 1,
3381     NOT_ALLOWED_ERROR = 2,
3382     INVALID_DOMAIN = 3,
3383     INVALID_ICON_URL = 4,
3384     CREDENTIAL_EXCLUDED = 5,
3385     CREDENTIAL_NOT_RECOGNIZED = 6,
3386     NOT_IMPLEMENTED = 7,
3387     NOT_FOCUSED = 8,
3388     RESIDENT_CREDENTIALS_UNSUPPORTED = 9,
3389     USER_VERIFICATION_UNSUPPORTED = 10,
3390     ALGORITHM_UNSUPPORTED = 11,
3391     EMPTY_ALLOW_CREDENTIALS = 12,
3392     ANDROID_NOT_SUPPORTED_ERROR = 13,
3393     PROTECTION_POLICY_INCONSISTENT = 14,
3394     ABORT_ERROR = 15,
3395     OPAQUE_DOMAIN = 16,
3396     INVALID_PROTOCOL = 17,
3397     BAD_RELYING_PARTY_ID = 18,
3398     UNKNOWN_ERROR = 19,
3399 }
3400 
3401 impl ::protobuf::ProtobufEnum for AuthenticatorStatus {
value(&self) -> i323402     fn value(&self) -> i32 {
3403         *self as i32
3404     }
3405 
from_i32(value: i32) -> ::std::option::Option<AuthenticatorStatus>3406     fn from_i32(value: i32) -> ::std::option::Option<AuthenticatorStatus> {
3407         match value {
3408             0 => ::std::option::Option::Some(AuthenticatorStatus::SUCCESS),
3409             1 => ::std::option::Option::Some(AuthenticatorStatus::PENDING_REQUEST),
3410             2 => ::std::option::Option::Some(AuthenticatorStatus::NOT_ALLOWED_ERROR),
3411             3 => ::std::option::Option::Some(AuthenticatorStatus::INVALID_DOMAIN),
3412             4 => ::std::option::Option::Some(AuthenticatorStatus::INVALID_ICON_URL),
3413             5 => ::std::option::Option::Some(AuthenticatorStatus::CREDENTIAL_EXCLUDED),
3414             6 => ::std::option::Option::Some(AuthenticatorStatus::CREDENTIAL_NOT_RECOGNIZED),
3415             7 => ::std::option::Option::Some(AuthenticatorStatus::NOT_IMPLEMENTED),
3416             8 => ::std::option::Option::Some(AuthenticatorStatus::NOT_FOCUSED),
3417             9 => ::std::option::Option::Some(AuthenticatorStatus::RESIDENT_CREDENTIALS_UNSUPPORTED),
3418             10 => ::std::option::Option::Some(AuthenticatorStatus::USER_VERIFICATION_UNSUPPORTED),
3419             11 => ::std::option::Option::Some(AuthenticatorStatus::ALGORITHM_UNSUPPORTED),
3420             12 => ::std::option::Option::Some(AuthenticatorStatus::EMPTY_ALLOW_CREDENTIALS),
3421             13 => ::std::option::Option::Some(AuthenticatorStatus::ANDROID_NOT_SUPPORTED_ERROR),
3422             14 => ::std::option::Option::Some(AuthenticatorStatus::PROTECTION_POLICY_INCONSISTENT),
3423             15 => ::std::option::Option::Some(AuthenticatorStatus::ABORT_ERROR),
3424             16 => ::std::option::Option::Some(AuthenticatorStatus::OPAQUE_DOMAIN),
3425             17 => ::std::option::Option::Some(AuthenticatorStatus::INVALID_PROTOCOL),
3426             18 => ::std::option::Option::Some(AuthenticatorStatus::BAD_RELYING_PARTY_ID),
3427             19 => ::std::option::Option::Some(AuthenticatorStatus::UNKNOWN_ERROR),
3428             _ => ::std::option::Option::None
3429         }
3430     }
3431 
values() -> &'static [Self]3432     fn values() -> &'static [Self] {
3433         static values: &'static [AuthenticatorStatus] = &[
3434             AuthenticatorStatus::SUCCESS,
3435             AuthenticatorStatus::PENDING_REQUEST,
3436             AuthenticatorStatus::NOT_ALLOWED_ERROR,
3437             AuthenticatorStatus::INVALID_DOMAIN,
3438             AuthenticatorStatus::INVALID_ICON_URL,
3439             AuthenticatorStatus::CREDENTIAL_EXCLUDED,
3440             AuthenticatorStatus::CREDENTIAL_NOT_RECOGNIZED,
3441             AuthenticatorStatus::NOT_IMPLEMENTED,
3442             AuthenticatorStatus::NOT_FOCUSED,
3443             AuthenticatorStatus::RESIDENT_CREDENTIALS_UNSUPPORTED,
3444             AuthenticatorStatus::USER_VERIFICATION_UNSUPPORTED,
3445             AuthenticatorStatus::ALGORITHM_UNSUPPORTED,
3446             AuthenticatorStatus::EMPTY_ALLOW_CREDENTIALS,
3447             AuthenticatorStatus::ANDROID_NOT_SUPPORTED_ERROR,
3448             AuthenticatorStatus::PROTECTION_POLICY_INCONSISTENT,
3449             AuthenticatorStatus::ABORT_ERROR,
3450             AuthenticatorStatus::OPAQUE_DOMAIN,
3451             AuthenticatorStatus::INVALID_PROTOCOL,
3452             AuthenticatorStatus::BAD_RELYING_PARTY_ID,
3453             AuthenticatorStatus::UNKNOWN_ERROR,
3454         ];
3455         values
3456     }
3457 }
3458 
3459 impl ::std::marker::Copy for AuthenticatorStatus {
3460 }
3461 
3462 impl ::std::default::Default for AuthenticatorStatus {
default() -> Self3463     fn default() -> Self {
3464         AuthenticatorStatus::SUCCESS
3465     }
3466 }
3467 
3468 impl ::protobuf::reflect::ProtobufValue for AuthenticatorStatus {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3469     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3470         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
3471     }
3472 }
3473 
3474 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
3475 pub enum AuthenticatorTransport {
3476     USB = 0,
3477     NFC = 1,
3478     BLE = 2,
3479     CABLE = 3,
3480     INTERNAL = 4,
3481 }
3482 
3483 impl ::protobuf::ProtobufEnum for AuthenticatorTransport {
value(&self) -> i323484     fn value(&self) -> i32 {
3485         *self as i32
3486     }
3487 
from_i32(value: i32) -> ::std::option::Option<AuthenticatorTransport>3488     fn from_i32(value: i32) -> ::std::option::Option<AuthenticatorTransport> {
3489         match value {
3490             0 => ::std::option::Option::Some(AuthenticatorTransport::USB),
3491             1 => ::std::option::Option::Some(AuthenticatorTransport::NFC),
3492             2 => ::std::option::Option::Some(AuthenticatorTransport::BLE),
3493             3 => ::std::option::Option::Some(AuthenticatorTransport::CABLE),
3494             4 => ::std::option::Option::Some(AuthenticatorTransport::INTERNAL),
3495             _ => ::std::option::Option::None
3496         }
3497     }
3498 
values() -> &'static [Self]3499     fn values() -> &'static [Self] {
3500         static values: &'static [AuthenticatorTransport] = &[
3501             AuthenticatorTransport::USB,
3502             AuthenticatorTransport::NFC,
3503             AuthenticatorTransport::BLE,
3504             AuthenticatorTransport::CABLE,
3505             AuthenticatorTransport::INTERNAL,
3506         ];
3507         values
3508     }
3509 }
3510 
3511 impl ::std::marker::Copy for AuthenticatorTransport {
3512 }
3513 
3514 impl ::std::default::Default for AuthenticatorTransport {
default() -> Self3515     fn default() -> Self {
3516         AuthenticatorTransport::USB
3517     }
3518 }
3519 
3520 impl ::protobuf::reflect::ProtobufValue for AuthenticatorTransport {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3521     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3522         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
3523     }
3524 }
3525 
3526 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
3527 pub enum UserVerificationRequirement {
3528     REQUIRED = 0,
3529     PREFERRED = 1,
3530     DISCOURAGED = 2,
3531 }
3532 
3533 impl ::protobuf::ProtobufEnum for UserVerificationRequirement {
value(&self) -> i323534     fn value(&self) -> i32 {
3535         *self as i32
3536     }
3537 
from_i32(value: i32) -> ::std::option::Option<UserVerificationRequirement>3538     fn from_i32(value: i32) -> ::std::option::Option<UserVerificationRequirement> {
3539         match value {
3540             0 => ::std::option::Option::Some(UserVerificationRequirement::REQUIRED),
3541             1 => ::std::option::Option::Some(UserVerificationRequirement::PREFERRED),
3542             2 => ::std::option::Option::Some(UserVerificationRequirement::DISCOURAGED),
3543             _ => ::std::option::Option::None
3544         }
3545     }
3546 
values() -> &'static [Self]3547     fn values() -> &'static [Self] {
3548         static values: &'static [UserVerificationRequirement] = &[
3549             UserVerificationRequirement::REQUIRED,
3550             UserVerificationRequirement::PREFERRED,
3551             UserVerificationRequirement::DISCOURAGED,
3552         ];
3553         values
3554     }
3555 }
3556 
3557 impl ::std::marker::Copy for UserVerificationRequirement {
3558 }
3559 
3560 impl ::std::default::Default for UserVerificationRequirement {
default() -> Self3561     fn default() -> Self {
3562         UserVerificationRequirement::REQUIRED
3563     }
3564 }
3565 
3566 impl ::protobuf::reflect::ProtobufValue for UserVerificationRequirement {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3567     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3568         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
3569     }
3570 }
3571 
3572 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
3573 pub enum AttestationConveyancePreference {
3574     NONE_ATTESTATION_PREFERENCE = 0,
3575     INDIRECT = 1,
3576     DIRECT = 2,
3577     ENTERPRISE = 3,
3578 }
3579 
3580 impl ::protobuf::ProtobufEnum for AttestationConveyancePreference {
value(&self) -> i323581     fn value(&self) -> i32 {
3582         *self as i32
3583     }
3584 
from_i32(value: i32) -> ::std::option::Option<AttestationConveyancePreference>3585     fn from_i32(value: i32) -> ::std::option::Option<AttestationConveyancePreference> {
3586         match value {
3587             0 => ::std::option::Option::Some(AttestationConveyancePreference::NONE_ATTESTATION_PREFERENCE),
3588             1 => ::std::option::Option::Some(AttestationConveyancePreference::INDIRECT),
3589             2 => ::std::option::Option::Some(AttestationConveyancePreference::DIRECT),
3590             3 => ::std::option::Option::Some(AttestationConveyancePreference::ENTERPRISE),
3591             _ => ::std::option::Option::None
3592         }
3593     }
3594 
values() -> &'static [Self]3595     fn values() -> &'static [Self] {
3596         static values: &'static [AttestationConveyancePreference] = &[
3597             AttestationConveyancePreference::NONE_ATTESTATION_PREFERENCE,
3598             AttestationConveyancePreference::INDIRECT,
3599             AttestationConveyancePreference::DIRECT,
3600             AttestationConveyancePreference::ENTERPRISE,
3601         ];
3602         values
3603     }
3604 }
3605 
3606 impl ::std::marker::Copy for AttestationConveyancePreference {
3607 }
3608 
3609 impl ::std::default::Default for AttestationConveyancePreference {
default() -> Self3610     fn default() -> Self {
3611         AttestationConveyancePreference::NONE_ATTESTATION_PREFERENCE
3612     }
3613 }
3614 
3615 impl ::protobuf::reflect::ProtobufValue for AttestationConveyancePreference {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3616     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3617         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
3618     }
3619 }
3620 
3621 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
3622 pub enum AuthenticatorAttachment {
3623     NO_PREFERENCE = 0,
3624     PLATFORM = 1,
3625     CROSS_PLATFORM = 2,
3626 }
3627 
3628 impl ::protobuf::ProtobufEnum for AuthenticatorAttachment {
value(&self) -> i323629     fn value(&self) -> i32 {
3630         *self as i32
3631     }
3632 
from_i32(value: i32) -> ::std::option::Option<AuthenticatorAttachment>3633     fn from_i32(value: i32) -> ::std::option::Option<AuthenticatorAttachment> {
3634         match value {
3635             0 => ::std::option::Option::Some(AuthenticatorAttachment::NO_PREFERENCE),
3636             1 => ::std::option::Option::Some(AuthenticatorAttachment::PLATFORM),
3637             2 => ::std::option::Option::Some(AuthenticatorAttachment::CROSS_PLATFORM),
3638             _ => ::std::option::Option::None
3639         }
3640     }
3641 
values() -> &'static [Self]3642     fn values() -> &'static [Self] {
3643         static values: &'static [AuthenticatorAttachment] = &[
3644             AuthenticatorAttachment::NO_PREFERENCE,
3645             AuthenticatorAttachment::PLATFORM,
3646             AuthenticatorAttachment::CROSS_PLATFORM,
3647         ];
3648         values
3649     }
3650 }
3651 
3652 impl ::std::marker::Copy for AuthenticatorAttachment {
3653 }
3654 
3655 impl ::std::default::Default for AuthenticatorAttachment {
default() -> Self3656     fn default() -> Self {
3657         AuthenticatorAttachment::NO_PREFERENCE
3658     }
3659 }
3660 
3661 impl ::protobuf::reflect::ProtobufValue for AuthenticatorAttachment {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3662     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3663         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
3664     }
3665 }
3666 
3667 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
3668 pub enum ProtectionPolicy {
3669     UNSPECIFIED = 0,
3670     NONE_PROTECTION_POLICY = 1,
3671     UV_OR_CRED_ID_REQUIRED = 2,
3672     UV_REQUIRED = 3,
3673 }
3674 
3675 impl ::protobuf::ProtobufEnum for ProtectionPolicy {
value(&self) -> i323676     fn value(&self) -> i32 {
3677         *self as i32
3678     }
3679 
from_i32(value: i32) -> ::std::option::Option<ProtectionPolicy>3680     fn from_i32(value: i32) -> ::std::option::Option<ProtectionPolicy> {
3681         match value {
3682             0 => ::std::option::Option::Some(ProtectionPolicy::UNSPECIFIED),
3683             1 => ::std::option::Option::Some(ProtectionPolicy::NONE_PROTECTION_POLICY),
3684             2 => ::std::option::Option::Some(ProtectionPolicy::UV_OR_CRED_ID_REQUIRED),
3685             3 => ::std::option::Option::Some(ProtectionPolicy::UV_REQUIRED),
3686             _ => ::std::option::Option::None
3687         }
3688     }
3689 
values() -> &'static [Self]3690     fn values() -> &'static [Self] {
3691         static values: &'static [ProtectionPolicy] = &[
3692             ProtectionPolicy::UNSPECIFIED,
3693             ProtectionPolicy::NONE_PROTECTION_POLICY,
3694             ProtectionPolicy::UV_OR_CRED_ID_REQUIRED,
3695             ProtectionPolicy::UV_REQUIRED,
3696         ];
3697         values
3698     }
3699 }
3700 
3701 impl ::std::marker::Copy for ProtectionPolicy {
3702 }
3703 
3704 impl ::std::default::Default for ProtectionPolicy {
default() -> Self3705     fn default() -> Self {
3706         ProtectionPolicy::UNSPECIFIED
3707     }
3708 }
3709 
3710 impl ::protobuf::reflect::ProtobufValue for ProtectionPolicy {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3711     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3712         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
3713     }
3714 }
3715 
3716 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
3717 pub enum PublicKeyCredentialType {
3718     PUBLIC_KEY = 0,
3719 }
3720 
3721 impl ::protobuf::ProtobufEnum for PublicKeyCredentialType {
value(&self) -> i323722     fn value(&self) -> i32 {
3723         *self as i32
3724     }
3725 
from_i32(value: i32) -> ::std::option::Option<PublicKeyCredentialType>3726     fn from_i32(value: i32) -> ::std::option::Option<PublicKeyCredentialType> {
3727         match value {
3728             0 => ::std::option::Option::Some(PublicKeyCredentialType::PUBLIC_KEY),
3729             _ => ::std::option::Option::None
3730         }
3731     }
3732 
values() -> &'static [Self]3733     fn values() -> &'static [Self] {
3734         static values: &'static [PublicKeyCredentialType] = &[
3735             PublicKeyCredentialType::PUBLIC_KEY,
3736         ];
3737         values
3738     }
3739 }
3740 
3741 impl ::std::marker::Copy for PublicKeyCredentialType {
3742 }
3743 
3744 impl ::std::default::Default for PublicKeyCredentialType {
default() -> Self3745     fn default() -> Self {
3746         PublicKeyCredentialType::PUBLIC_KEY
3747     }
3748 }
3749 
3750 impl ::protobuf::reflect::ProtobufValue for PublicKeyCredentialType {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef3751     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
3752         ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
3753     }
3754 }
3755