1 /* This file was generated by upbc (the upb compiler) from the input 2 * file: 3 * 4 * envoy/config/core/v3/address.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/address.upb.h" 14 #include "envoy/config/core/v3/socket_option.upb.h" 15 #include "google/protobuf/wrappers.upb.h" 16 #include "envoy/annotations/deprecation.upb.h" 17 #include "udpa/annotations/status.upb.h" 18 #include "udpa/annotations/versioning.upb.h" 19 #include "validate/validate.upb.h" 20 21 // Must be last. 22 #include "upb/port/def.inc" 23 24 static const upb_MiniTableField envoy_config_core_v3_Pipe__fields[2] = { 25 {1, UPB_SIZE(4, 8), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 26 {2, 0, 0, kUpb_NoSub, 13, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 27 }; 28 29 const upb_MiniTable envoy_config_core_v3_Pipe_msg_init = { 30 NULL, 31 &envoy_config_core_v3_Pipe__fields[0], 32 UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 33 UPB_FASTTABLE_INIT({ 34 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 35 {0x000800003f00000a, &upb_pss_1bt}, 36 {0x000000003f000010, &upb_psv4_1bt}, 37 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 38 }) 39 }; 40 41 static const upb_MiniTableField envoy_config_core_v3_EnvoyInternalAddress__fields[2] = { 42 {1, UPB_SIZE(4, 8), -1, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 43 {2, UPB_SIZE(12, 24), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 44 }; 45 46 const upb_MiniTable envoy_config_core_v3_EnvoyInternalAddress_msg_init = { 47 NULL, 48 &envoy_config_core_v3_EnvoyInternalAddress__fields[0], 49 UPB_SIZE(24, 40), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 50 UPB_FASTTABLE_INIT({ 51 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 52 {0x000800000100000a, &upb_pos_1bt}, 53 {0x001800003f000012, &upb_pss_1bt}, 54 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 55 }) 56 }; 57 58 static const upb_MiniTableField envoy_config_core_v3_SocketAddress__fields[6] = { 59 {1, 0, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 60 {2, UPB_SIZE(20, 32), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 61 {3, UPB_SIZE(12, 16), -5, kUpb_NoSub, 13, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 62 {4, UPB_SIZE(12, 16), -5, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 63 {5, UPB_SIZE(28, 48), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 64 {6, 8, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, 65 }; 66 67 const upb_MiniTable envoy_config_core_v3_SocketAddress_msg_init = { 68 NULL, 69 &envoy_config_core_v3_SocketAddress__fields[0], 70 UPB_SIZE(40, 64), 6, kUpb_ExtMode_NonExtendable, 6, UPB_FASTTABLE_MASK(56), 0, 71 UPB_FASTTABLE_INIT({ 72 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 73 {0x000000003f000008, &upb_psv4_1bt}, 74 {0x002000003f000012, &upb_pss_1bt}, 75 {0x0010000403000018, &upb_pov4_1bt}, 76 {0x0010000404000022, &upb_pos_1bt}, 77 {0x003000003f00002a, &upb_pss_1bt}, 78 {0x000800003f000030, &upb_psb1_1bt}, 79 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 80 }) 81 }; 82 83 static const upb_MiniTableSub envoy_config_core_v3_TcpKeepalive_submsgs[3] = { 84 {.submsg = &google_protobuf_UInt32Value_msg_init}, 85 {.submsg = &google_protobuf_UInt32Value_msg_init}, 86 {.submsg = &google_protobuf_UInt32Value_msg_init}, 87 }; 88 89 static const upb_MiniTableField envoy_config_core_v3_TcpKeepalive__fields[3] = { 90 {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 91 {2, UPB_SIZE(8, 16), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 92 {3, UPB_SIZE(12, 24), 3, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 93 }; 94 95 const upb_MiniTable envoy_config_core_v3_TcpKeepalive_msg_init = { 96 &envoy_config_core_v3_TcpKeepalive_submsgs[0], 97 &envoy_config_core_v3_TcpKeepalive__fields[0], 98 UPB_SIZE(16, 32), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0, 99 UPB_FASTTABLE_INIT({ 100 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 101 {0x000800000100000a, &upb_psm_1bt_maxmaxb}, 102 {0x0010000002010012, &upb_psm_1bt_maxmaxb}, 103 {0x001800000302001a, &upb_psm_1bt_maxmaxb}, 104 }) 105 }; 106 107 static const upb_MiniTableSub envoy_config_core_v3_ExtraSourceAddress_submsgs[2] = { 108 {.submsg = &envoy_config_core_v3_SocketAddress_msg_init}, 109 {.submsg = &envoy_config_core_v3_SocketOptionsOverride_msg_init}, 110 }; 111 112 static const upb_MiniTableField envoy_config_core_v3_ExtraSourceAddress__fields[2] = { 113 {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 114 {2, UPB_SIZE(8, 16), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 115 }; 116 117 const upb_MiniTable envoy_config_core_v3_ExtraSourceAddress_msg_init = { 118 &envoy_config_core_v3_ExtraSourceAddress_submsgs[0], 119 &envoy_config_core_v3_ExtraSourceAddress__fields[0], 120 UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 121 UPB_FASTTABLE_INIT({ 122 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 123 {0x000800000100000a, &upb_psm_1bt_max128b}, 124 {0x0010000002010012, &upb_psm_1bt_maxmaxb}, 125 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 126 }) 127 }; 128 129 static const upb_MiniTableSub envoy_config_core_v3_BindConfig_submsgs[5] = { 130 {.submsg = &envoy_config_core_v3_SocketAddress_msg_init}, 131 {.submsg = &google_protobuf_BoolValue_msg_init}, 132 {.submsg = &envoy_config_core_v3_SocketOption_msg_init}, 133 {.submsg = &envoy_config_core_v3_SocketAddress_msg_init}, 134 {.submsg = &envoy_config_core_v3_ExtraSourceAddress_msg_init}, 135 }; 136 137 static const upb_MiniTableField envoy_config_core_v3_BindConfig__fields[5] = { 138 {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 139 {2, UPB_SIZE(8, 16), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 140 {3, UPB_SIZE(12, 24), 0, 2, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 141 {4, UPB_SIZE(16, 32), 0, 3, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 142 {5, UPB_SIZE(20, 40), 0, 4, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 143 }; 144 145 const upb_MiniTable envoy_config_core_v3_BindConfig_msg_init = { 146 &envoy_config_core_v3_BindConfig_submsgs[0], 147 &envoy_config_core_v3_BindConfig__fields[0], 148 UPB_SIZE(24, 48), 5, kUpb_ExtMode_NonExtendable, 5, UPB_FASTTABLE_MASK(56), 0, 149 UPB_FASTTABLE_INIT({ 150 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 151 {0x000800000100000a, &upb_psm_1bt_max128b}, 152 {0x0010000002010012, &upb_psm_1bt_maxmaxb}, 153 {0x001800003f02001a, &upb_prm_1bt_maxmaxb}, 154 {0x002000003f030022, &upb_prm_1bt_max128b}, 155 {0x002800003f04002a, &upb_prm_1bt_max64b}, 156 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 157 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 158 }) 159 }; 160 161 static const upb_MiniTableSub envoy_config_core_v3_Address_submsgs[3] = { 162 {.submsg = &envoy_config_core_v3_SocketAddress_msg_init}, 163 {.submsg = &envoy_config_core_v3_Pipe_msg_init}, 164 {.submsg = &envoy_config_core_v3_EnvoyInternalAddress_msg_init}, 165 }; 166 167 static const upb_MiniTableField envoy_config_core_v3_Address__fields[3] = { 168 {1, UPB_SIZE(4, 8), -1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 169 {2, UPB_SIZE(4, 8), -1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 170 {3, UPB_SIZE(4, 8), -1, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 171 }; 172 173 const upb_MiniTable envoy_config_core_v3_Address_msg_init = { 174 &envoy_config_core_v3_Address_submsgs[0], 175 &envoy_config_core_v3_Address__fields[0], 176 UPB_SIZE(8, 16), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0, 177 UPB_FASTTABLE_INIT({ 178 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 179 {0x000800000100000a, &upb_pom_1bt_max128b}, 180 {0x0008000002010012, &upb_pom_1bt_max64b}, 181 {0x000800000302001a, &upb_pom_1bt_max64b}, 182 }) 183 }; 184 185 static const upb_MiniTableSub envoy_config_core_v3_CidrRange_submsgs[1] = { 186 {.submsg = &google_protobuf_UInt32Value_msg_init}, 187 }; 188 189 static const upb_MiniTableField envoy_config_core_v3_CidrRange__fields[2] = { 190 {1, 8, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 191 {2, UPB_SIZE(4, 24), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 192 }; 193 194 const upb_MiniTable envoy_config_core_v3_CidrRange_msg_init = { 195 &envoy_config_core_v3_CidrRange_submsgs[0], 196 &envoy_config_core_v3_CidrRange__fields[0], 197 UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 198 UPB_FASTTABLE_INIT({ 199 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 200 {0x000800003f00000a, &upb_pss_1bt}, 201 {0x0018000001000012, &upb_psm_1bt_maxmaxb}, 202 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 203 }) 204 }; 205 206 static const upb_MiniTable *messages_layout[8] = { 207 &envoy_config_core_v3_Pipe_msg_init, 208 &envoy_config_core_v3_EnvoyInternalAddress_msg_init, 209 &envoy_config_core_v3_SocketAddress_msg_init, 210 &envoy_config_core_v3_TcpKeepalive_msg_init, 211 &envoy_config_core_v3_ExtraSourceAddress_msg_init, 212 &envoy_config_core_v3_BindConfig_msg_init, 213 &envoy_config_core_v3_Address_msg_init, 214 &envoy_config_core_v3_CidrRange_msg_init, 215 }; 216 217 const upb_MiniTableFile envoy_config_core_v3_address_proto_upb_file_layout = { 218 messages_layout, 219 NULL, 220 NULL, 221 8, 222 0, 223 0, 224 }; 225 226 #include "upb/port/undef.inc" 227 228