1 /* This file was generated by upbc (the upb compiler) from the input 2 * file: 3 * 4 * envoy/extensions/load_balancing_policies/common/v3/common.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/extensions/load_balancing_policies/common/v3/common.upb.h" 14 #include "envoy/config/core/v3/base.upb.h" 15 #include "envoy/type/v3/percent.upb.h" 16 #include "google/protobuf/duration.upb.h" 17 #include "google/protobuf/wrappers.upb.h" 18 #include "udpa/annotations/status.upb.h" 19 #include "validate/validate.upb.h" 20 21 // Must be last. 22 #include "upb/port/def.inc" 23 24 static const upb_MiniTableSub envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_submsgs[2] = { 25 {.submsg = &envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_msg_init}, 26 {.submsg = &envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_LocalityWeightedLbConfig_msg_init}, 27 }; 28 29 static const upb_MiniTableField envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig__fields[2] = { 30 {1, UPB_SIZE(4, 8), -1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 31 {2, UPB_SIZE(4, 8), -1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 32 }; 33 34 const upb_MiniTable envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_msg_init = { 35 &envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_submsgs[0], 36 &envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig__fields[0], 37 UPB_SIZE(8, 16), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 38 UPB_FASTTABLE_INIT({ 39 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 40 {0x000800000100000a, &upb_pom_1bt_max64b}, 41 {0x0008000002010012, &upb_pom_1bt_max64b}, 42 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 43 }) 44 }; 45 46 static const upb_MiniTableSub envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_submsgs[2] = { 47 {.submsg = &envoy_type_v3_Percent_msg_init}, 48 {.submsg = &google_protobuf_UInt64Value_msg_init}, 49 }; 50 51 static const upb_MiniTableField envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig__fields[3] = { 52 {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 53 {2, UPB_SIZE(8, 16), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 54 {3, UPB_SIZE(12, 1), 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, 55 }; 56 57 const upb_MiniTable envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_msg_init = { 58 &envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_submsgs[0], 59 &envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig__fields[0], 60 UPB_SIZE(16, 24), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0, 61 UPB_FASTTABLE_INIT({ 62 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 63 {0x000800000100000a, &upb_psm_1bt_maxmaxb}, 64 {0x0010000002010012, &upb_psm_1bt_maxmaxb}, 65 {0x000100003f000018, &upb_psb1_1bt}, 66 }) 67 }; 68 69 const upb_MiniTable envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_LocalityWeightedLbConfig_msg_init = { 70 NULL, 71 NULL, 72 0, 0, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(255), 0, 73 }; 74 75 static const upb_MiniTableSub envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig_submsgs[3] = { 76 {.submsg = &google_protobuf_Duration_msg_init}, 77 {.submsg = &envoy_config_core_v3_RuntimeDouble_msg_init}, 78 {.submsg = &envoy_type_v3_Percent_msg_init}, 79 }; 80 81 static const upb_MiniTableField envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig__fields[3] = { 82 {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 83 {2, UPB_SIZE(8, 16), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 84 {3, UPB_SIZE(12, 24), 3, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 85 }; 86 87 const upb_MiniTable envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig_msg_init = { 88 &envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig_submsgs[0], 89 &envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig__fields[0], 90 UPB_SIZE(16, 32), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0, 91 UPB_FASTTABLE_INIT({ 92 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 93 {0x000800000100000a, &upb_psm_1bt_maxmaxb}, 94 {0x0010000002010012, &upb_psm_1bt_maxmaxb}, 95 {0x001800000302001a, &upb_psm_1bt_maxmaxb}, 96 }) 97 }; 98 99 static const upb_MiniTableSub envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_submsgs[1] = { 100 {.submsg = &google_protobuf_UInt32Value_msg_init}, 101 }; 102 103 static const upb_MiniTableField envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig__fields[2] = { 104 {1, 1, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, 105 {2, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 106 }; 107 108 const upb_MiniTable envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_msg_init = { 109 &envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_submsgs[0], 110 &envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig__fields[0], 111 UPB_SIZE(8, 16), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 112 UPB_FASTTABLE_INIT({ 113 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 114 {0x000100003f000008, &upb_psb1_1bt}, 115 {0x0008000001000012, &upb_psm_1bt_maxmaxb}, 116 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 117 }) 118 }; 119 120 static const upb_MiniTable *messages_layout[5] = { 121 &envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_msg_init, 122 &envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_msg_init, 123 &envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_LocalityWeightedLbConfig_msg_init, 124 &envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig_msg_init, 125 &envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_msg_init, 126 }; 127 128 const upb_MiniTableFile envoy_extensions_load_balancing_policies_common_v3_common_proto_upb_file_layout = { 129 messages_layout, 130 NULL, 131 NULL, 132 5, 133 0, 134 0, 135 }; 136 137 #include "upb/port/undef.inc" 138 139