1 /* This file was generated by upbc (the upb compiler) from the input 2 * file: 3 * 4 * src/proto/grpc/lb/v1/load_balancer.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/lb/v1/load_balancer.upb.h" 14 #include "google/protobuf/duration.upb.h" 15 #include "google/protobuf/timestamp.upb.h" 16 17 // Must be last. 18 #include "upb/port/def.inc" 19 20 static const upb_MiniTableSub grpc_lb_v1_LoadBalanceRequest_submsgs[2] = { 21 {.submsg = &grpc_lb_v1_InitialLoadBalanceRequest_msg_init}, 22 {.submsg = &grpc_lb_v1_ClientStats_msg_init}, 23 }; 24 25 static const upb_MiniTableField grpc_lb_v1_LoadBalanceRequest__fields[2] = { 26 {1, UPB_SIZE(4, 8), -1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 27 {2, UPB_SIZE(4, 8), -1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 28 }; 29 30 const upb_MiniTable grpc_lb_v1_LoadBalanceRequest_msg_init = { 31 &grpc_lb_v1_LoadBalanceRequest_submsgs[0], 32 &grpc_lb_v1_LoadBalanceRequest__fields[0], 33 UPB_SIZE(8, 16), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 34 UPB_FASTTABLE_INIT({ 35 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 36 {0x000800000100000a, &upb_pom_1bt_max64b}, 37 {0x0008000002010012, &upb_pom_1bt_max64b}, 38 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 39 }) 40 }; 41 42 static const upb_MiniTableField grpc_lb_v1_InitialLoadBalanceRequest__fields[1] = { 43 {1, 0, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 44 }; 45 46 const upb_MiniTable grpc_lb_v1_InitialLoadBalanceRequest_msg_init = { 47 NULL, 48 &grpc_lb_v1_InitialLoadBalanceRequest__fields[0], 49 UPB_SIZE(8, 16), 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0, 50 UPB_FASTTABLE_INIT({ 51 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 52 {0x000000003f00000a, &upb_pss_1bt}, 53 }) 54 }; 55 56 static const upb_MiniTableField grpc_lb_v1_ClientStatsPerToken__fields[2] = { 57 {1, 0, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 58 {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 3, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 59 }; 60 61 const upb_MiniTable grpc_lb_v1_ClientStatsPerToken_msg_init = { 62 NULL, 63 &grpc_lb_v1_ClientStatsPerToken__fields[0], 64 UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 65 UPB_FASTTABLE_INIT({ 66 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 67 {0x000000003f00000a, &upb_pss_1bt}, 68 {0x001000003f000010, &upb_psv8_1bt}, 69 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 70 }) 71 }; 72 73 static const upb_MiniTableSub grpc_lb_v1_ClientStats_submsgs[2] = { 74 {.submsg = &google_protobuf_Timestamp_msg_init}, 75 {.submsg = &grpc_lb_v1_ClientStatsPerToken_msg_init}, 76 }; 77 78 static const upb_MiniTableField grpc_lb_v1_ClientStats__fields[6] = { 79 {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 80 {2, 16, 0, kUpb_NoSub, 3, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 81 {3, 24, 0, kUpb_NoSub, 3, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 82 {6, 32, 0, kUpb_NoSub, 3, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 83 {7, 40, 0, kUpb_NoSub, 3, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 84 {8, UPB_SIZE(8, 48), 0, 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 85 }; 86 87 const upb_MiniTable grpc_lb_v1_ClientStats_msg_init = { 88 &grpc_lb_v1_ClientStats_submsgs[0], 89 &grpc_lb_v1_ClientStats__fields[0], 90 UPB_SIZE(48, 56), 6, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(120), 0, 91 UPB_FASTTABLE_INIT({ 92 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 93 {0x000800000100000a, &upb_psm_1bt_maxmaxb}, 94 {0x001000003f000010, &upb_psv8_1bt}, 95 {0x001800003f000018, &upb_psv8_1bt}, 96 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 97 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 98 {0x002000003f000030, &upb_psv8_1bt}, 99 {0x002800003f000038, &upb_psv8_1bt}, 100 {0x003000003f010042, &upb_prm_1bt_max64b}, 101 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 102 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 103 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 104 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 105 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 106 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 107 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 108 }) 109 }; 110 111 static const upb_MiniTableSub grpc_lb_v1_LoadBalanceResponse_submsgs[3] = { 112 {.submsg = &grpc_lb_v1_InitialLoadBalanceResponse_msg_init}, 113 {.submsg = &grpc_lb_v1_ServerList_msg_init}, 114 {.submsg = &grpc_lb_v1_FallbackResponse_msg_init}, 115 }; 116 117 static const upb_MiniTableField grpc_lb_v1_LoadBalanceResponse__fields[3] = { 118 {1, UPB_SIZE(4, 8), -1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 119 {2, UPB_SIZE(4, 8), -1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 120 {3, UPB_SIZE(4, 8), -1, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 121 }; 122 123 const upb_MiniTable grpc_lb_v1_LoadBalanceResponse_msg_init = { 124 &grpc_lb_v1_LoadBalanceResponse_submsgs[0], 125 &grpc_lb_v1_LoadBalanceResponse__fields[0], 126 UPB_SIZE(8, 16), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0, 127 UPB_FASTTABLE_INIT({ 128 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 129 {0x000800000100000a, &upb_pom_1bt_max64b}, 130 {0x0008000002010012, &upb_pom_1bt_max64b}, 131 {0x000800000302001a, &upb_pom_1bt_max64b}, 132 }) 133 }; 134 135 const upb_MiniTable grpc_lb_v1_FallbackResponse_msg_init = { 136 NULL, 137 NULL, 138 0, 0, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(255), 0, 139 }; 140 141 static const upb_MiniTableSub grpc_lb_v1_InitialLoadBalanceResponse_submsgs[1] = { 142 {.submsg = &google_protobuf_Duration_msg_init}, 143 }; 144 145 static const upb_MiniTableField grpc_lb_v1_InitialLoadBalanceResponse__fields[1] = { 146 {2, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 147 }; 148 149 const upb_MiniTable grpc_lb_v1_InitialLoadBalanceResponse_msg_init = { 150 &grpc_lb_v1_InitialLoadBalanceResponse_submsgs[0], 151 &grpc_lb_v1_InitialLoadBalanceResponse__fields[0], 152 UPB_SIZE(8, 16), 1, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(24), 0, 153 UPB_FASTTABLE_INIT({ 154 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 155 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 156 {0x0008000001000012, &upb_psm_1bt_maxmaxb}, 157 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 158 }) 159 }; 160 161 static const upb_MiniTableSub grpc_lb_v1_ServerList_submsgs[1] = { 162 {.submsg = &grpc_lb_v1_Server_msg_init}, 163 }; 164 165 static const upb_MiniTableField grpc_lb_v1_ServerList__fields[1] = { 166 {1, 0, 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 167 }; 168 169 const upb_MiniTable grpc_lb_v1_ServerList_msg_init = { 170 &grpc_lb_v1_ServerList_submsgs[0], 171 &grpc_lb_v1_ServerList__fields[0], 172 8, 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0, 173 UPB_FASTTABLE_INIT({ 174 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 175 {0x000000003f00000a, &upb_prm_1bt_max64b}, 176 }) 177 }; 178 179 static const upb_MiniTableField grpc_lb_v1_Server__fields[4] = { 180 {1, 8, 0, kUpb_NoSub, 12, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 181 {2, 0, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 182 {3, UPB_SIZE(16, 24), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 183 {4, 4, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, 184 }; 185 186 const upb_MiniTable grpc_lb_v1_Server_msg_init = { 187 NULL, 188 &grpc_lb_v1_Server__fields[0], 189 UPB_SIZE(24, 40), 4, kUpb_ExtMode_NonExtendable, 4, UPB_FASTTABLE_MASK(56), 0, 190 UPB_FASTTABLE_INIT({ 191 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 192 {0x000800003f00000a, &upb_psb_1bt}, 193 {0x000000003f000010, &upb_psv4_1bt}, 194 {0x001800003f00001a, &upb_pss_1bt}, 195 {0x000400003f000020, &upb_psb1_1bt}, 196 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 197 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 198 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 199 }) 200 }; 201 202 static const upb_MiniTable *messages_layout[9] = { 203 &grpc_lb_v1_LoadBalanceRequest_msg_init, 204 &grpc_lb_v1_InitialLoadBalanceRequest_msg_init, 205 &grpc_lb_v1_ClientStatsPerToken_msg_init, 206 &grpc_lb_v1_ClientStats_msg_init, 207 &grpc_lb_v1_LoadBalanceResponse_msg_init, 208 &grpc_lb_v1_FallbackResponse_msg_init, 209 &grpc_lb_v1_InitialLoadBalanceResponse_msg_init, 210 &grpc_lb_v1_ServerList_msg_init, 211 &grpc_lb_v1_Server_msg_init, 212 }; 213 214 const upb_MiniTableFile src_proto_grpc_lb_v1_load_balancer_proto_upb_file_layout = { 215 messages_layout, 216 NULL, 217 NULL, 218 9, 219 0, 220 0, 221 }; 222 223 #include "upb/port/undef.inc" 224 225