1 /* Automatically generated nanopb constant definitions */
2 /* Generated by nanopb-0.3.9.8 at Thu Nov 10 13:28:07 2022. */
3 
4 #include "keymaster_attributes.pb.h"
5 
6 /* @@protoc_insertion_point(includes) */
7 #if PB_PROTO_HEADER_VERSION != 30
8 #error Regenerate this file with the current version of nanopb generator.
9 #endif
10 
11 
12 
13 const pb_field_t KeymasterAttributes_fields[3] = {
14     PB_FIELD(  1, BYTES   , OPTIONAL, STATIC  , FIRST, KeymasterAttributes, uuid, uuid, 0),
15     PB_FIELD(  2, BYTES   , OPTIONAL, STATIC  , OTHER, KeymasterAttributes, product_id, uuid, 0),
16     PB_LAST_FIELD
17 };
18 
19 const pb_field_t AttestationIds_fields[10] = {PB_FIELD(1,
20                                                        BYTES,
21                                                        OPTIONAL,
22                                                        STATIC,
23                                                        FIRST,
24                                                        AttestationIds,
25                                                        brand,
26                                                        brand,
27                                                        0),
28                                               PB_FIELD(2,
29                                                        BYTES,
30                                                        OPTIONAL,
31                                                        STATIC,
32                                                        OTHER,
33                                                        AttestationIds,
34                                                        device,
35                                                        brand,
36                                                        0),
37                                               PB_FIELD(3,
38                                                        BYTES,
39                                                        OPTIONAL,
40                                                        STATIC,
41                                                        OTHER,
42                                                        AttestationIds,
43                                                        product,
44                                                        device,
45                                                        0),
46                                               PB_FIELD(4,
47                                                        BYTES,
48                                                        OPTIONAL,
49                                                        STATIC,
50                                                        OTHER,
51                                                        AttestationIds,
52                                                        serial,
53                                                        product,
54                                                        0),
55                                               PB_FIELD(5,
56                                                        BYTES,
57                                                        OPTIONAL,
58                                                        STATIC,
59                                                        OTHER,
60                                                        AttestationIds,
61                                                        imei,
62                                                        serial,
63                                                        0),
64                                               PB_FIELD(6,
65                                                        BYTES,
66                                                        OPTIONAL,
67                                                        STATIC,
68                                                        OTHER,
69                                                        AttestationIds,
70                                                        meid,
71                                                        imei,
72                                                        0),
73                                               PB_FIELD(7,
74                                                        BYTES,
75                                                        OPTIONAL,
76                                                        STATIC,
77                                                        OTHER,
78                                                        AttestationIds,
79                                                        manufacturer,
80                                                        meid,
81                                                        0),
82                                               PB_FIELD(8,
83                                                        BYTES,
84                                                        OPTIONAL,
85                                                        STATIC,
86                                                        OTHER,
87                                                        AttestationIds,
88                                                        model,
89                                                        manufacturer,
90                                                        0),
91                                               PB_FIELD(9,
92                                                        BYTES,
93                                                        OPTIONAL,
94                                                        STATIC,
95                                                        OTHER,
96                                                        AttestationIds,
97                                                        second_imei,
98                                                        model,
99                                                        0),
100                                               PB_LAST_FIELD};
101 
102 const pb_field_t AttestationKey_fields[3] = {
103     PB_FIELD(  1, BYTES   , OPTIONAL, STATIC  , FIRST, AttestationKey, key, key, 0),
104     PB_FIELD(  2, MESSAGE , REPEATED, STATIC  , OTHER, AttestationKey, certs, key, &AttestationCert_fields),
105     PB_LAST_FIELD
106 };
107 
108 const pb_field_t AttestationCert_fields[2] = {
109     PB_FIELD(  1, BYTES   , REQUIRED, STATIC  , FIRST, AttestationCert, content, content, 0),
110     PB_LAST_FIELD
111 };
112 
113 
114 /* Check that field information fits in pb_field_t */
115 #if !defined(PB_FIELD_32BIT)
116 /* If you get an error here, it means that you need to define PB_FIELD_32BIT
117  * compile-time option. You can do that in pb.h or on compiler command line.
118  *
119  * The reason you need to do this is that some of your messages contain tag
120  * numbers or field sizes that are larger than what can fit in 8 or 16 bit
121  * field descriptors.
122  */
123 PB_STATIC_ASSERT(
124         (pb_membersize(AttestationKey, key) < 65536 &&
125          pb_membersize(AttestationKey, certs[0]) < 65536 &&
126          pb_membersize(AttestationCert, content) < 65536),
127         YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_KeymasterAttributes_AttestationIds_AttestationKey_AttestationCert)
128 #endif
129 
130 #if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
131 #error Field descriptor for AttestationCert.content is too large. Define PB_FIELD_16BIT to fix this.
132 #endif
133 
134 
135 /* @@protoc_insertion_point(eof) */
136