1 /* This file was generated by upbc (the upb compiler) from the input 2 * file: 3 * 4 * envoy/config/endpoint/v3/endpoint_components.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/config/endpoint/v3/endpoint_components.upb.h" 14 #include "envoy/config/core/v3/address.upb.h" 15 #include "envoy/config/core/v3/base.upb.h" 16 #include "envoy/config/core/v3/config_source.upb.h" 17 #include "envoy/config/core/v3/health_check.upb.h" 18 #include "google/protobuf/wrappers.upb.h" 19 #include "udpa/annotations/status.upb.h" 20 #include "udpa/annotations/versioning.upb.h" 21 #include "validate/validate.upb.h" 22 23 // Must be last. 24 #include "upb/port/def.inc" 25 26 static const upb_MiniTableSub envoy_config_endpoint_v3_Endpoint_submsgs[2] = { 27 {.submsg = &envoy_config_core_v3_Address_msg_init}, 28 {.submsg = &envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_msg_init}, 29 }; 30 31 static const upb_MiniTableField envoy_config_endpoint_v3_Endpoint__fields[3] = { 32 {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 33 {2, UPB_SIZE(8, 16), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 34 {3, UPB_SIZE(12, 24), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 35 }; 36 37 const upb_MiniTable envoy_config_endpoint_v3_Endpoint_msg_init = { 38 &envoy_config_endpoint_v3_Endpoint_submsgs[0], 39 &envoy_config_endpoint_v3_Endpoint__fields[0], 40 UPB_SIZE(24, 40), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0, 41 UPB_FASTTABLE_INIT({ 42 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 43 {0x000800000100000a, &upb_psm_1bt_maxmaxb}, 44 {0x0010000002010012, &upb_psm_1bt_max64b}, 45 {0x001800003f00001a, &upb_pss_1bt}, 46 }) 47 }; 48 49 static const upb_MiniTableSub envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_submsgs[1] = { 50 {.submsg = &envoy_config_core_v3_Address_msg_init}, 51 }; 52 53 static const upb_MiniTableField envoy_config_endpoint_v3_Endpoint_HealthCheckConfig__fields[4] = { 54 {1, 4, 0, kUpb_NoSub, 13, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 55 {2, 16, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 56 {3, UPB_SIZE(8, 32), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 57 {4, UPB_SIZE(12, 8), 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, 58 }; 59 60 const upb_MiniTable envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_msg_init = { 61 &envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_submsgs[0], 62 &envoy_config_endpoint_v3_Endpoint_HealthCheckConfig__fields[0], 63 UPB_SIZE(24, 40), 4, kUpb_ExtMode_NonExtendable, 4, UPB_FASTTABLE_MASK(56), 0, 64 UPB_FASTTABLE_INIT({ 65 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 66 {0x000400003f000008, &upb_psv4_1bt}, 67 {0x001000003f000012, &upb_pss_1bt}, 68 {0x002000000100001a, &upb_psm_1bt_maxmaxb}, 69 {0x000800003f000020, &upb_psb1_1bt}, 70 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 71 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 72 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 73 }) 74 }; 75 76 static const upb_MiniTableSub envoy_config_endpoint_v3_LbEndpoint_submsgs[3] = { 77 {.submsg = &envoy_config_endpoint_v3_Endpoint_msg_init}, 78 {.submsg = &envoy_config_core_v3_Metadata_msg_init}, 79 {.submsg = &google_protobuf_UInt32Value_msg_init}, 80 }; 81 82 static const upb_MiniTableField envoy_config_endpoint_v3_LbEndpoint__fields[5] = { 83 {1, UPB_SIZE(20, 16), UPB_SIZE(-17, -9), 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 84 {2, 4, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 85 {3, UPB_SIZE(8, 32), 1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 86 {4, UPB_SIZE(12, 40), 2, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 87 {5, UPB_SIZE(20, 16), UPB_SIZE(-17, -9), kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 88 }; 89 90 const upb_MiniTable envoy_config_endpoint_v3_LbEndpoint_msg_init = { 91 &envoy_config_endpoint_v3_LbEndpoint_submsgs[0], 92 &envoy_config_endpoint_v3_LbEndpoint__fields[0], 93 UPB_SIZE(32, 48), 5, kUpb_ExtMode_NonExtendable, 5, UPB_FASTTABLE_MASK(56), 0, 94 UPB_FASTTABLE_INIT({ 95 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 96 {0x001000080100000a, &upb_pom_1bt_max64b}, 97 {0x000400003f000010, &upb_psv4_1bt}, 98 {0x002000000101001a, &upb_psm_1bt_maxmaxb}, 99 {0x0028000002020022, &upb_psm_1bt_maxmaxb}, 100 {0x001000080500002a, &upb_pos_1bt}, 101 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 102 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 103 }) 104 }; 105 106 static const upb_MiniTableSub envoy_config_endpoint_v3_LedsClusterLocalityConfig_submsgs[1] = { 107 {.submsg = &envoy_config_core_v3_ConfigSource_msg_init}, 108 }; 109 110 static const upb_MiniTableField envoy_config_endpoint_v3_LedsClusterLocalityConfig__fields[2] = { 111 {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 112 {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 113 }; 114 115 const upb_MiniTable envoy_config_endpoint_v3_LedsClusterLocalityConfig_msg_init = { 116 &envoy_config_endpoint_v3_LedsClusterLocalityConfig_submsgs[0], 117 &envoy_config_endpoint_v3_LedsClusterLocalityConfig__fields[0], 118 UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 119 UPB_FASTTABLE_INIT({ 120 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 121 {0x000800000100000a, &upb_psm_1bt_maxmaxb}, 122 {0x001000003f000012, &upb_pss_1bt}, 123 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 124 }) 125 }; 126 127 static const upb_MiniTableSub envoy_config_endpoint_v3_LocalityLbEndpoints_submsgs[6] = { 128 {.submsg = &envoy_config_core_v3_Locality_msg_init}, 129 {.submsg = &envoy_config_endpoint_v3_LbEndpoint_msg_init}, 130 {.submsg = &google_protobuf_UInt32Value_msg_init}, 131 {.submsg = &google_protobuf_UInt32Value_msg_init}, 132 {.submsg = &envoy_config_endpoint_v3_LocalityLbEndpoints_LbEndpointList_msg_init}, 133 {.submsg = &envoy_config_endpoint_v3_LedsClusterLocalityConfig_msg_init}, 134 }; 135 136 static const upb_MiniTableField envoy_config_endpoint_v3_LocalityLbEndpoints__fields[7] = { 137 {1, UPB_SIZE(4, 16), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 138 {2, UPB_SIZE(8, 24), 0, 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 139 {3, UPB_SIZE(12, 32), 2, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 140 {5, UPB_SIZE(16, 4), 0, kUpb_NoSub, 13, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 141 {6, UPB_SIZE(20, 40), 3, 3, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 142 {7, UPB_SIZE(28, 48), UPB_SIZE(-25, -9), 4, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 143 {8, UPB_SIZE(28, 48), UPB_SIZE(-25, -9), 5, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 144 }; 145 146 const upb_MiniTable envoy_config_endpoint_v3_LocalityLbEndpoints_msg_init = { 147 &envoy_config_endpoint_v3_LocalityLbEndpoints_submsgs[0], 148 &envoy_config_endpoint_v3_LocalityLbEndpoints__fields[0], 149 UPB_SIZE(32, 56), 7, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(120), 0, 150 UPB_FASTTABLE_INIT({ 151 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 152 {0x001000000100000a, &upb_psm_1bt_maxmaxb}, 153 {0x001800003f010012, &upb_prm_1bt_max64b}, 154 {0x002000000202001a, &upb_psm_1bt_maxmaxb}, 155 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 156 {0x000400003f000028, &upb_psv4_1bt}, 157 {0x0028000003030032, &upb_psm_1bt_maxmaxb}, 158 {0x003000080704003a, &upb_pom_1bt_max64b}, 159 {0x0030000808050042, &upb_pom_1bt_max64b}, 160 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 161 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 162 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 163 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 164 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 165 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 166 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 167 }) 168 }; 169 170 static const upb_MiniTableSub envoy_config_endpoint_v3_LocalityLbEndpoints_LbEndpointList_submsgs[1] = { 171 {.submsg = &envoy_config_endpoint_v3_LbEndpoint_msg_init}, 172 }; 173 174 static const upb_MiniTableField envoy_config_endpoint_v3_LocalityLbEndpoints_LbEndpointList__fields[1] = { 175 {1, 0, 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 176 }; 177 178 const upb_MiniTable envoy_config_endpoint_v3_LocalityLbEndpoints_LbEndpointList_msg_init = { 179 &envoy_config_endpoint_v3_LocalityLbEndpoints_LbEndpointList_submsgs[0], 180 &envoy_config_endpoint_v3_LocalityLbEndpoints_LbEndpointList__fields[0], 181 8, 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0, 182 UPB_FASTTABLE_INIT({ 183 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 184 {0x000000003f00000a, &upb_prm_1bt_max64b}, 185 }) 186 }; 187 188 static const upb_MiniTable *messages_layout[6] = { 189 &envoy_config_endpoint_v3_Endpoint_msg_init, 190 &envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_msg_init, 191 &envoy_config_endpoint_v3_LbEndpoint_msg_init, 192 &envoy_config_endpoint_v3_LedsClusterLocalityConfig_msg_init, 193 &envoy_config_endpoint_v3_LocalityLbEndpoints_msg_init, 194 &envoy_config_endpoint_v3_LocalityLbEndpoints_LbEndpointList_msg_init, 195 }; 196 197 const upb_MiniTableFile envoy_config_endpoint_v3_endpoint_components_proto_upb_file_layout = { 198 messages_layout, 199 NULL, 200 NULL, 201 6, 202 0, 203 0, 204 }; 205 206 #include "upb/port/undef.inc" 207 208