1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     src/proto/grpc/lookup/v1/rls_config.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 "src/proto/grpc/lookup/v1/rls_config.upb.h"
14 #include "google/protobuf/duration.upb.h"
15 
16 // Must be last.
17 #include "upb/port/def.inc"
18 
19 static const upb_MiniTableField grpc_lookup_v1_NameMatcher__fields[3] = {
20   {1, 8, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
21   {2, UPB_SIZE(0, 24), 0, kUpb_NoSub, 9, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
22   {3, UPB_SIZE(4, 0), 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)},
23 };
24 
25 const upb_MiniTable grpc_lookup_v1_NameMatcher_msg_init = {
26   NULL,
27   &grpc_lookup_v1_NameMatcher__fields[0],
28   UPB_SIZE(16, 32), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0,
29   UPB_FASTTABLE_INIT({
30     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
31     {0x000800003f00000a, &upb_pss_1bt},
32     {0x001800003f000012, &upb_prs_1bt},
33     {0x000000003f000018, &upb_psb1_1bt},
34   })
35 };
36 
37 static const upb_MiniTableSub grpc_lookup_v1_GrpcKeyBuilder_submsgs[4] = {
38   {.submsg = &grpc_lookup_v1_GrpcKeyBuilder_Name_msg_init},
39   {.submsg = &grpc_lookup_v1_NameMatcher_msg_init},
40   {.submsg = &grpc_lookup_v1_GrpcKeyBuilder_ExtraKeys_msg_init},
41   {.submsg = &grpc_lookup_v1_GrpcKeyBuilder_ConstantKeysEntry_msg_init},
42 };
43 
44 static const upb_MiniTableField grpc_lookup_v1_GrpcKeyBuilder__fields[4] = {
45   {1, UPB_SIZE(4, 8), 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
46   {2, UPB_SIZE(8, 16), 0, 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
47   {3, UPB_SIZE(12, 24), 1, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
48   {4, UPB_SIZE(16, 32), 0, 3, 11, kUpb_FieldMode_Map | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
49 };
50 
51 const upb_MiniTable grpc_lookup_v1_GrpcKeyBuilder_msg_init = {
52   &grpc_lookup_v1_GrpcKeyBuilder_submsgs[0],
53   &grpc_lookup_v1_GrpcKeyBuilder__fields[0],
54   UPB_SIZE(24, 40), 4, kUpb_ExtMode_NonExtendable, 4, UPB_FASTTABLE_MASK(24), 0,
55   UPB_FASTTABLE_INIT({
56     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
57     {0x000800003f00000a, &upb_prm_1bt_max64b},
58     {0x001000003f010012, &upb_prm_1bt_max64b},
59     {0x001800000102001a, &upb_psm_1bt_max64b},
60   })
61 };
62 
63 static const upb_MiniTableField grpc_lookup_v1_GrpcKeyBuilder_Name__fields[2] = {
64   {1, 0, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
65   {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
66 };
67 
68 const upb_MiniTable grpc_lookup_v1_GrpcKeyBuilder_Name_msg_init = {
69   NULL,
70   &grpc_lookup_v1_GrpcKeyBuilder_Name__fields[0],
71   UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
72   UPB_FASTTABLE_INIT({
73     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
74     {0x000000003f00000a, &upb_pss_1bt},
75     {0x001000003f000012, &upb_pss_1bt},
76     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
77   })
78 };
79 
80 static const upb_MiniTableField grpc_lookup_v1_GrpcKeyBuilder_ExtraKeys__fields[3] = {
81   {1, 0, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
82   {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
83   {3, UPB_SIZE(16, 32), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
84 };
85 
86 const upb_MiniTable grpc_lookup_v1_GrpcKeyBuilder_ExtraKeys_msg_init = {
87   NULL,
88   &grpc_lookup_v1_GrpcKeyBuilder_ExtraKeys__fields[0],
89   UPB_SIZE(24, 48), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0,
90   UPB_FASTTABLE_INIT({
91     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
92     {0x000000003f00000a, &upb_pss_1bt},
93     {0x001000003f000012, &upb_pss_1bt},
94     {0x002000003f00001a, &upb_pss_1bt},
95   })
96 };
97 
98 static const upb_MiniTableField grpc_lookup_v1_GrpcKeyBuilder_ConstantKeysEntry__fields[2] = {
99   {1, 8, 0, kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
100   {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
101 };
102 
103 const upb_MiniTable grpc_lookup_v1_GrpcKeyBuilder_ConstantKeysEntry_msg_init = {
104   NULL,
105   &grpc_lookup_v1_GrpcKeyBuilder_ConstantKeysEntry__fields[0],
106   UPB_SIZE(24, 40), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
107   UPB_FASTTABLE_INIT({
108     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
109     {0x000800003f00000a, &upb_pss_1bt},
110     {0x001800003f000012, &upb_pss_1bt},
111     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
112   })
113 };
114 
115 static const upb_MiniTableSub grpc_lookup_v1_HttpKeyBuilder_submsgs[3] = {
116   {.submsg = &grpc_lookup_v1_NameMatcher_msg_init},
117   {.submsg = &grpc_lookup_v1_NameMatcher_msg_init},
118   {.submsg = &grpc_lookup_v1_HttpKeyBuilder_ConstantKeysEntry_msg_init},
119 };
120 
121 static const upb_MiniTableField grpc_lookup_v1_HttpKeyBuilder__fields[5] = {
122   {1, 0, 0, kUpb_NoSub, 9, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
123   {2, UPB_SIZE(4, 8), 0, kUpb_NoSub, 9, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
124   {3, UPB_SIZE(8, 16), 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
125   {4, UPB_SIZE(12, 24), 0, 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
126   {5, UPB_SIZE(16, 32), 0, 2, 11, kUpb_FieldMode_Map | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
127 };
128 
129 const upb_MiniTable grpc_lookup_v1_HttpKeyBuilder_msg_init = {
130   &grpc_lookup_v1_HttpKeyBuilder_submsgs[0],
131   &grpc_lookup_v1_HttpKeyBuilder__fields[0],
132   UPB_SIZE(24, 40), 5, kUpb_ExtMode_NonExtendable, 5, UPB_FASTTABLE_MASK(56), 0,
133   UPB_FASTTABLE_INIT({
134     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
135     {0x000000003f00000a, &upb_prs_1bt},
136     {0x000800003f000012, &upb_prs_1bt},
137     {0x001000003f00001a, &upb_prm_1bt_max64b},
138     {0x001800003f010022, &upb_prm_1bt_max64b},
139     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
140     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
141     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
142   })
143 };
144 
145 static const upb_MiniTableField grpc_lookup_v1_HttpKeyBuilder_ConstantKeysEntry__fields[2] = {
146   {1, 8, 0, kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
147   {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
148 };
149 
150 const upb_MiniTable grpc_lookup_v1_HttpKeyBuilder_ConstantKeysEntry_msg_init = {
151   NULL,
152   &grpc_lookup_v1_HttpKeyBuilder_ConstantKeysEntry__fields[0],
153   UPB_SIZE(24, 40), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
154   UPB_FASTTABLE_INIT({
155     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
156     {0x000800003f00000a, &upb_pss_1bt},
157     {0x001800003f000012, &upb_pss_1bt},
158     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
159   })
160 };
161 
162 static const upb_MiniTableSub grpc_lookup_v1_RouteLookupConfig_submsgs[5] = {
163   {.submsg = &grpc_lookup_v1_HttpKeyBuilder_msg_init},
164   {.submsg = &grpc_lookup_v1_GrpcKeyBuilder_msg_init},
165   {.submsg = &google_protobuf_Duration_msg_init},
166   {.submsg = &google_protobuf_Duration_msg_init},
167   {.submsg = &google_protobuf_Duration_msg_init},
168 };
169 
170 static const upb_MiniTableField grpc_lookup_v1_RouteLookupConfig__fields[9] = {
171   {1, UPB_SIZE(4, 8), 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
172   {2, UPB_SIZE(8, 16), 0, 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
173   {3, UPB_SIZE(28, 24), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
174   {4, UPB_SIZE(12, 40), 1, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
175   {5, UPB_SIZE(16, 48), 2, 3, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
176   {6, UPB_SIZE(20, 56), 3, 4, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
177   {7, UPB_SIZE(40, 64), 0, kUpb_NoSub, 3, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
178   {8, UPB_SIZE(24, 72), 0, kUpb_NoSub, 9, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
179   {9, UPB_SIZE(48, 80), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
180 };
181 
182 const upb_MiniTable grpc_lookup_v1_RouteLookupConfig_msg_init = {
183   &grpc_lookup_v1_RouteLookupConfig_submsgs[0],
184   &grpc_lookup_v1_RouteLookupConfig__fields[0],
185   UPB_SIZE(56, 96), 9, kUpb_ExtMode_NonExtendable, 9, UPB_FASTTABLE_MASK(120), 0,
186   UPB_FASTTABLE_INIT({
187     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
188     {0x000800003f00000a, &upb_prm_1bt_max64b},
189     {0x001000003f010012, &upb_prm_1bt_max64b},
190     {0x001800003f00001a, &upb_pss_1bt},
191     {0x0028000001020022, &upb_psm_1bt_maxmaxb},
192     {0x003000000203002a, &upb_psm_1bt_maxmaxb},
193     {0x0038000003040032, &upb_psm_1bt_maxmaxb},
194     {0x004000003f000038, &upb_psv8_1bt},
195     {0x004800003f000042, &upb_prs_1bt},
196     {0x005000003f00004a, &upb_pss_1bt},
197     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
198     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
199     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
200     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
201     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
202     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
203   })
204 };
205 
206 static const upb_MiniTableSub grpc_lookup_v1_RouteLookupClusterSpecifier_submsgs[1] = {
207   {.submsg = &grpc_lookup_v1_RouteLookupConfig_msg_init},
208 };
209 
210 static const upb_MiniTableField grpc_lookup_v1_RouteLookupClusterSpecifier__fields[1] = {
211   {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
212 };
213 
214 const upb_MiniTable grpc_lookup_v1_RouteLookupClusterSpecifier_msg_init = {
215   &grpc_lookup_v1_RouteLookupClusterSpecifier_submsgs[0],
216   &grpc_lookup_v1_RouteLookupClusterSpecifier__fields[0],
217   UPB_SIZE(8, 16), 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0,
218   UPB_FASTTABLE_INIT({
219     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
220     {0x000800000100000a, &upb_psm_1bt_max128b},
221   })
222 };
223 
224 static const upb_MiniTable *messages_layout[9] = {
225   &grpc_lookup_v1_NameMatcher_msg_init,
226   &grpc_lookup_v1_GrpcKeyBuilder_msg_init,
227   &grpc_lookup_v1_GrpcKeyBuilder_Name_msg_init,
228   &grpc_lookup_v1_GrpcKeyBuilder_ExtraKeys_msg_init,
229   &grpc_lookup_v1_GrpcKeyBuilder_ConstantKeysEntry_msg_init,
230   &grpc_lookup_v1_HttpKeyBuilder_msg_init,
231   &grpc_lookup_v1_HttpKeyBuilder_ConstantKeysEntry_msg_init,
232   &grpc_lookup_v1_RouteLookupConfig_msg_init,
233   &grpc_lookup_v1_RouteLookupClusterSpecifier_msg_init,
234 };
235 
236 const upb_MiniTableFile src_proto_grpc_lookup_v1_rls_config_proto_upb_file_layout = {
237   messages_layout,
238   NULL,
239   NULL,
240   9,
241   0,
242   0,
243 };
244 
245 #include "upb/port/undef.inc"
246 
247