1 /* This file was generated by upbc (the upb compiler) from the input 2 * file: 3 * 4 * envoy/config/endpoint/v3/load_report.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/load_report.upb.h" 14 #include "envoy/config/core/v3/address.upb.h" 15 #include "envoy/config/core/v3/base.upb.h" 16 #include "google/protobuf/duration.upb.h" 17 #include "google/protobuf/struct.upb.h" 18 #include "udpa/annotations/status.upb.h" 19 #include "udpa/annotations/versioning.upb.h" 20 #include "validate/validate.upb.h" 21 22 // Must be last. 23 #include "upb/port/def.inc" 24 25 static const upb_MiniTableSub envoy_config_endpoint_v3_UpstreamLocalityStats_submsgs[3] = { 26 {.submsg = &envoy_config_core_v3_Locality_msg_init}, 27 {.submsg = &envoy_config_endpoint_v3_EndpointLoadMetricStats_msg_init}, 28 {.submsg = &envoy_config_endpoint_v3_UpstreamEndpointStats_msg_init}, 29 }; 30 31 static const upb_MiniTableField envoy_config_endpoint_v3_UpstreamLocalityStats__fields[8] = { 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(24, 16), 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 34 {3, UPB_SIZE(32, 24), 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 35 {4, UPB_SIZE(40, 32), 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 36 {5, UPB_SIZE(8, 40), 0, 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 37 {6, UPB_SIZE(12, 4), 0, kUpb_NoSub, 13, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 38 {7, UPB_SIZE(16, 48), 0, 2, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 39 {8, UPB_SIZE(48, 56), 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 40 }; 41 42 const upb_MiniTable envoy_config_endpoint_v3_UpstreamLocalityStats_msg_init = { 43 &envoy_config_endpoint_v3_UpstreamLocalityStats_submsgs[0], 44 &envoy_config_endpoint_v3_UpstreamLocalityStats__fields[0], 45 UPB_SIZE(56, 64), 8, kUpb_ExtMode_NonExtendable, 8, UPB_FASTTABLE_MASK(120), 0, 46 UPB_FASTTABLE_INIT({ 47 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 48 {0x000800000100000a, &upb_psm_1bt_maxmaxb}, 49 {0x001000003f000010, &upb_psv8_1bt}, 50 {0x001800003f000018, &upb_psv8_1bt}, 51 {0x002000003f000020, &upb_psv8_1bt}, 52 {0x002800003f01002a, &upb_prm_1bt_max64b}, 53 {0x000400003f000030, &upb_psv4_1bt}, 54 {0x003000003f02003a, &upb_prm_1bt_max128b}, 55 {0x003800003f000040, &upb_psv8_1bt}, 56 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 57 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 58 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 59 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 60 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 61 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 62 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 63 }) 64 }; 65 66 static const upb_MiniTableSub envoy_config_endpoint_v3_UpstreamEndpointStats_submsgs[3] = { 67 {.submsg = &envoy_config_core_v3_Address_msg_init}, 68 {.submsg = &envoy_config_endpoint_v3_EndpointLoadMetricStats_msg_init}, 69 {.submsg = &google_protobuf_Struct_msg_init}, 70 }; 71 72 static const upb_MiniTableField envoy_config_endpoint_v3_UpstreamEndpointStats__fields[7] = { 73 {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 74 {2, 16, 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 75 {3, 24, 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 76 {4, 32, 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 77 {5, UPB_SIZE(8, 40), 0, 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 78 {6, UPB_SIZE(12, 48), 2, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 79 {7, UPB_SIZE(40, 56), 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 80 }; 81 82 const upb_MiniTable envoy_config_endpoint_v3_UpstreamEndpointStats_msg_init = { 83 &envoy_config_endpoint_v3_UpstreamEndpointStats_submsgs[0], 84 &envoy_config_endpoint_v3_UpstreamEndpointStats__fields[0], 85 UPB_SIZE(48, 64), 7, kUpb_ExtMode_NonExtendable, 7, UPB_FASTTABLE_MASK(56), 0, 86 UPB_FASTTABLE_INIT({ 87 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 88 {0x000800000100000a, &upb_psm_1bt_maxmaxb}, 89 {0x001000003f000010, &upb_psv8_1bt}, 90 {0x001800003f000018, &upb_psv8_1bt}, 91 {0x002000003f000020, &upb_psv8_1bt}, 92 {0x002800003f01002a, &upb_prm_1bt_max64b}, 93 {0x0030000002020032, &upb_psm_1bt_maxmaxb}, 94 {0x003800003f000038, &upb_psv8_1bt}, 95 }) 96 }; 97 98 static const upb_MiniTableField envoy_config_endpoint_v3_EndpointLoadMetricStats__fields[3] = { 99 {1, 0, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 100 {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 101 {3, UPB_SIZE(16, 24), 0, kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 102 }; 103 104 const upb_MiniTable envoy_config_endpoint_v3_EndpointLoadMetricStats_msg_init = { 105 NULL, 106 &envoy_config_endpoint_v3_EndpointLoadMetricStats__fields[0], 107 UPB_SIZE(24, 32), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0, 108 UPB_FASTTABLE_INIT({ 109 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 110 {0x000000003f00000a, &upb_pss_1bt}, 111 {0x001000003f000010, &upb_psv8_1bt}, 112 {0x001800003f000019, &upb_psf8_1bt}, 113 }) 114 }; 115 116 static const upb_MiniTableSub envoy_config_endpoint_v3_ClusterStats_submsgs[3] = { 117 {.submsg = &envoy_config_endpoint_v3_UpstreamLocalityStats_msg_init}, 118 {.submsg = &google_protobuf_Duration_msg_init}, 119 {.submsg = &envoy_config_endpoint_v3_ClusterStats_DroppedRequests_msg_init}, 120 }; 121 122 static const upb_MiniTableField envoy_config_endpoint_v3_ClusterStats__fields[6] = { 123 {1, UPB_SIZE(16, 8), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 124 {2, UPB_SIZE(4, 24), 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 125 {3, UPB_SIZE(24, 32), 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 126 {4, UPB_SIZE(8, 40), 1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 127 {5, UPB_SIZE(12, 48), 0, 2, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 128 {6, UPB_SIZE(32, 56), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 129 }; 130 131 const upb_MiniTable envoy_config_endpoint_v3_ClusterStats_msg_init = { 132 &envoy_config_endpoint_v3_ClusterStats_submsgs[0], 133 &envoy_config_endpoint_v3_ClusterStats__fields[0], 134 UPB_SIZE(40, 72), 6, kUpb_ExtMode_NonExtendable, 6, UPB_FASTTABLE_MASK(56), 0, 135 UPB_FASTTABLE_INIT({ 136 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 137 {0x000800003f00000a, &upb_pss_1bt}, 138 {0x001800003f000012, &upb_prm_1bt_max128b}, 139 {0x002000003f000018, &upb_psv8_1bt}, 140 {0x0028000001010022, &upb_psm_1bt_maxmaxb}, 141 {0x003000003f02002a, &upb_prm_1bt_max64b}, 142 {0x003800003f000032, &upb_pss_1bt}, 143 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 144 }) 145 }; 146 147 static const upb_MiniTableField envoy_config_endpoint_v3_ClusterStats_DroppedRequests__fields[2] = { 148 {1, 0, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 149 {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 150 }; 151 152 const upb_MiniTable envoy_config_endpoint_v3_ClusterStats_DroppedRequests_msg_init = { 153 NULL, 154 &envoy_config_endpoint_v3_ClusterStats_DroppedRequests__fields[0], 155 UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 156 UPB_FASTTABLE_INIT({ 157 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 158 {0x000000003f00000a, &upb_pss_1bt}, 159 {0x001000003f000010, &upb_psv8_1bt}, 160 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 161 }) 162 }; 163 164 static const upb_MiniTable *messages_layout[5] = { 165 &envoy_config_endpoint_v3_UpstreamLocalityStats_msg_init, 166 &envoy_config_endpoint_v3_UpstreamEndpointStats_msg_init, 167 &envoy_config_endpoint_v3_EndpointLoadMetricStats_msg_init, 168 &envoy_config_endpoint_v3_ClusterStats_msg_init, 169 &envoy_config_endpoint_v3_ClusterStats_DroppedRequests_msg_init, 170 }; 171 172 const upb_MiniTableFile envoy_config_endpoint_v3_load_report_proto_upb_file_layout = { 173 messages_layout, 174 NULL, 175 NULL, 176 5, 177 0, 178 0, 179 }; 180 181 #include "upb/port/undef.inc" 182 183