1 /* This file was generated by upbc (the upb compiler) from the input 2 * file: 3 * 4 * envoy/config/core/v3/base.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/msg_internal.h" 11 #include "envoy/config/core/v3/base.upb.h" 12 #include "envoy/config/core/v3/address.upb.h" 13 #include "envoy/config/core/v3/backoff.upb.h" 14 #include "envoy/config/core/v3/http_uri.upb.h" 15 #include "envoy/type/v3/percent.upb.h" 16 #include "envoy/type/v3/semantic_version.upb.h" 17 #include "google/protobuf/any.upb.h" 18 #include "google/protobuf/struct.upb.h" 19 #include "google/protobuf/wrappers.upb.h" 20 #include "xds/core/v3/context_params.upb.h" 21 #include "envoy/annotations/deprecation.upb.h" 22 #include "udpa/annotations/migrate.upb.h" 23 #include "udpa/annotations/status.upb.h" 24 #include "udpa/annotations/versioning.upb.h" 25 #include "validate/validate.upb.h" 26 27 #include "upb/port_def.inc" 28 29 static const upb_msglayout_field envoy_config_core_v3_Locality__fields[3] = { 30 {1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, 31 {2, UPB_SIZE(8, 16), 0, 0, 9, _UPB_MODE_SCALAR}, 32 {3, UPB_SIZE(16, 32), 0, 0, 9, _UPB_MODE_SCALAR}, 33 }; 34 35 const upb_msglayout envoy_config_core_v3_Locality_msginit = { 36 NULL, 37 &envoy_config_core_v3_Locality__fields[0], 38 UPB_SIZE(24, 48), 3, false, 3, 255, 39 }; 40 41 static const upb_msglayout *const envoy_config_core_v3_BuildVersion_submsgs[2] = { 42 &envoy_type_v3_SemanticVersion_msginit, 43 &google_protobuf_Struct_msginit, 44 }; 45 46 static const upb_msglayout_field envoy_config_core_v3_BuildVersion__fields[2] = { 47 {1, UPB_SIZE(4, 8), 1, 0, 11, _UPB_MODE_SCALAR}, 48 {2, UPB_SIZE(8, 16), 2, 1, 11, _UPB_MODE_SCALAR}, 49 }; 50 51 const upb_msglayout envoy_config_core_v3_BuildVersion_msginit = { 52 &envoy_config_core_v3_BuildVersion_submsgs[0], 53 &envoy_config_core_v3_BuildVersion__fields[0], 54 UPB_SIZE(16, 24), 2, false, 2, 255, 55 }; 56 57 static const upb_msglayout *const envoy_config_core_v3_Extension_submsgs[1] = { 58 &envoy_config_core_v3_BuildVersion_msginit, 59 }; 60 61 static const upb_msglayout_field envoy_config_core_v3_Extension__fields[5] = { 62 {1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR}, 63 {2, UPB_SIZE(12, 24), 0, 0, 9, _UPB_MODE_SCALAR}, 64 {3, UPB_SIZE(20, 40), 0, 0, 9, _UPB_MODE_SCALAR}, 65 {4, UPB_SIZE(28, 56), 1, 0, 11, _UPB_MODE_SCALAR}, 66 {5, UPB_SIZE(1, 1), 0, 0, 8, _UPB_MODE_SCALAR}, 67 }; 68 69 const upb_msglayout envoy_config_core_v3_Extension_msginit = { 70 &envoy_config_core_v3_Extension_submsgs[0], 71 &envoy_config_core_v3_Extension__fields[0], 72 UPB_SIZE(32, 64), 5, false, 5, 255, 73 }; 74 75 static const upb_msglayout *const envoy_config_core_v3_Node_submsgs[6] = { 76 &envoy_config_core_v3_Address_msginit, 77 &envoy_config_core_v3_BuildVersion_msginit, 78 &envoy_config_core_v3_Extension_msginit, 79 &envoy_config_core_v3_Locality_msginit, 80 &envoy_config_core_v3_Node_DynamicParametersEntry_msginit, 81 &google_protobuf_Struct_msginit, 82 }; 83 84 static const upb_msglayout_field envoy_config_core_v3_Node__fields[11] = { 85 {1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR}, 86 {2, UPB_SIZE(12, 24), 0, 0, 9, _UPB_MODE_SCALAR}, 87 {3, UPB_SIZE(28, 56), 1, 5, 11, _UPB_MODE_SCALAR}, 88 {4, UPB_SIZE(32, 64), 2, 3, 11, _UPB_MODE_SCALAR}, 89 {6, UPB_SIZE(20, 40), 0, 0, 9, _UPB_MODE_SCALAR}, 90 {7, UPB_SIZE(52, 104), UPB_SIZE(-61, -121), 0, 9, _UPB_MODE_SCALAR}, 91 {8, UPB_SIZE(52, 104), UPB_SIZE(-61, -121), 1, 11, _UPB_MODE_SCALAR}, 92 {9, UPB_SIZE(36, 72), 0, 2, 11, _UPB_MODE_ARRAY}, 93 {10, UPB_SIZE(40, 80), 0, 0, 9, _UPB_MODE_ARRAY}, 94 {11, UPB_SIZE(44, 88), 0, 0, 11, _UPB_MODE_ARRAY}, 95 {12, UPB_SIZE(48, 96), 0, 4, 11, _UPB_MODE_MAP}, 96 }; 97 98 const upb_msglayout envoy_config_core_v3_Node_msginit = { 99 &envoy_config_core_v3_Node_submsgs[0], 100 &envoy_config_core_v3_Node__fields[0], 101 UPB_SIZE(64, 128), 11, false, 4, 255, 102 }; 103 104 static const upb_msglayout *const envoy_config_core_v3_Node_DynamicParametersEntry_submsgs[1] = { 105 &xds_core_v3_ContextParams_msginit, 106 }; 107 108 static const upb_msglayout_field envoy_config_core_v3_Node_DynamicParametersEntry__fields[2] = { 109 {1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, 110 {2, UPB_SIZE(8, 16), 0, 0, 11, _UPB_MODE_SCALAR}, 111 }; 112 113 const upb_msglayout envoy_config_core_v3_Node_DynamicParametersEntry_msginit = { 114 &envoy_config_core_v3_Node_DynamicParametersEntry_submsgs[0], 115 &envoy_config_core_v3_Node_DynamicParametersEntry__fields[0], 116 UPB_SIZE(16, 32), 2, false, 2, 255, 117 }; 118 119 static const upb_msglayout *const envoy_config_core_v3_Metadata_submsgs[2] = { 120 &envoy_config_core_v3_Metadata_FilterMetadataEntry_msginit, 121 &envoy_config_core_v3_Metadata_TypedFilterMetadataEntry_msginit, 122 }; 123 124 static const upb_msglayout_field envoy_config_core_v3_Metadata__fields[2] = { 125 {1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_MAP}, 126 {2, UPB_SIZE(4, 8), 0, 1, 11, _UPB_MODE_MAP}, 127 }; 128 129 const upb_msglayout envoy_config_core_v3_Metadata_msginit = { 130 &envoy_config_core_v3_Metadata_submsgs[0], 131 &envoy_config_core_v3_Metadata__fields[0], 132 UPB_SIZE(8, 16), 2, false, 2, 255, 133 }; 134 135 static const upb_msglayout *const envoy_config_core_v3_Metadata_FilterMetadataEntry_submsgs[1] = { 136 &google_protobuf_Struct_msginit, 137 }; 138 139 static const upb_msglayout_field envoy_config_core_v3_Metadata_FilterMetadataEntry__fields[2] = { 140 {1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, 141 {2, UPB_SIZE(8, 16), 0, 0, 11, _UPB_MODE_SCALAR}, 142 }; 143 144 const upb_msglayout envoy_config_core_v3_Metadata_FilterMetadataEntry_msginit = { 145 &envoy_config_core_v3_Metadata_FilterMetadataEntry_submsgs[0], 146 &envoy_config_core_v3_Metadata_FilterMetadataEntry__fields[0], 147 UPB_SIZE(16, 32), 2, false, 2, 255, 148 }; 149 150 static const upb_msglayout *const envoy_config_core_v3_Metadata_TypedFilterMetadataEntry_submsgs[1] = { 151 &google_protobuf_Any_msginit, 152 }; 153 154 static const upb_msglayout_field envoy_config_core_v3_Metadata_TypedFilterMetadataEntry__fields[2] = { 155 {1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, 156 {2, UPB_SIZE(8, 16), 0, 0, 11, _UPB_MODE_SCALAR}, 157 }; 158 159 const upb_msglayout envoy_config_core_v3_Metadata_TypedFilterMetadataEntry_msginit = { 160 &envoy_config_core_v3_Metadata_TypedFilterMetadataEntry_submsgs[0], 161 &envoy_config_core_v3_Metadata_TypedFilterMetadataEntry__fields[0], 162 UPB_SIZE(16, 32), 2, false, 2, 255, 163 }; 164 165 static const upb_msglayout_field envoy_config_core_v3_RuntimeUInt32__fields[2] = { 166 {2, UPB_SIZE(0, 0), 0, 0, 13, _UPB_MODE_SCALAR}, 167 {3, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR}, 168 }; 169 170 const upb_msglayout envoy_config_core_v3_RuntimeUInt32_msginit = { 171 NULL, 172 &envoy_config_core_v3_RuntimeUInt32__fields[0], 173 UPB_SIZE(16, 32), 2, false, 0, 255, 174 }; 175 176 static const upb_msglayout *const envoy_config_core_v3_RuntimePercent_submsgs[1] = { 177 &envoy_type_v3_Percent_msginit, 178 }; 179 180 static const upb_msglayout_field envoy_config_core_v3_RuntimePercent__fields[2] = { 181 {1, UPB_SIZE(12, 24), 1, 0, 11, _UPB_MODE_SCALAR}, 182 {2, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR}, 183 }; 184 185 const upb_msglayout envoy_config_core_v3_RuntimePercent_msginit = { 186 &envoy_config_core_v3_RuntimePercent_submsgs[0], 187 &envoy_config_core_v3_RuntimePercent__fields[0], 188 UPB_SIZE(16, 32), 2, false, 2, 255, 189 }; 190 191 static const upb_msglayout_field envoy_config_core_v3_RuntimeDouble__fields[2] = { 192 {1, UPB_SIZE(0, 0), 0, 0, 1, _UPB_MODE_SCALAR}, 193 {2, UPB_SIZE(8, 8), 0, 0, 9, _UPB_MODE_SCALAR}, 194 }; 195 196 const upb_msglayout envoy_config_core_v3_RuntimeDouble_msginit = { 197 NULL, 198 &envoy_config_core_v3_RuntimeDouble__fields[0], 199 UPB_SIZE(16, 32), 2, false, 2, 255, 200 }; 201 202 static const upb_msglayout *const envoy_config_core_v3_RuntimeFeatureFlag_submsgs[1] = { 203 &google_protobuf_BoolValue_msginit, 204 }; 205 206 static const upb_msglayout_field envoy_config_core_v3_RuntimeFeatureFlag__fields[2] = { 207 {1, UPB_SIZE(12, 24), 1, 0, 11, _UPB_MODE_SCALAR}, 208 {2, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR}, 209 }; 210 211 const upb_msglayout envoy_config_core_v3_RuntimeFeatureFlag_msginit = { 212 &envoy_config_core_v3_RuntimeFeatureFlag_submsgs[0], 213 &envoy_config_core_v3_RuntimeFeatureFlag__fields[0], 214 UPB_SIZE(16, 32), 2, false, 2, 255, 215 }; 216 217 static const upb_msglayout_field envoy_config_core_v3_QueryParameter__fields[2] = { 218 {1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, 219 {2, UPB_SIZE(8, 16), 0, 0, 9, _UPB_MODE_SCALAR}, 220 }; 221 222 const upb_msglayout envoy_config_core_v3_QueryParameter_msginit = { 223 NULL, 224 &envoy_config_core_v3_QueryParameter__fields[0], 225 UPB_SIZE(16, 32), 2, false, 2, 255, 226 }; 227 228 static const upb_msglayout_field envoy_config_core_v3_HeaderValue__fields[2] = { 229 {1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, 230 {2, UPB_SIZE(8, 16), 0, 0, 9, _UPB_MODE_SCALAR}, 231 }; 232 233 const upb_msglayout envoy_config_core_v3_HeaderValue_msginit = { 234 NULL, 235 &envoy_config_core_v3_HeaderValue__fields[0], 236 UPB_SIZE(16, 32), 2, false, 2, 255, 237 }; 238 239 static const upb_msglayout *const envoy_config_core_v3_HeaderValueOption_submsgs[2] = { 240 &envoy_config_core_v3_HeaderValue_msginit, 241 &google_protobuf_BoolValue_msginit, 242 }; 243 244 static const upb_msglayout_field envoy_config_core_v3_HeaderValueOption__fields[3] = { 245 {1, UPB_SIZE(8, 8), 1, 0, 11, _UPB_MODE_SCALAR}, 246 {2, UPB_SIZE(12, 16), 2, 1, 11, _UPB_MODE_SCALAR}, 247 {3, UPB_SIZE(4, 4), 0, 0, 14, _UPB_MODE_SCALAR}, 248 }; 249 250 const upb_msglayout envoy_config_core_v3_HeaderValueOption_msginit = { 251 &envoy_config_core_v3_HeaderValueOption_submsgs[0], 252 &envoy_config_core_v3_HeaderValueOption__fields[0], 253 UPB_SIZE(16, 24), 3, false, 3, 255, 254 }; 255 256 static const upb_msglayout *const envoy_config_core_v3_HeaderMap_submsgs[1] = { 257 &envoy_config_core_v3_HeaderValue_msginit, 258 }; 259 260 static const upb_msglayout_field envoy_config_core_v3_HeaderMap__fields[1] = { 261 {1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY}, 262 }; 263 264 const upb_msglayout envoy_config_core_v3_HeaderMap_msginit = { 265 &envoy_config_core_v3_HeaderMap_submsgs[0], 266 &envoy_config_core_v3_HeaderMap__fields[0], 267 UPB_SIZE(8, 8), 1, false, 1, 255, 268 }; 269 270 static const upb_msglayout_field envoy_config_core_v3_WatchedDirectory__fields[1] = { 271 {1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, 272 }; 273 274 const upb_msglayout envoy_config_core_v3_WatchedDirectory_msginit = { 275 NULL, 276 &envoy_config_core_v3_WatchedDirectory__fields[0], 277 UPB_SIZE(8, 16), 1, false, 1, 255, 278 }; 279 280 static const upb_msglayout_field envoy_config_core_v3_DataSource__fields[3] = { 281 {1, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 9, _UPB_MODE_SCALAR}, 282 {2, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 12, _UPB_MODE_SCALAR}, 283 {3, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 9, _UPB_MODE_SCALAR}, 284 }; 285 286 const upb_msglayout envoy_config_core_v3_DataSource_msginit = { 287 NULL, 288 &envoy_config_core_v3_DataSource__fields[0], 289 UPB_SIZE(16, 32), 3, false, 3, 255, 290 }; 291 292 static const upb_msglayout *const envoy_config_core_v3_RetryPolicy_submsgs[2] = { 293 &envoy_config_core_v3_BackoffStrategy_msginit, 294 &google_protobuf_UInt32Value_msginit, 295 }; 296 297 static const upb_msglayout_field envoy_config_core_v3_RetryPolicy__fields[2] = { 298 {1, UPB_SIZE(4, 8), 1, 0, 11, _UPB_MODE_SCALAR}, 299 {2, UPB_SIZE(8, 16), 2, 1, 11, _UPB_MODE_SCALAR}, 300 }; 301 302 const upb_msglayout envoy_config_core_v3_RetryPolicy_msginit = { 303 &envoy_config_core_v3_RetryPolicy_submsgs[0], 304 &envoy_config_core_v3_RetryPolicy__fields[0], 305 UPB_SIZE(16, 24), 2, false, 2, 255, 306 }; 307 308 static const upb_msglayout *const envoy_config_core_v3_RemoteDataSource_submsgs[2] = { 309 &envoy_config_core_v3_HttpUri_msginit, 310 &envoy_config_core_v3_RetryPolicy_msginit, 311 }; 312 313 static const upb_msglayout_field envoy_config_core_v3_RemoteDataSource__fields[3] = { 314 {1, UPB_SIZE(12, 24), 1, 0, 11, _UPB_MODE_SCALAR}, 315 {2, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR}, 316 {3, UPB_SIZE(16, 32), 2, 1, 11, _UPB_MODE_SCALAR}, 317 }; 318 319 const upb_msglayout envoy_config_core_v3_RemoteDataSource_msginit = { 320 &envoy_config_core_v3_RemoteDataSource_submsgs[0], 321 &envoy_config_core_v3_RemoteDataSource__fields[0], 322 UPB_SIZE(24, 48), 3, false, 3, 255, 323 }; 324 325 static const upb_msglayout *const envoy_config_core_v3_AsyncDataSource_submsgs[2] = { 326 &envoy_config_core_v3_DataSource_msginit, 327 &envoy_config_core_v3_RemoteDataSource_msginit, 328 }; 329 330 static const upb_msglayout_field envoy_config_core_v3_AsyncDataSource__fields[2] = { 331 {1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, _UPB_MODE_SCALAR}, 332 {2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR}, 333 }; 334 335 const upb_msglayout envoy_config_core_v3_AsyncDataSource_msginit = { 336 &envoy_config_core_v3_AsyncDataSource_submsgs[0], 337 &envoy_config_core_v3_AsyncDataSource__fields[0], 338 UPB_SIZE(8, 16), 2, false, 2, 255, 339 }; 340 341 static const upb_msglayout *const envoy_config_core_v3_TransportSocket_submsgs[1] = { 342 &google_protobuf_Any_msginit, 343 }; 344 345 static const upb_msglayout_field envoy_config_core_v3_TransportSocket__fields[2] = { 346 {1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, 347 {3, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 0, 11, _UPB_MODE_SCALAR}, 348 }; 349 350 const upb_msglayout envoy_config_core_v3_TransportSocket_msginit = { 351 &envoy_config_core_v3_TransportSocket_submsgs[0], 352 &envoy_config_core_v3_TransportSocket__fields[0], 353 UPB_SIZE(16, 32), 2, false, 1, 255, 354 }; 355 356 static const upb_msglayout *const envoy_config_core_v3_RuntimeFractionalPercent_submsgs[1] = { 357 &envoy_type_v3_FractionalPercent_msginit, 358 }; 359 360 static const upb_msglayout_field envoy_config_core_v3_RuntimeFractionalPercent__fields[2] = { 361 {1, UPB_SIZE(12, 24), 1, 0, 11, _UPB_MODE_SCALAR}, 362 {2, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR}, 363 }; 364 365 const upb_msglayout envoy_config_core_v3_RuntimeFractionalPercent_msginit = { 366 &envoy_config_core_v3_RuntimeFractionalPercent_submsgs[0], 367 &envoy_config_core_v3_RuntimeFractionalPercent__fields[0], 368 UPB_SIZE(16, 32), 2, false, 2, 255, 369 }; 370 371 static const upb_msglayout_field envoy_config_core_v3_ControlPlane__fields[1] = { 372 {1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, 373 }; 374 375 const upb_msglayout envoy_config_core_v3_ControlPlane_msginit = { 376 NULL, 377 &envoy_config_core_v3_ControlPlane__fields[0], 378 UPB_SIZE(8, 16), 1, false, 1, 255, 379 }; 380 381 #include "upb/port_undef.inc" 382 383