1 /* This file was generated by upbc (the upb compiler) from the input 2 * file: 3 * 4 * src/proto/grpc/gcp/altscontext.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 "src/proto/grpc/gcp/altscontext.upb.h" 14 #include "src/proto/grpc/gcp/transport_security_common.upb.h" 15 16 // Must be last. 17 #include "upb/port/def.inc" 18 19 static const upb_MiniTableSub grpc_gcp_AltsContext_submsgs[2] = { 20 {.submsg = &grpc_gcp_RpcProtocolVersions_msg_init}, 21 {.submsg = &grpc_gcp_AltsContext_PeerAttributesEntry_msg_init}, 22 }; 23 24 static const upb_MiniTableField grpc_gcp_AltsContext__fields[7] = { 25 {1, UPB_SIZE(16, 8), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 26 {2, 24, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 27 {3, 4, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, 28 {4, UPB_SIZE(32, 40), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 29 {5, UPB_SIZE(40, 56), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 30 {6, UPB_SIZE(8, 72), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 31 {7, UPB_SIZE(12, 80), 0, 1, 11, kUpb_FieldMode_Map | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, 32 }; 33 34 const upb_MiniTable grpc_gcp_AltsContext_msg_init = { 35 &grpc_gcp_AltsContext_submsgs[0], 36 &grpc_gcp_AltsContext__fields[0], 37 UPB_SIZE(48, 88), 7, kUpb_ExtMode_NonExtendable, 7, UPB_FASTTABLE_MASK(56), 0, 38 UPB_FASTTABLE_INIT({ 39 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 40 {0x000800003f00000a, &upb_pss_1bt}, 41 {0x001800003f000012, &upb_pss_1bt}, 42 {0x000400003f000018, &upb_psv4_1bt}, 43 {0x002800003f000022, &upb_pss_1bt}, 44 {0x003800003f00002a, &upb_pss_1bt}, 45 {0x0048000001000032, &upb_psm_1bt_maxmaxb}, 46 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 47 }) 48 }; 49 50 static const upb_MiniTableField grpc_gcp_AltsContext_PeerAttributesEntry__fields[2] = { 51 {1, 8, 0, kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 52 {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, 53 }; 54 55 const upb_MiniTable grpc_gcp_AltsContext_PeerAttributesEntry_msg_init = { 56 NULL, 57 &grpc_gcp_AltsContext_PeerAttributesEntry__fields[0], 58 UPB_SIZE(24, 40), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, 59 UPB_FASTTABLE_INIT({ 60 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 61 {0x000800003f00000a, &upb_pss_1bt}, 62 {0x001800003f000012, &upb_pss_1bt}, 63 {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, 64 }) 65 }; 66 67 static const upb_MiniTable *messages_layout[2] = { 68 &grpc_gcp_AltsContext_msg_init, 69 &grpc_gcp_AltsContext_PeerAttributesEntry_msg_init, 70 }; 71 72 const upb_MiniTableFile src_proto_grpc_gcp_altscontext_proto_upb_file_layout = { 73 messages_layout, 74 NULL, 75 NULL, 76 2, 77 0, 78 0, 79 }; 80 81 #include "upb/port/undef.inc" 82 83