• 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 `keymaster_attributes.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)]
27 pub struct KeymasterAttributes {
28     // message fields
29     uuid: ::protobuf::SingularField<::std::vec::Vec<u8>>,
30     product_id: ::protobuf::SingularField<::std::vec::Vec<u8>>,
31     // special fields
32     pub unknown_fields: ::protobuf::UnknownFields,
33     pub cached_size: ::protobuf::CachedSize,
34 }
35 
36 impl<'a> ::std::default::Default for &'a KeymasterAttributes {
default() -> &'a KeymasterAttributes37     fn default() -> &'a KeymasterAttributes {
38         <KeymasterAttributes as ::protobuf::Message>::default_instance()
39     }
40 }
41 
42 impl KeymasterAttributes {
new() -> KeymasterAttributes43     pub fn new() -> KeymasterAttributes {
44         ::std::default::Default::default()
45     }
46 
47     // optional bytes uuid = 1;
48 
49 
get_uuid(&self) -> &[u8]50     pub fn get_uuid(&self) -> &[u8] {
51         match self.uuid.as_ref() {
52             Some(v) => &v,
53             None => &[],
54         }
55     }
clear_uuid(&mut self)56     pub fn clear_uuid(&mut self) {
57         self.uuid.clear();
58     }
59 
has_uuid(&self) -> bool60     pub fn has_uuid(&self) -> bool {
61         self.uuid.is_some()
62     }
63 
64     // Param is passed by value, moved
set_uuid(&mut self, v: ::std::vec::Vec<u8>)65     pub fn set_uuid(&mut self, v: ::std::vec::Vec<u8>) {
66         self.uuid = ::protobuf::SingularField::some(v);
67     }
68 
69     // Mutable pointer to the field.
70     // If field is not initialized, it is initialized with default value first.
mut_uuid(&mut self) -> &mut ::std::vec::Vec<u8>71     pub fn mut_uuid(&mut self) -> &mut ::std::vec::Vec<u8> {
72         if self.uuid.is_none() {
73             self.uuid.set_default();
74         }
75         self.uuid.as_mut().unwrap()
76     }
77 
78     // Take field
take_uuid(&mut self) -> ::std::vec::Vec<u8>79     pub fn take_uuid(&mut self) -> ::std::vec::Vec<u8> {
80         self.uuid.take().unwrap_or_else(|| ::std::vec::Vec::new())
81     }
82 
83     // optional bytes product_id = 2;
84 
85 
get_product_id(&self) -> &[u8]86     pub fn get_product_id(&self) -> &[u8] {
87         match self.product_id.as_ref() {
88             Some(v) => &v,
89             None => &[],
90         }
91     }
clear_product_id(&mut self)92     pub fn clear_product_id(&mut self) {
93         self.product_id.clear();
94     }
95 
has_product_id(&self) -> bool96     pub fn has_product_id(&self) -> bool {
97         self.product_id.is_some()
98     }
99 
100     // Param is passed by value, moved
set_product_id(&mut self, v: ::std::vec::Vec<u8>)101     pub fn set_product_id(&mut self, v: ::std::vec::Vec<u8>) {
102         self.product_id = ::protobuf::SingularField::some(v);
103     }
104 
105     // Mutable pointer to the field.
106     // If field is not initialized, it is initialized with default value first.
mut_product_id(&mut self) -> &mut ::std::vec::Vec<u8>107     pub fn mut_product_id(&mut self) -> &mut ::std::vec::Vec<u8> {
108         if self.product_id.is_none() {
109             self.product_id.set_default();
110         }
111         self.product_id.as_mut().unwrap()
112     }
113 
114     // Take field
take_product_id(&mut self) -> ::std::vec::Vec<u8>115     pub fn take_product_id(&mut self) -> ::std::vec::Vec<u8> {
116         self.product_id.take().unwrap_or_else(|| ::std::vec::Vec::new())
117     }
118 }
119 
120 impl ::protobuf::Message for KeymasterAttributes {
is_initialized(&self) -> bool121     fn is_initialized(&self) -> bool {
122         true
123     }
124 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>125     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
126         while !is.eof()? {
127             let (field_number, wire_type) = is.read_tag_unpack()?;
128             match field_number {
129                 1 => {
130                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.uuid)?;
131                 },
132                 2 => {
133                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.product_id)?;
134                 },
135                 _ => {
136                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
137                 },
138             };
139         }
140         ::std::result::Result::Ok(())
141     }
142 
143     // Compute sizes of nested messages
144     #[allow(unused_variables)]
compute_size(&self) -> u32145     fn compute_size(&self) -> u32 {
146         let mut my_size = 0;
147         if let Some(ref v) = self.uuid.as_ref() {
148             my_size += ::protobuf::rt::bytes_size(1, &v);
149         }
150         if let Some(ref v) = self.product_id.as_ref() {
151             my_size += ::protobuf::rt::bytes_size(2, &v);
152         }
153         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
154         self.cached_size.set(my_size);
155         my_size
156     }
157 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>158     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
159         if let Some(ref v) = self.uuid.as_ref() {
160             os.write_bytes(1, &v)?;
161         }
162         if let Some(ref v) = self.product_id.as_ref() {
163             os.write_bytes(2, &v)?;
164         }
165         os.write_unknown_fields(self.get_unknown_fields())?;
166         ::std::result::Result::Ok(())
167     }
168 
get_cached_size(&self) -> u32169     fn get_cached_size(&self) -> u32 {
170         self.cached_size.get()
171     }
172 
get_unknown_fields(&self) -> &::protobuf::UnknownFields173     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
174         &self.unknown_fields
175     }
176 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields177     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
178         &mut self.unknown_fields
179     }
180 
as_any(&self) -> &dyn (::std::any::Any)181     fn as_any(&self) -> &dyn (::std::any::Any) {
182         self as &dyn (::std::any::Any)
183     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)184     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
185         self as &mut dyn (::std::any::Any)
186     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>187     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
188         self
189     }
190 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor191     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
192         Self::descriptor_static()
193     }
194 
new() -> KeymasterAttributes195     fn new() -> KeymasterAttributes {
196         KeymasterAttributes::new()
197     }
198 
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor199     fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
200         static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
201         descriptor.get(|| {
202             let mut fields = ::std::vec::Vec::new();
203             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
204                 "uuid",
205                 |m: &KeymasterAttributes| { &m.uuid },
206                 |m: &mut KeymasterAttributes| { &mut m.uuid },
207             ));
208             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
209                 "product_id",
210                 |m: &KeymasterAttributes| { &m.product_id },
211                 |m: &mut KeymasterAttributes| { &mut m.product_id },
212             ));
213             ::protobuf::reflect::MessageDescriptor::new_pb_name::<KeymasterAttributes>(
214                 "KeymasterAttributes",
215                 fields,
216                 file_descriptor_proto()
217             )
218         })
219     }
220 
default_instance() -> &'static KeymasterAttributes221     fn default_instance() -> &'static KeymasterAttributes {
222         static instance: ::protobuf::rt::LazyV2<KeymasterAttributes> = ::protobuf::rt::LazyV2::INIT;
223         instance.get(KeymasterAttributes::new)
224     }
225 }
226 
227 impl ::protobuf::Clear for KeymasterAttributes {
clear(&mut self)228     fn clear(&mut self) {
229         self.uuid.clear();
230         self.product_id.clear();
231         self.unknown_fields.clear();
232     }
233 }
234 
235 impl ::std::fmt::Debug for KeymasterAttributes {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result236     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
237         ::protobuf::text_format::fmt(self, f)
238     }
239 }
240 
241 impl ::protobuf::reflect::ProtobufValue for KeymasterAttributes {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef242     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
243         ::protobuf::reflect::ReflectValueRef::Message(self)
244     }
245 }
246 
247 #[derive(PartialEq,Clone,Default)]
248 pub struct AttestationIds {
249     // message fields
250     brand: ::protobuf::SingularField<::std::vec::Vec<u8>>,
251     device: ::protobuf::SingularField<::std::vec::Vec<u8>>,
252     product: ::protobuf::SingularField<::std::vec::Vec<u8>>,
253     serial: ::protobuf::SingularField<::std::vec::Vec<u8>>,
254     imei: ::protobuf::SingularField<::std::vec::Vec<u8>>,
255     meid: ::protobuf::SingularField<::std::vec::Vec<u8>>,
256     manufacturer: ::protobuf::SingularField<::std::vec::Vec<u8>>,
257     model: ::protobuf::SingularField<::std::vec::Vec<u8>>,
258     second_imei: ::protobuf::SingularField<::std::vec::Vec<u8>>,
259     // special fields
260     pub unknown_fields: ::protobuf::UnknownFields,
261     pub cached_size: ::protobuf::CachedSize,
262 }
263 
264 impl<'a> ::std::default::Default for &'a AttestationIds {
default() -> &'a AttestationIds265     fn default() -> &'a AttestationIds {
266         <AttestationIds as ::protobuf::Message>::default_instance()
267     }
268 }
269 
270 impl AttestationIds {
new() -> AttestationIds271     pub fn new() -> AttestationIds {
272         ::std::default::Default::default()
273     }
274 
275     // optional bytes brand = 1;
276 
277 
get_brand(&self) -> &[u8]278     pub fn get_brand(&self) -> &[u8] {
279         match self.brand.as_ref() {
280             Some(v) => &v,
281             None => &[],
282         }
283     }
clear_brand(&mut self)284     pub fn clear_brand(&mut self) {
285         self.brand.clear();
286     }
287 
has_brand(&self) -> bool288     pub fn has_brand(&self) -> bool {
289         self.brand.is_some()
290     }
291 
292     // Param is passed by value, moved
set_brand(&mut self, v: ::std::vec::Vec<u8>)293     pub fn set_brand(&mut self, v: ::std::vec::Vec<u8>) {
294         self.brand = ::protobuf::SingularField::some(v);
295     }
296 
297     // Mutable pointer to the field.
298     // If field is not initialized, it is initialized with default value first.
mut_brand(&mut self) -> &mut ::std::vec::Vec<u8>299     pub fn mut_brand(&mut self) -> &mut ::std::vec::Vec<u8> {
300         if self.brand.is_none() {
301             self.brand.set_default();
302         }
303         self.brand.as_mut().unwrap()
304     }
305 
306     // Take field
take_brand(&mut self) -> ::std::vec::Vec<u8>307     pub fn take_brand(&mut self) -> ::std::vec::Vec<u8> {
308         self.brand.take().unwrap_or_else(|| ::std::vec::Vec::new())
309     }
310 
311     // optional bytes device = 2;
312 
313 
get_device(&self) -> &[u8]314     pub fn get_device(&self) -> &[u8] {
315         match self.device.as_ref() {
316             Some(v) => &v,
317             None => &[],
318         }
319     }
clear_device(&mut self)320     pub fn clear_device(&mut self) {
321         self.device.clear();
322     }
323 
has_device(&self) -> bool324     pub fn has_device(&self) -> bool {
325         self.device.is_some()
326     }
327 
328     // Param is passed by value, moved
set_device(&mut self, v: ::std::vec::Vec<u8>)329     pub fn set_device(&mut self, v: ::std::vec::Vec<u8>) {
330         self.device = ::protobuf::SingularField::some(v);
331     }
332 
333     // Mutable pointer to the field.
334     // If field is not initialized, it is initialized with default value first.
mut_device(&mut self) -> &mut ::std::vec::Vec<u8>335     pub fn mut_device(&mut self) -> &mut ::std::vec::Vec<u8> {
336         if self.device.is_none() {
337             self.device.set_default();
338         }
339         self.device.as_mut().unwrap()
340     }
341 
342     // Take field
take_device(&mut self) -> ::std::vec::Vec<u8>343     pub fn take_device(&mut self) -> ::std::vec::Vec<u8> {
344         self.device.take().unwrap_or_else(|| ::std::vec::Vec::new())
345     }
346 
347     // optional bytes product = 3;
348 
349 
get_product(&self) -> &[u8]350     pub fn get_product(&self) -> &[u8] {
351         match self.product.as_ref() {
352             Some(v) => &v,
353             None => &[],
354         }
355     }
clear_product(&mut self)356     pub fn clear_product(&mut self) {
357         self.product.clear();
358     }
359 
has_product(&self) -> bool360     pub fn has_product(&self) -> bool {
361         self.product.is_some()
362     }
363 
364     // Param is passed by value, moved
set_product(&mut self, v: ::std::vec::Vec<u8>)365     pub fn set_product(&mut self, v: ::std::vec::Vec<u8>) {
366         self.product = ::protobuf::SingularField::some(v);
367     }
368 
369     // Mutable pointer to the field.
370     // If field is not initialized, it is initialized with default value first.
mut_product(&mut self) -> &mut ::std::vec::Vec<u8>371     pub fn mut_product(&mut self) -> &mut ::std::vec::Vec<u8> {
372         if self.product.is_none() {
373             self.product.set_default();
374         }
375         self.product.as_mut().unwrap()
376     }
377 
378     // Take field
take_product(&mut self) -> ::std::vec::Vec<u8>379     pub fn take_product(&mut self) -> ::std::vec::Vec<u8> {
380         self.product.take().unwrap_or_else(|| ::std::vec::Vec::new())
381     }
382 
383     // optional bytes serial = 4;
384 
385 
get_serial(&self) -> &[u8]386     pub fn get_serial(&self) -> &[u8] {
387         match self.serial.as_ref() {
388             Some(v) => &v,
389             None => &[],
390         }
391     }
clear_serial(&mut self)392     pub fn clear_serial(&mut self) {
393         self.serial.clear();
394     }
395 
has_serial(&self) -> bool396     pub fn has_serial(&self) -> bool {
397         self.serial.is_some()
398     }
399 
400     // Param is passed by value, moved
set_serial(&mut self, v: ::std::vec::Vec<u8>)401     pub fn set_serial(&mut self, v: ::std::vec::Vec<u8>) {
402         self.serial = ::protobuf::SingularField::some(v);
403     }
404 
405     // Mutable pointer to the field.
406     // If field is not initialized, it is initialized with default value first.
mut_serial(&mut self) -> &mut ::std::vec::Vec<u8>407     pub fn mut_serial(&mut self) -> &mut ::std::vec::Vec<u8> {
408         if self.serial.is_none() {
409             self.serial.set_default();
410         }
411         self.serial.as_mut().unwrap()
412     }
413 
414     // Take field
take_serial(&mut self) -> ::std::vec::Vec<u8>415     pub fn take_serial(&mut self) -> ::std::vec::Vec<u8> {
416         self.serial.take().unwrap_or_else(|| ::std::vec::Vec::new())
417     }
418 
419     // optional bytes imei = 5;
420 
421 
get_imei(&self) -> &[u8]422     pub fn get_imei(&self) -> &[u8] {
423         match self.imei.as_ref() {
424             Some(v) => &v,
425             None => &[],
426         }
427     }
clear_imei(&mut self)428     pub fn clear_imei(&mut self) {
429         self.imei.clear();
430     }
431 
has_imei(&self) -> bool432     pub fn has_imei(&self) -> bool {
433         self.imei.is_some()
434     }
435 
436     // Param is passed by value, moved
set_imei(&mut self, v: ::std::vec::Vec<u8>)437     pub fn set_imei(&mut self, v: ::std::vec::Vec<u8>) {
438         self.imei = ::protobuf::SingularField::some(v);
439     }
440 
441     // Mutable pointer to the field.
442     // If field is not initialized, it is initialized with default value first.
mut_imei(&mut self) -> &mut ::std::vec::Vec<u8>443     pub fn mut_imei(&mut self) -> &mut ::std::vec::Vec<u8> {
444         if self.imei.is_none() {
445             self.imei.set_default();
446         }
447         self.imei.as_mut().unwrap()
448     }
449 
450     // Take field
take_imei(&mut self) -> ::std::vec::Vec<u8>451     pub fn take_imei(&mut self) -> ::std::vec::Vec<u8> {
452         self.imei.take().unwrap_or_else(|| ::std::vec::Vec::new())
453     }
454 
455     // optional bytes meid = 6;
456 
457 
get_meid(&self) -> &[u8]458     pub fn get_meid(&self) -> &[u8] {
459         match self.meid.as_ref() {
460             Some(v) => &v,
461             None => &[],
462         }
463     }
clear_meid(&mut self)464     pub fn clear_meid(&mut self) {
465         self.meid.clear();
466     }
467 
has_meid(&self) -> bool468     pub fn has_meid(&self) -> bool {
469         self.meid.is_some()
470     }
471 
472     // Param is passed by value, moved
set_meid(&mut self, v: ::std::vec::Vec<u8>)473     pub fn set_meid(&mut self, v: ::std::vec::Vec<u8>) {
474         self.meid = ::protobuf::SingularField::some(v);
475     }
476 
477     // Mutable pointer to the field.
478     // If field is not initialized, it is initialized with default value first.
mut_meid(&mut self) -> &mut ::std::vec::Vec<u8>479     pub fn mut_meid(&mut self) -> &mut ::std::vec::Vec<u8> {
480         if self.meid.is_none() {
481             self.meid.set_default();
482         }
483         self.meid.as_mut().unwrap()
484     }
485 
486     // Take field
take_meid(&mut self) -> ::std::vec::Vec<u8>487     pub fn take_meid(&mut self) -> ::std::vec::Vec<u8> {
488         self.meid.take().unwrap_or_else(|| ::std::vec::Vec::new())
489     }
490 
491     // optional bytes manufacturer = 7;
492 
493 
get_manufacturer(&self) -> &[u8]494     pub fn get_manufacturer(&self) -> &[u8] {
495         match self.manufacturer.as_ref() {
496             Some(v) => &v,
497             None => &[],
498         }
499     }
clear_manufacturer(&mut self)500     pub fn clear_manufacturer(&mut self) {
501         self.manufacturer.clear();
502     }
503 
has_manufacturer(&self) -> bool504     pub fn has_manufacturer(&self) -> bool {
505         self.manufacturer.is_some()
506     }
507 
508     // Param is passed by value, moved
set_manufacturer(&mut self, v: ::std::vec::Vec<u8>)509     pub fn set_manufacturer(&mut self, v: ::std::vec::Vec<u8>) {
510         self.manufacturer = ::protobuf::SingularField::some(v);
511     }
512 
513     // Mutable pointer to the field.
514     // If field is not initialized, it is initialized with default value first.
mut_manufacturer(&mut self) -> &mut ::std::vec::Vec<u8>515     pub fn mut_manufacturer(&mut self) -> &mut ::std::vec::Vec<u8> {
516         if self.manufacturer.is_none() {
517             self.manufacturer.set_default();
518         }
519         self.manufacturer.as_mut().unwrap()
520     }
521 
522     // Take field
take_manufacturer(&mut self) -> ::std::vec::Vec<u8>523     pub fn take_manufacturer(&mut self) -> ::std::vec::Vec<u8> {
524         self.manufacturer.take().unwrap_or_else(|| ::std::vec::Vec::new())
525     }
526 
527     // optional bytes model = 8;
528 
529 
get_model(&self) -> &[u8]530     pub fn get_model(&self) -> &[u8] {
531         match self.model.as_ref() {
532             Some(v) => &v,
533             None => &[],
534         }
535     }
clear_model(&mut self)536     pub fn clear_model(&mut self) {
537         self.model.clear();
538     }
539 
has_model(&self) -> bool540     pub fn has_model(&self) -> bool {
541         self.model.is_some()
542     }
543 
544     // Param is passed by value, moved
set_model(&mut self, v: ::std::vec::Vec<u8>)545     pub fn set_model(&mut self, v: ::std::vec::Vec<u8>) {
546         self.model = ::protobuf::SingularField::some(v);
547     }
548 
549     // Mutable pointer to the field.
550     // If field is not initialized, it is initialized with default value first.
mut_model(&mut self) -> &mut ::std::vec::Vec<u8>551     pub fn mut_model(&mut self) -> &mut ::std::vec::Vec<u8> {
552         if self.model.is_none() {
553             self.model.set_default();
554         }
555         self.model.as_mut().unwrap()
556     }
557 
558     // Take field
take_model(&mut self) -> ::std::vec::Vec<u8>559     pub fn take_model(&mut self) -> ::std::vec::Vec<u8> {
560         self.model.take().unwrap_or_else(|| ::std::vec::Vec::new())
561     }
562 
563     // optional bytes second_imei = 9;
564 
565 
get_second_imei(&self) -> &[u8]566     pub fn get_second_imei(&self) -> &[u8] {
567         match self.second_imei.as_ref() {
568             Some(v) => &v,
569             None => &[],
570         }
571     }
clear_second_imei(&mut self)572     pub fn clear_second_imei(&mut self) {
573         self.second_imei.clear();
574     }
575 
has_second_imei(&self) -> bool576     pub fn has_second_imei(&self) -> bool {
577         self.second_imei.is_some()
578     }
579 
580     // Param is passed by value, moved
set_second_imei(&mut self, v: ::std::vec::Vec<u8>)581     pub fn set_second_imei(&mut self, v: ::std::vec::Vec<u8>) {
582         self.second_imei = ::protobuf::SingularField::some(v);
583     }
584 
585     // Mutable pointer to the field.
586     // If field is not initialized, it is initialized with default value first.
mut_second_imei(&mut self) -> &mut ::std::vec::Vec<u8>587     pub fn mut_second_imei(&mut self) -> &mut ::std::vec::Vec<u8> {
588         if self.second_imei.is_none() {
589             self.second_imei.set_default();
590         }
591         self.second_imei.as_mut().unwrap()
592     }
593 
594     // Take field
take_second_imei(&mut self) -> ::std::vec::Vec<u8>595     pub fn take_second_imei(&mut self) -> ::std::vec::Vec<u8> {
596         self.second_imei.take().unwrap_or_else(|| ::std::vec::Vec::new())
597     }
598 }
599 
600 impl ::protobuf::Message for AttestationIds {
is_initialized(&self) -> bool601     fn is_initialized(&self) -> bool {
602         true
603     }
604 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>605     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
606         while !is.eof()? {
607             let (field_number, wire_type) = is.read_tag_unpack()?;
608             match field_number {
609                 1 => {
610                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.brand)?;
611                 },
612                 2 => {
613                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.device)?;
614                 },
615                 3 => {
616                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.product)?;
617                 },
618                 4 => {
619                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.serial)?;
620                 },
621                 5 => {
622                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.imei)?;
623                 },
624                 6 => {
625                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.meid)?;
626                 },
627                 7 => {
628                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.manufacturer)?;
629                 },
630                 8 => {
631                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.model)?;
632                 },
633                 9 => {
634                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.second_imei)?;
635                 },
636                 _ => {
637                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
638                 },
639             };
640         }
641         ::std::result::Result::Ok(())
642     }
643 
644     // Compute sizes of nested messages
645     #[allow(unused_variables)]
compute_size(&self) -> u32646     fn compute_size(&self) -> u32 {
647         let mut my_size = 0;
648         if let Some(ref v) = self.brand.as_ref() {
649             my_size += ::protobuf::rt::bytes_size(1, &v);
650         }
651         if let Some(ref v) = self.device.as_ref() {
652             my_size += ::protobuf::rt::bytes_size(2, &v);
653         }
654         if let Some(ref v) = self.product.as_ref() {
655             my_size += ::protobuf::rt::bytes_size(3, &v);
656         }
657         if let Some(ref v) = self.serial.as_ref() {
658             my_size += ::protobuf::rt::bytes_size(4, &v);
659         }
660         if let Some(ref v) = self.imei.as_ref() {
661             my_size += ::protobuf::rt::bytes_size(5, &v);
662         }
663         if let Some(ref v) = self.meid.as_ref() {
664             my_size += ::protobuf::rt::bytes_size(6, &v);
665         }
666         if let Some(ref v) = self.manufacturer.as_ref() {
667             my_size += ::protobuf::rt::bytes_size(7, &v);
668         }
669         if let Some(ref v) = self.model.as_ref() {
670             my_size += ::protobuf::rt::bytes_size(8, &v);
671         }
672         if let Some(ref v) = self.second_imei.as_ref() {
673             my_size += ::protobuf::rt::bytes_size(9, &v);
674         }
675         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
676         self.cached_size.set(my_size);
677         my_size
678     }
679 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>680     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
681         if let Some(ref v) = self.brand.as_ref() {
682             os.write_bytes(1, &v)?;
683         }
684         if let Some(ref v) = self.device.as_ref() {
685             os.write_bytes(2, &v)?;
686         }
687         if let Some(ref v) = self.product.as_ref() {
688             os.write_bytes(3, &v)?;
689         }
690         if let Some(ref v) = self.serial.as_ref() {
691             os.write_bytes(4, &v)?;
692         }
693         if let Some(ref v) = self.imei.as_ref() {
694             os.write_bytes(5, &v)?;
695         }
696         if let Some(ref v) = self.meid.as_ref() {
697             os.write_bytes(6, &v)?;
698         }
699         if let Some(ref v) = self.manufacturer.as_ref() {
700             os.write_bytes(7, &v)?;
701         }
702         if let Some(ref v) = self.model.as_ref() {
703             os.write_bytes(8, &v)?;
704         }
705         if let Some(ref v) = self.second_imei.as_ref() {
706             os.write_bytes(9, &v)?;
707         }
708         os.write_unknown_fields(self.get_unknown_fields())?;
709         ::std::result::Result::Ok(())
710     }
711 
get_cached_size(&self) -> u32712     fn get_cached_size(&self) -> u32 {
713         self.cached_size.get()
714     }
715 
get_unknown_fields(&self) -> &::protobuf::UnknownFields716     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
717         &self.unknown_fields
718     }
719 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields720     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
721         &mut self.unknown_fields
722     }
723 
as_any(&self) -> &dyn (::std::any::Any)724     fn as_any(&self) -> &dyn (::std::any::Any) {
725         self as &dyn (::std::any::Any)
726     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)727     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
728         self as &mut dyn (::std::any::Any)
729     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>730     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
731         self
732     }
733 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor734     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
735         Self::descriptor_static()
736     }
737 
new() -> AttestationIds738     fn new() -> AttestationIds {
739         AttestationIds::new()
740     }
741 
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor742     fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
743         static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
744         descriptor.get(|| {
745             let mut fields = ::std::vec::Vec::new();
746             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
747                 "brand",
748                 |m: &AttestationIds| { &m.brand },
749                 |m: &mut AttestationIds| { &mut m.brand },
750             ));
751             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
752                 "device",
753                 |m: &AttestationIds| { &m.device },
754                 |m: &mut AttestationIds| { &mut m.device },
755             ));
756             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
757                 "product",
758                 |m: &AttestationIds| { &m.product },
759                 |m: &mut AttestationIds| { &mut m.product },
760             ));
761             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
762                 "serial",
763                 |m: &AttestationIds| { &m.serial },
764                 |m: &mut AttestationIds| { &mut m.serial },
765             ));
766             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
767                 "imei",
768                 |m: &AttestationIds| { &m.imei },
769                 |m: &mut AttestationIds| { &mut m.imei },
770             ));
771             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
772                 "meid",
773                 |m: &AttestationIds| { &m.meid },
774                 |m: &mut AttestationIds| { &mut m.meid },
775             ));
776             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
777                 "manufacturer",
778                 |m: &AttestationIds| { &m.manufacturer },
779                 |m: &mut AttestationIds| { &mut m.manufacturer },
780             ));
781             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
782                 "model",
783                 |m: &AttestationIds| { &m.model },
784                 |m: &mut AttestationIds| { &mut m.model },
785             ));
786             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
787                 "second_imei",
788                 |m: &AttestationIds| { &m.second_imei },
789                 |m: &mut AttestationIds| { &mut m.second_imei },
790             ));
791             ::protobuf::reflect::MessageDescriptor::new_pb_name::<AttestationIds>(
792                 "AttestationIds",
793                 fields,
794                 file_descriptor_proto()
795             )
796         })
797     }
798 
default_instance() -> &'static AttestationIds799     fn default_instance() -> &'static AttestationIds {
800         static instance: ::protobuf::rt::LazyV2<AttestationIds> = ::protobuf::rt::LazyV2::INIT;
801         instance.get(AttestationIds::new)
802     }
803 }
804 
805 impl ::protobuf::Clear for AttestationIds {
clear(&mut self)806     fn clear(&mut self) {
807         self.brand.clear();
808         self.device.clear();
809         self.product.clear();
810         self.serial.clear();
811         self.imei.clear();
812         self.meid.clear();
813         self.manufacturer.clear();
814         self.model.clear();
815         self.second_imei.clear();
816         self.unknown_fields.clear();
817     }
818 }
819 
820 impl ::std::fmt::Debug for AttestationIds {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result821     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
822         ::protobuf::text_format::fmt(self, f)
823     }
824 }
825 
826 impl ::protobuf::reflect::ProtobufValue for AttestationIds {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef827     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
828         ::protobuf::reflect::ReflectValueRef::Message(self)
829     }
830 }
831 
832 #[derive(PartialEq,Clone,Default)]
833 pub struct AttestationKey {
834     // message fields
835     key: ::protobuf::SingularField<::std::vec::Vec<u8>>,
836     pub certs: ::protobuf::RepeatedField<AttestationCert>,
837     // special fields
838     pub unknown_fields: ::protobuf::UnknownFields,
839     pub cached_size: ::protobuf::CachedSize,
840 }
841 
842 impl<'a> ::std::default::Default for &'a AttestationKey {
default() -> &'a AttestationKey843     fn default() -> &'a AttestationKey {
844         <AttestationKey as ::protobuf::Message>::default_instance()
845     }
846 }
847 
848 impl AttestationKey {
new() -> AttestationKey849     pub fn new() -> AttestationKey {
850         ::std::default::Default::default()
851     }
852 
853     // optional bytes key = 1;
854 
855 
get_key(&self) -> &[u8]856     pub fn get_key(&self) -> &[u8] {
857         match self.key.as_ref() {
858             Some(v) => &v,
859             None => &[],
860         }
861     }
clear_key(&mut self)862     pub fn clear_key(&mut self) {
863         self.key.clear();
864     }
865 
has_key(&self) -> bool866     pub fn has_key(&self) -> bool {
867         self.key.is_some()
868     }
869 
870     // Param is passed by value, moved
set_key(&mut self, v: ::std::vec::Vec<u8>)871     pub fn set_key(&mut self, v: ::std::vec::Vec<u8>) {
872         self.key = ::protobuf::SingularField::some(v);
873     }
874 
875     // Mutable pointer to the field.
876     // If field is not initialized, it is initialized with default value first.
mut_key(&mut self) -> &mut ::std::vec::Vec<u8>877     pub fn mut_key(&mut self) -> &mut ::std::vec::Vec<u8> {
878         if self.key.is_none() {
879             self.key.set_default();
880         }
881         self.key.as_mut().unwrap()
882     }
883 
884     // Take field
take_key(&mut self) -> ::std::vec::Vec<u8>885     pub fn take_key(&mut self) -> ::std::vec::Vec<u8> {
886         self.key.take().unwrap_or_else(|| ::std::vec::Vec::new())
887     }
888 
889     // repeated .AttestationCert certs = 2;
890 
891 
get_certs(&self) -> &[AttestationCert]892     pub fn get_certs(&self) -> &[AttestationCert] {
893         &self.certs
894     }
clear_certs(&mut self)895     pub fn clear_certs(&mut self) {
896         self.certs.clear();
897     }
898 
899     // Param is passed by value, moved
set_certs(&mut self, v: ::protobuf::RepeatedField<AttestationCert>)900     pub fn set_certs(&mut self, v: ::protobuf::RepeatedField<AttestationCert>) {
901         self.certs = v;
902     }
903 
904     // Mutable pointer to the field.
mut_certs(&mut self) -> &mut ::protobuf::RepeatedField<AttestationCert>905     pub fn mut_certs(&mut self) -> &mut ::protobuf::RepeatedField<AttestationCert> {
906         &mut self.certs
907     }
908 
909     // Take field
take_certs(&mut self) -> ::protobuf::RepeatedField<AttestationCert>910     pub fn take_certs(&mut self) -> ::protobuf::RepeatedField<AttestationCert> {
911         ::std::mem::replace(&mut self.certs, ::protobuf::RepeatedField::new())
912     }
913 }
914 
915 impl ::protobuf::Message for AttestationKey {
is_initialized(&self) -> bool916     fn is_initialized(&self) -> bool {
917         for v in &self.certs {
918             if !v.is_initialized() {
919                 return false;
920             }
921         };
922         true
923     }
924 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>925     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
926         while !is.eof()? {
927             let (field_number, wire_type) = is.read_tag_unpack()?;
928             match field_number {
929                 1 => {
930                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.key)?;
931                 },
932                 2 => {
933                     ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.certs)?;
934                 },
935                 _ => {
936                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
937                 },
938             };
939         }
940         ::std::result::Result::Ok(())
941     }
942 
943     // Compute sizes of nested messages
944     #[allow(unused_variables)]
compute_size(&self) -> u32945     fn compute_size(&self) -> u32 {
946         let mut my_size = 0;
947         if let Some(ref v) = self.key.as_ref() {
948             my_size += ::protobuf::rt::bytes_size(1, &v);
949         }
950         for value in &self.certs {
951             let len = value.compute_size();
952             my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
953         };
954         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
955         self.cached_size.set(my_size);
956         my_size
957     }
958 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>959     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
960         if let Some(ref v) = self.key.as_ref() {
961             os.write_bytes(1, &v)?;
962         }
963         for v in &self.certs {
964             os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
965             os.write_raw_varint32(v.get_cached_size())?;
966             v.write_to_with_cached_sizes(os)?;
967         };
968         os.write_unknown_fields(self.get_unknown_fields())?;
969         ::std::result::Result::Ok(())
970     }
971 
get_cached_size(&self) -> u32972     fn get_cached_size(&self) -> u32 {
973         self.cached_size.get()
974     }
975 
get_unknown_fields(&self) -> &::protobuf::UnknownFields976     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
977         &self.unknown_fields
978     }
979 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields980     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
981         &mut self.unknown_fields
982     }
983 
as_any(&self) -> &dyn (::std::any::Any)984     fn as_any(&self) -> &dyn (::std::any::Any) {
985         self as &dyn (::std::any::Any)
986     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)987     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
988         self as &mut dyn (::std::any::Any)
989     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>990     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
991         self
992     }
993 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor994     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
995         Self::descriptor_static()
996     }
997 
new() -> AttestationKey998     fn new() -> AttestationKey {
999         AttestationKey::new()
1000     }
1001 
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor1002     fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1003         static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1004         descriptor.get(|| {
1005             let mut fields = ::std::vec::Vec::new();
1006             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1007                 "key",
1008                 |m: &AttestationKey| { &m.key },
1009                 |m: &mut AttestationKey| { &mut m.key },
1010             ));
1011             fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<AttestationCert>>(
1012                 "certs",
1013                 |m: &AttestationKey| { &m.certs },
1014                 |m: &mut AttestationKey| { &mut m.certs },
1015             ));
1016             ::protobuf::reflect::MessageDescriptor::new_pb_name::<AttestationKey>(
1017                 "AttestationKey",
1018                 fields,
1019                 file_descriptor_proto()
1020             )
1021         })
1022     }
1023 
default_instance() -> &'static AttestationKey1024     fn default_instance() -> &'static AttestationKey {
1025         static instance: ::protobuf::rt::LazyV2<AttestationKey> = ::protobuf::rt::LazyV2::INIT;
1026         instance.get(AttestationKey::new)
1027     }
1028 }
1029 
1030 impl ::protobuf::Clear for AttestationKey {
clear(&mut self)1031     fn clear(&mut self) {
1032         self.key.clear();
1033         self.certs.clear();
1034         self.unknown_fields.clear();
1035     }
1036 }
1037 
1038 impl ::std::fmt::Debug for AttestationKey {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1039     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1040         ::protobuf::text_format::fmt(self, f)
1041     }
1042 }
1043 
1044 impl ::protobuf::reflect::ProtobufValue for AttestationKey {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1045     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1046         ::protobuf::reflect::ReflectValueRef::Message(self)
1047     }
1048 }
1049 
1050 #[derive(PartialEq,Clone,Default)]
1051 pub struct AttestationCert {
1052     // message fields
1053     content: ::protobuf::SingularField<::std::vec::Vec<u8>>,
1054     // special fields
1055     pub unknown_fields: ::protobuf::UnknownFields,
1056     pub cached_size: ::protobuf::CachedSize,
1057 }
1058 
1059 impl<'a> ::std::default::Default for &'a AttestationCert {
default() -> &'a AttestationCert1060     fn default() -> &'a AttestationCert {
1061         <AttestationCert as ::protobuf::Message>::default_instance()
1062     }
1063 }
1064 
1065 impl AttestationCert {
new() -> AttestationCert1066     pub fn new() -> AttestationCert {
1067         ::std::default::Default::default()
1068     }
1069 
1070     // required bytes content = 1;
1071 
1072 
get_content(&self) -> &[u8]1073     pub fn get_content(&self) -> &[u8] {
1074         match self.content.as_ref() {
1075             Some(v) => &v,
1076             None => &[],
1077         }
1078     }
clear_content(&mut self)1079     pub fn clear_content(&mut self) {
1080         self.content.clear();
1081     }
1082 
has_content(&self) -> bool1083     pub fn has_content(&self) -> bool {
1084         self.content.is_some()
1085     }
1086 
1087     // Param is passed by value, moved
set_content(&mut self, v: ::std::vec::Vec<u8>)1088     pub fn set_content(&mut self, v: ::std::vec::Vec<u8>) {
1089         self.content = ::protobuf::SingularField::some(v);
1090     }
1091 
1092     // Mutable pointer to the field.
1093     // If field is not initialized, it is initialized with default value first.
mut_content(&mut self) -> &mut ::std::vec::Vec<u8>1094     pub fn mut_content(&mut self) -> &mut ::std::vec::Vec<u8> {
1095         if self.content.is_none() {
1096             self.content.set_default();
1097         }
1098         self.content.as_mut().unwrap()
1099     }
1100 
1101     // Take field
take_content(&mut self) -> ::std::vec::Vec<u8>1102     pub fn take_content(&mut self) -> ::std::vec::Vec<u8> {
1103         self.content.take().unwrap_or_else(|| ::std::vec::Vec::new())
1104     }
1105 }
1106 
1107 impl ::protobuf::Message for AttestationCert {
is_initialized(&self) -> bool1108     fn is_initialized(&self) -> bool {
1109         if self.content.is_none() {
1110             return false;
1111         }
1112         true
1113     }
1114 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1115     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1116         while !is.eof()? {
1117             let (field_number, wire_type) = is.read_tag_unpack()?;
1118             match field_number {
1119                 1 => {
1120                     ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.content)?;
1121                 },
1122                 _ => {
1123                     ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1124                 },
1125             };
1126         }
1127         ::std::result::Result::Ok(())
1128     }
1129 
1130     // Compute sizes of nested messages
1131     #[allow(unused_variables)]
compute_size(&self) -> u321132     fn compute_size(&self) -> u32 {
1133         let mut my_size = 0;
1134         if let Some(ref v) = self.content.as_ref() {
1135             my_size += ::protobuf::rt::bytes_size(1, &v);
1136         }
1137         my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1138         self.cached_size.set(my_size);
1139         my_size
1140     }
1141 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1142     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1143         if let Some(ref v) = self.content.as_ref() {
1144             os.write_bytes(1, &v)?;
1145         }
1146         os.write_unknown_fields(self.get_unknown_fields())?;
1147         ::std::result::Result::Ok(())
1148     }
1149 
get_cached_size(&self) -> u321150     fn get_cached_size(&self) -> u32 {
1151         self.cached_size.get()
1152     }
1153 
get_unknown_fields(&self) -> &::protobuf::UnknownFields1154     fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1155         &self.unknown_fields
1156     }
1157 
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1158     fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1159         &mut self.unknown_fields
1160     }
1161 
as_any(&self) -> &dyn (::std::any::Any)1162     fn as_any(&self) -> &dyn (::std::any::Any) {
1163         self as &dyn (::std::any::Any)
1164     }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1165     fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1166         self as &mut dyn (::std::any::Any)
1167     }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1168     fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1169         self
1170     }
1171 
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1172     fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1173         Self::descriptor_static()
1174     }
1175 
new() -> AttestationCert1176     fn new() -> AttestationCert {
1177         AttestationCert::new()
1178     }
1179 
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor1180     fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1181         static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1182         descriptor.get(|| {
1183             let mut fields = ::std::vec::Vec::new();
1184             fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1185                 "content",
1186                 |m: &AttestationCert| { &m.content },
1187                 |m: &mut AttestationCert| { &mut m.content },
1188             ));
1189             ::protobuf::reflect::MessageDescriptor::new_pb_name::<AttestationCert>(
1190                 "AttestationCert",
1191                 fields,
1192                 file_descriptor_proto()
1193             )
1194         })
1195     }
1196 
default_instance() -> &'static AttestationCert1197     fn default_instance() -> &'static AttestationCert {
1198         static instance: ::protobuf::rt::LazyV2<AttestationCert> = ::protobuf::rt::LazyV2::INIT;
1199         instance.get(AttestationCert::new)
1200     }
1201 }
1202 
1203 impl ::protobuf::Clear for AttestationCert {
clear(&mut self)1204     fn clear(&mut self) {
1205         self.content.clear();
1206         self.unknown_fields.clear();
1207     }
1208 }
1209 
1210 impl ::std::fmt::Debug for AttestationCert {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1211     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1212         ::protobuf::text_format::fmt(self, f)
1213     }
1214 }
1215 
1216 impl ::protobuf::reflect::ProtobufValue for AttestationCert {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1217     fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1218         ::protobuf::reflect::ReflectValueRef::Message(self)
1219     }
1220 }
1221 
1222 static file_descriptor_proto_data: &'static [u8] = b"\
1223     \n\x1akeymaster_attributes.proto\x1a\x0cnanopb.proto\"V\n\x13KeymasterAt\
1224     tributes\x12\x19\n\x04uuid\x18\x01\x20\x01(\x0cR\x04uuidB\x05\x92?\x02\
1225     \x08\x20\x12$\n\nproduct_id\x18\x02\x20\x01(\x0cR\tproductIdB\x05\x92?\
1226     \x02\x08\x10\"\xb2\x02\n\x0eAttestationIds\x12\x1b\n\x05brand\x18\x01\
1227     \x20\x01(\x0cR\x05brandB\x05\x92?\x02\x08@\x12\x1d\n\x06device\x18\x02\
1228     \x20\x01(\x0cR\x06deviceB\x05\x92?\x02\x08@\x12\x1f\n\x07product\x18\x03\
1229     \x20\x01(\x0cR\x07productB\x05\x92?\x02\x08@\x12\x1d\n\x06serial\x18\x04\
1230     \x20\x01(\x0cR\x06serialB\x05\x92?\x02\x08@\x12\x19\n\x04imei\x18\x05\
1231     \x20\x01(\x0cR\x04imeiB\x05\x92?\x02\x08@\x12\x19\n\x04meid\x18\x06\x20\
1232     \x01(\x0cR\x04meidB\x05\x92?\x02\x08@\x12)\n\x0cmanufacturer\x18\x07\x20\
1233     \x01(\x0cR\x0cmanufacturerB\x05\x92?\x02\x08@\x12\x1b\n\x05model\x18\x08\
1234     \x20\x01(\x0cR\x05modelB\x05\x92?\x02\x08@\x12&\n\x0bsecond_imei\x18\t\
1235     \x20\x01(\x0cR\nsecondImeiB\x05\x92?\x02\x08@\"Y\n\x0eAttestationKey\x12\
1236     \x18\n\x03key\x18\x01\x20\x01(\x0cR\x03keyB\x06\x92?\x03\x08\x80\x10\x12\
1237     -\n\x05certs\x18\x02\x20\x03(\x0b2\x10.AttestationCertR\x05certsB\x05\
1238     \x92?\x02\x10\x03\"3\n\x0fAttestationCert\x12\x20\n\x07content\x18\x01\
1239     \x20\x02(\x0cR\x07contentB\x06\x92?\x03\x08\x80\x10J\x94\x18\n\x06\x12\
1240     \x04%\0A\x02\n\xa6\x0c\n\x01\x0c\x12\x03%\0\x122\xcc\x04\n\x20Copyright\
1241     \x20(C)\x202018\x20The\x20Android\x20Open\x20Source\x20Project\n\n\x20Li\
1242     censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\
1243     \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\
1244     t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\
1245     in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20\
1246     \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\
1247     \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\
1248     oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\
1249     \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\
1250     \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\
1251     ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\
1252     governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\
1253     nse.\n2\xcc\x07\x20We\x20check\x20in\x20the\x20prebuilt\x20nanopb\x20pro\
1254     tobuf\x20file\x20under\x20the\x20current\x20folder\n\x20because\x20the\
1255     \x20compile\x20tool\x20chain\x20using\x20trusty/user/base/make/compile_p\
1256     roto.mk\n\x20might\x20not\x20work\x20under\x20certain\x20environment\x20\
1257     with\x20lower\x20version\x20of\x20python\n\x20protobuf\x20installed.\x20\
1258     You\x20need\x20to\x20generate\x20and\x20check\x20in\x20the\x20new\x20pro\
1259     tobuf\x20file\n\x20if\x20you\x20change\x20this\x20file\x20in\x20order\
1260     \x20for\x20the\x20change\x20to\x20take\x20effect!\n\n\x20To\x20generate\
1261     \x20the\x20file\x20using\x20the\x20tool\x20chain\x20in\x20trusty\x20tree\
1262     ,\x20add\x20the\x20following\n\x20command\x20to\x20rules.mk:\n\n\x20PB_G\
1263     EN_DIR\x20:=\x20[Your\x20generation\x20folder]\n\x20include\x20trusty/us\
1264     er/base/make/compile_proto.mk\n\x20$(eval\x20$(call\x20compile_proto,$(K\
1265     EYMASTER_DIR)/keymaster_attributes.proto,$(PB_GEN_DIR)))\n\n\x20The\x20g\
1266     enerated\x20.pb.c\x20and\x20.pb.h\x20file\x20would\x20be\x20under\x20PB_\
1267     GEN_DIR,\x20include\x20them\n\x20to\x20the\x20source\x20path.\n\n\x20To\
1268     \x20generate\x20the\x20file\x20using\x20your\x20own\x20tool\x20chain,\
1269     \x20please\x20follow\x20the\x20guide\x20at\n\x20https://github.com/nanop\
1270     b/nanopb.\n\x20Please\x20check\x20the\x20nanopb\x20version\x20in\x20trus\
1271     ty\x20tree\x20at\x20external/nanopb-c\x20to\x20make\n\x20sure\x20you\x20\
1272     are\x20using\x20the\x20same\x20nanopb\x20version.\n\n\t\n\x02\x03\0\x12\
1273     \x03'\0\x16\n\n\n\x02\x04\0\x12\x04)\0,\x01\n\n\n\x03\x04\0\x01\x12\x03)\
1274     \x08\x1b\n\x0b\n\x04\x04\0\x02\0\x12\x03*\x021\n\x0c\n\x05\x04\0\x02\0\
1275     \x04\x12\x03*\x02\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03*\x0b\x10\n\x0c\n\
1276     \x05\x04\0\x02\0\x01\x12\x03*\x11\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\
1277     \x03*\x18\x19\n\x0c\n\x05\x04\0\x02\0\x08\x12\x03*\x1a0\n\x0f\n\x08\x04\
1278     \0\x02\0\x08\xf2\x07\x01\x12\x03*\x1b/\n\x0b\n\x04\x04\0\x02\x01\x12\x03\
1279     +\x027\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03+\x02\n\n\x0c\n\x05\x04\0\
1280     \x02\x01\x05\x12\x03+\x0b\x10\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03+\x11\
1281     \x1b\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03+\x1e\x1f\n\x0c\n\x05\x04\0\
1282     \x02\x01\x08\x12\x03+\x206\n\x0f\n\x08\x04\0\x02\x01\x08\xf2\x07\x01\x12\
1283     \x03+!5\n\n\n\x02\x04\x01\x12\x04.\08\x01\n\n\n\x03\x04\x01\x01\x12\x03.\
1284     \x08\x16\n\x0b\n\x04\x04\x01\x02\0\x12\x03/\x044\n\x0c\n\x05\x04\x01\x02\
1285     \0\x04\x12\x03/\x04\x0c\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03/\r\x12\n\
1286     \x0c\n\x05\x04\x01\x02\0\x01\x12\x03/\x13\x18\n\x0c\n\x05\x04\x01\x02\0\
1287     \x03\x12\x03/\x1b\x1c\n\x0c\n\x05\x04\x01\x02\0\x08\x12\x03/\x1d3\n\x0f\
1288     \n\x08\x04\x01\x02\0\x08\xf2\x07\x01\x12\x03/\x1e2\n\x0b\n\x04\x04\x01\
1289     \x02\x01\x12\x030\x045\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x030\x04\x0c\
1290     \n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x030\r\x12\n\x0c\n\x05\x04\x01\x02\
1291     \x01\x01\x12\x030\x13\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x030\x1c\
1292     \x1d\n\x0c\n\x05\x04\x01\x02\x01\x08\x12\x030\x1e4\n\x0f\n\x08\x04\x01\
1293     \x02\x01\x08\xf2\x07\x01\x12\x030\x1f3\n\x0b\n\x04\x04\x01\x02\x02\x12\
1294     \x031\x046\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x031\x04\x0c\n\x0c\n\x05\
1295     \x04\x01\x02\x02\x05\x12\x031\r\x12\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\
1296     \x031\x13\x1a\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x031\x1d\x1e\n\x0c\n\
1297     \x05\x04\x01\x02\x02\x08\x12\x031\x1f5\n\x0f\n\x08\x04\x01\x02\x02\x08\
1298     \xf2\x07\x01\x12\x031\x204\n\x0b\n\x04\x04\x01\x02\x03\x12\x032\x045\n\
1299     \x0c\n\x05\x04\x01\x02\x03\x04\x12\x032\x04\x0c\n\x0c\n\x05\x04\x01\x02\
1300     \x03\x05\x12\x032\r\x12\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x032\x13\x19\
1301     \n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x032\x1c\x1d\n\x0c\n\x05\x04\x01\
1302     \x02\x03\x08\x12\x032\x1e4\n\x0f\n\x08\x04\x01\x02\x03\x08\xf2\x07\x01\
1303     \x12\x032\x1f3\n\x0b\n\x04\x04\x01\x02\x04\x12\x033\x043\n\x0c\n\x05\x04\
1304     \x01\x02\x04\x04\x12\x033\x04\x0c\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\
1305     \x033\r\x12\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x033\x13\x17\n\x0c\n\x05\
1306     \x04\x01\x02\x04\x03\x12\x033\x1a\x1b\n\x0c\n\x05\x04\x01\x02\x04\x08\
1307     \x12\x033\x1c2\n\x0f\n\x08\x04\x01\x02\x04\x08\xf2\x07\x01\x12\x033\x1d1\
1308     \n\x0b\n\x04\x04\x01\x02\x05\x12\x034\x043\n\x0c\n\x05\x04\x01\x02\x05\
1309     \x04\x12\x034\x04\x0c\n\x0c\n\x05\x04\x01\x02\x05\x05\x12\x034\r\x12\n\
1310     \x0c\n\x05\x04\x01\x02\x05\x01\x12\x034\x13\x17\n\x0c\n\x05\x04\x01\x02\
1311     \x05\x03\x12\x034\x1a\x1b\n\x0c\n\x05\x04\x01\x02\x05\x08\x12\x034\x1c2\
1312     \n\x0f\n\x08\x04\x01\x02\x05\x08\xf2\x07\x01\x12\x034\x1d1\n\x0b\n\x04\
1313     \x04\x01\x02\x06\x12\x035\x04;\n\x0c\n\x05\x04\x01\x02\x06\x04\x12\x035\
1314     \x04\x0c\n\x0c\n\x05\x04\x01\x02\x06\x05\x12\x035\r\x12\n\x0c\n\x05\x04\
1315     \x01\x02\x06\x01\x12\x035\x13\x1f\n\x0c\n\x05\x04\x01\x02\x06\x03\x12\
1316     \x035\"#\n\x0c\n\x05\x04\x01\x02\x06\x08\x12\x035$:\n\x0f\n\x08\x04\x01\
1317     \x02\x06\x08\xf2\x07\x01\x12\x035%9\n\x0b\n\x04\x04\x01\x02\x07\x12\x036\
1318     \x044\n\x0c\n\x05\x04\x01\x02\x07\x04\x12\x036\x04\x0c\n\x0c\n\x05\x04\
1319     \x01\x02\x07\x05\x12\x036\r\x12\n\x0c\n\x05\x04\x01\x02\x07\x01\x12\x036\
1320     \x13\x18\n\x0c\n\x05\x04\x01\x02\x07\x03\x12\x036\x1b\x1c\n\x0c\n\x05\
1321     \x04\x01\x02\x07\x08\x12\x036\x1d3\n\x0f\n\x08\x04\x01\x02\x07\x08\xf2\
1322     \x07\x01\x12\x036\x1e2\n\x0b\n\x04\x04\x01\x02\x08\x12\x037\x04:\n\x0c\n\
1323     \x05\x04\x01\x02\x08\x04\x12\x037\x04\x0c\n\x0c\n\x05\x04\x01\x02\x08\
1324     \x05\x12\x037\r\x12\n\x0c\n\x05\x04\x01\x02\x08\x01\x12\x037\x13\x1e\n\
1325     \x0c\n\x05\x04\x01\x02\x08\x03\x12\x037!\"\n\x0c\n\x05\x04\x01\x02\x08\
1326     \x08\x12\x037#9\n\x0f\n\x08\x04\x01\x02\x08\x08\xf2\x07\x01\x12\x037$8\n\
1327     \n\n\x02\x04\x02\x12\x04:\0=\x01\n\n\n\x03\x04\x02\x01\x12\x03:\x08\x16\
1328     \n\x0b\n\x04\x04\x02\x02\0\x12\x03;\x022\n\x0c\n\x05\x04\x02\x02\0\x04\
1329     \x12\x03;\x02\n\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03;\x0b\x10\n\x0c\n\
1330     \x05\x04\x02\x02\0\x01\x12\x03;\x11\x14\n\x0c\n\x05\x04\x02\x02\0\x03\
1331     \x12\x03;\x17\x18\n\x0c\n\x05\x04\x02\x02\0\x08\x12\x03;\x191\n\x0f\n\
1332     \x08\x04\x02\x02\0\x08\xf2\x07\x01\x12\x03;\x1a0\n\x0b\n\x04\x04\x02\x02\
1333     \x01\x12\x03<\x02<\n\x0c\n\x05\x04\x02\x02\x01\x04\x12\x03<\x02\n\n\x0c\
1334     \n\x05\x04\x02\x02\x01\x06\x12\x03<\x0b\x1a\n\x0c\n\x05\x04\x02\x02\x01\
1335     \x01\x12\x03<\x1b\x20\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03<#$\n\x0c\n\
1336     \x05\x04\x02\x02\x01\x08\x12\x03<%;\n\x0f\n\x08\x04\x02\x02\x01\x08\xf2\
1337     \x07\x02\x12\x03<&:\n\n\n\x02\x04\x03\x12\x04?\0A\x01\n\n\n\x03\x04\x03\
1338     \x01\x12\x03?\x08\x17\n\x0b\n\x04\x04\x03\x02\0\x12\x03@\x026\n\x0c\n\
1339     \x05\x04\x03\x02\0\x04\x12\x03@\x02\n\n\x0c\n\x05\x04\x03\x02\0\x05\x12\
1340     \x03@\x0b\x10\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03@\x11\x18\n\x0c\n\x05\
1341     \x04\x03\x02\0\x03\x12\x03@\x1b\x1c\n\x0c\n\x05\x04\x03\x02\0\x08\x12\
1342     \x03@\x1d5\n\x0f\n\x08\x04\x03\x02\0\x08\xf2\x07\x01\x12\x03@\x1e4\
1343 ";
1344 
1345 static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
1346 
parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto1347 fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
1348     ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1349 }
1350 
file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto1351 pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1352     file_descriptor_proto_lazy.get(|| {
1353         parse_descriptor_proto()
1354     })
1355 }
1356