1 /* This file was generated by upbc (the upb compiler) from the input 2 * file: 3 * 4 * envoy/type/v3/hash_policy.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/type/v3/hash_policy.upb.h" 14 #include "udpa/annotations/status.upb.h" 15 #include "udpa/annotations/versioning.upb.h" 16 #include "validate/validate.upb.h" 17 18 // Must be last. 19 #include "upb/port/def.inc" 20 21 static const upb_MiniTableSub envoy_type_v3_HashPolicy_submsgs[2] = { 22 {.submsg = &envoy_type_v3_HashPolicy_SourceIp_msg_init}, 23 {.submsg = &envoy_type_v3_HashPolicy_FilterState_msg_init}, 24 }; 25 26 static const upb_MiniTableField envoy_type_v3_HashPolicy__fields[2] = { 27 {1, UPB_SIZE(4, 8), -1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 28 {2, UPB_SIZE(4, 8), -1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 29 }; 30 31 const upb_MiniTable envoy_type_v3_HashPolicy_msg_init = { 32 &envoy_type_v3_HashPolicy_submsgs[0], 33 &envoy_type_v3_HashPolicy__fields[0], 34 UPB_SIZE(8, 16), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 35 UPB_FASTTABLE_INIT({ 36 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 37 {0x000800000100000a, &upb_pom_1bt_max64b}, 38 {0x0008000002010012, &upb_pom_1bt_max64b}, 39 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 40 }) 41 }; 42 43 const upb_MiniTable envoy_type_v3_HashPolicy_SourceIp_msg_init = { 44 NULL, 45 NULL, 46 0, 0, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(255), 0, 47 }; 48 49 static const upb_MiniTableField envoy_type_v3_HashPolicy_FilterState__fields[1] = { 50 {1, 0, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 51 }; 52 53 const upb_MiniTable envoy_type_v3_HashPolicy_FilterState_msg_init = { 54 NULL, 55 &envoy_type_v3_HashPolicy_FilterState__fields[0], 56 UPB_SIZE(8, 16), 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0, 57 UPB_FASTTABLE_INIT({ 58 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 59 {0x000000003f00000a, &upb_pss_1bt}, 60 }) 61 }; 62 63 static const upb_MiniTable *messages_layout[3] = { 64 &envoy_type_v3_HashPolicy_msg_init, 65 &envoy_type_v3_HashPolicy_SourceIp_msg_init, 66 &envoy_type_v3_HashPolicy_FilterState_msg_init, 67 }; 68 69 const upb_MiniTableFile envoy_type_v3_hash_policy_proto_upb_file_layout = { 70 messages_layout, 71 NULL, 72 NULL, 73 3, 74 0, 75 0, 76 }; 77 78 #include "upb/port/undef.inc" 79 80