xref: /aosp_15_r20/external/grpc-grpc/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.c (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
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 
8 #include <stddef.h>
9 #include "upb/generated_code_support.h"
10 #include "src/proto/grpc/lb/v1/load_balancer.upb_minitable.h"
11 #include "google/protobuf/duration.upb_minitable.h"
12 #include "google/protobuf/timestamp.upb_minitable.h"
13 
14 // Must be last.
15 #include "upb/port/def.inc"
16 
17 static const upb_MiniTableSub grpc_lb_v1_LoadBalanceRequest_submsgs[2] = {
18   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__InitialLoadBalanceRequest_msg_init},
19   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__ClientStats_msg_init},
20 };
21 
22 static const upb_MiniTableField grpc_lb_v1_LoadBalanceRequest__fields[2] = {
23   {1, UPB_SIZE(12, 16), -9, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
24   {2, UPB_SIZE(12, 16), -9, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
25 };
26 
27 const upb_MiniTable grpc__lb__v1__LoadBalanceRequest_msg_init = {
28   &grpc_lb_v1_LoadBalanceRequest_submsgs[0],
29   &grpc_lb_v1_LoadBalanceRequest__fields[0],
30   UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
31   UPB_FASTTABLE_INIT({
32     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
33     {0x001000080100000a, &upb_pom_1bt_max64b},
34     {0x0010000802010012, &upb_pom_1bt_max128b},
35     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
36   })
37 };
38 
39 static const upb_MiniTableField grpc_lb_v1_InitialLoadBalanceRequest__fields[1] = {
40   {1, 8, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
41 };
42 
43 const upb_MiniTable grpc__lb__v1__InitialLoadBalanceRequest_msg_init = {
44   NULL,
45   &grpc_lb_v1_InitialLoadBalanceRequest__fields[0],
46   UPB_SIZE(16, 24), 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0,
47   UPB_FASTTABLE_INIT({
48     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
49     {0x000800003f00000a, &upb_pss_1bt},
50   })
51 };
52 
53 static const upb_MiniTableField grpc_lb_v1_ClientStatsPerToken__fields[2] = {
54   {1, 8, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
55   {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
56 };
57 
58 const upb_MiniTable grpc__lb__v1__ClientStatsPerToken_msg_init = {
59   NULL,
60   &grpc_lb_v1_ClientStatsPerToken__fields[0],
61   UPB_SIZE(24, 32), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
62   UPB_FASTTABLE_INIT({
63     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
64     {0x000800003f00000a, &upb_pss_1bt},
65     {0x001800003f000010, &upb_psv8_1bt},
66     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
67   })
68 };
69 
70 static const upb_MiniTableSub grpc_lb_v1_ClientStats_submsgs[2] = {
71   {.UPB_PRIVATE(submsg) = &google__protobuf__Timestamp_msg_init},
72   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__ClientStatsPerToken_msg_init},
73 };
74 
75 static const upb_MiniTableField grpc_lb_v1_ClientStats__fields[6] = {
76   {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
77   {2, 24, 0, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
78   {3, 32, 0, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
79   {6, 40, 0, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
80   {7, 48, 0, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
81   {8, UPB_SIZE(16, 56), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
82 };
83 
84 const upb_MiniTable grpc__lb__v1__ClientStats_msg_init = {
85   &grpc_lb_v1_ClientStats_submsgs[0],
86   &grpc_lb_v1_ClientStats__fields[0],
87   UPB_SIZE(56, 64), 6, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(120), 0,
88   UPB_FASTTABLE_INIT({
89     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
90     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
91     {0x001800003f000010, &upb_psv8_1bt},
92     {0x002000003f000018, &upb_psv8_1bt},
93     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
94     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
95     {0x002800003f000030, &upb_psv8_1bt},
96     {0x003000003f000038, &upb_psv8_1bt},
97     {0x003800003f010042, &upb_prm_1bt_max64b},
98     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
99     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
100     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
101     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
102     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
103     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
104     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
105   })
106 };
107 
108 static const upb_MiniTableSub grpc_lb_v1_LoadBalanceResponse_submsgs[3] = {
109   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__InitialLoadBalanceResponse_msg_init},
110   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__ServerList_msg_init},
111   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__FallbackResponse_msg_init},
112 };
113 
114 static const upb_MiniTableField grpc_lb_v1_LoadBalanceResponse__fields[3] = {
115   {1, UPB_SIZE(12, 16), -9, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
116   {2, UPB_SIZE(12, 16), -9, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
117   {3, UPB_SIZE(12, 16), -9, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
118 };
119 
120 const upb_MiniTable grpc__lb__v1__LoadBalanceResponse_msg_init = {
121   &grpc_lb_v1_LoadBalanceResponse_submsgs[0],
122   &grpc_lb_v1_LoadBalanceResponse__fields[0],
123   UPB_SIZE(16, 24), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0,
124   UPB_FASTTABLE_INIT({
125     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
126     {0x001000080100000a, &upb_pom_1bt_max64b},
127     {0x0010000802010012, &upb_pom_1bt_max64b},
128     {0x001000080302001a, &upb_pom_1bt_max64b},
129   })
130 };
131 
132 const upb_MiniTable grpc__lb__v1__FallbackResponse_msg_init = {
133   NULL,
134   NULL,
135   8, 0, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(255), 0,
136 };
137 
138 static const upb_MiniTableSub grpc_lb_v1_InitialLoadBalanceResponse_submsgs[1] = {
139   {.UPB_PRIVATE(submsg) = &google__protobuf__Duration_msg_init},
140 };
141 
142 static const upb_MiniTableField grpc_lb_v1_InitialLoadBalanceResponse__fields[1] = {
143   {2, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
144 };
145 
146 const upb_MiniTable grpc__lb__v1__InitialLoadBalanceResponse_msg_init = {
147   &grpc_lb_v1_InitialLoadBalanceResponse_submsgs[0],
148   &grpc_lb_v1_InitialLoadBalanceResponse__fields[0],
149   UPB_SIZE(16, 24), 1, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(255), 0,
150 };
151 
152 static const upb_MiniTableSub grpc_lb_v1_ServerList_submsgs[1] = {
153   {.UPB_PRIVATE(submsg) = &grpc__lb__v1__Server_msg_init},
154 };
155 
156 static const upb_MiniTableField grpc_lb_v1_ServerList__fields[1] = {
157   {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
158 };
159 
160 const upb_MiniTable grpc__lb__v1__ServerList_msg_init = {
161   &grpc_lb_v1_ServerList_submsgs[0],
162   &grpc_lb_v1_ServerList__fields[0],
163   16, 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0,
164   UPB_FASTTABLE_INIT({
165     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
166     {0x000800003f00000a, &upb_prm_1bt_max64b},
167   })
168 };
169 
170 static const upb_MiniTableField grpc_lb_v1_Server__fields[4] = {
171   {1, 16, 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
172   {2, 8, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)},
173   {3, UPB_SIZE(24, 32), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
174   {4, 12, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)},
175 };
176 
177 const upb_MiniTable grpc__lb__v1__Server_msg_init = {
178   NULL,
179   &grpc_lb_v1_Server__fields[0],
180   UPB_SIZE(32, 48), 4, kUpb_ExtMode_NonExtendable, 4, UPB_FASTTABLE_MASK(56), 0,
181   UPB_FASTTABLE_INIT({
182     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
183     {0x001000003f00000a, &upb_psb_1bt},
184     {0x000800003f000010, &upb_psv4_1bt},
185     {0x002000003f00001a, &upb_pss_1bt},
186     {0x000c00003f000020, &upb_psb1_1bt},
187     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
188     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
189     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
190   })
191 };
192 
193 static const upb_MiniTable *messages_layout[9] = {
194   &grpc__lb__v1__LoadBalanceRequest_msg_init,
195   &grpc__lb__v1__InitialLoadBalanceRequest_msg_init,
196   &grpc__lb__v1__ClientStatsPerToken_msg_init,
197   &grpc__lb__v1__ClientStats_msg_init,
198   &grpc__lb__v1__LoadBalanceResponse_msg_init,
199   &grpc__lb__v1__FallbackResponse_msg_init,
200   &grpc__lb__v1__InitialLoadBalanceResponse_msg_init,
201   &grpc__lb__v1__ServerList_msg_init,
202   &grpc__lb__v1__Server_msg_init,
203 };
204 
205 const upb_MiniTableFile src_proto_grpc_lb_v1_load_balancer_proto_upb_file_layout = {
206   messages_layout,
207   NULL,
208   NULL,
209   9,
210   0,
211   0,
212 };
213 
214 #include "upb/port/undef.inc"
215 
216