1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     envoy/extensions/transport_sockets/tls/v3/common.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #include <stddef.h>
10 #include "upb/collections/array_internal.h"
11 #include "upb/message/internal.h"
12 #include "upb/mini_table/enum_internal.h"
13 #include "envoy/extensions/transport_sockets/tls/v3/common.upb.h"
14 #include "envoy/config/core/v3/base.upb.h"
15 #include "envoy/config/core/v3/extension.upb.h"
16 #include "envoy/type/matcher/v3/string.upb.h"
17 #include "google/protobuf/any.upb.h"
18 #include "google/protobuf/wrappers.upb.h"
19 #include "envoy/annotations/deprecation.upb.h"
20 #include "udpa/annotations/migrate.upb.h"
21 #include "udpa/annotations/sensitive.upb.h"
22 #include "udpa/annotations/status.upb.h"
23 #include "udpa/annotations/versioning.upb.h"
24 #include "validate/validate.upb.h"
25 
26 // Must be last.
27 #include "upb/port/def.inc"
28 
29 static const upb_MiniTableField envoy_extensions_transport_sockets_tls_v3_TlsParameters__fields[5] = {
30   {1, 0, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)},
31   {2, 4, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)},
32   {3, 8, 0, kUpb_NoSub, 9, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
33   {4, UPB_SIZE(12, 16), 0, kUpb_NoSub, 9, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
34   {5, UPB_SIZE(16, 24), 0, kUpb_NoSub, 9, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
35 };
36 
37 const upb_MiniTable envoy_extensions_transport_sockets_tls_v3_TlsParameters_msg_init = {
38   NULL,
39   &envoy_extensions_transport_sockets_tls_v3_TlsParameters__fields[0],
40   UPB_SIZE(24, 32), 5, kUpb_ExtMode_NonExtendable, 5, UPB_FASTTABLE_MASK(56), 0,
41   UPB_FASTTABLE_INIT({
42     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
43     {0x000000003f000008, &upb_psv4_1bt},
44     {0x000400003f000010, &upb_psv4_1bt},
45     {0x000800003f00001a, &upb_prs_1bt},
46     {0x001000003f000022, &upb_prs_1bt},
47     {0x001800003f00002a, &upb_prs_1bt},
48     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
49     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
50   })
51 };
52 
53 static const upb_MiniTableSub envoy_extensions_transport_sockets_tls_v3_PrivateKeyProvider_submsgs[1] = {
54   {.submsg = &google_protobuf_Any_msg_init},
55 };
56 
57 static const upb_MiniTableField envoy_extensions_transport_sockets_tls_v3_PrivateKeyProvider__fields[2] = {
58   {1, 8, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
59   {3, UPB_SIZE(4, 24), -1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
60 };
61 
62 const upb_MiniTable envoy_extensions_transport_sockets_tls_v3_PrivateKeyProvider_msg_init = {
63   &envoy_extensions_transport_sockets_tls_v3_PrivateKeyProvider_submsgs[0],
64   &envoy_extensions_transport_sockets_tls_v3_PrivateKeyProvider__fields[0],
65   UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(24), 0,
66   UPB_FASTTABLE_INIT({
67     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
68     {0x000800003f00000a, &upb_pss_1bt},
69     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
70     {0x001800000300001a, &upb_pom_1bt_maxmaxb},
71   })
72 };
73 
74 static const upb_MiniTableSub envoy_extensions_transport_sockets_tls_v3_TlsCertificate_submsgs[8] = {
75   {.submsg = &envoy_config_core_v3_DataSource_msg_init},
76   {.submsg = &envoy_config_core_v3_DataSource_msg_init},
77   {.submsg = &envoy_config_core_v3_DataSource_msg_init},
78   {.submsg = &envoy_config_core_v3_DataSource_msg_init},
79   {.submsg = &envoy_config_core_v3_DataSource_msg_init},
80   {.submsg = &envoy_extensions_transport_sockets_tls_v3_PrivateKeyProvider_msg_init},
81   {.submsg = &envoy_config_core_v3_WatchedDirectory_msg_init},
82   {.submsg = &envoy_config_core_v3_DataSource_msg_init},
83 };
84 
85 static const upb_MiniTableField envoy_extensions_transport_sockets_tls_v3_TlsCertificate__fields[8] = {
86   {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
87   {2, UPB_SIZE(8, 16), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
88   {3, UPB_SIZE(12, 24), 3, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
89   {4, UPB_SIZE(16, 32), 4, 3, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
90   {5, UPB_SIZE(20, 40), 0, 4, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
91   {6, UPB_SIZE(24, 48), 5, 5, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
92   {7, UPB_SIZE(28, 56), 6, 6, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
93   {8, UPB_SIZE(32, 64), 7, 7, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
94 };
95 
96 const upb_MiniTable envoy_extensions_transport_sockets_tls_v3_TlsCertificate_msg_init = {
97   &envoy_extensions_transport_sockets_tls_v3_TlsCertificate_submsgs[0],
98   &envoy_extensions_transport_sockets_tls_v3_TlsCertificate__fields[0],
99   UPB_SIZE(40, 72), 8, kUpb_ExtMode_NonExtendable, 8, UPB_FASTTABLE_MASK(120), 0,
100   UPB_FASTTABLE_INIT({
101     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
102     {0x000800000100000a, &upb_psm_1bt_maxmaxb},
103     {0x0010000002010012, &upb_psm_1bt_maxmaxb},
104     {0x001800000302001a, &upb_psm_1bt_maxmaxb},
105     {0x0020000004030022, &upb_psm_1bt_maxmaxb},
106     {0x002800003f04002a, &upb_prm_1bt_maxmaxb},
107     {0x0030000005050032, &upb_psm_1bt_max64b},
108     {0x003800000606003a, &upb_psm_1bt_maxmaxb},
109     {0x0040000007070042, &upb_psm_1bt_maxmaxb},
110     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
111     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
112     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
113     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
114     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
115     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
116     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
117   })
118 };
119 
120 static const upb_MiniTableSub envoy_extensions_transport_sockets_tls_v3_TlsSessionTicketKeys_submsgs[1] = {
121   {.submsg = &envoy_config_core_v3_DataSource_msg_init},
122 };
123 
124 static const upb_MiniTableField envoy_extensions_transport_sockets_tls_v3_TlsSessionTicketKeys__fields[1] = {
125   {1, 0, 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
126 };
127 
128 const upb_MiniTable envoy_extensions_transport_sockets_tls_v3_TlsSessionTicketKeys_msg_init = {
129   &envoy_extensions_transport_sockets_tls_v3_TlsSessionTicketKeys_submsgs[0],
130   &envoy_extensions_transport_sockets_tls_v3_TlsSessionTicketKeys__fields[0],
131   8, 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0,
132   UPB_FASTTABLE_INIT({
133     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
134     {0x000000003f00000a, &upb_prm_1bt_maxmaxb},
135   })
136 };
137 
138 static const upb_MiniTableField envoy_extensions_transport_sockets_tls_v3_CertificateProviderPluginInstance__fields[2] = {
139   {1, 0, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
140   {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
141 };
142 
143 const upb_MiniTable envoy_extensions_transport_sockets_tls_v3_CertificateProviderPluginInstance_msg_init = {
144   NULL,
145   &envoy_extensions_transport_sockets_tls_v3_CertificateProviderPluginInstance__fields[0],
146   UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
147   UPB_FASTTABLE_INIT({
148     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
149     {0x000000003f00000a, &upb_pss_1bt},
150     {0x001000003f000012, &upb_pss_1bt},
151     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
152   })
153 };
154 
155 static const upb_MiniTableSub envoy_extensions_transport_sockets_tls_v3_SubjectAltNameMatcher_submsgs[1] = {
156   {.submsg = &envoy_type_matcher_v3_StringMatcher_msg_init},
157 };
158 
159 static const upb_MiniTableField envoy_extensions_transport_sockets_tls_v3_SubjectAltNameMatcher__fields[2] = {
160   {1, 4, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)},
161   {2, 8, 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
162 };
163 
164 const upb_MiniTable envoy_extensions_transport_sockets_tls_v3_SubjectAltNameMatcher_msg_init = {
165   &envoy_extensions_transport_sockets_tls_v3_SubjectAltNameMatcher_submsgs[0],
166   &envoy_extensions_transport_sockets_tls_v3_SubjectAltNameMatcher__fields[0],
167   16, 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
168   UPB_FASTTABLE_INIT({
169     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
170     {0x000400003f000008, &upb_psv4_1bt},
171     {0x0008000001000012, &upb_psm_1bt_maxmaxb},
172     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
173   })
174 };
175 
176 static const upb_MiniTableSub envoy_extensions_transport_sockets_tls_v3_CertificateValidationContext_submsgs[9] = {
177   {.submsg = &envoy_config_core_v3_DataSource_msg_init},
178   {.submsg = &google_protobuf_BoolValue_msg_init},
179   {.submsg = &envoy_config_core_v3_DataSource_msg_init},
180   {.submsg = &envoy_type_matcher_v3_StringMatcher_msg_init},
181   {.submsg = &envoy_config_core_v3_WatchedDirectory_msg_init},
182   {.submsg = &envoy_config_core_v3_TypedExtensionConfig_msg_init},
183   {.submsg = &envoy_extensions_transport_sockets_tls_v3_CertificateProviderPluginInstance_msg_init},
184   {.submsg = &envoy_extensions_transport_sockets_tls_v3_SubjectAltNameMatcher_msg_init},
185   {.submsg = &google_protobuf_UInt32Value_msg_init},
186 };
187 
188 static const upb_MiniTableField envoy_extensions_transport_sockets_tls_v3_CertificateValidationContext__fields[14] = {
189   {1, UPB_SIZE(4, 16), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
190   {2, UPB_SIZE(8, 24), 0, kUpb_NoSub, 9, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
191   {3, UPB_SIZE(12, 32), 0, kUpb_NoSub, 9, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
192   {6, UPB_SIZE(16, 40), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
193   {7, UPB_SIZE(20, 48), 3, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
194   {8, UPB_SIZE(24, 1), 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)},
195   {9, UPB_SIZE(28, 56), 0, 3, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
196   {10, UPB_SIZE(32, 4), 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)},
197   {11, UPB_SIZE(36, 64), 4, 4, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
198   {12, UPB_SIZE(40, 72), 5, 5, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
199   {13, UPB_SIZE(44, 80), 6, 6, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
200   {14, UPB_SIZE(48, 8), 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)},
201   {15, UPB_SIZE(52, 88), 0, 7, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
202   {16, UPB_SIZE(56, 96), 7, 8, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
203 };
204 
205 const upb_MiniTable envoy_extensions_transport_sockets_tls_v3_CertificateValidationContext_msg_init = {
206   &envoy_extensions_transport_sockets_tls_v3_CertificateValidationContext_submsgs[0],
207   &envoy_extensions_transport_sockets_tls_v3_CertificateValidationContext__fields[0],
208   UPB_SIZE(64, 104), 14, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(248), 0,
209   UPB_FASTTABLE_INIT({
210     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
211     {0x001000000100000a, &upb_psm_1bt_maxmaxb},
212     {0x001800003f000012, &upb_prs_1bt},
213     {0x002000003f00001a, &upb_prs_1bt},
214     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
215     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
216     {0x0028000002010032, &upb_psm_1bt_maxmaxb},
217     {0x003000000302003a, &upb_psm_1bt_maxmaxb},
218     {0x000100003f000040, &upb_psb1_1bt},
219     {0x003800003f03004a, &upb_prm_1bt_maxmaxb},
220     {0x000400003f000050, &upb_psv4_1bt},
221     {0x004000000404005a, &upb_psm_1bt_maxmaxb},
222     {0x0048000005050062, &upb_psm_1bt_maxmaxb},
223     {0x005000000606006a, &upb_psm_1bt_max64b},
224     {0x000800003f000070, &upb_psb1_1bt},
225     {0x005800003f07007a, &upb_prm_1bt_max64b},
226     {0x0060000007080182, &upb_psm_2bt_maxmaxb},
227     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
228     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
229     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
230     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
231     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
232     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
233     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
234     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
235     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
236     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
237     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
238     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
239     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
240     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
241     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
242   })
243 };
244 
245 static const upb_MiniTable *messages_layout[7] = {
246   &envoy_extensions_transport_sockets_tls_v3_TlsParameters_msg_init,
247   &envoy_extensions_transport_sockets_tls_v3_PrivateKeyProvider_msg_init,
248   &envoy_extensions_transport_sockets_tls_v3_TlsCertificate_msg_init,
249   &envoy_extensions_transport_sockets_tls_v3_TlsSessionTicketKeys_msg_init,
250   &envoy_extensions_transport_sockets_tls_v3_CertificateProviderPluginInstance_msg_init,
251   &envoy_extensions_transport_sockets_tls_v3_SubjectAltNameMatcher_msg_init,
252   &envoy_extensions_transport_sockets_tls_v3_CertificateValidationContext_msg_init,
253 };
254 
255 const upb_MiniTableFile envoy_extensions_transport_sockets_tls_v3_common_proto_upb_file_layout = {
256   messages_layout,
257   NULL,
258   NULL,
259   7,
260   0,
261   0,
262 };
263 
264 #include "upb/port/undef.inc"
265 
266