1 /* This file was generated by upbc (the upb compiler) from the input 2 * file: 3 * 4 * xds/data/orca/v3/orca_load_report.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 "xds/data/orca/v3/orca_load_report.upb.h" 14 #include "validate/validate.upb.h" 15 16 // Must be last. 17 #include "upb/port/def.inc" 18 19 static const upb_MiniTableSub xds_data_orca_v3_OrcaLoadReport_submsgs[3] = { 20 {.submsg = &xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_msg_init}, 21 {.submsg = &xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_msg_init}, 22 {.submsg = &xds_data_orca_v3_OrcaLoadReport_NamedMetricsEntry_msg_init}, 23 }; 24 25 static const upb_MiniTableField xds_data_orca_v3_OrcaLoadReport__fields[9] = { 26 {1, UPB_SIZE(16, 0), 0, kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 27 {2, UPB_SIZE(24, 8), 0, kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 28 {3, UPB_SIZE(32, 16), 0, kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 29 {4, UPB_SIZE(0, 24), 0, 0, 11, kUpb_FieldMode_Map | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 30 {5, UPB_SIZE(4, 32), 0, 1, 11, kUpb_FieldMode_Map | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 31 {6, 40, 0, kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 32 {7, 48, 0, kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 33 {8, UPB_SIZE(8, 56), 0, 2, 11, kUpb_FieldMode_Map | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 34 {9, UPB_SIZE(56, 64), 0, kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 35 }; 36 37 const upb_MiniTable xds_data_orca_v3_OrcaLoadReport_msg_init = { 38 &xds_data_orca_v3_OrcaLoadReport_submsgs[0], 39 &xds_data_orca_v3_OrcaLoadReport__fields[0], 40 UPB_SIZE(64, 72), 9, kUpb_ExtMode_NonExtendable, 9, UPB_FASTTABLE_MASK(120), 0, 41 UPB_FASTTABLE_INIT({ 42 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 43 {0x000000003f000009, &upb_psf8_1bt}, 44 {0x000800003f000011, &upb_psf8_1bt}, 45 {0x001000003f000018, &upb_psv8_1bt}, 46 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 47 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 48 {0x002800003f000031, &upb_psf8_1bt}, 49 {0x003000003f000039, &upb_psf8_1bt}, 50 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 51 {0x004000003f000049, &upb_psf8_1bt}, 52 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 53 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 54 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 55 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 56 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 57 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 58 }) 59 }; 60 61 static const upb_MiniTableField xds_data_orca_v3_OrcaLoadReport_RequestCostEntry__fields[2] = { 62 {1, 8, 0, kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 63 {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 64 }; 65 66 const upb_MiniTable xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_msg_init = { 67 NULL, 68 &xds_data_orca_v3_OrcaLoadReport_RequestCostEntry__fields[0], 69 UPB_SIZE(24, 40), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 70 UPB_FASTTABLE_INIT({ 71 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 72 {0x000800003f00000a, &upb_pss_1bt}, 73 {0x001800003f000011, &upb_psf8_1bt}, 74 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 75 }) 76 }; 77 78 static const upb_MiniTableField xds_data_orca_v3_OrcaLoadReport_UtilizationEntry__fields[2] = { 79 {1, 8, 0, kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 80 {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 81 }; 82 83 const upb_MiniTable xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_msg_init = { 84 NULL, 85 &xds_data_orca_v3_OrcaLoadReport_UtilizationEntry__fields[0], 86 UPB_SIZE(24, 40), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 87 UPB_FASTTABLE_INIT({ 88 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 89 {0x000800003f00000a, &upb_pss_1bt}, 90 {0x001800003f000011, &upb_psf8_1bt}, 91 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 92 }) 93 }; 94 95 static const upb_MiniTableField xds_data_orca_v3_OrcaLoadReport_NamedMetricsEntry__fields[2] = { 96 {1, 8, 0, kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 97 {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, 98 }; 99 100 const upb_MiniTable xds_data_orca_v3_OrcaLoadReport_NamedMetricsEntry_msg_init = { 101 NULL, 102 &xds_data_orca_v3_OrcaLoadReport_NamedMetricsEntry__fields[0], 103 UPB_SIZE(24, 40), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 104 UPB_FASTTABLE_INIT({ 105 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 106 {0x000800003f00000a, &upb_pss_1bt}, 107 {0x001800003f000011, &upb_psf8_1bt}, 108 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 109 }) 110 }; 111 112 static const upb_MiniTable *messages_layout[4] = { 113 &xds_data_orca_v3_OrcaLoadReport_msg_init, 114 &xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_msg_init, 115 &xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_msg_init, 116 &xds_data_orca_v3_OrcaLoadReport_NamedMetricsEntry_msg_init, 117 }; 118 119 const upb_MiniTableFile xds_data_orca_v3_orca_load_report_proto_upb_file_layout = { 120 messages_layout, 121 NULL, 122 NULL, 123 4, 124 0, 125 0, 126 }; 127 128 #include "upb/port/undef.inc" 129 130