• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* This file was generated by upb_generator from the input file:
2  *
3  *     src/proto/grpc/lb/v1/load_balancer.proto
4  *
5  * Do not edit -- your changes will be discarded when the file is
6  * regenerated.
7  * NO CHECKED-IN PROTOBUF GENCODE */
8 
9 #include <stddef.h>
10 #include "upb/generated_code_support.h"
11 #include "src/proto/grpc/lb/v1/load_balancer.upb_minitable.h"
12 #include "google/protobuf/duration.upb_minitable.h"
13 #include "google/protobuf/timestamp.upb_minitable.h"
14 
15 // Must be last.
16 #include "upb/port/def.inc"
17 
18 extern const struct upb_MiniTable UPB_PRIVATE(_kUpb_MiniTable_StaticallyTreeShaken);
19 static const upb_MiniTableSubInternal grpc_lb_v1_LoadBalanceRequest__submsgs[2] = {
20   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__InitialLoadBalanceRequest_msg_init_ptr},
21   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__ClientStats_msg_init_ptr},
22 };
23 
24 static const upb_MiniTableField grpc_lb_v1_LoadBalanceRequest__fields[2] = {
25   {1, UPB_SIZE(12, 16), -9, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
26   {2, UPB_SIZE(12, 16), -9, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
27 };
28 
29 const upb_MiniTable grpc__lb__v1__LoadBalanceRequest_msg_init = {
30   &grpc_lb_v1_LoadBalanceRequest__submsgs[0],
31   &grpc_lb_v1_LoadBalanceRequest__fields[0],
32   UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
33 #ifdef UPB_TRACING_ENABLED
34   "grpc.lb.v1.LoadBalanceRequest",
35 #endif
36   UPB_FASTTABLE_INIT({
37     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
38     {0x001000080100000a, &upb_pom_1bt_max64b},
39     {0x0010000802010012, &upb_pom_1bt_max128b},
40     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
41   })
42 };
43 
44 const upb_MiniTable* grpc__lb__v1__LoadBalanceRequest_msg_init_ptr = &grpc__lb__v1__LoadBalanceRequest_msg_init;
45 static const upb_MiniTableField grpc_lb_v1_InitialLoadBalanceRequest__fields[1] = {
46   {1, 8, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
47 };
48 
49 const upb_MiniTable grpc__lb__v1__InitialLoadBalanceRequest_msg_init = {
50   NULL,
51   &grpc_lb_v1_InitialLoadBalanceRequest__fields[0],
52   UPB_SIZE(16, 24), 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0,
53 #ifdef UPB_TRACING_ENABLED
54   "grpc.lb.v1.InitialLoadBalanceRequest",
55 #endif
56   UPB_FASTTABLE_INIT({
57     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
58     {0x000800003f00000a, &upb_pss_1bt},
59   })
60 };
61 
62 const upb_MiniTable* grpc__lb__v1__InitialLoadBalanceRequest_msg_init_ptr = &grpc__lb__v1__InitialLoadBalanceRequest_msg_init;
63 static const upb_MiniTableField grpc_lb_v1_ClientStatsPerToken__fields[2] = {
64   {1, 8, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
65   {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
66 };
67 
68 const upb_MiniTable grpc__lb__v1__ClientStatsPerToken_msg_init = {
69   NULL,
70   &grpc_lb_v1_ClientStatsPerToken__fields[0],
71   UPB_SIZE(24, 32), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
72 #ifdef UPB_TRACING_ENABLED
73   "grpc.lb.v1.ClientStatsPerToken",
74 #endif
75   UPB_FASTTABLE_INIT({
76     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
77     {0x000800003f00000a, &upb_pss_1bt},
78     {0x001800003f000010, &upb_psv8_1bt},
79     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
80   })
81 };
82 
83 const upb_MiniTable* grpc__lb__v1__ClientStatsPerToken_msg_init_ptr = &grpc__lb__v1__ClientStatsPerToken_msg_init;
84 static const upb_MiniTableSubInternal grpc_lb_v1_ClientStats__submsgs[2] = {
85   {.UPB_PRIVATE(submsg) = &google__protobuf__Timestamp_msg_init_ptr},
86   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__ClientStatsPerToken_msg_init_ptr},
87 };
88 
89 static const upb_MiniTableField grpc_lb_v1_ClientStats__fields[6] = {
90   {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
91   {2, 24, 0, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
92   {3, 32, 0, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
93   {6, 40, 0, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
94   {7, 48, 0, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
95   {8, UPB_SIZE(16, 56), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
96 };
97 
98 const upb_MiniTable grpc__lb__v1__ClientStats_msg_init = {
99   &grpc_lb_v1_ClientStats__submsgs[0],
100   &grpc_lb_v1_ClientStats__fields[0],
101   UPB_SIZE(56, 64), 6, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(120), 0,
102 #ifdef UPB_TRACING_ENABLED
103   "grpc.lb.v1.ClientStats",
104 #endif
105   UPB_FASTTABLE_INIT({
106     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
107     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
108     {0x001800003f000010, &upb_psv8_1bt},
109     {0x002000003f000018, &upb_psv8_1bt},
110     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
111     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
112     {0x002800003f000030, &upb_psv8_1bt},
113     {0x003000003f000038, &upb_psv8_1bt},
114     {0x003800003f010042, &upb_prm_1bt_max64b},
115     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
116     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
117     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
118     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
119     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
120     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
121     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
122   })
123 };
124 
125 const upb_MiniTable* grpc__lb__v1__ClientStats_msg_init_ptr = &grpc__lb__v1__ClientStats_msg_init;
126 static const upb_MiniTableSubInternal grpc_lb_v1_LoadBalanceResponse__submsgs[3] = {
127   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__InitialLoadBalanceResponse_msg_init_ptr},
128   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__ServerList_msg_init_ptr},
129   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__FallbackResponse_msg_init_ptr},
130 };
131 
132 static const upb_MiniTableField grpc_lb_v1_LoadBalanceResponse__fields[3] = {
133   {1, UPB_SIZE(12, 16), -9, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
134   {2, UPB_SIZE(12, 16), -9, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
135   {3, UPB_SIZE(12, 16), -9, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
136 };
137 
138 const upb_MiniTable grpc__lb__v1__LoadBalanceResponse_msg_init = {
139   &grpc_lb_v1_LoadBalanceResponse__submsgs[0],
140   &grpc_lb_v1_LoadBalanceResponse__fields[0],
141   UPB_SIZE(16, 24), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0,
142 #ifdef UPB_TRACING_ENABLED
143   "grpc.lb.v1.LoadBalanceResponse",
144 #endif
145   UPB_FASTTABLE_INIT({
146     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
147     {0x001000080100000a, &upb_pom_1bt_max64b},
148     {0x0010000802010012, &upb_pom_1bt_max64b},
149     {0x001000080302001a, &upb_pom_1bt_max64b},
150   })
151 };
152 
153 const upb_MiniTable* grpc__lb__v1__LoadBalanceResponse_msg_init_ptr = &grpc__lb__v1__LoadBalanceResponse_msg_init;
154 const upb_MiniTable grpc__lb__v1__FallbackResponse_msg_init = {
155   NULL,
156   NULL,
157   8, 0, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(255), 0,
158 #ifdef UPB_TRACING_ENABLED
159   "grpc.lb.v1.FallbackResponse",
160 #endif
161 };
162 
163 const upb_MiniTable* grpc__lb__v1__FallbackResponse_msg_init_ptr = &grpc__lb__v1__FallbackResponse_msg_init;
164 static const upb_MiniTableSubInternal grpc_lb_v1_InitialLoadBalanceResponse__submsgs[1] = {
165   {.UPB_PRIVATE(submsg) = &google__protobuf__Duration_msg_init_ptr},
166 };
167 
168 static const upb_MiniTableField grpc_lb_v1_InitialLoadBalanceResponse__fields[1] = {
169   {2, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
170 };
171 
172 const upb_MiniTable grpc__lb__v1__InitialLoadBalanceResponse_msg_init = {
173   &grpc_lb_v1_InitialLoadBalanceResponse__submsgs[0],
174   &grpc_lb_v1_InitialLoadBalanceResponse__fields[0],
175   UPB_SIZE(16, 24), 1, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(255), 0,
176 #ifdef UPB_TRACING_ENABLED
177   "grpc.lb.v1.InitialLoadBalanceResponse",
178 #endif
179 };
180 
181 const upb_MiniTable* grpc__lb__v1__InitialLoadBalanceResponse_msg_init_ptr = &grpc__lb__v1__InitialLoadBalanceResponse_msg_init;
182 static const upb_MiniTableSubInternal grpc_lb_v1_ServerList__submsgs[1] = {
183   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__Server_msg_init_ptr},
184 };
185 
186 static const upb_MiniTableField grpc_lb_v1_ServerList__fields[1] = {
187   {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
188 };
189 
190 const upb_MiniTable grpc__lb__v1__ServerList_msg_init = {
191   &grpc_lb_v1_ServerList__submsgs[0],
192   &grpc_lb_v1_ServerList__fields[0],
193   16, 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0,
194 #ifdef UPB_TRACING_ENABLED
195   "grpc.lb.v1.ServerList",
196 #endif
197   UPB_FASTTABLE_INIT({
198     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
199     {0x000800003f00000a, &upb_prm_1bt_max64b},
200   })
201 };
202 
203 const upb_MiniTable* grpc__lb__v1__ServerList_msg_init_ptr = &grpc__lb__v1__ServerList_msg_init;
204 static const upb_MiniTableField grpc_lb_v1_Server__fields[4] = {
205   {1, 16, 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
206   {2, 8, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)},
207   {3, UPB_SIZE(24, 32), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
208   {4, 12, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)},
209 };
210 
211 const upb_MiniTable grpc__lb__v1__Server_msg_init = {
212   NULL,
213   &grpc_lb_v1_Server__fields[0],
214   UPB_SIZE(32, 48), 4, kUpb_ExtMode_NonExtendable, 4, UPB_FASTTABLE_MASK(56), 0,
215 #ifdef UPB_TRACING_ENABLED
216   "grpc.lb.v1.Server",
217 #endif
218   UPB_FASTTABLE_INIT({
219     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
220     {0x001000003f00000a, &upb_psb_1bt},
221     {0x000800003f000010, &upb_psv4_1bt},
222     {0x002000003f00001a, &upb_pss_1bt},
223     {0x000c00003f000020, &upb_psb1_1bt},
224     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
225     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
226     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
227   })
228 };
229 
230 const upb_MiniTable* grpc__lb__v1__Server_msg_init_ptr = &grpc__lb__v1__Server_msg_init;
231 static const upb_MiniTable *messages_layout[9] = {
232   &grpc__lb__v1__LoadBalanceRequest_msg_init,
233   &grpc__lb__v1__InitialLoadBalanceRequest_msg_init,
234   &grpc__lb__v1__ClientStatsPerToken_msg_init,
235   &grpc__lb__v1__ClientStats_msg_init,
236   &grpc__lb__v1__LoadBalanceResponse_msg_init,
237   &grpc__lb__v1__FallbackResponse_msg_init,
238   &grpc__lb__v1__InitialLoadBalanceResponse_msg_init,
239   &grpc__lb__v1__ServerList_msg_init,
240   &grpc__lb__v1__Server_msg_init,
241 };
242 
243 const upb_MiniTableFile src_proto_grpc_lb_v1_load_balancer_proto_upb_file_layout = {
244   messages_layout,
245   NULL,
246   NULL,
247   9,
248   0,
249   0,
250 };
251 
252 #include "upb/port/undef.inc"
253 
254