1 /* This file was generated by upbc (the upb compiler) from the input 2 * file: 3 * 4 * envoy/config/core/v3/config_source.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/core/v3/config_source.upb.h" 14 #include "envoy/config/core/v3/base.upb.h" 15 #include "envoy/config/core/v3/extension.upb.h" 16 #include "envoy/config/core/v3/grpc_service.upb.h" 17 #include "google/protobuf/any.upb.h" 18 #include "google/protobuf/duration.upb.h" 19 #include "google/protobuf/wrappers.upb.h" 20 #include "xds/core/v3/authority.upb.h" 21 #include "envoy/annotations/deprecation.upb.h" 22 #include "udpa/annotations/status.upb.h" 23 #include "udpa/annotations/versioning.upb.h" 24 #include "validate/validate.upb.h" 25 26 // Must be last. 27 #include "upb/port/def.inc" 28 29 static const upb_MiniTableSub envoy_config_core_v3_ApiConfigSource_submsgs[5] = { 30 {.submsg = &google_protobuf_Duration_msg_init}, 31 {.submsg = &envoy_config_core_v3_GrpcService_msg_init}, 32 {.submsg = &google_protobuf_Duration_msg_init}, 33 {.submsg = &envoy_config_core_v3_RateLimitSettings_msg_init}, 34 {.submsg = &envoy_config_core_v3_TypedExtensionConfig_msg_init}, 35 }; 36 37 static const upb_MiniTableField envoy_config_core_v3_ApiConfigSource__fields[9] = { 38 {1, 4, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 39 {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 9, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 40 {3, UPB_SIZE(12, 24), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 41 {4, UPB_SIZE(16, 32), 0, 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 42 {5, UPB_SIZE(20, 40), 2, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 43 {6, UPB_SIZE(24, 48), 3, 3, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 44 {7, UPB_SIZE(28, 8), 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, 45 {8, UPB_SIZE(32, 12), 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 46 {9, UPB_SIZE(36, 56), 0, 4, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 47 }; 48 49 const upb_MiniTable envoy_config_core_v3_ApiConfigSource_msg_init = { 50 &envoy_config_core_v3_ApiConfigSource_submsgs[0], 51 &envoy_config_core_v3_ApiConfigSource__fields[0], 52 UPB_SIZE(40, 64), 9, kUpb_ExtMode_NonExtendable, 9, UPB_FASTTABLE_MASK(120), 0, 53 UPB_FASTTABLE_INIT({ 54 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 55 {0x000400003f000008, &upb_psv4_1bt}, 56 {0x001000003f000012, &upb_prs_1bt}, 57 {0x001800000100001a, &upb_psm_1bt_maxmaxb}, 58 {0x002000003f010022, &upb_prm_1bt_maxmaxb}, 59 {0x002800000202002a, &upb_psm_1bt_maxmaxb}, 60 {0x0030000003030032, &upb_psm_1bt_max64b}, 61 {0x000800003f000038, &upb_psb1_1bt}, 62 {0x000c00003f000040, &upb_psv4_1bt}, 63 {0x003800003f04004a, &upb_prm_1bt_maxmaxb}, 64 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 65 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 66 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 67 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 68 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 69 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 70 }) 71 }; 72 73 const upb_MiniTable envoy_config_core_v3_AggregatedConfigSource_msg_init = { 74 NULL, 75 NULL, 76 0, 0, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(255), 0, 77 }; 78 79 static const upb_MiniTableField envoy_config_core_v3_SelfConfigSource__fields[1] = { 80 {1, 0, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 81 }; 82 83 const upb_MiniTable envoy_config_core_v3_SelfConfigSource_msg_init = { 84 NULL, 85 &envoy_config_core_v3_SelfConfigSource__fields[0], 86 8, 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0, 87 UPB_FASTTABLE_INIT({ 88 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 89 {0x000000003f000008, &upb_psv4_1bt}, 90 }) 91 }; 92 93 static const upb_MiniTableSub envoy_config_core_v3_RateLimitSettings_submsgs[2] = { 94 {.submsg = &google_protobuf_UInt32Value_msg_init}, 95 {.submsg = &google_protobuf_DoubleValue_msg_init}, 96 }; 97 98 static const upb_MiniTableField envoy_config_core_v3_RateLimitSettings__fields[2] = { 99 {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 100 {2, UPB_SIZE(8, 16), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 101 }; 102 103 const upb_MiniTable envoy_config_core_v3_RateLimitSettings_msg_init = { 104 &envoy_config_core_v3_RateLimitSettings_submsgs[0], 105 &envoy_config_core_v3_RateLimitSettings__fields[0], 106 UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 107 UPB_FASTTABLE_INIT({ 108 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 109 {0x000800000100000a, &upb_psm_1bt_maxmaxb}, 110 {0x0010000002010012, &upb_psm_1bt_maxmaxb}, 111 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 112 }) 113 }; 114 115 static const upb_MiniTableSub envoy_config_core_v3_PathConfigSource_submsgs[1] = { 116 {.submsg = &envoy_config_core_v3_WatchedDirectory_msg_init}, 117 }; 118 119 static const upb_MiniTableField envoy_config_core_v3_PathConfigSource__fields[2] = { 120 {1, 8, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 121 {2, UPB_SIZE(4, 24), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 122 }; 123 124 const upb_MiniTable envoy_config_core_v3_PathConfigSource_msg_init = { 125 &envoy_config_core_v3_PathConfigSource_submsgs[0], 126 &envoy_config_core_v3_PathConfigSource__fields[0], 127 UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 128 UPB_FASTTABLE_INIT({ 129 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 130 {0x000800003f00000a, &upb_pss_1bt}, 131 {0x0018000001000012, &upb_psm_1bt_maxmaxb}, 132 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 133 }) 134 }; 135 136 static const upb_MiniTableSub envoy_config_core_v3_ConfigSource_submsgs[6] = { 137 {.submsg = &envoy_config_core_v3_ApiConfigSource_msg_init}, 138 {.submsg = &envoy_config_core_v3_AggregatedConfigSource_msg_init}, 139 {.submsg = &google_protobuf_Duration_msg_init}, 140 {.submsg = &envoy_config_core_v3_SelfConfigSource_msg_init}, 141 {.submsg = &xds_core_v3_Authority_msg_init}, 142 {.submsg = &envoy_config_core_v3_PathConfigSource_msg_init}, 143 }; 144 145 static const upb_MiniTableField envoy_config_core_v3_ConfigSource__fields[8] = { 146 {1, UPB_SIZE(20, 16), UPB_SIZE(-9, -5), kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 147 {2, UPB_SIZE(20, 16), UPB_SIZE(-9, -5), 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 148 {3, UPB_SIZE(20, 16), UPB_SIZE(-9, -5), 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 149 {4, UPB_SIZE(4, 32), 1, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 150 {5, UPB_SIZE(20, 16), UPB_SIZE(-9, -5), 3, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 151 {6, UPB_SIZE(12, 8), 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 152 {7, UPB_SIZE(16, 40), 0, 4, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 153 {8, UPB_SIZE(20, 16), UPB_SIZE(-9, -5), 5, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 154 }; 155 156 const upb_MiniTable envoy_config_core_v3_ConfigSource_msg_init = { 157 &envoy_config_core_v3_ConfigSource_submsgs[0], 158 &envoy_config_core_v3_ConfigSource__fields[0], 159 UPB_SIZE(32, 48), 8, kUpb_ExtMode_NonExtendable, 8, UPB_FASTTABLE_MASK(120), 0, 160 UPB_FASTTABLE_INIT({ 161 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 162 {0x001000040100000a, &upb_pos_1bt}, 163 {0x0010000402000012, &upb_pom_1bt_max128b}, 164 {0x001000040301001a, &upb_pom_1bt_max64b}, 165 {0x0020000001020022, &upb_psm_1bt_maxmaxb}, 166 {0x001000040503002a, &upb_pom_1bt_max64b}, 167 {0x000800003f000030, &upb_psv4_1bt}, 168 {0x002800003f04003a, &upb_prm_1bt_maxmaxb}, 169 {0x0010000408050042, &upb_pom_1bt_max64b}, 170 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 171 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 172 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 173 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 174 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 175 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 176 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 177 }) 178 }; 179 180 static const upb_MiniTableSub envoy_config_core_v3_ExtensionConfigSource_submsgs[2] = { 181 {.submsg = &envoy_config_core_v3_ConfigSource_msg_init}, 182 {.submsg = &google_protobuf_Any_msg_init}, 183 }; 184 185 static const upb_MiniTableField envoy_config_core_v3_ExtensionConfigSource__fields[4] = { 186 {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 187 {2, UPB_SIZE(8, 16), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 188 {3, UPB_SIZE(12, 1), 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, 189 {4, UPB_SIZE(16, 24), 0, kUpb_NoSub, 9, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 190 }; 191 192 const upb_MiniTable envoy_config_core_v3_ExtensionConfigSource_msg_init = { 193 &envoy_config_core_v3_ExtensionConfigSource_submsgs[0], 194 &envoy_config_core_v3_ExtensionConfigSource__fields[0], 195 UPB_SIZE(24, 32), 4, kUpb_ExtMode_NonExtendable, 4, UPB_FASTTABLE_MASK(56), 0, 196 UPB_FASTTABLE_INIT({ 197 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 198 {0x000800000100000a, &upb_psm_1bt_max64b}, 199 {0x0010000002010012, &upb_psm_1bt_maxmaxb}, 200 {0x000100003f000018, &upb_psb1_1bt}, 201 {0x001800003f000022, &upb_prs_1bt}, 202 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 203 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 204 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 205 }) 206 }; 207 208 const upb_MiniTable envoy_config_core_v3_RestSubscription_msg_init = { 209 NULL, 210 NULL, 211 0, 0, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(255), 0, 212 }; 213 214 static const upb_MiniTable *messages_layout[8] = { 215 &envoy_config_core_v3_ApiConfigSource_msg_init, 216 &envoy_config_core_v3_AggregatedConfigSource_msg_init, 217 &envoy_config_core_v3_SelfConfigSource_msg_init, 218 &envoy_config_core_v3_RateLimitSettings_msg_init, 219 &envoy_config_core_v3_PathConfigSource_msg_init, 220 &envoy_config_core_v3_ConfigSource_msg_init, 221 &envoy_config_core_v3_ExtensionConfigSource_msg_init, 222 &envoy_config_core_v3_RestSubscription_msg_init, 223 }; 224 225 const upb_MiniTableFile envoy_config_core_v3_config_source_proto_upb_file_layout = { 226 messages_layout, 227 NULL, 228 NULL, 229 8, 230 0, 231 0, 232 }; 233 234 #include "upb/port/undef.inc" 235 236