Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:10:49

0001 /* This file was generated by upb_generator from the input file:
0002  *
0003  *     google/protobuf/descriptor.proto
0004  *
0005  * Do not edit -- your changes will be discarded when the file is
0006  * regenerated.
0007  * NO CHECKED-IN PROTOBUF GENCODE */
0008 
0009 #ifndef GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
0010 #define GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
0011 
0012 #include "upb/generated_code_support.h"
0013 
0014 #include "google/protobuf/descriptor.upb_minitable.h"
0015 
0016 // Must be last.
0017 #include "upb/port/def.inc"
0018 
0019 #ifdef __cplusplus
0020 extern "C" {
0021 #endif
0022 
0023 typedef struct google_protobuf_FileDescriptorSet { upb_Message UPB_PRIVATE(base); } google_protobuf_FileDescriptorSet;
0024 typedef struct google_protobuf_FileDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_FileDescriptorProto;
0025 typedef struct google_protobuf_DescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_DescriptorProto;
0026 typedef struct google_protobuf_DescriptorProto_ExtensionRange { upb_Message UPB_PRIVATE(base); } google_protobuf_DescriptorProto_ExtensionRange;
0027 typedef struct google_protobuf_DescriptorProto_ReservedRange { upb_Message UPB_PRIVATE(base); } google_protobuf_DescriptorProto_ReservedRange;
0028 typedef struct google_protobuf_ExtensionRangeOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_ExtensionRangeOptions;
0029 typedef struct google_protobuf_ExtensionRangeOptions_Declaration { upb_Message UPB_PRIVATE(base); } google_protobuf_ExtensionRangeOptions_Declaration;
0030 typedef struct google_protobuf_FieldDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldDescriptorProto;
0031 typedef struct google_protobuf_OneofDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_OneofDescriptorProto;
0032 typedef struct google_protobuf_EnumDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumDescriptorProto;
0033 typedef struct google_protobuf_EnumDescriptorProto_EnumReservedRange { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumDescriptorProto_EnumReservedRange;
0034 typedef struct google_protobuf_EnumValueDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumValueDescriptorProto;
0035 typedef struct google_protobuf_ServiceDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_ServiceDescriptorProto;
0036 typedef struct google_protobuf_MethodDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_MethodDescriptorProto;
0037 typedef struct google_protobuf_FileOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_FileOptions;
0038 typedef struct google_protobuf_MessageOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_MessageOptions;
0039 typedef struct google_protobuf_FieldOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldOptions;
0040 typedef struct google_protobuf_FieldOptions_EditionDefault { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldOptions_EditionDefault;
0041 typedef struct google_protobuf_FieldOptions_FeatureSupport { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldOptions_FeatureSupport;
0042 typedef struct google_protobuf_OneofOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_OneofOptions;
0043 typedef struct google_protobuf_EnumOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumOptions;
0044 typedef struct google_protobuf_EnumValueOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumValueOptions;
0045 typedef struct google_protobuf_ServiceOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_ServiceOptions;
0046 typedef struct google_protobuf_MethodOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_MethodOptions;
0047 typedef struct google_protobuf_UninterpretedOption { upb_Message UPB_PRIVATE(base); } google_protobuf_UninterpretedOption;
0048 typedef struct google_protobuf_UninterpretedOption_NamePart { upb_Message UPB_PRIVATE(base); } google_protobuf_UninterpretedOption_NamePart;
0049 typedef struct google_protobuf_FeatureSet { upb_Message UPB_PRIVATE(base); } google_protobuf_FeatureSet;
0050 typedef struct google_protobuf_FeatureSetDefaults { upb_Message UPB_PRIVATE(base); } google_protobuf_FeatureSetDefaults;
0051 typedef struct google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault { upb_Message UPB_PRIVATE(base); } google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault;
0052 typedef struct google_protobuf_SourceCodeInfo { upb_Message UPB_PRIVATE(base); } google_protobuf_SourceCodeInfo;
0053 typedef struct google_protobuf_SourceCodeInfo_Location { upb_Message UPB_PRIVATE(base); } google_protobuf_SourceCodeInfo_Location;
0054 typedef struct google_protobuf_GeneratedCodeInfo { upb_Message UPB_PRIVATE(base); } google_protobuf_GeneratedCodeInfo;
0055 typedef struct google_protobuf_GeneratedCodeInfo_Annotation { upb_Message UPB_PRIVATE(base); } google_protobuf_GeneratedCodeInfo_Annotation;
0056 
0057 typedef enum {
0058   google_protobuf_EDITION_UNKNOWN = 0,
0059   google_protobuf_EDITION_1_TEST_ONLY = 1,
0060   google_protobuf_EDITION_2_TEST_ONLY = 2,
0061   google_protobuf_EDITION_LEGACY = 900,
0062   google_protobuf_EDITION_PROTO2 = 998,
0063   google_protobuf_EDITION_PROTO3 = 999,
0064   google_protobuf_EDITION_2023 = 1000,
0065   google_protobuf_EDITION_2024 = 1001,
0066   google_protobuf_EDITION_99997_TEST_ONLY = 99997,
0067   google_protobuf_EDITION_99998_TEST_ONLY = 99998,
0068   google_protobuf_EDITION_99999_TEST_ONLY = 99999,
0069   google_protobuf_EDITION_MAX = 2147483647
0070 } google_protobuf_Edition;
0071 
0072 typedef enum {
0073   google_protobuf_ExtensionRangeOptions_DECLARATION = 0,
0074   google_protobuf_ExtensionRangeOptions_UNVERIFIED = 1
0075 } google_protobuf_ExtensionRangeOptions_VerificationState;
0076 
0077 typedef enum {
0078   google_protobuf_FeatureSet_ENUM_TYPE_UNKNOWN = 0,
0079   google_protobuf_FeatureSet_OPEN = 1,
0080   google_protobuf_FeatureSet_CLOSED = 2
0081 } google_protobuf_FeatureSet_EnumType;
0082 
0083 typedef enum {
0084   google_protobuf_FeatureSet_FIELD_PRESENCE_UNKNOWN = 0,
0085   google_protobuf_FeatureSet_EXPLICIT = 1,
0086   google_protobuf_FeatureSet_IMPLICIT = 2,
0087   google_protobuf_FeatureSet_LEGACY_REQUIRED = 3
0088 } google_protobuf_FeatureSet_FieldPresence;
0089 
0090 typedef enum {
0091   google_protobuf_FeatureSet_JSON_FORMAT_UNKNOWN = 0,
0092   google_protobuf_FeatureSet_ALLOW = 1,
0093   google_protobuf_FeatureSet_LEGACY_BEST_EFFORT = 2
0094 } google_protobuf_FeatureSet_JsonFormat;
0095 
0096 typedef enum {
0097   google_protobuf_FeatureSet_MESSAGE_ENCODING_UNKNOWN = 0,
0098   google_protobuf_FeatureSet_LENGTH_PREFIXED = 1,
0099   google_protobuf_FeatureSet_DELIMITED = 2
0100 } google_protobuf_FeatureSet_MessageEncoding;
0101 
0102 typedef enum {
0103   google_protobuf_FeatureSet_REPEATED_FIELD_ENCODING_UNKNOWN = 0,
0104   google_protobuf_FeatureSet_PACKED = 1,
0105   google_protobuf_FeatureSet_EXPANDED = 2
0106 } google_protobuf_FeatureSet_RepeatedFieldEncoding;
0107 
0108 typedef enum {
0109   google_protobuf_FeatureSet_UTF8_VALIDATION_UNKNOWN = 0,
0110   google_protobuf_FeatureSet_VERIFY = 2,
0111   google_protobuf_FeatureSet_NONE = 3
0112 } google_protobuf_FeatureSet_Utf8Validation;
0113 
0114 typedef enum {
0115   google_protobuf_FieldDescriptorProto_LABEL_OPTIONAL = 1,
0116   google_protobuf_FieldDescriptorProto_LABEL_REQUIRED = 2,
0117   google_protobuf_FieldDescriptorProto_LABEL_REPEATED = 3
0118 } google_protobuf_FieldDescriptorProto_Label;
0119 
0120 typedef enum {
0121   google_protobuf_FieldDescriptorProto_TYPE_DOUBLE = 1,
0122   google_protobuf_FieldDescriptorProto_TYPE_FLOAT = 2,
0123   google_protobuf_FieldDescriptorProto_TYPE_INT64 = 3,
0124   google_protobuf_FieldDescriptorProto_TYPE_UINT64 = 4,
0125   google_protobuf_FieldDescriptorProto_TYPE_INT32 = 5,
0126   google_protobuf_FieldDescriptorProto_TYPE_FIXED64 = 6,
0127   google_protobuf_FieldDescriptorProto_TYPE_FIXED32 = 7,
0128   google_protobuf_FieldDescriptorProto_TYPE_BOOL = 8,
0129   google_protobuf_FieldDescriptorProto_TYPE_STRING = 9,
0130   google_protobuf_FieldDescriptorProto_TYPE_GROUP = 10,
0131   google_protobuf_FieldDescriptorProto_TYPE_MESSAGE = 11,
0132   google_protobuf_FieldDescriptorProto_TYPE_BYTES = 12,
0133   google_protobuf_FieldDescriptorProto_TYPE_UINT32 = 13,
0134   google_protobuf_FieldDescriptorProto_TYPE_ENUM = 14,
0135   google_protobuf_FieldDescriptorProto_TYPE_SFIXED32 = 15,
0136   google_protobuf_FieldDescriptorProto_TYPE_SFIXED64 = 16,
0137   google_protobuf_FieldDescriptorProto_TYPE_SINT32 = 17,
0138   google_protobuf_FieldDescriptorProto_TYPE_SINT64 = 18
0139 } google_protobuf_FieldDescriptorProto_Type;
0140 
0141 typedef enum {
0142   google_protobuf_FieldOptions_STRING = 0,
0143   google_protobuf_FieldOptions_CORD = 1,
0144   google_protobuf_FieldOptions_STRING_PIECE = 2
0145 } google_protobuf_FieldOptions_CType;
0146 
0147 typedef enum {
0148   google_protobuf_FieldOptions_JS_NORMAL = 0,
0149   google_protobuf_FieldOptions_JS_STRING = 1,
0150   google_protobuf_FieldOptions_JS_NUMBER = 2
0151 } google_protobuf_FieldOptions_JSType;
0152 
0153 typedef enum {
0154   google_protobuf_FieldOptions_RETENTION_UNKNOWN = 0,
0155   google_protobuf_FieldOptions_RETENTION_RUNTIME = 1,
0156   google_protobuf_FieldOptions_RETENTION_SOURCE = 2
0157 } google_protobuf_FieldOptions_OptionRetention;
0158 
0159 typedef enum {
0160   google_protobuf_FieldOptions_TARGET_TYPE_UNKNOWN = 0,
0161   google_protobuf_FieldOptions_TARGET_TYPE_FILE = 1,
0162   google_protobuf_FieldOptions_TARGET_TYPE_EXTENSION_RANGE = 2,
0163   google_protobuf_FieldOptions_TARGET_TYPE_MESSAGE = 3,
0164   google_protobuf_FieldOptions_TARGET_TYPE_FIELD = 4,
0165   google_protobuf_FieldOptions_TARGET_TYPE_ONEOF = 5,
0166   google_protobuf_FieldOptions_TARGET_TYPE_ENUM = 6,
0167   google_protobuf_FieldOptions_TARGET_TYPE_ENUM_ENTRY = 7,
0168   google_protobuf_FieldOptions_TARGET_TYPE_SERVICE = 8,
0169   google_protobuf_FieldOptions_TARGET_TYPE_METHOD = 9
0170 } google_protobuf_FieldOptions_OptionTargetType;
0171 
0172 typedef enum {
0173   google_protobuf_FileOptions_SPEED = 1,
0174   google_protobuf_FileOptions_CODE_SIZE = 2,
0175   google_protobuf_FileOptions_LITE_RUNTIME = 3
0176 } google_protobuf_FileOptions_OptimizeMode;
0177 
0178 typedef enum {
0179   google_protobuf_GeneratedCodeInfo_Annotation_NONE = 0,
0180   google_protobuf_GeneratedCodeInfo_Annotation_SET = 1,
0181   google_protobuf_GeneratedCodeInfo_Annotation_ALIAS = 2
0182 } google_protobuf_GeneratedCodeInfo_Annotation_Semantic;
0183 
0184 typedef enum {
0185   google_protobuf_MethodOptions_IDEMPOTENCY_UNKNOWN = 0,
0186   google_protobuf_MethodOptions_NO_SIDE_EFFECTS = 1,
0187   google_protobuf_MethodOptions_IDEMPOTENT = 2
0188 } google_protobuf_MethodOptions_IdempotencyLevel;
0189 
0190 
0191 
0192 /* google.protobuf.FileDescriptorSet */
0193 
0194 UPB_INLINE google_protobuf_FileDescriptorSet* google_protobuf_FileDescriptorSet_new(upb_Arena* arena) {
0195   return (google_protobuf_FileDescriptorSet*)_upb_Message_New(&google__protobuf__FileDescriptorSet_msg_init, arena);
0196 }
0197 UPB_INLINE google_protobuf_FileDescriptorSet* google_protobuf_FileDescriptorSet_parse(const char* buf, size_t size, upb_Arena* arena) {
0198   google_protobuf_FileDescriptorSet* ret = google_protobuf_FileDescriptorSet_new(arena);
0199   if (!ret) return NULL;
0200   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorSet_msg_init, NULL, 0, arena) !=
0201       kUpb_DecodeStatus_Ok) {
0202     return NULL;
0203   }
0204   return ret;
0205 }
0206 UPB_INLINE google_protobuf_FileDescriptorSet* google_protobuf_FileDescriptorSet_parse_ex(const char* buf, size_t size,
0207                            const upb_ExtensionRegistry* extreg,
0208                            int options, upb_Arena* arena) {
0209   google_protobuf_FileDescriptorSet* ret = google_protobuf_FileDescriptorSet_new(arena);
0210   if (!ret) return NULL;
0211   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorSet_msg_init, extreg, options,
0212                  arena) != kUpb_DecodeStatus_Ok) {
0213     return NULL;
0214   }
0215   return ret;
0216 }
0217 UPB_INLINE char* google_protobuf_FileDescriptorSet_serialize(const google_protobuf_FileDescriptorSet* msg, upb_Arena* arena, size_t* len) {
0218   char* ptr;
0219   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorSet_msg_init, 0, arena, &ptr, len);
0220   return ptr;
0221 }
0222 UPB_INLINE char* google_protobuf_FileDescriptorSet_serialize_ex(const google_protobuf_FileDescriptorSet* msg, int options,
0223                                  upb_Arena* arena, size_t* len) {
0224   char* ptr;
0225   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorSet_msg_init, options, arena, &ptr, len);
0226   return ptr;
0227 }
0228 UPB_INLINE void google_protobuf_FileDescriptorSet_clear_file(google_protobuf_FileDescriptorSet* msg) {
0229   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0230   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0231 }
0232 UPB_INLINE const google_protobuf_FileDescriptorProto* const* google_protobuf_FileDescriptorSet_file(const google_protobuf_FileDescriptorSet* msg, size_t* size) {
0233   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0234   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FileDescriptorProto_msg_init);
0235   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0236   if (arr) {
0237     if (size) *size = arr->UPB_PRIVATE(size);
0238     return (const google_protobuf_FileDescriptorProto* const*)upb_Array_DataPtr(arr);
0239   } else {
0240     if (size) *size = 0;
0241     return NULL;
0242   }
0243 }
0244 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorSet_file_upb_array(const google_protobuf_FileDescriptorSet* msg, size_t* size) {
0245   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0246   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FileDescriptorProto_msg_init);
0247   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0248   if (size) {
0249     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0250   }
0251   return arr;
0252 }
0253 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorSet_file_mutable_upb_array(google_protobuf_FileDescriptorSet* msg, size_t* size, upb_Arena* arena) {
0254   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0255   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FileDescriptorProto_msg_init);
0256   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
0257                                                        &field, arena);
0258   if (size) {
0259     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0260   }
0261   return arr;
0262 }
0263 
0264 UPB_INLINE google_protobuf_FileDescriptorProto** google_protobuf_FileDescriptorSet_mutable_file(google_protobuf_FileDescriptorSet* msg, size_t* size) {
0265   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0266   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FileDescriptorProto_msg_init);
0267   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
0268   if (arr) {
0269     if (size) *size = arr->UPB_PRIVATE(size);
0270     return (google_protobuf_FileDescriptorProto**)upb_Array_MutableDataPtr(arr);
0271   } else {
0272     if (size) *size = 0;
0273     return NULL;
0274   }
0275 }
0276 UPB_INLINE google_protobuf_FileDescriptorProto** google_protobuf_FileDescriptorSet_resize_file(google_protobuf_FileDescriptorSet* msg, size_t size, upb_Arena* arena) {
0277   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0278   return (google_protobuf_FileDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
0279                                                    &field, size, arena);
0280 }
0281 UPB_INLINE struct google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorSet_add_file(google_protobuf_FileDescriptorSet* msg, upb_Arena* arena) {
0282   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0283   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FileDescriptorProto_msg_init);
0284   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
0285       UPB_UPCAST(msg), &field, arena);
0286   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
0287                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
0288     return NULL;
0289   }
0290   struct google_protobuf_FileDescriptorProto* sub = (struct google_protobuf_FileDescriptorProto*)_upb_Message_New(&google__protobuf__FileDescriptorProto_msg_init, arena);
0291   if (!arr || !sub) return NULL;
0292   UPB_PRIVATE(_upb_Array_Set)
0293   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
0294   return sub;
0295 }
0296 
0297 /* google.protobuf.FileDescriptorProto */
0298 
0299 UPB_INLINE google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorProto_new(upb_Arena* arena) {
0300   return (google_protobuf_FileDescriptorProto*)_upb_Message_New(&google__protobuf__FileDescriptorProto_msg_init, arena);
0301 }
0302 UPB_INLINE google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
0303   google_protobuf_FileDescriptorProto* ret = google_protobuf_FileDescriptorProto_new(arena);
0304   if (!ret) return NULL;
0305   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorProto_msg_init, NULL, 0, arena) !=
0306       kUpb_DecodeStatus_Ok) {
0307     return NULL;
0308   }
0309   return ret;
0310 }
0311 UPB_INLINE google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorProto_parse_ex(const char* buf, size_t size,
0312                            const upb_ExtensionRegistry* extreg,
0313                            int options, upb_Arena* arena) {
0314   google_protobuf_FileDescriptorProto* ret = google_protobuf_FileDescriptorProto_new(arena);
0315   if (!ret) return NULL;
0316   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorProto_msg_init, extreg, options,
0317                  arena) != kUpb_DecodeStatus_Ok) {
0318     return NULL;
0319   }
0320   return ret;
0321 }
0322 UPB_INLINE char* google_protobuf_FileDescriptorProto_serialize(const google_protobuf_FileDescriptorProto* msg, upb_Arena* arena, size_t* len) {
0323   char* ptr;
0324   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorProto_msg_init, 0, arena, &ptr, len);
0325   return ptr;
0326 }
0327 UPB_INLINE char* google_protobuf_FileDescriptorProto_serialize_ex(const google_protobuf_FileDescriptorProto* msg, int options,
0328                                  upb_Arena* arena, size_t* len) {
0329   char* ptr;
0330   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorProto_msg_init, options, arena, &ptr, len);
0331   return ptr;
0332 }
0333 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_name(google_protobuf_FileDescriptorProto* msg) {
0334   const upb_MiniTableField field = {1, UPB_SIZE(52, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0335   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0336 }
0337 UPB_INLINE upb_StringView google_protobuf_FileDescriptorProto_name(const google_protobuf_FileDescriptorProto* msg) {
0338   upb_StringView default_val = upb_StringView_FromString("");
0339   upb_StringView ret;
0340   const upb_MiniTableField field = {1, UPB_SIZE(52, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0341   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
0342                                     &default_val, &ret);
0343   return ret;
0344 }
0345 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_name(const google_protobuf_FileDescriptorProto* msg) {
0346   const upb_MiniTableField field = {1, UPB_SIZE(52, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0347   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
0348 }
0349 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_package(google_protobuf_FileDescriptorProto* msg) {
0350   const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0351   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0352 }
0353 UPB_INLINE upb_StringView google_protobuf_FileDescriptorProto_package(const google_protobuf_FileDescriptorProto* msg) {
0354   upb_StringView default_val = upb_StringView_FromString("");
0355   upb_StringView ret;
0356   const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0357   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
0358                                     &default_val, &ret);
0359   return ret;
0360 }
0361 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_package(const google_protobuf_FileDescriptorProto* msg) {
0362   const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0363   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
0364 }
0365 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_dependency(google_protobuf_FileDescriptorProto* msg) {
0366   const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0367   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0368 }
0369 UPB_INLINE upb_StringView const* google_protobuf_FileDescriptorProto_dependency(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0370   const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0371   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0372   if (arr) {
0373     if (size) *size = arr->UPB_PRIVATE(size);
0374     return (upb_StringView const*)upb_Array_DataPtr(arr);
0375   } else {
0376     if (size) *size = 0;
0377     return NULL;
0378   }
0379 }
0380 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_dependency_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0381   const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0382   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0383   if (size) {
0384     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0385   }
0386   return arr;
0387 }
0388 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
0389   const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0390   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
0391                                                        &field, arena);
0392   if (size) {
0393     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0394   }
0395   return arr;
0396 }
0397 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_message_type(google_protobuf_FileDescriptorProto* msg) {
0398   const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0399   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0400 }
0401 UPB_INLINE const google_protobuf_DescriptorProto* const* google_protobuf_FileDescriptorProto_message_type(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0402   const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0403   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto_msg_init);
0404   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0405   if (arr) {
0406     if (size) *size = arr->UPB_PRIVATE(size);
0407     return (const google_protobuf_DescriptorProto* const*)upb_Array_DataPtr(arr);
0408   } else {
0409     if (size) *size = 0;
0410     return NULL;
0411   }
0412 }
0413 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_message_type_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0414   const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0415   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto_msg_init);
0416   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0417   if (size) {
0418     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0419   }
0420   return arr;
0421 }
0422 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_message_type_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
0423   const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0424   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto_msg_init);
0425   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
0426                                                        &field, arena);
0427   if (size) {
0428     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0429   }
0430   return arr;
0431 }
0432 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_enum_type(google_protobuf_FileDescriptorProto* msg) {
0433   const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0434   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0435 }
0436 UPB_INLINE const google_protobuf_EnumDescriptorProto* const* google_protobuf_FileDescriptorProto_enum_type(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0437   const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0438   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto_msg_init);
0439   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0440   if (arr) {
0441     if (size) *size = arr->UPB_PRIVATE(size);
0442     return (const google_protobuf_EnumDescriptorProto* const*)upb_Array_DataPtr(arr);
0443   } else {
0444     if (size) *size = 0;
0445     return NULL;
0446   }
0447 }
0448 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_enum_type_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0449   const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0450   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto_msg_init);
0451   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0452   if (size) {
0453     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0454   }
0455   return arr;
0456 }
0457 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_enum_type_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
0458   const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0459   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto_msg_init);
0460   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
0461                                                        &field, arena);
0462   if (size) {
0463     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0464   }
0465   return arr;
0466 }
0467 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_service(google_protobuf_FileDescriptorProto* msg) {
0468   const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0469   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0470 }
0471 UPB_INLINE const google_protobuf_ServiceDescriptorProto* const* google_protobuf_FileDescriptorProto_service(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0472   const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0473   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ServiceDescriptorProto_msg_init);
0474   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0475   if (arr) {
0476     if (size) *size = arr->UPB_PRIVATE(size);
0477     return (const google_protobuf_ServiceDescriptorProto* const*)upb_Array_DataPtr(arr);
0478   } else {
0479     if (size) *size = 0;
0480     return NULL;
0481   }
0482 }
0483 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_service_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0484   const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0485   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ServiceDescriptorProto_msg_init);
0486   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0487   if (size) {
0488     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0489   }
0490   return arr;
0491 }
0492 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_service_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
0493   const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0494   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ServiceDescriptorProto_msg_init);
0495   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
0496                                                        &field, arena);
0497   if (size) {
0498     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0499   }
0500   return arr;
0501 }
0502 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_extension(google_protobuf_FileDescriptorProto* msg) {
0503   const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0504   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0505 }
0506 UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_FileDescriptorProto_extension(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0507   const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0508   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
0509   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0510   if (arr) {
0511     if (size) *size = arr->UPB_PRIVATE(size);
0512     return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr);
0513   } else {
0514     if (size) *size = 0;
0515     return NULL;
0516   }
0517 }
0518 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_extension_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0519   const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0520   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
0521   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0522   if (size) {
0523     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0524   }
0525   return arr;
0526 }
0527 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_extension_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
0528   const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0529   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
0530   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
0531                                                        &field, arena);
0532   if (size) {
0533     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0534   }
0535   return arr;
0536 }
0537 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_options(google_protobuf_FileDescriptorProto* msg) {
0538   const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0539   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0540 }
0541 UPB_INLINE const google_protobuf_FileOptions* google_protobuf_FileDescriptorProto_options(const google_protobuf_FileDescriptorProto* msg) {
0542   const google_protobuf_FileOptions* default_val = NULL;
0543   const google_protobuf_FileOptions* ret;
0544   const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0545   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FileOptions_msg_init);
0546   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
0547                                     &default_val, &ret);
0548   return ret;
0549 }
0550 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_options(const google_protobuf_FileDescriptorProto* msg) {
0551   const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0552   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
0553 }
0554 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_source_code_info(google_protobuf_FileDescriptorProto* msg) {
0555   const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0556   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0557 }
0558 UPB_INLINE const google_protobuf_SourceCodeInfo* google_protobuf_FileDescriptorProto_source_code_info(const google_protobuf_FileDescriptorProto* msg) {
0559   const google_protobuf_SourceCodeInfo* default_val = NULL;
0560   const google_protobuf_SourceCodeInfo* ret;
0561   const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0562   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__SourceCodeInfo_msg_init);
0563   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
0564                                     &default_val, &ret);
0565   return ret;
0566 }
0567 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_source_code_info(const google_protobuf_FileDescriptorProto* msg) {
0568   const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0569   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
0570 }
0571 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_public_dependency(google_protobuf_FileDescriptorProto* msg) {
0572   const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0573   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0574 }
0575 UPB_INLINE int32_t const* google_protobuf_FileDescriptorProto_public_dependency(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0576   const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0577   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0578   if (arr) {
0579     if (size) *size = arr->UPB_PRIVATE(size);
0580     return (int32_t const*)upb_Array_DataPtr(arr);
0581   } else {
0582     if (size) *size = 0;
0583     return NULL;
0584   }
0585 }
0586 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_public_dependency_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0587   const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0588   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0589   if (size) {
0590     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0591   }
0592   return arr;
0593 }
0594 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_public_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
0595   const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0596   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
0597                                                        &field, arena);
0598   if (size) {
0599     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0600   }
0601   return arr;
0602 }
0603 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_weak_dependency(google_protobuf_FileDescriptorProto* msg) {
0604   const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0605   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0606 }
0607 UPB_INLINE int32_t const* google_protobuf_FileDescriptorProto_weak_dependency(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0608   const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0609   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0610   if (arr) {
0611     if (size) *size = arr->UPB_PRIVATE(size);
0612     return (int32_t const*)upb_Array_DataPtr(arr);
0613   } else {
0614     if (size) *size = 0;
0615     return NULL;
0616   }
0617 }
0618 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_weak_dependency_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
0619   const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0620   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0621   if (size) {
0622     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0623   }
0624   return arr;
0625 }
0626 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_weak_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
0627   const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0628   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
0629                                                        &field, arena);
0630   if (size) {
0631     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0632   }
0633   return arr;
0634 }
0635 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_syntax(google_protobuf_FileDescriptorProto* msg) {
0636   const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0637   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0638 }
0639 UPB_INLINE upb_StringView google_protobuf_FileDescriptorProto_syntax(const google_protobuf_FileDescriptorProto* msg) {
0640   upb_StringView default_val = upb_StringView_FromString("");
0641   upb_StringView ret;
0642   const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0643   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
0644                                     &default_val, &ret);
0645   return ret;
0646 }
0647 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_syntax(const google_protobuf_FileDescriptorProto* msg) {
0648   const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0649   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
0650 }
0651 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_edition(google_protobuf_FileDescriptorProto* msg) {
0652   const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
0653   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0654 }
0655 UPB_INLINE int32_t google_protobuf_FileDescriptorProto_edition(const google_protobuf_FileDescriptorProto* msg) {
0656   int32_t default_val = 0;
0657   int32_t ret;
0658   const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
0659   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
0660                                     &default_val, &ret);
0661   return ret;
0662 }
0663 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_edition(const google_protobuf_FileDescriptorProto* msg) {
0664   const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
0665   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
0666 }
0667 
0668 UPB_INLINE void google_protobuf_FileDescriptorProto_set_name(google_protobuf_FileDescriptorProto *msg, upb_StringView value) {
0669   const upb_MiniTableField field = {1, UPB_SIZE(52, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0670   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
0671 }
0672 UPB_INLINE void google_protobuf_FileDescriptorProto_set_package(google_protobuf_FileDescriptorProto *msg, upb_StringView value) {
0673   const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0674   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
0675 }
0676 UPB_INLINE upb_StringView* google_protobuf_FileDescriptorProto_mutable_dependency(google_protobuf_FileDescriptorProto* msg, size_t* size) {
0677   upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0678   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
0679   if (arr) {
0680     if (size) *size = arr->UPB_PRIVATE(size);
0681     return (upb_StringView*)upb_Array_MutableDataPtr(arr);
0682   } else {
0683     if (size) *size = 0;
0684     return NULL;
0685   }
0686 }
0687 UPB_INLINE upb_StringView* google_protobuf_FileDescriptorProto_resize_dependency(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
0688   upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0689   return (upb_StringView*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
0690                                                    &field, size, arena);
0691 }
0692 UPB_INLINE bool google_protobuf_FileDescriptorProto_add_dependency(google_protobuf_FileDescriptorProto* msg, upb_StringView val, upb_Arena* arena) {
0693   upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0694   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
0695       UPB_UPCAST(msg), &field, arena);
0696   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
0697                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
0698     return false;
0699   }
0700   UPB_PRIVATE(_upb_Array_Set)
0701   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
0702   return true;
0703 }
0704 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_FileDescriptorProto_mutable_message_type(google_protobuf_FileDescriptorProto* msg, size_t* size) {
0705   upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0706   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto_msg_init);
0707   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
0708   if (arr) {
0709     if (size) *size = arr->UPB_PRIVATE(size);
0710     return (google_protobuf_DescriptorProto**)upb_Array_MutableDataPtr(arr);
0711   } else {
0712     if (size) *size = 0;
0713     return NULL;
0714   }
0715 }
0716 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_FileDescriptorProto_resize_message_type(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
0717   upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0718   return (google_protobuf_DescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
0719                                                    &field, size, arena);
0720 }
0721 UPB_INLINE struct google_protobuf_DescriptorProto* google_protobuf_FileDescriptorProto_add_message_type(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
0722   upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0723   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto_msg_init);
0724   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
0725       UPB_UPCAST(msg), &field, arena);
0726   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
0727                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
0728     return NULL;
0729   }
0730   struct google_protobuf_DescriptorProto* sub = (struct google_protobuf_DescriptorProto*)_upb_Message_New(&google__protobuf__DescriptorProto_msg_init, arena);
0731   if (!arr || !sub) return NULL;
0732   UPB_PRIVATE(_upb_Array_Set)
0733   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
0734   return sub;
0735 }
0736 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_FileDescriptorProto_mutable_enum_type(google_protobuf_FileDescriptorProto* msg, size_t* size) {
0737   upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0738   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto_msg_init);
0739   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
0740   if (arr) {
0741     if (size) *size = arr->UPB_PRIVATE(size);
0742     return (google_protobuf_EnumDescriptorProto**)upb_Array_MutableDataPtr(arr);
0743   } else {
0744     if (size) *size = 0;
0745     return NULL;
0746   }
0747 }
0748 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_FileDescriptorProto_resize_enum_type(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
0749   upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0750   return (google_protobuf_EnumDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
0751                                                    &field, size, arena);
0752 }
0753 UPB_INLINE struct google_protobuf_EnumDescriptorProto* google_protobuf_FileDescriptorProto_add_enum_type(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
0754   upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0755   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto_msg_init);
0756   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
0757       UPB_UPCAST(msg), &field, arena);
0758   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
0759                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
0760     return NULL;
0761   }
0762   struct google_protobuf_EnumDescriptorProto* sub = (struct google_protobuf_EnumDescriptorProto*)_upb_Message_New(&google__protobuf__EnumDescriptorProto_msg_init, arena);
0763   if (!arr || !sub) return NULL;
0764   UPB_PRIVATE(_upb_Array_Set)
0765   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
0766   return sub;
0767 }
0768 UPB_INLINE google_protobuf_ServiceDescriptorProto** google_protobuf_FileDescriptorProto_mutable_service(google_protobuf_FileDescriptorProto* msg, size_t* size) {
0769   upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0770   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ServiceDescriptorProto_msg_init);
0771   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
0772   if (arr) {
0773     if (size) *size = arr->UPB_PRIVATE(size);
0774     return (google_protobuf_ServiceDescriptorProto**)upb_Array_MutableDataPtr(arr);
0775   } else {
0776     if (size) *size = 0;
0777     return NULL;
0778   }
0779 }
0780 UPB_INLINE google_protobuf_ServiceDescriptorProto** google_protobuf_FileDescriptorProto_resize_service(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
0781   upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0782   return (google_protobuf_ServiceDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
0783                                                    &field, size, arena);
0784 }
0785 UPB_INLINE struct google_protobuf_ServiceDescriptorProto* google_protobuf_FileDescriptorProto_add_service(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
0786   upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0787   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ServiceDescriptorProto_msg_init);
0788   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
0789       UPB_UPCAST(msg), &field, arena);
0790   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
0791                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
0792     return NULL;
0793   }
0794   struct google_protobuf_ServiceDescriptorProto* sub = (struct google_protobuf_ServiceDescriptorProto*)_upb_Message_New(&google__protobuf__ServiceDescriptorProto_msg_init, arena);
0795   if (!arr || !sub) return NULL;
0796   UPB_PRIVATE(_upb_Array_Set)
0797   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
0798   return sub;
0799 }
0800 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_FileDescriptorProto_mutable_extension(google_protobuf_FileDescriptorProto* msg, size_t* size) {
0801   upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0802   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
0803   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
0804   if (arr) {
0805     if (size) *size = arr->UPB_PRIVATE(size);
0806     return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr);
0807   } else {
0808     if (size) *size = 0;
0809     return NULL;
0810   }
0811 }
0812 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_FileDescriptorProto_resize_extension(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
0813   upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0814   return (google_protobuf_FieldDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
0815                                                    &field, size, arena);
0816 }
0817 UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_FileDescriptorProto_add_extension(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
0818   upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0819   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
0820   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
0821       UPB_UPCAST(msg), &field, arena);
0822   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
0823                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
0824     return NULL;
0825   }
0826   struct google_protobuf_FieldDescriptorProto* sub = (struct google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
0827   if (!arr || !sub) return NULL;
0828   UPB_PRIVATE(_upb_Array_Set)
0829   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
0830   return sub;
0831 }
0832 UPB_INLINE void google_protobuf_FileDescriptorProto_set_options(google_protobuf_FileDescriptorProto *msg, google_protobuf_FileOptions* value) {
0833   const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0834   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FileOptions_msg_init);
0835   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
0836 }
0837 UPB_INLINE struct google_protobuf_FileOptions* google_protobuf_FileDescriptorProto_mutable_options(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
0838   struct google_protobuf_FileOptions* sub = (struct google_protobuf_FileOptions*)google_protobuf_FileDescriptorProto_options(msg);
0839   if (sub == NULL) {
0840     sub = (struct google_protobuf_FileOptions*)_upb_Message_New(&google__protobuf__FileOptions_msg_init, arena);
0841     if (sub) google_protobuf_FileDescriptorProto_set_options(msg, sub);
0842   }
0843   return sub;
0844 }
0845 UPB_INLINE void google_protobuf_FileDescriptorProto_set_source_code_info(google_protobuf_FileDescriptorProto *msg, google_protobuf_SourceCodeInfo* value) {
0846   const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0847   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__SourceCodeInfo_msg_init);
0848   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
0849 }
0850 UPB_INLINE struct google_protobuf_SourceCodeInfo* google_protobuf_FileDescriptorProto_mutable_source_code_info(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
0851   struct google_protobuf_SourceCodeInfo* sub = (struct google_protobuf_SourceCodeInfo*)google_protobuf_FileDescriptorProto_source_code_info(msg);
0852   if (sub == NULL) {
0853     sub = (struct google_protobuf_SourceCodeInfo*)_upb_Message_New(&google__protobuf__SourceCodeInfo_msg_init, arena);
0854     if (sub) google_protobuf_FileDescriptorProto_set_source_code_info(msg, sub);
0855   }
0856   return sub;
0857 }
0858 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_mutable_public_dependency(google_protobuf_FileDescriptorProto* msg, size_t* size) {
0859   upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0860   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
0861   if (arr) {
0862     if (size) *size = arr->UPB_PRIVATE(size);
0863     return (int32_t*)upb_Array_MutableDataPtr(arr);
0864   } else {
0865     if (size) *size = 0;
0866     return NULL;
0867   }
0868 }
0869 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_resize_public_dependency(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
0870   upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0871   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
0872                                                    &field, size, arena);
0873 }
0874 UPB_INLINE bool google_protobuf_FileDescriptorProto_add_public_dependency(google_protobuf_FileDescriptorProto* msg, int32_t val, upb_Arena* arena) {
0875   upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0876   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
0877       UPB_UPCAST(msg), &field, arena);
0878   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
0879                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
0880     return false;
0881   }
0882   UPB_PRIVATE(_upb_Array_Set)
0883   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
0884   return true;
0885 }
0886 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_mutable_weak_dependency(google_protobuf_FileDescriptorProto* msg, size_t* size) {
0887   upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0888   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
0889   if (arr) {
0890     if (size) *size = arr->UPB_PRIVATE(size);
0891     return (int32_t*)upb_Array_MutableDataPtr(arr);
0892   } else {
0893     if (size) *size = 0;
0894     return NULL;
0895   }
0896 }
0897 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_resize_weak_dependency(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
0898   upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0899   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
0900                                                    &field, size, arena);
0901 }
0902 UPB_INLINE bool google_protobuf_FileDescriptorProto_add_weak_dependency(google_protobuf_FileDescriptorProto* msg, int32_t val, upb_Arena* arena) {
0903   upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0904   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
0905       UPB_UPCAST(msg), &field, arena);
0906   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
0907                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
0908     return false;
0909   }
0910   UPB_PRIVATE(_upb_Array_Set)
0911   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
0912   return true;
0913 }
0914 UPB_INLINE void google_protobuf_FileDescriptorProto_set_syntax(google_protobuf_FileDescriptorProto *msg, upb_StringView value) {
0915   const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0916   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
0917 }
0918 UPB_INLINE void google_protobuf_FileDescriptorProto_set_edition(google_protobuf_FileDescriptorProto *msg, int32_t value) {
0919   const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
0920   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
0921 }
0922 
0923 /* google.protobuf.DescriptorProto */
0924 
0925 UPB_INLINE google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_new(upb_Arena* arena) {
0926   return (google_protobuf_DescriptorProto*)_upb_Message_New(&google__protobuf__DescriptorProto_msg_init, arena);
0927 }
0928 UPB_INLINE google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
0929   google_protobuf_DescriptorProto* ret = google_protobuf_DescriptorProto_new(arena);
0930   if (!ret) return NULL;
0931   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto_msg_init, NULL, 0, arena) !=
0932       kUpb_DecodeStatus_Ok) {
0933     return NULL;
0934   }
0935   return ret;
0936 }
0937 UPB_INLINE google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_parse_ex(const char* buf, size_t size,
0938                            const upb_ExtensionRegistry* extreg,
0939                            int options, upb_Arena* arena) {
0940   google_protobuf_DescriptorProto* ret = google_protobuf_DescriptorProto_new(arena);
0941   if (!ret) return NULL;
0942   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto_msg_init, extreg, options,
0943                  arena) != kUpb_DecodeStatus_Ok) {
0944     return NULL;
0945   }
0946   return ret;
0947 }
0948 UPB_INLINE char* google_protobuf_DescriptorProto_serialize(const google_protobuf_DescriptorProto* msg, upb_Arena* arena, size_t* len) {
0949   char* ptr;
0950   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto_msg_init, 0, arena, &ptr, len);
0951   return ptr;
0952 }
0953 UPB_INLINE char* google_protobuf_DescriptorProto_serialize_ex(const google_protobuf_DescriptorProto* msg, int options,
0954                                  upb_Arena* arena, size_t* len) {
0955   char* ptr;
0956   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto_msg_init, options, arena, &ptr, len);
0957   return ptr;
0958 }
0959 UPB_INLINE void google_protobuf_DescriptorProto_clear_name(google_protobuf_DescriptorProto* msg) {
0960   const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0961   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0962 }
0963 UPB_INLINE upb_StringView google_protobuf_DescriptorProto_name(const google_protobuf_DescriptorProto* msg) {
0964   upb_StringView default_val = upb_StringView_FromString("");
0965   upb_StringView ret;
0966   const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0967   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
0968                                     &default_val, &ret);
0969   return ret;
0970 }
0971 UPB_INLINE bool google_protobuf_DescriptorProto_has_name(const google_protobuf_DescriptorProto* msg) {
0972   const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
0973   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
0974 }
0975 UPB_INLINE void google_protobuf_DescriptorProto_clear_field(google_protobuf_DescriptorProto* msg) {
0976   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0977   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
0978 }
0979 UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_DescriptorProto_field(const google_protobuf_DescriptorProto* msg, size_t* size) {
0980   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0981   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
0982   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0983   if (arr) {
0984     if (size) *size = arr->UPB_PRIVATE(size);
0985     return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr);
0986   } else {
0987     if (size) *size = 0;
0988     return NULL;
0989   }
0990 }
0991 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_field_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
0992   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
0993   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
0994   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
0995   if (size) {
0996     *size = arr ? arr->UPB_PRIVATE(size) : 0;
0997   }
0998   return arr;
0999 }
1000 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_field_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1001   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1002   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
1003   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1004                                                        &field, arena);
1005   if (size) {
1006     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1007   }
1008   return arr;
1009 }
1010 UPB_INLINE void google_protobuf_DescriptorProto_clear_nested_type(google_protobuf_DescriptorProto* msg) {
1011   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1012   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1013 }
1014 UPB_INLINE const google_protobuf_DescriptorProto* const* google_protobuf_DescriptorProto_nested_type(const google_protobuf_DescriptorProto* msg, size_t* size) {
1015   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1016   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto_msg_init);
1017   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1018   if (arr) {
1019     if (size) *size = arr->UPB_PRIVATE(size);
1020     return (const google_protobuf_DescriptorProto* const*)upb_Array_DataPtr(arr);
1021   } else {
1022     if (size) *size = 0;
1023     return NULL;
1024   }
1025 }
1026 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_nested_type_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1027   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1028   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto_msg_init);
1029   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1030   if (size) {
1031     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1032   }
1033   return arr;
1034 }
1035 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_nested_type_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1036   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1037   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto_msg_init);
1038   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1039                                                        &field, arena);
1040   if (size) {
1041     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1042   }
1043   return arr;
1044 }
1045 UPB_INLINE void google_protobuf_DescriptorProto_clear_enum_type(google_protobuf_DescriptorProto* msg) {
1046   const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1047   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1048 }
1049 UPB_INLINE const google_protobuf_EnumDescriptorProto* const* google_protobuf_DescriptorProto_enum_type(const google_protobuf_DescriptorProto* msg, size_t* size) {
1050   const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1051   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto_msg_init);
1052   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1053   if (arr) {
1054     if (size) *size = arr->UPB_PRIVATE(size);
1055     return (const google_protobuf_EnumDescriptorProto* const*)upb_Array_DataPtr(arr);
1056   } else {
1057     if (size) *size = 0;
1058     return NULL;
1059   }
1060 }
1061 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_enum_type_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1062   const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1063   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto_msg_init);
1064   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1065   if (size) {
1066     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1067   }
1068   return arr;
1069 }
1070 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_enum_type_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1071   const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1072   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto_msg_init);
1073   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1074                                                        &field, arena);
1075   if (size) {
1076     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1077   }
1078   return arr;
1079 }
1080 UPB_INLINE void google_protobuf_DescriptorProto_clear_extension_range(google_protobuf_DescriptorProto* msg) {
1081   const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1082   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1083 }
1084 UPB_INLINE const google_protobuf_DescriptorProto_ExtensionRange* const* google_protobuf_DescriptorProto_extension_range(const google_protobuf_DescriptorProto* msg, size_t* size) {
1085   const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1086   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto__ExtensionRange_msg_init);
1087   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1088   if (arr) {
1089     if (size) *size = arr->UPB_PRIVATE(size);
1090     return (const google_protobuf_DescriptorProto_ExtensionRange* const*)upb_Array_DataPtr(arr);
1091   } else {
1092     if (size) *size = 0;
1093     return NULL;
1094   }
1095 }
1096 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_extension_range_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1097   const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1098   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto__ExtensionRange_msg_init);
1099   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1100   if (size) {
1101     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1102   }
1103   return arr;
1104 }
1105 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_extension_range_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1106   const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1107   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto__ExtensionRange_msg_init);
1108   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1109                                                        &field, arena);
1110   if (size) {
1111     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1112   }
1113   return arr;
1114 }
1115 UPB_INLINE void google_protobuf_DescriptorProto_clear_extension(google_protobuf_DescriptorProto* msg) {
1116   const upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1117   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1118 }
1119 UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_DescriptorProto_extension(const google_protobuf_DescriptorProto* msg, size_t* size) {
1120   const upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1121   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
1122   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1123   if (arr) {
1124     if (size) *size = arr->UPB_PRIVATE(size);
1125     return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr);
1126   } else {
1127     if (size) *size = 0;
1128     return NULL;
1129   }
1130 }
1131 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_extension_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1132   const upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1133   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
1134   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1135   if (size) {
1136     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1137   }
1138   return arr;
1139 }
1140 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_extension_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1141   const upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1142   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
1143   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1144                                                        &field, arena);
1145   if (size) {
1146     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1147   }
1148   return arr;
1149 }
1150 UPB_INLINE void google_protobuf_DescriptorProto_clear_options(google_protobuf_DescriptorProto* msg) {
1151   const upb_MiniTableField field = {7, UPB_SIZE(32, 72), 65, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1152   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1153 }
1154 UPB_INLINE const google_protobuf_MessageOptions* google_protobuf_DescriptorProto_options(const google_protobuf_DescriptorProto* msg) {
1155   const google_protobuf_MessageOptions* default_val = NULL;
1156   const google_protobuf_MessageOptions* ret;
1157   const upb_MiniTableField field = {7, UPB_SIZE(32, 72), 65, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1158   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__MessageOptions_msg_init);
1159   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1160                                     &default_val, &ret);
1161   return ret;
1162 }
1163 UPB_INLINE bool google_protobuf_DescriptorProto_has_options(const google_protobuf_DescriptorProto* msg) {
1164   const upb_MiniTableField field = {7, UPB_SIZE(32, 72), 65, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1165   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1166 }
1167 UPB_INLINE void google_protobuf_DescriptorProto_clear_oneof_decl(google_protobuf_DescriptorProto* msg) {
1168   const upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1169   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1170 }
1171 UPB_INLINE const google_protobuf_OneofDescriptorProto* const* google_protobuf_DescriptorProto_oneof_decl(const google_protobuf_DescriptorProto* msg, size_t* size) {
1172   const upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1173   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__OneofDescriptorProto_msg_init);
1174   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1175   if (arr) {
1176     if (size) *size = arr->UPB_PRIVATE(size);
1177     return (const google_protobuf_OneofDescriptorProto* const*)upb_Array_DataPtr(arr);
1178   } else {
1179     if (size) *size = 0;
1180     return NULL;
1181   }
1182 }
1183 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_oneof_decl_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1184   const upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1185   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__OneofDescriptorProto_msg_init);
1186   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1187   if (size) {
1188     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1189   }
1190   return arr;
1191 }
1192 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_oneof_decl_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1193   const upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1194   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__OneofDescriptorProto_msg_init);
1195   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1196                                                        &field, arena);
1197   if (size) {
1198     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1199   }
1200   return arr;
1201 }
1202 UPB_INLINE void google_protobuf_DescriptorProto_clear_reserved_range(google_protobuf_DescriptorProto* msg) {
1203   const upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1204   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1205 }
1206 UPB_INLINE const google_protobuf_DescriptorProto_ReservedRange* const* google_protobuf_DescriptorProto_reserved_range(const google_protobuf_DescriptorProto* msg, size_t* size) {
1207   const upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1208   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto__ReservedRange_msg_init);
1209   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1210   if (arr) {
1211     if (size) *size = arr->UPB_PRIVATE(size);
1212     return (const google_protobuf_DescriptorProto_ReservedRange* const*)upb_Array_DataPtr(arr);
1213   } else {
1214     if (size) *size = 0;
1215     return NULL;
1216   }
1217 }
1218 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_reserved_range_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1219   const upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1220   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto__ReservedRange_msg_init);
1221   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1222   if (size) {
1223     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1224   }
1225   return arr;
1226 }
1227 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_reserved_range_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1228   const upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1229   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto__ReservedRange_msg_init);
1230   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1231                                                        &field, arena);
1232   if (size) {
1233     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1234   }
1235   return arr;
1236 }
1237 UPB_INLINE void google_protobuf_DescriptorProto_clear_reserved_name(google_protobuf_DescriptorProto* msg) {
1238   const upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1239   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1240 }
1241 UPB_INLINE upb_StringView const* google_protobuf_DescriptorProto_reserved_name(const google_protobuf_DescriptorProto* msg, size_t* size) {
1242   const upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1243   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1244   if (arr) {
1245     if (size) *size = arr->UPB_PRIVATE(size);
1246     return (upb_StringView const*)upb_Array_DataPtr(arr);
1247   } else {
1248     if (size) *size = 0;
1249     return NULL;
1250   }
1251 }
1252 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_reserved_name_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1253   const upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1254   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1255   if (size) {
1256     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1257   }
1258   return arr;
1259 }
1260 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_reserved_name_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1261   const upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1262   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1263                                                        &field, arena);
1264   if (size) {
1265     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1266   }
1267   return arr;
1268 }
1269 
1270 UPB_INLINE void google_protobuf_DescriptorProto_set_name(google_protobuf_DescriptorProto *msg, upb_StringView value) {
1271   const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1272   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
1273 }
1274 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_mutable_field(google_protobuf_DescriptorProto* msg, size_t* size) {
1275   upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1276   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
1277   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1278   if (arr) {
1279     if (size) *size = arr->UPB_PRIVATE(size);
1280     return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr);
1281   } else {
1282     if (size) *size = 0;
1283     return NULL;
1284   }
1285 }
1286 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_resize_field(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1287   upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1288   return (google_protobuf_FieldDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1289                                                    &field, size, arena);
1290 }
1291 UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_DescriptorProto_add_field(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1292   upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1293   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
1294   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1295       UPB_UPCAST(msg), &field, arena);
1296   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1297                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1298     return NULL;
1299   }
1300   struct google_protobuf_FieldDescriptorProto* sub = (struct google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
1301   if (!arr || !sub) return NULL;
1302   UPB_PRIVATE(_upb_Array_Set)
1303   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1304   return sub;
1305 }
1306 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_DescriptorProto_mutable_nested_type(google_protobuf_DescriptorProto* msg, size_t* size) {
1307   upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1308   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto_msg_init);
1309   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1310   if (arr) {
1311     if (size) *size = arr->UPB_PRIVATE(size);
1312     return (google_protobuf_DescriptorProto**)upb_Array_MutableDataPtr(arr);
1313   } else {
1314     if (size) *size = 0;
1315     return NULL;
1316   }
1317 }
1318 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_DescriptorProto_resize_nested_type(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1319   upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1320   return (google_protobuf_DescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1321                                                    &field, size, arena);
1322 }
1323 UPB_INLINE struct google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_add_nested_type(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1324   upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1325   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto_msg_init);
1326   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1327       UPB_UPCAST(msg), &field, arena);
1328   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1329                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1330     return NULL;
1331   }
1332   struct google_protobuf_DescriptorProto* sub = (struct google_protobuf_DescriptorProto*)_upb_Message_New(&google__protobuf__DescriptorProto_msg_init, arena);
1333   if (!arr || !sub) return NULL;
1334   UPB_PRIVATE(_upb_Array_Set)
1335   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1336   return sub;
1337 }
1338 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_DescriptorProto_mutable_enum_type(google_protobuf_DescriptorProto* msg, size_t* size) {
1339   upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1340   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto_msg_init);
1341   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1342   if (arr) {
1343     if (size) *size = arr->UPB_PRIVATE(size);
1344     return (google_protobuf_EnumDescriptorProto**)upb_Array_MutableDataPtr(arr);
1345   } else {
1346     if (size) *size = 0;
1347     return NULL;
1348   }
1349 }
1350 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_DescriptorProto_resize_enum_type(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1351   upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1352   return (google_protobuf_EnumDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1353                                                    &field, size, arena);
1354 }
1355 UPB_INLINE struct google_protobuf_EnumDescriptorProto* google_protobuf_DescriptorProto_add_enum_type(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1356   upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1357   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto_msg_init);
1358   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1359       UPB_UPCAST(msg), &field, arena);
1360   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1361                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1362     return NULL;
1363   }
1364   struct google_protobuf_EnumDescriptorProto* sub = (struct google_protobuf_EnumDescriptorProto*)_upb_Message_New(&google__protobuf__EnumDescriptorProto_msg_init, arena);
1365   if (!arr || !sub) return NULL;
1366   UPB_PRIVATE(_upb_Array_Set)
1367   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1368   return sub;
1369 }
1370 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange** google_protobuf_DescriptorProto_mutable_extension_range(google_protobuf_DescriptorProto* msg, size_t* size) {
1371   upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1372   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto__ExtensionRange_msg_init);
1373   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1374   if (arr) {
1375     if (size) *size = arr->UPB_PRIVATE(size);
1376     return (google_protobuf_DescriptorProto_ExtensionRange**)upb_Array_MutableDataPtr(arr);
1377   } else {
1378     if (size) *size = 0;
1379     return NULL;
1380   }
1381 }
1382 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange** google_protobuf_DescriptorProto_resize_extension_range(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1383   upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1384   return (google_protobuf_DescriptorProto_ExtensionRange**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1385                                                    &field, size, arena);
1386 }
1387 UPB_INLINE struct google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_add_extension_range(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1388   upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1389   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto__ExtensionRange_msg_init);
1390   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1391       UPB_UPCAST(msg), &field, arena);
1392   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1393                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1394     return NULL;
1395   }
1396   struct google_protobuf_DescriptorProto_ExtensionRange* sub = (struct google_protobuf_DescriptorProto_ExtensionRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ExtensionRange_msg_init, arena);
1397   if (!arr || !sub) return NULL;
1398   UPB_PRIVATE(_upb_Array_Set)
1399   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1400   return sub;
1401 }
1402 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_mutable_extension(google_protobuf_DescriptorProto* msg, size_t* size) {
1403   upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1404   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
1405   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1406   if (arr) {
1407     if (size) *size = arr->UPB_PRIVATE(size);
1408     return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr);
1409   } else {
1410     if (size) *size = 0;
1411     return NULL;
1412   }
1413 }
1414 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_resize_extension(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1415   upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1416   return (google_protobuf_FieldDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1417                                                    &field, size, arena);
1418 }
1419 UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_DescriptorProto_add_extension(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1420   upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1421   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldDescriptorProto_msg_init);
1422   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1423       UPB_UPCAST(msg), &field, arena);
1424   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1425                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1426     return NULL;
1427   }
1428   struct google_protobuf_FieldDescriptorProto* sub = (struct google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
1429   if (!arr || !sub) return NULL;
1430   UPB_PRIVATE(_upb_Array_Set)
1431   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1432   return sub;
1433 }
1434 UPB_INLINE void google_protobuf_DescriptorProto_set_options(google_protobuf_DescriptorProto *msg, google_protobuf_MessageOptions* value) {
1435   const upb_MiniTableField field = {7, UPB_SIZE(32, 72), 65, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1436   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__MessageOptions_msg_init);
1437   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
1438 }
1439 UPB_INLINE struct google_protobuf_MessageOptions* google_protobuf_DescriptorProto_mutable_options(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1440   struct google_protobuf_MessageOptions* sub = (struct google_protobuf_MessageOptions*)google_protobuf_DescriptorProto_options(msg);
1441   if (sub == NULL) {
1442     sub = (struct google_protobuf_MessageOptions*)_upb_Message_New(&google__protobuf__MessageOptions_msg_init, arena);
1443     if (sub) google_protobuf_DescriptorProto_set_options(msg, sub);
1444   }
1445   return sub;
1446 }
1447 UPB_INLINE google_protobuf_OneofDescriptorProto** google_protobuf_DescriptorProto_mutable_oneof_decl(google_protobuf_DescriptorProto* msg, size_t* size) {
1448   upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1449   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__OneofDescriptorProto_msg_init);
1450   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1451   if (arr) {
1452     if (size) *size = arr->UPB_PRIVATE(size);
1453     return (google_protobuf_OneofDescriptorProto**)upb_Array_MutableDataPtr(arr);
1454   } else {
1455     if (size) *size = 0;
1456     return NULL;
1457   }
1458 }
1459 UPB_INLINE google_protobuf_OneofDescriptorProto** google_protobuf_DescriptorProto_resize_oneof_decl(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1460   upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1461   return (google_protobuf_OneofDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1462                                                    &field, size, arena);
1463 }
1464 UPB_INLINE struct google_protobuf_OneofDescriptorProto* google_protobuf_DescriptorProto_add_oneof_decl(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1465   upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1466   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__OneofDescriptorProto_msg_init);
1467   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1468       UPB_UPCAST(msg), &field, arena);
1469   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1470                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1471     return NULL;
1472   }
1473   struct google_protobuf_OneofDescriptorProto* sub = (struct google_protobuf_OneofDescriptorProto*)_upb_Message_New(&google__protobuf__OneofDescriptorProto_msg_init, arena);
1474   if (!arr || !sub) return NULL;
1475   UPB_PRIVATE(_upb_Array_Set)
1476   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1477   return sub;
1478 }
1479 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange** google_protobuf_DescriptorProto_mutable_reserved_range(google_protobuf_DescriptorProto* msg, size_t* size) {
1480   upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1481   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto__ReservedRange_msg_init);
1482   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1483   if (arr) {
1484     if (size) *size = arr->UPB_PRIVATE(size);
1485     return (google_protobuf_DescriptorProto_ReservedRange**)upb_Array_MutableDataPtr(arr);
1486   } else {
1487     if (size) *size = 0;
1488     return NULL;
1489   }
1490 }
1491 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange** google_protobuf_DescriptorProto_resize_reserved_range(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1492   upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1493   return (google_protobuf_DescriptorProto_ReservedRange**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1494                                                    &field, size, arena);
1495 }
1496 UPB_INLINE struct google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_add_reserved_range(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1497   upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1498   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__DescriptorProto__ReservedRange_msg_init);
1499   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1500       UPB_UPCAST(msg), &field, arena);
1501   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1502                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1503     return NULL;
1504   }
1505   struct google_protobuf_DescriptorProto_ReservedRange* sub = (struct google_protobuf_DescriptorProto_ReservedRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ReservedRange_msg_init, arena);
1506   if (!arr || !sub) return NULL;
1507   UPB_PRIVATE(_upb_Array_Set)
1508   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1509   return sub;
1510 }
1511 UPB_INLINE upb_StringView* google_protobuf_DescriptorProto_mutable_reserved_name(google_protobuf_DescriptorProto* msg, size_t* size) {
1512   upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1513   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1514   if (arr) {
1515     if (size) *size = arr->UPB_PRIVATE(size);
1516     return (upb_StringView*)upb_Array_MutableDataPtr(arr);
1517   } else {
1518     if (size) *size = 0;
1519     return NULL;
1520   }
1521 }
1522 UPB_INLINE upb_StringView* google_protobuf_DescriptorProto_resize_reserved_name(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1523   upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1524   return (upb_StringView*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1525                                                    &field, size, arena);
1526 }
1527 UPB_INLINE bool google_protobuf_DescriptorProto_add_reserved_name(google_protobuf_DescriptorProto* msg, upb_StringView val, upb_Arena* arena) {
1528   upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1529   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1530       UPB_UPCAST(msg), &field, arena);
1531   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1532                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1533     return false;
1534   }
1535   UPB_PRIVATE(_upb_Array_Set)
1536   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
1537   return true;
1538 }
1539 
1540 /* google.protobuf.DescriptorProto.ExtensionRange */
1541 
1542 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_ExtensionRange_new(upb_Arena* arena) {
1543   return (google_protobuf_DescriptorProto_ExtensionRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ExtensionRange_msg_init, arena);
1544 }
1545 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_ExtensionRange_parse(const char* buf, size_t size, upb_Arena* arena) {
1546   google_protobuf_DescriptorProto_ExtensionRange* ret = google_protobuf_DescriptorProto_ExtensionRange_new(arena);
1547   if (!ret) return NULL;
1548   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, NULL, 0, arena) !=
1549       kUpb_DecodeStatus_Ok) {
1550     return NULL;
1551   }
1552   return ret;
1553 }
1554 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_ExtensionRange_parse_ex(const char* buf, size_t size,
1555                            const upb_ExtensionRegistry* extreg,
1556                            int options, upb_Arena* arena) {
1557   google_protobuf_DescriptorProto_ExtensionRange* ret = google_protobuf_DescriptorProto_ExtensionRange_new(arena);
1558   if (!ret) return NULL;
1559   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, extreg, options,
1560                  arena) != kUpb_DecodeStatus_Ok) {
1561     return NULL;
1562   }
1563   return ret;
1564 }
1565 UPB_INLINE char* google_protobuf_DescriptorProto_ExtensionRange_serialize(const google_protobuf_DescriptorProto_ExtensionRange* msg, upb_Arena* arena, size_t* len) {
1566   char* ptr;
1567   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, 0, arena, &ptr, len);
1568   return ptr;
1569 }
1570 UPB_INLINE char* google_protobuf_DescriptorProto_ExtensionRange_serialize_ex(const google_protobuf_DescriptorProto_ExtensionRange* msg, int options,
1571                                  upb_Arena* arena, size_t* len) {
1572   char* ptr;
1573   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, options, arena, &ptr, len);
1574   return ptr;
1575 }
1576 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_clear_start(google_protobuf_DescriptorProto_ExtensionRange* msg) {
1577   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1578   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1579 }
1580 UPB_INLINE int32_t google_protobuf_DescriptorProto_ExtensionRange_start(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1581   int32_t default_val = (int32_t)0;
1582   int32_t ret;
1583   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1584   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1585                                     &default_val, &ret);
1586   return ret;
1587 }
1588 UPB_INLINE bool google_protobuf_DescriptorProto_ExtensionRange_has_start(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1589   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1590   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1591 }
1592 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_clear_end(google_protobuf_DescriptorProto_ExtensionRange* msg) {
1593   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1594   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1595 }
1596 UPB_INLINE int32_t google_protobuf_DescriptorProto_ExtensionRange_end(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1597   int32_t default_val = (int32_t)0;
1598   int32_t ret;
1599   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1600   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1601                                     &default_val, &ret);
1602   return ret;
1603 }
1604 UPB_INLINE bool google_protobuf_DescriptorProto_ExtensionRange_has_end(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1605   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1606   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1607 }
1608 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_clear_options(google_protobuf_DescriptorProto_ExtensionRange* msg) {
1609   const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1610   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1611 }
1612 UPB_INLINE const google_protobuf_ExtensionRangeOptions* google_protobuf_DescriptorProto_ExtensionRange_options(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1613   const google_protobuf_ExtensionRangeOptions* default_val = NULL;
1614   const google_protobuf_ExtensionRangeOptions* ret;
1615   const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1616   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ExtensionRangeOptions_msg_init);
1617   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1618                                     &default_val, &ret);
1619   return ret;
1620 }
1621 UPB_INLINE bool google_protobuf_DescriptorProto_ExtensionRange_has_options(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1622   const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1623   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1624 }
1625 
1626 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_set_start(google_protobuf_DescriptorProto_ExtensionRange *msg, int32_t value) {
1627   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1628   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
1629 }
1630 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_set_end(google_protobuf_DescriptorProto_ExtensionRange *msg, int32_t value) {
1631   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1632   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
1633 }
1634 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_set_options(google_protobuf_DescriptorProto_ExtensionRange *msg, google_protobuf_ExtensionRangeOptions* value) {
1635   const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1636   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ExtensionRangeOptions_msg_init);
1637   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
1638 }
1639 UPB_INLINE struct google_protobuf_ExtensionRangeOptions* google_protobuf_DescriptorProto_ExtensionRange_mutable_options(google_protobuf_DescriptorProto_ExtensionRange* msg, upb_Arena* arena) {
1640   struct google_protobuf_ExtensionRangeOptions* sub = (struct google_protobuf_ExtensionRangeOptions*)google_protobuf_DescriptorProto_ExtensionRange_options(msg);
1641   if (sub == NULL) {
1642     sub = (struct google_protobuf_ExtensionRangeOptions*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions_msg_init, arena);
1643     if (sub) google_protobuf_DescriptorProto_ExtensionRange_set_options(msg, sub);
1644   }
1645   return sub;
1646 }
1647 
1648 /* google.protobuf.DescriptorProto.ReservedRange */
1649 
1650 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_ReservedRange_new(upb_Arena* arena) {
1651   return (google_protobuf_DescriptorProto_ReservedRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ReservedRange_msg_init, arena);
1652 }
1653 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_ReservedRange_parse(const char* buf, size_t size, upb_Arena* arena) {
1654   google_protobuf_DescriptorProto_ReservedRange* ret = google_protobuf_DescriptorProto_ReservedRange_new(arena);
1655   if (!ret) return NULL;
1656   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ReservedRange_msg_init, NULL, 0, arena) !=
1657       kUpb_DecodeStatus_Ok) {
1658     return NULL;
1659   }
1660   return ret;
1661 }
1662 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_ReservedRange_parse_ex(const char* buf, size_t size,
1663                            const upb_ExtensionRegistry* extreg,
1664                            int options, upb_Arena* arena) {
1665   google_protobuf_DescriptorProto_ReservedRange* ret = google_protobuf_DescriptorProto_ReservedRange_new(arena);
1666   if (!ret) return NULL;
1667   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ReservedRange_msg_init, extreg, options,
1668                  arena) != kUpb_DecodeStatus_Ok) {
1669     return NULL;
1670   }
1671   return ret;
1672 }
1673 UPB_INLINE char* google_protobuf_DescriptorProto_ReservedRange_serialize(const google_protobuf_DescriptorProto_ReservedRange* msg, upb_Arena* arena, size_t* len) {
1674   char* ptr;
1675   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ReservedRange_msg_init, 0, arena, &ptr, len);
1676   return ptr;
1677 }
1678 UPB_INLINE char* google_protobuf_DescriptorProto_ReservedRange_serialize_ex(const google_protobuf_DescriptorProto_ReservedRange* msg, int options,
1679                                  upb_Arena* arena, size_t* len) {
1680   char* ptr;
1681   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ReservedRange_msg_init, options, arena, &ptr, len);
1682   return ptr;
1683 }
1684 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_clear_start(google_protobuf_DescriptorProto_ReservedRange* msg) {
1685   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1686   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1687 }
1688 UPB_INLINE int32_t google_protobuf_DescriptorProto_ReservedRange_start(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1689   int32_t default_val = (int32_t)0;
1690   int32_t ret;
1691   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1692   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1693                                     &default_val, &ret);
1694   return ret;
1695 }
1696 UPB_INLINE bool google_protobuf_DescriptorProto_ReservedRange_has_start(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1697   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1698   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1699 }
1700 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_clear_end(google_protobuf_DescriptorProto_ReservedRange* msg) {
1701   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1702   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1703 }
1704 UPB_INLINE int32_t google_protobuf_DescriptorProto_ReservedRange_end(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1705   int32_t default_val = (int32_t)0;
1706   int32_t ret;
1707   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1708   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1709                                     &default_val, &ret);
1710   return ret;
1711 }
1712 UPB_INLINE bool google_protobuf_DescriptorProto_ReservedRange_has_end(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1713   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1714   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1715 }
1716 
1717 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_set_start(google_protobuf_DescriptorProto_ReservedRange *msg, int32_t value) {
1718   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1719   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
1720 }
1721 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_set_end(google_protobuf_DescriptorProto_ReservedRange *msg, int32_t value) {
1722   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1723   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
1724 }
1725 
1726 /* google.protobuf.ExtensionRangeOptions */
1727 
1728 UPB_INLINE google_protobuf_ExtensionRangeOptions* google_protobuf_ExtensionRangeOptions_new(upb_Arena* arena) {
1729   return (google_protobuf_ExtensionRangeOptions*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions_msg_init, arena);
1730 }
1731 UPB_INLINE google_protobuf_ExtensionRangeOptions* google_protobuf_ExtensionRangeOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
1732   google_protobuf_ExtensionRangeOptions* ret = google_protobuf_ExtensionRangeOptions_new(arena);
1733   if (!ret) return NULL;
1734   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions_msg_init, NULL, 0, arena) !=
1735       kUpb_DecodeStatus_Ok) {
1736     return NULL;
1737   }
1738   return ret;
1739 }
1740 UPB_INLINE google_protobuf_ExtensionRangeOptions* google_protobuf_ExtensionRangeOptions_parse_ex(const char* buf, size_t size,
1741                            const upb_ExtensionRegistry* extreg,
1742                            int options, upb_Arena* arena) {
1743   google_protobuf_ExtensionRangeOptions* ret = google_protobuf_ExtensionRangeOptions_new(arena);
1744   if (!ret) return NULL;
1745   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions_msg_init, extreg, options,
1746                  arena) != kUpb_DecodeStatus_Ok) {
1747     return NULL;
1748   }
1749   return ret;
1750 }
1751 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_serialize(const google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena, size_t* len) {
1752   char* ptr;
1753   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions_msg_init, 0, arena, &ptr, len);
1754   return ptr;
1755 }
1756 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_serialize_ex(const google_protobuf_ExtensionRangeOptions* msg, int options,
1757                                  upb_Arena* arena, size_t* len) {
1758   char* ptr;
1759   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions_msg_init, options, arena, &ptr, len);
1760   return ptr;
1761 }
1762 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_declaration(google_protobuf_ExtensionRangeOptions* msg) {
1763   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1764   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1765 }
1766 UPB_INLINE const google_protobuf_ExtensionRangeOptions_Declaration* const* google_protobuf_ExtensionRangeOptions_declaration(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1767   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1768   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ExtensionRangeOptions__Declaration_msg_init);
1769   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1770   if (arr) {
1771     if (size) *size = arr->UPB_PRIVATE(size);
1772     return (const google_protobuf_ExtensionRangeOptions_Declaration* const*)upb_Array_DataPtr(arr);
1773   } else {
1774     if (size) *size = 0;
1775     return NULL;
1776   }
1777 }
1778 UPB_INLINE const upb_Array* _google_protobuf_ExtensionRangeOptions_declaration_upb_array(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1779   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1780   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ExtensionRangeOptions__Declaration_msg_init);
1781   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1782   if (size) {
1783     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1784   }
1785   return arr;
1786 }
1787 UPB_INLINE upb_Array* _google_protobuf_ExtensionRangeOptions_declaration_mutable_upb_array(google_protobuf_ExtensionRangeOptions* msg, size_t* size, upb_Arena* arena) {
1788   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1789   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ExtensionRangeOptions__Declaration_msg_init);
1790   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1791                                                        &field, arena);
1792   if (size) {
1793     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1794   }
1795   return arr;
1796 }
1797 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_verification(google_protobuf_ExtensionRangeOptions* msg) {
1798   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1799   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1800 }
1801 UPB_INLINE int32_t google_protobuf_ExtensionRangeOptions_verification(const google_protobuf_ExtensionRangeOptions* msg) {
1802   int32_t default_val = 1;
1803   int32_t ret;
1804   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1805   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1806                                     &default_val, &ret);
1807   return ret;
1808 }
1809 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_has_verification(const google_protobuf_ExtensionRangeOptions* msg) {
1810   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1811   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1812 }
1813 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_features(google_protobuf_ExtensionRangeOptions* msg) {
1814   const upb_MiniTableField field = {50, UPB_SIZE(20, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1815   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1816 }
1817 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_ExtensionRangeOptions_features(const google_protobuf_ExtensionRangeOptions* msg) {
1818   const google_protobuf_FeatureSet* default_val = NULL;
1819   const google_protobuf_FeatureSet* ret;
1820   const upb_MiniTableField field = {50, UPB_SIZE(20, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1821   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
1822   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1823                                     &default_val, &ret);
1824   return ret;
1825 }
1826 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_has_features(const google_protobuf_ExtensionRangeOptions* msg) {
1827   const upb_MiniTableField field = {50, UPB_SIZE(20, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1828   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1829 }
1830 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg) {
1831   const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1832   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1833 }
1834 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_ExtensionRangeOptions_uninterpreted_option(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1835   const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1836   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
1837   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1838   if (arr) {
1839     if (size) *size = arr->UPB_PRIVATE(size);
1840     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
1841   } else {
1842     if (size) *size = 0;
1843     return NULL;
1844   }
1845 }
1846 UPB_INLINE const upb_Array* _google_protobuf_ExtensionRangeOptions_uninterpreted_option_upb_array(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1847   const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1848   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
1849   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1850   if (size) {
1851     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1852   }
1853   return arr;
1854 }
1855 UPB_INLINE upb_Array* _google_protobuf_ExtensionRangeOptions_uninterpreted_option_mutable_upb_array(google_protobuf_ExtensionRangeOptions* msg, size_t* size, upb_Arena* arena) {
1856   const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1857   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
1858   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1859                                                        &field, arena);
1860   if (size) {
1861     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1862   }
1863   return arr;
1864 }
1865 
1866 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration** google_protobuf_ExtensionRangeOptions_mutable_declaration(google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1867   upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1868   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ExtensionRangeOptions__Declaration_msg_init);
1869   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1870   if (arr) {
1871     if (size) *size = arr->UPB_PRIVATE(size);
1872     return (google_protobuf_ExtensionRangeOptions_Declaration**)upb_Array_MutableDataPtr(arr);
1873   } else {
1874     if (size) *size = 0;
1875     return NULL;
1876   }
1877 }
1878 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration** google_protobuf_ExtensionRangeOptions_resize_declaration(google_protobuf_ExtensionRangeOptions* msg, size_t size, upb_Arena* arena) {
1879   upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1880   return (google_protobuf_ExtensionRangeOptions_Declaration**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1881                                                    &field, size, arena);
1882 }
1883 UPB_INLINE struct google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_add_declaration(google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena) {
1884   upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1885   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ExtensionRangeOptions__Declaration_msg_init);
1886   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1887       UPB_UPCAST(msg), &field, arena);
1888   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1889                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1890     return NULL;
1891   }
1892   struct google_protobuf_ExtensionRangeOptions_Declaration* sub = (struct google_protobuf_ExtensionRangeOptions_Declaration*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions__Declaration_msg_init, arena);
1893   if (!arr || !sub) return NULL;
1894   UPB_PRIVATE(_upb_Array_Set)
1895   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1896   return sub;
1897 }
1898 UPB_INLINE void google_protobuf_ExtensionRangeOptions_set_verification(google_protobuf_ExtensionRangeOptions *msg, int32_t value) {
1899   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1900   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
1901 }
1902 UPB_INLINE void google_protobuf_ExtensionRangeOptions_set_features(google_protobuf_ExtensionRangeOptions *msg, google_protobuf_FeatureSet* value) {
1903   const upb_MiniTableField field = {50, UPB_SIZE(20, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1904   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
1905   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
1906 }
1907 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_ExtensionRangeOptions_mutable_features(google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena) {
1908   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_ExtensionRangeOptions_features(msg);
1909   if (sub == NULL) {
1910     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
1911     if (sub) google_protobuf_ExtensionRangeOptions_set_features(msg, sub);
1912   }
1913   return sub;
1914 }
1915 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ExtensionRangeOptions_mutable_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1916   upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1917   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
1918   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1919   if (arr) {
1920     if (size) *size = arr->UPB_PRIVATE(size);
1921     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
1922   } else {
1923     if (size) *size = 0;
1924     return NULL;
1925   }
1926 }
1927 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ExtensionRangeOptions_resize_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg, size_t size, upb_Arena* arena) {
1928   upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1929   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1930                                                    &field, size, arena);
1931 }
1932 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_ExtensionRangeOptions_add_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena) {
1933   upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1934   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
1935   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1936       UPB_UPCAST(msg), &field, arena);
1937   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1938                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1939     return NULL;
1940   }
1941   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
1942   if (!arr || !sub) return NULL;
1943   UPB_PRIVATE(_upb_Array_Set)
1944   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1945   return sub;
1946 }
1947 
1948 /* google.protobuf.ExtensionRangeOptions.Declaration */
1949 
1950 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_Declaration_new(upb_Arena* arena) {
1951   return (google_protobuf_ExtensionRangeOptions_Declaration*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions__Declaration_msg_init, arena);
1952 }
1953 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_Declaration_parse(const char* buf, size_t size, upb_Arena* arena) {
1954   google_protobuf_ExtensionRangeOptions_Declaration* ret = google_protobuf_ExtensionRangeOptions_Declaration_new(arena);
1955   if (!ret) return NULL;
1956   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, NULL, 0, arena) !=
1957       kUpb_DecodeStatus_Ok) {
1958     return NULL;
1959   }
1960   return ret;
1961 }
1962 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_Declaration_parse_ex(const char* buf, size_t size,
1963                            const upb_ExtensionRegistry* extreg,
1964                            int options, upb_Arena* arena) {
1965   google_protobuf_ExtensionRangeOptions_Declaration* ret = google_protobuf_ExtensionRangeOptions_Declaration_new(arena);
1966   if (!ret) return NULL;
1967   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, extreg, options,
1968                  arena) != kUpb_DecodeStatus_Ok) {
1969     return NULL;
1970   }
1971   return ret;
1972 }
1973 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_Declaration_serialize(const google_protobuf_ExtensionRangeOptions_Declaration* msg, upb_Arena* arena, size_t* len) {
1974   char* ptr;
1975   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, 0, arena, &ptr, len);
1976   return ptr;
1977 }
1978 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_Declaration_serialize_ex(const google_protobuf_ExtensionRangeOptions_Declaration* msg, int options,
1979                                  upb_Arena* arena, size_t* len) {
1980   char* ptr;
1981   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, options, arena, &ptr, len);
1982   return ptr;
1983 }
1984 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_number(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1985   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1986   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1987 }
1988 UPB_INLINE int32_t google_protobuf_ExtensionRangeOptions_Declaration_number(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1989   int32_t default_val = (int32_t)0;
1990   int32_t ret;
1991   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1992   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1993                                     &default_val, &ret);
1994   return ret;
1995 }
1996 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_number(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1997   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1998   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1999 }
2000 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_full_name(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2001   const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2002   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2003 }
2004 UPB_INLINE upb_StringView google_protobuf_ExtensionRangeOptions_Declaration_full_name(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2005   upb_StringView default_val = upb_StringView_FromString("");
2006   upb_StringView ret;
2007   const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2008   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2009                                     &default_val, &ret);
2010   return ret;
2011 }
2012 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_full_name(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2013   const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2014   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2015 }
2016 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_type(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2017   const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2018   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2019 }
2020 UPB_INLINE upb_StringView google_protobuf_ExtensionRangeOptions_Declaration_type(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2021   upb_StringView default_val = upb_StringView_FromString("");
2022   upb_StringView ret;
2023   const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2024   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2025                                     &default_val, &ret);
2026   return ret;
2027 }
2028 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_type(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2029   const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2030   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2031 }
2032 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_reserved(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2033   const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2034   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2035 }
2036 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_reserved(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2037   bool default_val = false;
2038   bool ret;
2039   const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2040   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2041                                     &default_val, &ret);
2042   return ret;
2043 }
2044 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_reserved(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2045   const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2046   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2047 }
2048 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_repeated(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2049   const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2050   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2051 }
2052 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_repeated(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2053   bool default_val = false;
2054   bool ret;
2055   const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2056   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2057                                     &default_val, &ret);
2058   return ret;
2059 }
2060 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_repeated(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
2061   const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2062   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2063 }
2064 
2065 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_number(google_protobuf_ExtensionRangeOptions_Declaration *msg, int32_t value) {
2066   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2067   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2068 }
2069 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_full_name(google_protobuf_ExtensionRangeOptions_Declaration *msg, upb_StringView value) {
2070   const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2071   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2072 }
2073 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_type(google_protobuf_ExtensionRangeOptions_Declaration *msg, upb_StringView value) {
2074   const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2075   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2076 }
2077 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_reserved(google_protobuf_ExtensionRangeOptions_Declaration *msg, bool value) {
2078   const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2079   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2080 }
2081 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_repeated(google_protobuf_ExtensionRangeOptions_Declaration *msg, bool value) {
2082   const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2083   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2084 }
2085 
2086 /* google.protobuf.FieldDescriptorProto */
2087 
2088 UPB_INLINE google_protobuf_FieldDescriptorProto* google_protobuf_FieldDescriptorProto_new(upb_Arena* arena) {
2089   return (google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
2090 }
2091 UPB_INLINE google_protobuf_FieldDescriptorProto* google_protobuf_FieldDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2092   google_protobuf_FieldDescriptorProto* ret = google_protobuf_FieldDescriptorProto_new(arena);
2093   if (!ret) return NULL;
2094   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldDescriptorProto_msg_init, NULL, 0, arena) !=
2095       kUpb_DecodeStatus_Ok) {
2096     return NULL;
2097   }
2098   return ret;
2099 }
2100 UPB_INLINE google_protobuf_FieldDescriptorProto* google_protobuf_FieldDescriptorProto_parse_ex(const char* buf, size_t size,
2101                            const upb_ExtensionRegistry* extreg,
2102                            int options, upb_Arena* arena) {
2103   google_protobuf_FieldDescriptorProto* ret = google_protobuf_FieldDescriptorProto_new(arena);
2104   if (!ret) return NULL;
2105   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldDescriptorProto_msg_init, extreg, options,
2106                  arena) != kUpb_DecodeStatus_Ok) {
2107     return NULL;
2108   }
2109   return ret;
2110 }
2111 UPB_INLINE char* google_protobuf_FieldDescriptorProto_serialize(const google_protobuf_FieldDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2112   char* ptr;
2113   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldDescriptorProto_msg_init, 0, arena, &ptr, len);
2114   return ptr;
2115 }
2116 UPB_INLINE char* google_protobuf_FieldDescriptorProto_serialize_ex(const google_protobuf_FieldDescriptorProto* msg, int options,
2117                                  upb_Arena* arena, size_t* len) {
2118   char* ptr;
2119   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldDescriptorProto_msg_init, options, arena, &ptr, len);
2120   return ptr;
2121 }
2122 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_name(google_protobuf_FieldDescriptorProto* msg) {
2123   const upb_MiniTableField field = {1, UPB_SIZE(36, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2124   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2125 }
2126 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_name(const google_protobuf_FieldDescriptorProto* msg) {
2127   upb_StringView default_val = upb_StringView_FromString("");
2128   upb_StringView ret;
2129   const upb_MiniTableField field = {1, UPB_SIZE(36, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2130   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2131                                     &default_val, &ret);
2132   return ret;
2133 }
2134 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_name(const google_protobuf_FieldDescriptorProto* msg) {
2135   const upb_MiniTableField field = {1, UPB_SIZE(36, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2136   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2137 }
2138 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_extendee(google_protobuf_FieldDescriptorProto* msg) {
2139   const upb_MiniTableField field = {2, UPB_SIZE(44, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2140   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2141 }
2142 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_extendee(const google_protobuf_FieldDescriptorProto* msg) {
2143   upb_StringView default_val = upb_StringView_FromString("");
2144   upb_StringView ret;
2145   const upb_MiniTableField field = {2, UPB_SIZE(44, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2146   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2147                                     &default_val, &ret);
2148   return ret;
2149 }
2150 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_extendee(const google_protobuf_FieldDescriptorProto* msg) {
2151   const upb_MiniTableField field = {2, UPB_SIZE(44, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2152   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2153 }
2154 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_number(google_protobuf_FieldDescriptorProto* msg) {
2155   const upb_MiniTableField field = {3, 12, 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2156   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2157 }
2158 UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_number(const google_protobuf_FieldDescriptorProto* msg) {
2159   int32_t default_val = (int32_t)0;
2160   int32_t ret;
2161   const upb_MiniTableField field = {3, 12, 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2162   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2163                                     &default_val, &ret);
2164   return ret;
2165 }
2166 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_number(const google_protobuf_FieldDescriptorProto* msg) {
2167   const upb_MiniTableField field = {3, 12, 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2168   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2169 }
2170 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_label(google_protobuf_FieldDescriptorProto* msg) {
2171   const upb_MiniTableField field = {4, 16, 67, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2172   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2173 }
2174 UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_label(const google_protobuf_FieldDescriptorProto* msg) {
2175   int32_t default_val = 1;
2176   int32_t ret;
2177   const upb_MiniTableField field = {4, 16, 67, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2178   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2179                                     &default_val, &ret);
2180   return ret;
2181 }
2182 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_label(const google_protobuf_FieldDescriptorProto* msg) {
2183   const upb_MiniTableField field = {4, 16, 67, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2184   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2185 }
2186 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_type(google_protobuf_FieldDescriptorProto* msg) {
2187   const upb_MiniTableField field = {5, 20, 68, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2188   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2189 }
2190 UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_type(const google_protobuf_FieldDescriptorProto* msg) {
2191   int32_t default_val = 1;
2192   int32_t ret;
2193   const upb_MiniTableField field = {5, 20, 68, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2194   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2195                                     &default_val, &ret);
2196   return ret;
2197 }
2198 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_type(const google_protobuf_FieldDescriptorProto* msg) {
2199   const upb_MiniTableField field = {5, 20, 68, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2200   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2201 }
2202 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_type_name(google_protobuf_FieldDescriptorProto* msg) {
2203   const upb_MiniTableField field = {6, UPB_SIZE(52, 64), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2204   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2205 }
2206 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_type_name(const google_protobuf_FieldDescriptorProto* msg) {
2207   upb_StringView default_val = upb_StringView_FromString("");
2208   upb_StringView ret;
2209   const upb_MiniTableField field = {6, UPB_SIZE(52, 64), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2210   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2211                                     &default_val, &ret);
2212   return ret;
2213 }
2214 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_type_name(const google_protobuf_FieldDescriptorProto* msg) {
2215   const upb_MiniTableField field = {6, UPB_SIZE(52, 64), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2216   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2217 }
2218 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_default_value(google_protobuf_FieldDescriptorProto* msg) {
2219   const upb_MiniTableField field = {7, UPB_SIZE(60, 80), 70, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2220   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2221 }
2222 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_default_value(const google_protobuf_FieldDescriptorProto* msg) {
2223   upb_StringView default_val = upb_StringView_FromString("");
2224   upb_StringView ret;
2225   const upb_MiniTableField field = {7, UPB_SIZE(60, 80), 70, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2226   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2227                                     &default_val, &ret);
2228   return ret;
2229 }
2230 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_default_value(const google_protobuf_FieldDescriptorProto* msg) {
2231   const upb_MiniTableField field = {7, UPB_SIZE(60, 80), 70, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2232   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2233 }
2234 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_options(google_protobuf_FieldDescriptorProto* msg) {
2235   const upb_MiniTableField field = {8, UPB_SIZE(24, 96), 71, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2236   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2237 }
2238 UPB_INLINE const google_protobuf_FieldOptions* google_protobuf_FieldDescriptorProto_options(const google_protobuf_FieldDescriptorProto* msg) {
2239   const google_protobuf_FieldOptions* default_val = NULL;
2240   const google_protobuf_FieldOptions* ret;
2241   const upb_MiniTableField field = {8, UPB_SIZE(24, 96), 71, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2242   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldOptions_msg_init);
2243   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2244                                     &default_val, &ret);
2245   return ret;
2246 }
2247 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_options(const google_protobuf_FieldDescriptorProto* msg) {
2248   const upb_MiniTableField field = {8, UPB_SIZE(24, 96), 71, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2249   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2250 }
2251 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_oneof_index(google_protobuf_FieldDescriptorProto* msg) {
2252   const upb_MiniTableField field = {9, UPB_SIZE(28, 24), 72, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2253   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2254 }
2255 UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_oneof_index(const google_protobuf_FieldDescriptorProto* msg) {
2256   int32_t default_val = (int32_t)0;
2257   int32_t ret;
2258   const upb_MiniTableField field = {9, UPB_SIZE(28, 24), 72, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2259   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2260                                     &default_val, &ret);
2261   return ret;
2262 }
2263 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_oneof_index(const google_protobuf_FieldDescriptorProto* msg) {
2264   const upb_MiniTableField field = {9, UPB_SIZE(28, 24), 72, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2265   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2266 }
2267 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_json_name(google_protobuf_FieldDescriptorProto* msg) {
2268   const upb_MiniTableField field = {10, UPB_SIZE(68, 104), 73, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2269   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2270 }
2271 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_json_name(const google_protobuf_FieldDescriptorProto* msg) {
2272   upb_StringView default_val = upb_StringView_FromString("");
2273   upb_StringView ret;
2274   const upb_MiniTableField field = {10, UPB_SIZE(68, 104), 73, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2275   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2276                                     &default_val, &ret);
2277   return ret;
2278 }
2279 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_json_name(const google_protobuf_FieldDescriptorProto* msg) {
2280   const upb_MiniTableField field = {10, UPB_SIZE(68, 104), 73, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2281   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2282 }
2283 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_proto3_optional(google_protobuf_FieldDescriptorProto* msg) {
2284   const upb_MiniTableField field = {17, UPB_SIZE(32, 28), 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2285   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2286 }
2287 UPB_INLINE bool google_protobuf_FieldDescriptorProto_proto3_optional(const google_protobuf_FieldDescriptorProto* msg) {
2288   bool default_val = false;
2289   bool ret;
2290   const upb_MiniTableField field = {17, UPB_SIZE(32, 28), 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2291   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2292                                     &default_val, &ret);
2293   return ret;
2294 }
2295 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_proto3_optional(const google_protobuf_FieldDescriptorProto* msg) {
2296   const upb_MiniTableField field = {17, UPB_SIZE(32, 28), 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2297   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2298 }
2299 
2300 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_name(google_protobuf_FieldDescriptorProto *msg, upb_StringView value) {
2301   const upb_MiniTableField field = {1, UPB_SIZE(36, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2302   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2303 }
2304 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_extendee(google_protobuf_FieldDescriptorProto *msg, upb_StringView value) {
2305   const upb_MiniTableField field = {2, UPB_SIZE(44, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2306   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2307 }
2308 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_number(google_protobuf_FieldDescriptorProto *msg, int32_t value) {
2309   const upb_MiniTableField field = {3, 12, 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2310   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2311 }
2312 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_label(google_protobuf_FieldDescriptorProto *msg, int32_t value) {
2313   const upb_MiniTableField field = {4, 16, 67, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2314   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2315 }
2316 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_type(google_protobuf_FieldDescriptorProto *msg, int32_t value) {
2317   const upb_MiniTableField field = {5, 20, 68, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2318   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2319 }
2320 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_type_name(google_protobuf_FieldDescriptorProto *msg, upb_StringView value) {
2321   const upb_MiniTableField field = {6, UPB_SIZE(52, 64), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2322   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2323 }
2324 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_default_value(google_protobuf_FieldDescriptorProto *msg, upb_StringView value) {
2325   const upb_MiniTableField field = {7, UPB_SIZE(60, 80), 70, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2326   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2327 }
2328 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_options(google_protobuf_FieldDescriptorProto *msg, google_protobuf_FieldOptions* value) {
2329   const upb_MiniTableField field = {8, UPB_SIZE(24, 96), 71, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2330   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldOptions_msg_init);
2331   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2332 }
2333 UPB_INLINE struct google_protobuf_FieldOptions* google_protobuf_FieldDescriptorProto_mutable_options(google_protobuf_FieldDescriptorProto* msg, upb_Arena* arena) {
2334   struct google_protobuf_FieldOptions* sub = (struct google_protobuf_FieldOptions*)google_protobuf_FieldDescriptorProto_options(msg);
2335   if (sub == NULL) {
2336     sub = (struct google_protobuf_FieldOptions*)_upb_Message_New(&google__protobuf__FieldOptions_msg_init, arena);
2337     if (sub) google_protobuf_FieldDescriptorProto_set_options(msg, sub);
2338   }
2339   return sub;
2340 }
2341 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_oneof_index(google_protobuf_FieldDescriptorProto *msg, int32_t value) {
2342   const upb_MiniTableField field = {9, UPB_SIZE(28, 24), 72, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2343   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2344 }
2345 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_json_name(google_protobuf_FieldDescriptorProto *msg, upb_StringView value) {
2346   const upb_MiniTableField field = {10, UPB_SIZE(68, 104), 73, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2347   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2348 }
2349 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_proto3_optional(google_protobuf_FieldDescriptorProto *msg, bool value) {
2350   const upb_MiniTableField field = {17, UPB_SIZE(32, 28), 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2351   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2352 }
2353 
2354 /* google.protobuf.OneofDescriptorProto */
2355 
2356 UPB_INLINE google_protobuf_OneofDescriptorProto* google_protobuf_OneofDescriptorProto_new(upb_Arena* arena) {
2357   return (google_protobuf_OneofDescriptorProto*)_upb_Message_New(&google__protobuf__OneofDescriptorProto_msg_init, arena);
2358 }
2359 UPB_INLINE google_protobuf_OneofDescriptorProto* google_protobuf_OneofDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2360   google_protobuf_OneofDescriptorProto* ret = google_protobuf_OneofDescriptorProto_new(arena);
2361   if (!ret) return NULL;
2362   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__OneofDescriptorProto_msg_init, NULL, 0, arena) !=
2363       kUpb_DecodeStatus_Ok) {
2364     return NULL;
2365   }
2366   return ret;
2367 }
2368 UPB_INLINE google_protobuf_OneofDescriptorProto* google_protobuf_OneofDescriptorProto_parse_ex(const char* buf, size_t size,
2369                            const upb_ExtensionRegistry* extreg,
2370                            int options, upb_Arena* arena) {
2371   google_protobuf_OneofDescriptorProto* ret = google_protobuf_OneofDescriptorProto_new(arena);
2372   if (!ret) return NULL;
2373   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__OneofDescriptorProto_msg_init, extreg, options,
2374                  arena) != kUpb_DecodeStatus_Ok) {
2375     return NULL;
2376   }
2377   return ret;
2378 }
2379 UPB_INLINE char* google_protobuf_OneofDescriptorProto_serialize(const google_protobuf_OneofDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2380   char* ptr;
2381   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__OneofDescriptorProto_msg_init, 0, arena, &ptr, len);
2382   return ptr;
2383 }
2384 UPB_INLINE char* google_protobuf_OneofDescriptorProto_serialize_ex(const google_protobuf_OneofDescriptorProto* msg, int options,
2385                                  upb_Arena* arena, size_t* len) {
2386   char* ptr;
2387   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__OneofDescriptorProto_msg_init, options, arena, &ptr, len);
2388   return ptr;
2389 }
2390 UPB_INLINE void google_protobuf_OneofDescriptorProto_clear_name(google_protobuf_OneofDescriptorProto* msg) {
2391   const upb_MiniTableField field = {1, 16, 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2392   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2393 }
2394 UPB_INLINE upb_StringView google_protobuf_OneofDescriptorProto_name(const google_protobuf_OneofDescriptorProto* msg) {
2395   upb_StringView default_val = upb_StringView_FromString("");
2396   upb_StringView ret;
2397   const upb_MiniTableField field = {1, 16, 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2398   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2399                                     &default_val, &ret);
2400   return ret;
2401 }
2402 UPB_INLINE bool google_protobuf_OneofDescriptorProto_has_name(const google_protobuf_OneofDescriptorProto* msg) {
2403   const upb_MiniTableField field = {1, 16, 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2404   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2405 }
2406 UPB_INLINE void google_protobuf_OneofDescriptorProto_clear_options(google_protobuf_OneofDescriptorProto* msg) {
2407   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2408   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2409 }
2410 UPB_INLINE const google_protobuf_OneofOptions* google_protobuf_OneofDescriptorProto_options(const google_protobuf_OneofDescriptorProto* msg) {
2411   const google_protobuf_OneofOptions* default_val = NULL;
2412   const google_protobuf_OneofOptions* ret;
2413   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2414   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__OneofOptions_msg_init);
2415   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2416                                     &default_val, &ret);
2417   return ret;
2418 }
2419 UPB_INLINE bool google_protobuf_OneofDescriptorProto_has_options(const google_protobuf_OneofDescriptorProto* msg) {
2420   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2421   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2422 }
2423 
2424 UPB_INLINE void google_protobuf_OneofDescriptorProto_set_name(google_protobuf_OneofDescriptorProto *msg, upb_StringView value) {
2425   const upb_MiniTableField field = {1, 16, 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2426   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2427 }
2428 UPB_INLINE void google_protobuf_OneofDescriptorProto_set_options(google_protobuf_OneofDescriptorProto *msg, google_protobuf_OneofOptions* value) {
2429   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2430   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__OneofOptions_msg_init);
2431   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2432 }
2433 UPB_INLINE struct google_protobuf_OneofOptions* google_protobuf_OneofDescriptorProto_mutable_options(google_protobuf_OneofDescriptorProto* msg, upb_Arena* arena) {
2434   struct google_protobuf_OneofOptions* sub = (struct google_protobuf_OneofOptions*)google_protobuf_OneofDescriptorProto_options(msg);
2435   if (sub == NULL) {
2436     sub = (struct google_protobuf_OneofOptions*)_upb_Message_New(&google__protobuf__OneofOptions_msg_init, arena);
2437     if (sub) google_protobuf_OneofDescriptorProto_set_options(msg, sub);
2438   }
2439   return sub;
2440 }
2441 
2442 /* google.protobuf.EnumDescriptorProto */
2443 
2444 UPB_INLINE google_protobuf_EnumDescriptorProto* google_protobuf_EnumDescriptorProto_new(upb_Arena* arena) {
2445   return (google_protobuf_EnumDescriptorProto*)_upb_Message_New(&google__protobuf__EnumDescriptorProto_msg_init, arena);
2446 }
2447 UPB_INLINE google_protobuf_EnumDescriptorProto* google_protobuf_EnumDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2448   google_protobuf_EnumDescriptorProto* ret = google_protobuf_EnumDescriptorProto_new(arena);
2449   if (!ret) return NULL;
2450   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumDescriptorProto_msg_init, NULL, 0, arena) !=
2451       kUpb_DecodeStatus_Ok) {
2452     return NULL;
2453   }
2454   return ret;
2455 }
2456 UPB_INLINE google_protobuf_EnumDescriptorProto* google_protobuf_EnumDescriptorProto_parse_ex(const char* buf, size_t size,
2457                            const upb_ExtensionRegistry* extreg,
2458                            int options, upb_Arena* arena) {
2459   google_protobuf_EnumDescriptorProto* ret = google_protobuf_EnumDescriptorProto_new(arena);
2460   if (!ret) return NULL;
2461   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumDescriptorProto_msg_init, extreg, options,
2462                  arena) != kUpb_DecodeStatus_Ok) {
2463     return NULL;
2464   }
2465   return ret;
2466 }
2467 UPB_INLINE char* google_protobuf_EnumDescriptorProto_serialize(const google_protobuf_EnumDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2468   char* ptr;
2469   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumDescriptorProto_msg_init, 0, arena, &ptr, len);
2470   return ptr;
2471 }
2472 UPB_INLINE char* google_protobuf_EnumDescriptorProto_serialize_ex(const google_protobuf_EnumDescriptorProto* msg, int options,
2473                                  upb_Arena* arena, size_t* len) {
2474   char* ptr;
2475   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumDescriptorProto_msg_init, options, arena, &ptr, len);
2476   return ptr;
2477 }
2478 UPB_INLINE void google_protobuf_EnumDescriptorProto_clear_name(google_protobuf_EnumDescriptorProto* msg) {
2479   const upb_MiniTableField field = {1, UPB_SIZE(28, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2480   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2481 }
2482 UPB_INLINE upb_StringView google_protobuf_EnumDescriptorProto_name(const google_protobuf_EnumDescriptorProto* msg) {
2483   upb_StringView default_val = upb_StringView_FromString("");
2484   upb_StringView ret;
2485   const upb_MiniTableField field = {1, UPB_SIZE(28, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2486   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2487                                     &default_val, &ret);
2488   return ret;
2489 }
2490 UPB_INLINE bool google_protobuf_EnumDescriptorProto_has_name(const google_protobuf_EnumDescriptorProto* msg) {
2491   const upb_MiniTableField field = {1, UPB_SIZE(28, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2492   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2493 }
2494 UPB_INLINE void google_protobuf_EnumDescriptorProto_clear_value(google_protobuf_EnumDescriptorProto* msg) {
2495   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2496   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2497 }
2498 UPB_INLINE const google_protobuf_EnumValueDescriptorProto* const* google_protobuf_EnumDescriptorProto_value(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2499   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2500   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumValueDescriptorProto_msg_init);
2501   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2502   if (arr) {
2503     if (size) *size = arr->UPB_PRIVATE(size);
2504     return (const google_protobuf_EnumValueDescriptorProto* const*)upb_Array_DataPtr(arr);
2505   } else {
2506     if (size) *size = 0;
2507     return NULL;
2508   }
2509 }
2510 UPB_INLINE const upb_Array* _google_protobuf_EnumDescriptorProto_value_upb_array(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2511   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2512   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumValueDescriptorProto_msg_init);
2513   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2514   if (size) {
2515     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2516   }
2517   return arr;
2518 }
2519 UPB_INLINE upb_Array* _google_protobuf_EnumDescriptorProto_value_mutable_upb_array(google_protobuf_EnumDescriptorProto* msg, size_t* size, upb_Arena* arena) {
2520   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2521   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumValueDescriptorProto_msg_init);
2522   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
2523                                                        &field, arena);
2524   if (size) {
2525     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2526   }
2527   return arr;
2528 }
2529 UPB_INLINE void google_protobuf_EnumDescriptorProto_clear_options(google_protobuf_EnumDescriptorProto* msg) {
2530   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2531   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2532 }
2533 UPB_INLINE const google_protobuf_EnumOptions* google_protobuf_EnumDescriptorProto_options(const google_protobuf_EnumDescriptorProto* msg) {
2534   const google_protobuf_EnumOptions* default_val = NULL;
2535   const google_protobuf_EnumOptions* ret;
2536   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2537   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumOptions_msg_init);
2538   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2539                                     &default_val, &ret);
2540   return ret;
2541 }
2542 UPB_INLINE bool google_protobuf_EnumDescriptorProto_has_options(const google_protobuf_EnumDescriptorProto* msg) {
2543   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2544   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2545 }
2546 UPB_INLINE void google_protobuf_EnumDescriptorProto_clear_reserved_range(google_protobuf_EnumDescriptorProto* msg) {
2547   const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2548   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2549 }
2550 UPB_INLINE const google_protobuf_EnumDescriptorProto_EnumReservedRange* const* google_protobuf_EnumDescriptorProto_reserved_range(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2551   const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2552   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init);
2553   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2554   if (arr) {
2555     if (size) *size = arr->UPB_PRIVATE(size);
2556     return (const google_protobuf_EnumDescriptorProto_EnumReservedRange* const*)upb_Array_DataPtr(arr);
2557   } else {
2558     if (size) *size = 0;
2559     return NULL;
2560   }
2561 }
2562 UPB_INLINE const upb_Array* _google_protobuf_EnumDescriptorProto_reserved_range_upb_array(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2563   const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2564   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init);
2565   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2566   if (size) {
2567     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2568   }
2569   return arr;
2570 }
2571 UPB_INLINE upb_Array* _google_protobuf_EnumDescriptorProto_reserved_range_mutable_upb_array(google_protobuf_EnumDescriptorProto* msg, size_t* size, upb_Arena* arena) {
2572   const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2573   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init);
2574   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
2575                                                        &field, arena);
2576   if (size) {
2577     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2578   }
2579   return arr;
2580 }
2581 UPB_INLINE void google_protobuf_EnumDescriptorProto_clear_reserved_name(google_protobuf_EnumDescriptorProto* msg) {
2582   const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2583   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2584 }
2585 UPB_INLINE upb_StringView const* google_protobuf_EnumDescriptorProto_reserved_name(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2586   const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2587   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2588   if (arr) {
2589     if (size) *size = arr->UPB_PRIVATE(size);
2590     return (upb_StringView const*)upb_Array_DataPtr(arr);
2591   } else {
2592     if (size) *size = 0;
2593     return NULL;
2594   }
2595 }
2596 UPB_INLINE const upb_Array* _google_protobuf_EnumDescriptorProto_reserved_name_upb_array(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2597   const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2598   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2599   if (size) {
2600     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2601   }
2602   return arr;
2603 }
2604 UPB_INLINE upb_Array* _google_protobuf_EnumDescriptorProto_reserved_name_mutable_upb_array(google_protobuf_EnumDescriptorProto* msg, size_t* size, upb_Arena* arena) {
2605   const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2606   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
2607                                                        &field, arena);
2608   if (size) {
2609     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2610   }
2611   return arr;
2612 }
2613 
2614 UPB_INLINE void google_protobuf_EnumDescriptorProto_set_name(google_protobuf_EnumDescriptorProto *msg, upb_StringView value) {
2615   const upb_MiniTableField field = {1, UPB_SIZE(28, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2616   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2617 }
2618 UPB_INLINE google_protobuf_EnumValueDescriptorProto** google_protobuf_EnumDescriptorProto_mutable_value(google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2619   upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2620   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumValueDescriptorProto_msg_init);
2621   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
2622   if (arr) {
2623     if (size) *size = arr->UPB_PRIVATE(size);
2624     return (google_protobuf_EnumValueDescriptorProto**)upb_Array_MutableDataPtr(arr);
2625   } else {
2626     if (size) *size = 0;
2627     return NULL;
2628   }
2629 }
2630 UPB_INLINE google_protobuf_EnumValueDescriptorProto** google_protobuf_EnumDescriptorProto_resize_value(google_protobuf_EnumDescriptorProto* msg, size_t size, upb_Arena* arena) {
2631   upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2632   return (google_protobuf_EnumValueDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
2633                                                    &field, size, arena);
2634 }
2635 UPB_INLINE struct google_protobuf_EnumValueDescriptorProto* google_protobuf_EnumDescriptorProto_add_value(google_protobuf_EnumDescriptorProto* msg, upb_Arena* arena) {
2636   upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2637   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumValueDescriptorProto_msg_init);
2638   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
2639       UPB_UPCAST(msg), &field, arena);
2640   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
2641                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
2642     return NULL;
2643   }
2644   struct google_protobuf_EnumValueDescriptorProto* sub = (struct google_protobuf_EnumValueDescriptorProto*)_upb_Message_New(&google__protobuf__EnumValueDescriptorProto_msg_init, arena);
2645   if (!arr || !sub) return NULL;
2646   UPB_PRIVATE(_upb_Array_Set)
2647   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
2648   return sub;
2649 }
2650 UPB_INLINE void google_protobuf_EnumDescriptorProto_set_options(google_protobuf_EnumDescriptorProto *msg, google_protobuf_EnumOptions* value) {
2651   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2652   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumOptions_msg_init);
2653   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2654 }
2655 UPB_INLINE struct google_protobuf_EnumOptions* google_protobuf_EnumDescriptorProto_mutable_options(google_protobuf_EnumDescriptorProto* msg, upb_Arena* arena) {
2656   struct google_protobuf_EnumOptions* sub = (struct google_protobuf_EnumOptions*)google_protobuf_EnumDescriptorProto_options(msg);
2657   if (sub == NULL) {
2658     sub = (struct google_protobuf_EnumOptions*)_upb_Message_New(&google__protobuf__EnumOptions_msg_init, arena);
2659     if (sub) google_protobuf_EnumDescriptorProto_set_options(msg, sub);
2660   }
2661   return sub;
2662 }
2663 UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange** google_protobuf_EnumDescriptorProto_mutable_reserved_range(google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2664   upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2665   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init);
2666   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
2667   if (arr) {
2668     if (size) *size = arr->UPB_PRIVATE(size);
2669     return (google_protobuf_EnumDescriptorProto_EnumReservedRange**)upb_Array_MutableDataPtr(arr);
2670   } else {
2671     if (size) *size = 0;
2672     return NULL;
2673   }
2674 }
2675 UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange** google_protobuf_EnumDescriptorProto_resize_reserved_range(google_protobuf_EnumDescriptorProto* msg, size_t size, upb_Arena* arena) {
2676   upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2677   return (google_protobuf_EnumDescriptorProto_EnumReservedRange**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
2678                                                    &field, size, arena);
2679 }
2680 UPB_INLINE struct google_protobuf_EnumDescriptorProto_EnumReservedRange* google_protobuf_EnumDescriptorProto_add_reserved_range(google_protobuf_EnumDescriptorProto* msg, upb_Arena* arena) {
2681   upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2682   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init);
2683   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
2684       UPB_UPCAST(msg), &field, arena);
2685   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
2686                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
2687     return NULL;
2688   }
2689   struct google_protobuf_EnumDescriptorProto_EnumReservedRange* sub = (struct google_protobuf_EnumDescriptorProto_EnumReservedRange*)_upb_Message_New(&google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, arena);
2690   if (!arr || !sub) return NULL;
2691   UPB_PRIVATE(_upb_Array_Set)
2692   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
2693   return sub;
2694 }
2695 UPB_INLINE upb_StringView* google_protobuf_EnumDescriptorProto_mutable_reserved_name(google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2696   upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2697   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
2698   if (arr) {
2699     if (size) *size = arr->UPB_PRIVATE(size);
2700     return (upb_StringView*)upb_Array_MutableDataPtr(arr);
2701   } else {
2702     if (size) *size = 0;
2703     return NULL;
2704   }
2705 }
2706 UPB_INLINE upb_StringView* google_protobuf_EnumDescriptorProto_resize_reserved_name(google_protobuf_EnumDescriptorProto* msg, size_t size, upb_Arena* arena) {
2707   upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2708   return (upb_StringView*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
2709                                                    &field, size, arena);
2710 }
2711 UPB_INLINE bool google_protobuf_EnumDescriptorProto_add_reserved_name(google_protobuf_EnumDescriptorProto* msg, upb_StringView val, upb_Arena* arena) {
2712   upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2713   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
2714       UPB_UPCAST(msg), &field, arena);
2715   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
2716                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
2717     return false;
2718   }
2719   UPB_PRIVATE(_upb_Array_Set)
2720   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
2721   return true;
2722 }
2723 
2724 /* google.protobuf.EnumDescriptorProto.EnumReservedRange */
2725 
2726 UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange* google_protobuf_EnumDescriptorProto_EnumReservedRange_new(upb_Arena* arena) {
2727   return (google_protobuf_EnumDescriptorProto_EnumReservedRange*)_upb_Message_New(&google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, arena);
2728 }
2729 UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange* google_protobuf_EnumDescriptorProto_EnumReservedRange_parse(const char* buf, size_t size, upb_Arena* arena) {
2730   google_protobuf_EnumDescriptorProto_EnumReservedRange* ret = google_protobuf_EnumDescriptorProto_EnumReservedRange_new(arena);
2731   if (!ret) return NULL;
2732   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, NULL, 0, arena) !=
2733       kUpb_DecodeStatus_Ok) {
2734     return NULL;
2735   }
2736   return ret;
2737 }
2738 UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange* google_protobuf_EnumDescriptorProto_EnumReservedRange_parse_ex(const char* buf, size_t size,
2739                            const upb_ExtensionRegistry* extreg,
2740                            int options, upb_Arena* arena) {
2741   google_protobuf_EnumDescriptorProto_EnumReservedRange* ret = google_protobuf_EnumDescriptorProto_EnumReservedRange_new(arena);
2742   if (!ret) return NULL;
2743   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, extreg, options,
2744                  arena) != kUpb_DecodeStatus_Ok) {
2745     return NULL;
2746   }
2747   return ret;
2748 }
2749 UPB_INLINE char* google_protobuf_EnumDescriptorProto_EnumReservedRange_serialize(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg, upb_Arena* arena, size_t* len) {
2750   char* ptr;
2751   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, 0, arena, &ptr, len);
2752   return ptr;
2753 }
2754 UPB_INLINE char* google_protobuf_EnumDescriptorProto_EnumReservedRange_serialize_ex(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg, int options,
2755                                  upb_Arena* arena, size_t* len) {
2756   char* ptr;
2757   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, options, arena, &ptr, len);
2758   return ptr;
2759 }
2760 UPB_INLINE void google_protobuf_EnumDescriptorProto_EnumReservedRange_clear_start(google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2761   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2762   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2763 }
2764 UPB_INLINE int32_t google_protobuf_EnumDescriptorProto_EnumReservedRange_start(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2765   int32_t default_val = (int32_t)0;
2766   int32_t ret;
2767   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2768   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2769                                     &default_val, &ret);
2770   return ret;
2771 }
2772 UPB_INLINE bool google_protobuf_EnumDescriptorProto_EnumReservedRange_has_start(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2773   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2774   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2775 }
2776 UPB_INLINE void google_protobuf_EnumDescriptorProto_EnumReservedRange_clear_end(google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2777   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2778   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2779 }
2780 UPB_INLINE int32_t google_protobuf_EnumDescriptorProto_EnumReservedRange_end(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2781   int32_t default_val = (int32_t)0;
2782   int32_t ret;
2783   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2784   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2785                                     &default_val, &ret);
2786   return ret;
2787 }
2788 UPB_INLINE bool google_protobuf_EnumDescriptorProto_EnumReservedRange_has_end(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2789   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2790   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2791 }
2792 
2793 UPB_INLINE void google_protobuf_EnumDescriptorProto_EnumReservedRange_set_start(google_protobuf_EnumDescriptorProto_EnumReservedRange *msg, int32_t value) {
2794   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2795   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2796 }
2797 UPB_INLINE void google_protobuf_EnumDescriptorProto_EnumReservedRange_set_end(google_protobuf_EnumDescriptorProto_EnumReservedRange *msg, int32_t value) {
2798   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2799   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2800 }
2801 
2802 /* google.protobuf.EnumValueDescriptorProto */
2803 
2804 UPB_INLINE google_protobuf_EnumValueDescriptorProto* google_protobuf_EnumValueDescriptorProto_new(upb_Arena* arena) {
2805   return (google_protobuf_EnumValueDescriptorProto*)_upb_Message_New(&google__protobuf__EnumValueDescriptorProto_msg_init, arena);
2806 }
2807 UPB_INLINE google_protobuf_EnumValueDescriptorProto* google_protobuf_EnumValueDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2808   google_protobuf_EnumValueDescriptorProto* ret = google_protobuf_EnumValueDescriptorProto_new(arena);
2809   if (!ret) return NULL;
2810   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumValueDescriptorProto_msg_init, NULL, 0, arena) !=
2811       kUpb_DecodeStatus_Ok) {
2812     return NULL;
2813   }
2814   return ret;
2815 }
2816 UPB_INLINE google_protobuf_EnumValueDescriptorProto* google_protobuf_EnumValueDescriptorProto_parse_ex(const char* buf, size_t size,
2817                            const upb_ExtensionRegistry* extreg,
2818                            int options, upb_Arena* arena) {
2819   google_protobuf_EnumValueDescriptorProto* ret = google_protobuf_EnumValueDescriptorProto_new(arena);
2820   if (!ret) return NULL;
2821   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumValueDescriptorProto_msg_init, extreg, options,
2822                  arena) != kUpb_DecodeStatus_Ok) {
2823     return NULL;
2824   }
2825   return ret;
2826 }
2827 UPB_INLINE char* google_protobuf_EnumValueDescriptorProto_serialize(const google_protobuf_EnumValueDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2828   char* ptr;
2829   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumValueDescriptorProto_msg_init, 0, arena, &ptr, len);
2830   return ptr;
2831 }
2832 UPB_INLINE char* google_protobuf_EnumValueDescriptorProto_serialize_ex(const google_protobuf_EnumValueDescriptorProto* msg, int options,
2833                                  upb_Arena* arena, size_t* len) {
2834   char* ptr;
2835   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumValueDescriptorProto_msg_init, options, arena, &ptr, len);
2836   return ptr;
2837 }
2838 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_clear_name(google_protobuf_EnumValueDescriptorProto* msg) {
2839   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2840   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2841 }
2842 UPB_INLINE upb_StringView google_protobuf_EnumValueDescriptorProto_name(const google_protobuf_EnumValueDescriptorProto* msg) {
2843   upb_StringView default_val = upb_StringView_FromString("");
2844   upb_StringView ret;
2845   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2846   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2847                                     &default_val, &ret);
2848   return ret;
2849 }
2850 UPB_INLINE bool google_protobuf_EnumValueDescriptorProto_has_name(const google_protobuf_EnumValueDescriptorProto* msg) {
2851   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2852   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2853 }
2854 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_clear_number(google_protobuf_EnumValueDescriptorProto* msg) {
2855   const upb_MiniTableField field = {2, 12, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2856   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2857 }
2858 UPB_INLINE int32_t google_protobuf_EnumValueDescriptorProto_number(const google_protobuf_EnumValueDescriptorProto* msg) {
2859   int32_t default_val = (int32_t)0;
2860   int32_t ret;
2861   const upb_MiniTableField field = {2, 12, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2862   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2863                                     &default_val, &ret);
2864   return ret;
2865 }
2866 UPB_INLINE bool google_protobuf_EnumValueDescriptorProto_has_number(const google_protobuf_EnumValueDescriptorProto* msg) {
2867   const upb_MiniTableField field = {2, 12, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2868   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2869 }
2870 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_clear_options(google_protobuf_EnumValueDescriptorProto* msg) {
2871   const upb_MiniTableField field = {3, UPB_SIZE(16, 32), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2872   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2873 }
2874 UPB_INLINE const google_protobuf_EnumValueOptions* google_protobuf_EnumValueDescriptorProto_options(const google_protobuf_EnumValueDescriptorProto* msg) {
2875   const google_protobuf_EnumValueOptions* default_val = NULL;
2876   const google_protobuf_EnumValueOptions* ret;
2877   const upb_MiniTableField field = {3, UPB_SIZE(16, 32), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2878   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumValueOptions_msg_init);
2879   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2880                                     &default_val, &ret);
2881   return ret;
2882 }
2883 UPB_INLINE bool google_protobuf_EnumValueDescriptorProto_has_options(const google_protobuf_EnumValueDescriptorProto* msg) {
2884   const upb_MiniTableField field = {3, UPB_SIZE(16, 32), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2885   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2886 }
2887 
2888 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_set_name(google_protobuf_EnumValueDescriptorProto *msg, upb_StringView value) {
2889   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2890   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2891 }
2892 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_set_number(google_protobuf_EnumValueDescriptorProto *msg, int32_t value) {
2893   const upb_MiniTableField field = {2, 12, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2894   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2895 }
2896 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_set_options(google_protobuf_EnumValueDescriptorProto *msg, google_protobuf_EnumValueOptions* value) {
2897   const upb_MiniTableField field = {3, UPB_SIZE(16, 32), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2898   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__EnumValueOptions_msg_init);
2899   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
2900 }
2901 UPB_INLINE struct google_protobuf_EnumValueOptions* google_protobuf_EnumValueDescriptorProto_mutable_options(google_protobuf_EnumValueDescriptorProto* msg, upb_Arena* arena) {
2902   struct google_protobuf_EnumValueOptions* sub = (struct google_protobuf_EnumValueOptions*)google_protobuf_EnumValueDescriptorProto_options(msg);
2903   if (sub == NULL) {
2904     sub = (struct google_protobuf_EnumValueOptions*)_upb_Message_New(&google__protobuf__EnumValueOptions_msg_init, arena);
2905     if (sub) google_protobuf_EnumValueDescriptorProto_set_options(msg, sub);
2906   }
2907   return sub;
2908 }
2909 
2910 /* google.protobuf.ServiceDescriptorProto */
2911 
2912 UPB_INLINE google_protobuf_ServiceDescriptorProto* google_protobuf_ServiceDescriptorProto_new(upb_Arena* arena) {
2913   return (google_protobuf_ServiceDescriptorProto*)_upb_Message_New(&google__protobuf__ServiceDescriptorProto_msg_init, arena);
2914 }
2915 UPB_INLINE google_protobuf_ServiceDescriptorProto* google_protobuf_ServiceDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2916   google_protobuf_ServiceDescriptorProto* ret = google_protobuf_ServiceDescriptorProto_new(arena);
2917   if (!ret) return NULL;
2918   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ServiceDescriptorProto_msg_init, NULL, 0, arena) !=
2919       kUpb_DecodeStatus_Ok) {
2920     return NULL;
2921   }
2922   return ret;
2923 }
2924 UPB_INLINE google_protobuf_ServiceDescriptorProto* google_protobuf_ServiceDescriptorProto_parse_ex(const char* buf, size_t size,
2925                            const upb_ExtensionRegistry* extreg,
2926                            int options, upb_Arena* arena) {
2927   google_protobuf_ServiceDescriptorProto* ret = google_protobuf_ServiceDescriptorProto_new(arena);
2928   if (!ret) return NULL;
2929   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ServiceDescriptorProto_msg_init, extreg, options,
2930                  arena) != kUpb_DecodeStatus_Ok) {
2931     return NULL;
2932   }
2933   return ret;
2934 }
2935 UPB_INLINE char* google_protobuf_ServiceDescriptorProto_serialize(const google_protobuf_ServiceDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2936   char* ptr;
2937   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ServiceDescriptorProto_msg_init, 0, arena, &ptr, len);
2938   return ptr;
2939 }
2940 UPB_INLINE char* google_protobuf_ServiceDescriptorProto_serialize_ex(const google_protobuf_ServiceDescriptorProto* msg, int options,
2941                                  upb_Arena* arena, size_t* len) {
2942   char* ptr;
2943   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ServiceDescriptorProto_msg_init, options, arena, &ptr, len);
2944   return ptr;
2945 }
2946 UPB_INLINE void google_protobuf_ServiceDescriptorProto_clear_name(google_protobuf_ServiceDescriptorProto* msg) {
2947   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2948   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2949 }
2950 UPB_INLINE upb_StringView google_protobuf_ServiceDescriptorProto_name(const google_protobuf_ServiceDescriptorProto* msg) {
2951   upb_StringView default_val = upb_StringView_FromString("");
2952   upb_StringView ret;
2953   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2954   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2955                                     &default_val, &ret);
2956   return ret;
2957 }
2958 UPB_INLINE bool google_protobuf_ServiceDescriptorProto_has_name(const google_protobuf_ServiceDescriptorProto* msg) {
2959   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2960   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2961 }
2962 UPB_INLINE void google_protobuf_ServiceDescriptorProto_clear_method(google_protobuf_ServiceDescriptorProto* msg) {
2963   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2964   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2965 }
2966 UPB_INLINE const google_protobuf_MethodDescriptorProto* const* google_protobuf_ServiceDescriptorProto_method(const google_protobuf_ServiceDescriptorProto* msg, size_t* size) {
2967   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2968   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__MethodDescriptorProto_msg_init);
2969   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2970   if (arr) {
2971     if (size) *size = arr->UPB_PRIVATE(size);
2972     return (const google_protobuf_MethodDescriptorProto* const*)upb_Array_DataPtr(arr);
2973   } else {
2974     if (size) *size = 0;
2975     return NULL;
2976   }
2977 }
2978 UPB_INLINE const upb_Array* _google_protobuf_ServiceDescriptorProto_method_upb_array(const google_protobuf_ServiceDescriptorProto* msg, size_t* size) {
2979   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2980   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__MethodDescriptorProto_msg_init);
2981   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2982   if (size) {
2983     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2984   }
2985   return arr;
2986 }
2987 UPB_INLINE upb_Array* _google_protobuf_ServiceDescriptorProto_method_mutable_upb_array(google_protobuf_ServiceDescriptorProto* msg, size_t* size, upb_Arena* arena) {
2988   const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2989   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__MethodDescriptorProto_msg_init);
2990   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
2991                                                        &field, arena);
2992   if (size) {
2993     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2994   }
2995   return arr;
2996 }
2997 UPB_INLINE void google_protobuf_ServiceDescriptorProto_clear_options(google_protobuf_ServiceDescriptorProto* msg) {
2998   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2999   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3000 }
3001 UPB_INLINE const google_protobuf_ServiceOptions* google_protobuf_ServiceDescriptorProto_options(const google_protobuf_ServiceDescriptorProto* msg) {
3002   const google_protobuf_ServiceOptions* default_val = NULL;
3003   const google_protobuf_ServiceOptions* ret;
3004   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3005   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ServiceOptions_msg_init);
3006   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3007                                     &default_val, &ret);
3008   return ret;
3009 }
3010 UPB_INLINE bool google_protobuf_ServiceDescriptorProto_has_options(const google_protobuf_ServiceDescriptorProto* msg) {
3011   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3012   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3013 }
3014 
3015 UPB_INLINE void google_protobuf_ServiceDescriptorProto_set_name(google_protobuf_ServiceDescriptorProto *msg, upb_StringView value) {
3016   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3017   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3018 }
3019 UPB_INLINE google_protobuf_MethodDescriptorProto** google_protobuf_ServiceDescriptorProto_mutable_method(google_protobuf_ServiceDescriptorProto* msg, size_t* size) {
3020   upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3021   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__MethodDescriptorProto_msg_init);
3022   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
3023   if (arr) {
3024     if (size) *size = arr->UPB_PRIVATE(size);
3025     return (google_protobuf_MethodDescriptorProto**)upb_Array_MutableDataPtr(arr);
3026   } else {
3027     if (size) *size = 0;
3028     return NULL;
3029   }
3030 }
3031 UPB_INLINE google_protobuf_MethodDescriptorProto** google_protobuf_ServiceDescriptorProto_resize_method(google_protobuf_ServiceDescriptorProto* msg, size_t size, upb_Arena* arena) {
3032   upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3033   return (google_protobuf_MethodDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
3034                                                    &field, size, arena);
3035 }
3036 UPB_INLINE struct google_protobuf_MethodDescriptorProto* google_protobuf_ServiceDescriptorProto_add_method(google_protobuf_ServiceDescriptorProto* msg, upb_Arena* arena) {
3037   upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3038   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__MethodDescriptorProto_msg_init);
3039   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
3040       UPB_UPCAST(msg), &field, arena);
3041   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
3042                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
3043     return NULL;
3044   }
3045   struct google_protobuf_MethodDescriptorProto* sub = (struct google_protobuf_MethodDescriptorProto*)_upb_Message_New(&google__protobuf__MethodDescriptorProto_msg_init, arena);
3046   if (!arr || !sub) return NULL;
3047   UPB_PRIVATE(_upb_Array_Set)
3048   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
3049   return sub;
3050 }
3051 UPB_INLINE void google_protobuf_ServiceDescriptorProto_set_options(google_protobuf_ServiceDescriptorProto *msg, google_protobuf_ServiceOptions* value) {
3052   const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3053   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__ServiceOptions_msg_init);
3054   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3055 }
3056 UPB_INLINE struct google_protobuf_ServiceOptions* google_protobuf_ServiceDescriptorProto_mutable_options(google_protobuf_ServiceDescriptorProto* msg, upb_Arena* arena) {
3057   struct google_protobuf_ServiceOptions* sub = (struct google_protobuf_ServiceOptions*)google_protobuf_ServiceDescriptorProto_options(msg);
3058   if (sub == NULL) {
3059     sub = (struct google_protobuf_ServiceOptions*)_upb_Message_New(&google__protobuf__ServiceOptions_msg_init, arena);
3060     if (sub) google_protobuf_ServiceDescriptorProto_set_options(msg, sub);
3061   }
3062   return sub;
3063 }
3064 
3065 /* google.protobuf.MethodDescriptorProto */
3066 
3067 UPB_INLINE google_protobuf_MethodDescriptorProto* google_protobuf_MethodDescriptorProto_new(upb_Arena* arena) {
3068   return (google_protobuf_MethodDescriptorProto*)_upb_Message_New(&google__protobuf__MethodDescriptorProto_msg_init, arena);
3069 }
3070 UPB_INLINE google_protobuf_MethodDescriptorProto* google_protobuf_MethodDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
3071   google_protobuf_MethodDescriptorProto* ret = google_protobuf_MethodDescriptorProto_new(arena);
3072   if (!ret) return NULL;
3073   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MethodDescriptorProto_msg_init, NULL, 0, arena) !=
3074       kUpb_DecodeStatus_Ok) {
3075     return NULL;
3076   }
3077   return ret;
3078 }
3079 UPB_INLINE google_protobuf_MethodDescriptorProto* google_protobuf_MethodDescriptorProto_parse_ex(const char* buf, size_t size,
3080                            const upb_ExtensionRegistry* extreg,
3081                            int options, upb_Arena* arena) {
3082   google_protobuf_MethodDescriptorProto* ret = google_protobuf_MethodDescriptorProto_new(arena);
3083   if (!ret) return NULL;
3084   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MethodDescriptorProto_msg_init, extreg, options,
3085                  arena) != kUpb_DecodeStatus_Ok) {
3086     return NULL;
3087   }
3088   return ret;
3089 }
3090 UPB_INLINE char* google_protobuf_MethodDescriptorProto_serialize(const google_protobuf_MethodDescriptorProto* msg, upb_Arena* arena, size_t* len) {
3091   char* ptr;
3092   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MethodDescriptorProto_msg_init, 0, arena, &ptr, len);
3093   return ptr;
3094 }
3095 UPB_INLINE char* google_protobuf_MethodDescriptorProto_serialize_ex(const google_protobuf_MethodDescriptorProto* msg, int options,
3096                                  upb_Arena* arena, size_t* len) {
3097   char* ptr;
3098   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MethodDescriptorProto_msg_init, options, arena, &ptr, len);
3099   return ptr;
3100 }
3101 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_name(google_protobuf_MethodDescriptorProto* msg) {
3102   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3103   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3104 }
3105 UPB_INLINE upb_StringView google_protobuf_MethodDescriptorProto_name(const google_protobuf_MethodDescriptorProto* msg) {
3106   upb_StringView default_val = upb_StringView_FromString("");
3107   upb_StringView ret;
3108   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3109   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3110                                     &default_val, &ret);
3111   return ret;
3112 }
3113 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_name(const google_protobuf_MethodDescriptorProto* msg) {
3114   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3115   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3116 }
3117 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_input_type(google_protobuf_MethodDescriptorProto* msg) {
3118   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3119   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3120 }
3121 UPB_INLINE upb_StringView google_protobuf_MethodDescriptorProto_input_type(const google_protobuf_MethodDescriptorProto* msg) {
3122   upb_StringView default_val = upb_StringView_FromString("");
3123   upb_StringView ret;
3124   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3125   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3126                                     &default_val, &ret);
3127   return ret;
3128 }
3129 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_input_type(const google_protobuf_MethodDescriptorProto* msg) {
3130   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3131   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3132 }
3133 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_output_type(google_protobuf_MethodDescriptorProto* msg) {
3134   const upb_MiniTableField field = {3, UPB_SIZE(36, 48), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3135   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3136 }
3137 UPB_INLINE upb_StringView google_protobuf_MethodDescriptorProto_output_type(const google_protobuf_MethodDescriptorProto* msg) {
3138   upb_StringView default_val = upb_StringView_FromString("");
3139   upb_StringView ret;
3140   const upb_MiniTableField field = {3, UPB_SIZE(36, 48), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3141   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3142                                     &default_val, &ret);
3143   return ret;
3144 }
3145 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_output_type(const google_protobuf_MethodDescriptorProto* msg) {
3146   const upb_MiniTableField field = {3, UPB_SIZE(36, 48), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3147   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3148 }
3149 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_options(google_protobuf_MethodDescriptorProto* msg) {
3150   const upb_MiniTableField field = {4, UPB_SIZE(12, 64), 67, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3151   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3152 }
3153 UPB_INLINE const google_protobuf_MethodOptions* google_protobuf_MethodDescriptorProto_options(const google_protobuf_MethodDescriptorProto* msg) {
3154   const google_protobuf_MethodOptions* default_val = NULL;
3155   const google_protobuf_MethodOptions* ret;
3156   const upb_MiniTableField field = {4, UPB_SIZE(12, 64), 67, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3157   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__MethodOptions_msg_init);
3158   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3159                                     &default_val, &ret);
3160   return ret;
3161 }
3162 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_options(const google_protobuf_MethodDescriptorProto* msg) {
3163   const upb_MiniTableField field = {4, UPB_SIZE(12, 64), 67, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3164   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3165 }
3166 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_client_streaming(google_protobuf_MethodDescriptorProto* msg) {
3167   const upb_MiniTableField field = {5, UPB_SIZE(16, 9), 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3168   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3169 }
3170 UPB_INLINE bool google_protobuf_MethodDescriptorProto_client_streaming(const google_protobuf_MethodDescriptorProto* msg) {
3171   bool default_val = false;
3172   bool ret;
3173   const upb_MiniTableField field = {5, UPB_SIZE(16, 9), 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3174   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3175                                     &default_val, &ret);
3176   return ret;
3177 }
3178 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_client_streaming(const google_protobuf_MethodDescriptorProto* msg) {
3179   const upb_MiniTableField field = {5, UPB_SIZE(16, 9), 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3180   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3181 }
3182 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_server_streaming(google_protobuf_MethodDescriptorProto* msg) {
3183   const upb_MiniTableField field = {6, UPB_SIZE(17, 10), 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3184   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3185 }
3186 UPB_INLINE bool google_protobuf_MethodDescriptorProto_server_streaming(const google_protobuf_MethodDescriptorProto* msg) {
3187   bool default_val = false;
3188   bool ret;
3189   const upb_MiniTableField field = {6, UPB_SIZE(17, 10), 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3190   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3191                                     &default_val, &ret);
3192   return ret;
3193 }
3194 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_server_streaming(const google_protobuf_MethodDescriptorProto* msg) {
3195   const upb_MiniTableField field = {6, UPB_SIZE(17, 10), 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3196   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3197 }
3198 
3199 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_name(google_protobuf_MethodDescriptorProto *msg, upb_StringView value) {
3200   const upb_MiniTableField field = {1, UPB_SIZE(20, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3201   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3202 }
3203 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_input_type(google_protobuf_MethodDescriptorProto *msg, upb_StringView value) {
3204   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3205   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3206 }
3207 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_output_type(google_protobuf_MethodDescriptorProto *msg, upb_StringView value) {
3208   const upb_MiniTableField field = {3, UPB_SIZE(36, 48), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3209   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3210 }
3211 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_options(google_protobuf_MethodDescriptorProto *msg, google_protobuf_MethodOptions* value) {
3212   const upb_MiniTableField field = {4, UPB_SIZE(12, 64), 67, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3213   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__MethodOptions_msg_init);
3214   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3215 }
3216 UPB_INLINE struct google_protobuf_MethodOptions* google_protobuf_MethodDescriptorProto_mutable_options(google_protobuf_MethodDescriptorProto* msg, upb_Arena* arena) {
3217   struct google_protobuf_MethodOptions* sub = (struct google_protobuf_MethodOptions*)google_protobuf_MethodDescriptorProto_options(msg);
3218   if (sub == NULL) {
3219     sub = (struct google_protobuf_MethodOptions*)_upb_Message_New(&google__protobuf__MethodOptions_msg_init, arena);
3220     if (sub) google_protobuf_MethodDescriptorProto_set_options(msg, sub);
3221   }
3222   return sub;
3223 }
3224 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_client_streaming(google_protobuf_MethodDescriptorProto *msg, bool value) {
3225   const upb_MiniTableField field = {5, UPB_SIZE(16, 9), 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3226   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3227 }
3228 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_server_streaming(google_protobuf_MethodDescriptorProto *msg, bool value) {
3229   const upb_MiniTableField field = {6, UPB_SIZE(17, 10), 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3230   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3231 }
3232 
3233 /* google.protobuf.FileOptions */
3234 
3235 UPB_INLINE google_protobuf_FileOptions* google_protobuf_FileOptions_new(upb_Arena* arena) {
3236   return (google_protobuf_FileOptions*)_upb_Message_New(&google__protobuf__FileOptions_msg_init, arena);
3237 }
3238 UPB_INLINE google_protobuf_FileOptions* google_protobuf_FileOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
3239   google_protobuf_FileOptions* ret = google_protobuf_FileOptions_new(arena);
3240   if (!ret) return NULL;
3241   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileOptions_msg_init, NULL, 0, arena) !=
3242       kUpb_DecodeStatus_Ok) {
3243     return NULL;
3244   }
3245   return ret;
3246 }
3247 UPB_INLINE google_protobuf_FileOptions* google_protobuf_FileOptions_parse_ex(const char* buf, size_t size,
3248                            const upb_ExtensionRegistry* extreg,
3249                            int options, upb_Arena* arena) {
3250   google_protobuf_FileOptions* ret = google_protobuf_FileOptions_new(arena);
3251   if (!ret) return NULL;
3252   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileOptions_msg_init, extreg, options,
3253                  arena) != kUpb_DecodeStatus_Ok) {
3254     return NULL;
3255   }
3256   return ret;
3257 }
3258 UPB_INLINE char* google_protobuf_FileOptions_serialize(const google_protobuf_FileOptions* msg, upb_Arena* arena, size_t* len) {
3259   char* ptr;
3260   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileOptions_msg_init, 0, arena, &ptr, len);
3261   return ptr;
3262 }
3263 UPB_INLINE char* google_protobuf_FileOptions_serialize_ex(const google_protobuf_FileOptions* msg, int options,
3264                                  upb_Arena* arena, size_t* len) {
3265   char* ptr;
3266   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileOptions_msg_init, options, arena, &ptr, len);
3267   return ptr;
3268 }
3269 UPB_INLINE void google_protobuf_FileOptions_clear_java_package(google_protobuf_FileOptions* msg) {
3270   const upb_MiniTableField field = {1, UPB_SIZE(32, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3271   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3272 }
3273 UPB_INLINE upb_StringView google_protobuf_FileOptions_java_package(const google_protobuf_FileOptions* msg) {
3274   upb_StringView default_val = upb_StringView_FromString("");
3275   upb_StringView ret;
3276   const upb_MiniTableField field = {1, UPB_SIZE(32, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3277   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3278                                     &default_val, &ret);
3279   return ret;
3280 }
3281 UPB_INLINE bool google_protobuf_FileOptions_has_java_package(const google_protobuf_FileOptions* msg) {
3282   const upb_MiniTableField field = {1, UPB_SIZE(32, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3283   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3284 }
3285 UPB_INLINE void google_protobuf_FileOptions_clear_java_outer_classname(google_protobuf_FileOptions* msg) {
3286   const upb_MiniTableField field = {8, 40, 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3287   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3288 }
3289 UPB_INLINE upb_StringView google_protobuf_FileOptions_java_outer_classname(const google_protobuf_FileOptions* msg) {
3290   upb_StringView default_val = upb_StringView_FromString("");
3291   upb_StringView ret;
3292   const upb_MiniTableField field = {8, 40, 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3293   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3294                                     &default_val, &ret);
3295   return ret;
3296 }
3297 UPB_INLINE bool google_protobuf_FileOptions_has_java_outer_classname(const google_protobuf_FileOptions* msg) {
3298   const upb_MiniTableField field = {8, 40, 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3299   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3300 }
3301 UPB_INLINE void google_protobuf_FileOptions_clear_optimize_for(google_protobuf_FileOptions* msg) {
3302   const upb_MiniTableField field = {9, 12, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3303   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3304 }
3305 UPB_INLINE int32_t google_protobuf_FileOptions_optimize_for(const google_protobuf_FileOptions* msg) {
3306   int32_t default_val = 1;
3307   int32_t ret;
3308   const upb_MiniTableField field = {9, 12, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3309   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3310                                     &default_val, &ret);
3311   return ret;
3312 }
3313 UPB_INLINE bool google_protobuf_FileOptions_has_optimize_for(const google_protobuf_FileOptions* msg) {
3314   const upb_MiniTableField field = {9, 12, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3315   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3316 }
3317 UPB_INLINE void google_protobuf_FileOptions_clear_java_multiple_files(google_protobuf_FileOptions* msg) {
3318   const upb_MiniTableField field = {10, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3319   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3320 }
3321 UPB_INLINE bool google_protobuf_FileOptions_java_multiple_files(const google_protobuf_FileOptions* msg) {
3322   bool default_val = false;
3323   bool ret;
3324   const upb_MiniTableField field = {10, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3325   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3326                                     &default_val, &ret);
3327   return ret;
3328 }
3329 UPB_INLINE bool google_protobuf_FileOptions_has_java_multiple_files(const google_protobuf_FileOptions* msg) {
3330   const upb_MiniTableField field = {10, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3331   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3332 }
3333 UPB_INLINE void google_protobuf_FileOptions_clear_go_package(google_protobuf_FileOptions* msg) {
3334   const upb_MiniTableField field = {11, UPB_SIZE(48, 56), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3335   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3336 }
3337 UPB_INLINE upb_StringView google_protobuf_FileOptions_go_package(const google_protobuf_FileOptions* msg) {
3338   upb_StringView default_val = upb_StringView_FromString("");
3339   upb_StringView ret;
3340   const upb_MiniTableField field = {11, UPB_SIZE(48, 56), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3341   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3342                                     &default_val, &ret);
3343   return ret;
3344 }
3345 UPB_INLINE bool google_protobuf_FileOptions_has_go_package(const google_protobuf_FileOptions* msg) {
3346   const upb_MiniTableField field = {11, UPB_SIZE(48, 56), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3347   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3348 }
3349 UPB_INLINE void google_protobuf_FileOptions_clear_cc_generic_services(google_protobuf_FileOptions* msg) {
3350   const upb_MiniTableField field = {16, 17, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3351   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3352 }
3353 UPB_INLINE bool google_protobuf_FileOptions_cc_generic_services(const google_protobuf_FileOptions* msg) {
3354   bool default_val = false;
3355   bool ret;
3356   const upb_MiniTableField field = {16, 17, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3357   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3358                                     &default_val, &ret);
3359   return ret;
3360 }
3361 UPB_INLINE bool google_protobuf_FileOptions_has_cc_generic_services(const google_protobuf_FileOptions* msg) {
3362   const upb_MiniTableField field = {16, 17, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3363   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3364 }
3365 UPB_INLINE void google_protobuf_FileOptions_clear_java_generic_services(google_protobuf_FileOptions* msg) {
3366   const upb_MiniTableField field = {17, 18, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3367   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3368 }
3369 UPB_INLINE bool google_protobuf_FileOptions_java_generic_services(const google_protobuf_FileOptions* msg) {
3370   bool default_val = false;
3371   bool ret;
3372   const upb_MiniTableField field = {17, 18, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3373   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3374                                     &default_val, &ret);
3375   return ret;
3376 }
3377 UPB_INLINE bool google_protobuf_FileOptions_has_java_generic_services(const google_protobuf_FileOptions* msg) {
3378   const upb_MiniTableField field = {17, 18, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3379   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3380 }
3381 UPB_INLINE void google_protobuf_FileOptions_clear_py_generic_services(google_protobuf_FileOptions* msg) {
3382   const upb_MiniTableField field = {18, 19, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3383   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3384 }
3385 UPB_INLINE bool google_protobuf_FileOptions_py_generic_services(const google_protobuf_FileOptions* msg) {
3386   bool default_val = false;
3387   bool ret;
3388   const upb_MiniTableField field = {18, 19, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3389   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3390                                     &default_val, &ret);
3391   return ret;
3392 }
3393 UPB_INLINE bool google_protobuf_FileOptions_has_py_generic_services(const google_protobuf_FileOptions* msg) {
3394   const upb_MiniTableField field = {18, 19, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3395   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3396 }
3397 UPB_INLINE void google_protobuf_FileOptions_clear_java_generate_equals_and_hash(google_protobuf_FileOptions* msg) {
3398   const upb_MiniTableField field = {20, 20, 72, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3399   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3400 }
3401 UPB_INLINE bool google_protobuf_FileOptions_java_generate_equals_and_hash(const google_protobuf_FileOptions* msg) {
3402   bool default_val = false;
3403   bool ret;
3404   const upb_MiniTableField field = {20, 20, 72, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3405   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3406                                     &default_val, &ret);
3407   return ret;
3408 }
3409 UPB_INLINE bool google_protobuf_FileOptions_has_java_generate_equals_and_hash(const google_protobuf_FileOptions* msg) {
3410   const upb_MiniTableField field = {20, 20, 72, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3411   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3412 }
3413 UPB_INLINE void google_protobuf_FileOptions_clear_deprecated(google_protobuf_FileOptions* msg) {
3414   const upb_MiniTableField field = {23, 21, 73, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3415   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3416 }
3417 UPB_INLINE bool google_protobuf_FileOptions_deprecated(const google_protobuf_FileOptions* msg) {
3418   bool default_val = false;
3419   bool ret;
3420   const upb_MiniTableField field = {23, 21, 73, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3421   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3422                                     &default_val, &ret);
3423   return ret;
3424 }
3425 UPB_INLINE bool google_protobuf_FileOptions_has_deprecated(const google_protobuf_FileOptions* msg) {
3426   const upb_MiniTableField field = {23, 21, 73, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3427   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3428 }
3429 UPB_INLINE void google_protobuf_FileOptions_clear_java_string_check_utf8(google_protobuf_FileOptions* msg) {
3430   const upb_MiniTableField field = {27, 22, 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3431   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3432 }
3433 UPB_INLINE bool google_protobuf_FileOptions_java_string_check_utf8(const google_protobuf_FileOptions* msg) {
3434   bool default_val = false;
3435   bool ret;
3436   const upb_MiniTableField field = {27, 22, 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3437   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3438                                     &default_val, &ret);
3439   return ret;
3440 }
3441 UPB_INLINE bool google_protobuf_FileOptions_has_java_string_check_utf8(const google_protobuf_FileOptions* msg) {
3442   const upb_MiniTableField field = {27, 22, 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3443   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3444 }
3445 UPB_INLINE void google_protobuf_FileOptions_clear_cc_enable_arenas(google_protobuf_FileOptions* msg) {
3446   const upb_MiniTableField field = {31, 23, 75, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3447   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3448 }
3449 UPB_INLINE bool google_protobuf_FileOptions_cc_enable_arenas(const google_protobuf_FileOptions* msg) {
3450   bool default_val = true;
3451   bool ret;
3452   const upb_MiniTableField field = {31, 23, 75, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3453   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3454                                     &default_val, &ret);
3455   return ret;
3456 }
3457 UPB_INLINE bool google_protobuf_FileOptions_has_cc_enable_arenas(const google_protobuf_FileOptions* msg) {
3458   const upb_MiniTableField field = {31, 23, 75, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3459   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3460 }
3461 UPB_INLINE void google_protobuf_FileOptions_clear_objc_class_prefix(google_protobuf_FileOptions* msg) {
3462   const upb_MiniTableField field = {36, UPB_SIZE(56, 72), 76, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3463   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3464 }
3465 UPB_INLINE upb_StringView google_protobuf_FileOptions_objc_class_prefix(const google_protobuf_FileOptions* msg) {
3466   upb_StringView default_val = upb_StringView_FromString("");
3467   upb_StringView ret;
3468   const upb_MiniTableField field = {36, UPB_SIZE(56, 72), 76, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3469   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3470                                     &default_val, &ret);
3471   return ret;
3472 }
3473 UPB_INLINE bool google_protobuf_FileOptions_has_objc_class_prefix(const google_protobuf_FileOptions* msg) {
3474   const upb_MiniTableField field = {36, UPB_SIZE(56, 72), 76, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3475   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3476 }
3477 UPB_INLINE void google_protobuf_FileOptions_clear_csharp_namespace(google_protobuf_FileOptions* msg) {
3478   const upb_MiniTableField field = {37, UPB_SIZE(64, 88), 77, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3479   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3480 }
3481 UPB_INLINE upb_StringView google_protobuf_FileOptions_csharp_namespace(const google_protobuf_FileOptions* msg) {
3482   upb_StringView default_val = upb_StringView_FromString("");
3483   upb_StringView ret;
3484   const upb_MiniTableField field = {37, UPB_SIZE(64, 88), 77, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3485   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3486                                     &default_val, &ret);
3487   return ret;
3488 }
3489 UPB_INLINE bool google_protobuf_FileOptions_has_csharp_namespace(const google_protobuf_FileOptions* msg) {
3490   const upb_MiniTableField field = {37, UPB_SIZE(64, 88), 77, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3491   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3492 }
3493 UPB_INLINE void google_protobuf_FileOptions_clear_swift_prefix(google_protobuf_FileOptions* msg) {
3494   const upb_MiniTableField field = {39, UPB_SIZE(72, 104), 78, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3495   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3496 }
3497 UPB_INLINE upb_StringView google_protobuf_FileOptions_swift_prefix(const google_protobuf_FileOptions* msg) {
3498   upb_StringView default_val = upb_StringView_FromString("");
3499   upb_StringView ret;
3500   const upb_MiniTableField field = {39, UPB_SIZE(72, 104), 78, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3501   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3502                                     &default_val, &ret);
3503   return ret;
3504 }
3505 UPB_INLINE bool google_protobuf_FileOptions_has_swift_prefix(const google_protobuf_FileOptions* msg) {
3506   const upb_MiniTableField field = {39, UPB_SIZE(72, 104), 78, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3507   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3508 }
3509 UPB_INLINE void google_protobuf_FileOptions_clear_php_class_prefix(google_protobuf_FileOptions* msg) {
3510   const upb_MiniTableField field = {40, UPB_SIZE(80, 120), 79, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3511   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3512 }
3513 UPB_INLINE upb_StringView google_protobuf_FileOptions_php_class_prefix(const google_protobuf_FileOptions* msg) {
3514   upb_StringView default_val = upb_StringView_FromString("");
3515   upb_StringView ret;
3516   const upb_MiniTableField field = {40, UPB_SIZE(80, 120), 79, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3517   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3518                                     &default_val, &ret);
3519   return ret;
3520 }
3521 UPB_INLINE bool google_protobuf_FileOptions_has_php_class_prefix(const google_protobuf_FileOptions* msg) {
3522   const upb_MiniTableField field = {40, UPB_SIZE(80, 120), 79, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3523   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3524 }
3525 UPB_INLINE void google_protobuf_FileOptions_clear_php_namespace(google_protobuf_FileOptions* msg) {
3526   const upb_MiniTableField field = {41, UPB_SIZE(88, 136), 80, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3527   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3528 }
3529 UPB_INLINE upb_StringView google_protobuf_FileOptions_php_namespace(const google_protobuf_FileOptions* msg) {
3530   upb_StringView default_val = upb_StringView_FromString("");
3531   upb_StringView ret;
3532   const upb_MiniTableField field = {41, UPB_SIZE(88, 136), 80, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3533   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3534                                     &default_val, &ret);
3535   return ret;
3536 }
3537 UPB_INLINE bool google_protobuf_FileOptions_has_php_namespace(const google_protobuf_FileOptions* msg) {
3538   const upb_MiniTableField field = {41, UPB_SIZE(88, 136), 80, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3539   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3540 }
3541 UPB_INLINE void google_protobuf_FileOptions_clear_php_metadata_namespace(google_protobuf_FileOptions* msg) {
3542   const upb_MiniTableField field = {44, UPB_SIZE(96, 152), 81, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3543   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3544 }
3545 UPB_INLINE upb_StringView google_protobuf_FileOptions_php_metadata_namespace(const google_protobuf_FileOptions* msg) {
3546   upb_StringView default_val = upb_StringView_FromString("");
3547   upb_StringView ret;
3548   const upb_MiniTableField field = {44, UPB_SIZE(96, 152), 81, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3549   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3550                                     &default_val, &ret);
3551   return ret;
3552 }
3553 UPB_INLINE bool google_protobuf_FileOptions_has_php_metadata_namespace(const google_protobuf_FileOptions* msg) {
3554   const upb_MiniTableField field = {44, UPB_SIZE(96, 152), 81, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3555   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3556 }
3557 UPB_INLINE void google_protobuf_FileOptions_clear_ruby_package(google_protobuf_FileOptions* msg) {
3558   const upb_MiniTableField field = {45, UPB_SIZE(104, 168), 82, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3559   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3560 }
3561 UPB_INLINE upb_StringView google_protobuf_FileOptions_ruby_package(const google_protobuf_FileOptions* msg) {
3562   upb_StringView default_val = upb_StringView_FromString("");
3563   upb_StringView ret;
3564   const upb_MiniTableField field = {45, UPB_SIZE(104, 168), 82, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3565   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3566                                     &default_val, &ret);
3567   return ret;
3568 }
3569 UPB_INLINE bool google_protobuf_FileOptions_has_ruby_package(const google_protobuf_FileOptions* msg) {
3570   const upb_MiniTableField field = {45, UPB_SIZE(104, 168), 82, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3571   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3572 }
3573 UPB_INLINE void google_protobuf_FileOptions_clear_features(google_protobuf_FileOptions* msg) {
3574   const upb_MiniTableField field = {50, UPB_SIZE(24, 184), 83, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3575   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3576 }
3577 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_FileOptions_features(const google_protobuf_FileOptions* msg) {
3578   const google_protobuf_FeatureSet* default_val = NULL;
3579   const google_protobuf_FeatureSet* ret;
3580   const upb_MiniTableField field = {50, UPB_SIZE(24, 184), 83, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3581   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
3582   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3583                                     &default_val, &ret);
3584   return ret;
3585 }
3586 UPB_INLINE bool google_protobuf_FileOptions_has_features(const google_protobuf_FileOptions* msg) {
3587   const upb_MiniTableField field = {50, UPB_SIZE(24, 184), 83, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3588   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3589 }
3590 UPB_INLINE void google_protobuf_FileOptions_clear_uninterpreted_option(google_protobuf_FileOptions* msg) {
3591   const upb_MiniTableField field = {999, UPB_SIZE(28, 192), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3592   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3593 }
3594 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_FileOptions_uninterpreted_option(const google_protobuf_FileOptions* msg, size_t* size) {
3595   const upb_MiniTableField field = {999, UPB_SIZE(28, 192), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3596   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
3597   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
3598   if (arr) {
3599     if (size) *size = arr->UPB_PRIVATE(size);
3600     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
3601   } else {
3602     if (size) *size = 0;
3603     return NULL;
3604   }
3605 }
3606 UPB_INLINE const upb_Array* _google_protobuf_FileOptions_uninterpreted_option_upb_array(const google_protobuf_FileOptions* msg, size_t* size) {
3607   const upb_MiniTableField field = {999, UPB_SIZE(28, 192), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3608   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
3609   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
3610   if (size) {
3611     *size = arr ? arr->UPB_PRIVATE(size) : 0;
3612   }
3613   return arr;
3614 }
3615 UPB_INLINE upb_Array* _google_protobuf_FileOptions_uninterpreted_option_mutable_upb_array(google_protobuf_FileOptions* msg, size_t* size, upb_Arena* arena) {
3616   const upb_MiniTableField field = {999, UPB_SIZE(28, 192), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3617   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
3618   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
3619                                                        &field, arena);
3620   if (size) {
3621     *size = arr ? arr->UPB_PRIVATE(size) : 0;
3622   }
3623   return arr;
3624 }
3625 
3626 UPB_INLINE void google_protobuf_FileOptions_set_java_package(google_protobuf_FileOptions *msg, upb_StringView value) {
3627   const upb_MiniTableField field = {1, UPB_SIZE(32, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3628   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3629 }
3630 UPB_INLINE void google_protobuf_FileOptions_set_java_outer_classname(google_protobuf_FileOptions *msg, upb_StringView value) {
3631   const upb_MiniTableField field = {8, 40, 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3632   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3633 }
3634 UPB_INLINE void google_protobuf_FileOptions_set_optimize_for(google_protobuf_FileOptions *msg, int32_t value) {
3635   const upb_MiniTableField field = {9, 12, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3636   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3637 }
3638 UPB_INLINE void google_protobuf_FileOptions_set_java_multiple_files(google_protobuf_FileOptions *msg, bool value) {
3639   const upb_MiniTableField field = {10, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3640   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3641 }
3642 UPB_INLINE void google_protobuf_FileOptions_set_go_package(google_protobuf_FileOptions *msg, upb_StringView value) {
3643   const upb_MiniTableField field = {11, UPB_SIZE(48, 56), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3644   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3645 }
3646 UPB_INLINE void google_protobuf_FileOptions_set_cc_generic_services(google_protobuf_FileOptions *msg, bool value) {
3647   const upb_MiniTableField field = {16, 17, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3648   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3649 }
3650 UPB_INLINE void google_protobuf_FileOptions_set_java_generic_services(google_protobuf_FileOptions *msg, bool value) {
3651   const upb_MiniTableField field = {17, 18, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3652   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3653 }
3654 UPB_INLINE void google_protobuf_FileOptions_set_py_generic_services(google_protobuf_FileOptions *msg, bool value) {
3655   const upb_MiniTableField field = {18, 19, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3656   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3657 }
3658 UPB_INLINE void google_protobuf_FileOptions_set_java_generate_equals_and_hash(google_protobuf_FileOptions *msg, bool value) {
3659   const upb_MiniTableField field = {20, 20, 72, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3660   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3661 }
3662 UPB_INLINE void google_protobuf_FileOptions_set_deprecated(google_protobuf_FileOptions *msg, bool value) {
3663   const upb_MiniTableField field = {23, 21, 73, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3664   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3665 }
3666 UPB_INLINE void google_protobuf_FileOptions_set_java_string_check_utf8(google_protobuf_FileOptions *msg, bool value) {
3667   const upb_MiniTableField field = {27, 22, 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3668   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3669 }
3670 UPB_INLINE void google_protobuf_FileOptions_set_cc_enable_arenas(google_protobuf_FileOptions *msg, bool value) {
3671   const upb_MiniTableField field = {31, 23, 75, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3672   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3673 }
3674 UPB_INLINE void google_protobuf_FileOptions_set_objc_class_prefix(google_protobuf_FileOptions *msg, upb_StringView value) {
3675   const upb_MiniTableField field = {36, UPB_SIZE(56, 72), 76, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3676   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3677 }
3678 UPB_INLINE void google_protobuf_FileOptions_set_csharp_namespace(google_protobuf_FileOptions *msg, upb_StringView value) {
3679   const upb_MiniTableField field = {37, UPB_SIZE(64, 88), 77, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3680   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3681 }
3682 UPB_INLINE void google_protobuf_FileOptions_set_swift_prefix(google_protobuf_FileOptions *msg, upb_StringView value) {
3683   const upb_MiniTableField field = {39, UPB_SIZE(72, 104), 78, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3684   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3685 }
3686 UPB_INLINE void google_protobuf_FileOptions_set_php_class_prefix(google_protobuf_FileOptions *msg, upb_StringView value) {
3687   const upb_MiniTableField field = {40, UPB_SIZE(80, 120), 79, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3688   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3689 }
3690 UPB_INLINE void google_protobuf_FileOptions_set_php_namespace(google_protobuf_FileOptions *msg, upb_StringView value) {
3691   const upb_MiniTableField field = {41, UPB_SIZE(88, 136), 80, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3692   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3693 }
3694 UPB_INLINE void google_protobuf_FileOptions_set_php_metadata_namespace(google_protobuf_FileOptions *msg, upb_StringView value) {
3695   const upb_MiniTableField field = {44, UPB_SIZE(96, 152), 81, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3696   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3697 }
3698 UPB_INLINE void google_protobuf_FileOptions_set_ruby_package(google_protobuf_FileOptions *msg, upb_StringView value) {
3699   const upb_MiniTableField field = {45, UPB_SIZE(104, 168), 82, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3700   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3701 }
3702 UPB_INLINE void google_protobuf_FileOptions_set_features(google_protobuf_FileOptions *msg, google_protobuf_FeatureSet* value) {
3703   const upb_MiniTableField field = {50, UPB_SIZE(24, 184), 83, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3704   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
3705   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3706 }
3707 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_FileOptions_mutable_features(google_protobuf_FileOptions* msg, upb_Arena* arena) {
3708   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_FileOptions_features(msg);
3709   if (sub == NULL) {
3710     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
3711     if (sub) google_protobuf_FileOptions_set_features(msg, sub);
3712   }
3713   return sub;
3714 }
3715 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FileOptions_mutable_uninterpreted_option(google_protobuf_FileOptions* msg, size_t* size) {
3716   upb_MiniTableField field = {999, UPB_SIZE(28, 192), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3717   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
3718   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
3719   if (arr) {
3720     if (size) *size = arr->UPB_PRIVATE(size);
3721     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
3722   } else {
3723     if (size) *size = 0;
3724     return NULL;
3725   }
3726 }
3727 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FileOptions_resize_uninterpreted_option(google_protobuf_FileOptions* msg, size_t size, upb_Arena* arena) {
3728   upb_MiniTableField field = {999, UPB_SIZE(28, 192), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3729   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
3730                                                    &field, size, arena);
3731 }
3732 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FileOptions_add_uninterpreted_option(google_protobuf_FileOptions* msg, upb_Arena* arena) {
3733   upb_MiniTableField field = {999, UPB_SIZE(28, 192), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3734   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
3735   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
3736       UPB_UPCAST(msg), &field, arena);
3737   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
3738                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
3739     return NULL;
3740   }
3741   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
3742   if (!arr || !sub) return NULL;
3743   UPB_PRIVATE(_upb_Array_Set)
3744   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
3745   return sub;
3746 }
3747 
3748 /* google.protobuf.MessageOptions */
3749 
3750 UPB_INLINE google_protobuf_MessageOptions* google_protobuf_MessageOptions_new(upb_Arena* arena) {
3751   return (google_protobuf_MessageOptions*)_upb_Message_New(&google__protobuf__MessageOptions_msg_init, arena);
3752 }
3753 UPB_INLINE google_protobuf_MessageOptions* google_protobuf_MessageOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
3754   google_protobuf_MessageOptions* ret = google_protobuf_MessageOptions_new(arena);
3755   if (!ret) return NULL;
3756   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MessageOptions_msg_init, NULL, 0, arena) !=
3757       kUpb_DecodeStatus_Ok) {
3758     return NULL;
3759   }
3760   return ret;
3761 }
3762 UPB_INLINE google_protobuf_MessageOptions* google_protobuf_MessageOptions_parse_ex(const char* buf, size_t size,
3763                            const upb_ExtensionRegistry* extreg,
3764                            int options, upb_Arena* arena) {
3765   google_protobuf_MessageOptions* ret = google_protobuf_MessageOptions_new(arena);
3766   if (!ret) return NULL;
3767   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MessageOptions_msg_init, extreg, options,
3768                  arena) != kUpb_DecodeStatus_Ok) {
3769     return NULL;
3770   }
3771   return ret;
3772 }
3773 UPB_INLINE char* google_protobuf_MessageOptions_serialize(const google_protobuf_MessageOptions* msg, upb_Arena* arena, size_t* len) {
3774   char* ptr;
3775   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MessageOptions_msg_init, 0, arena, &ptr, len);
3776   return ptr;
3777 }
3778 UPB_INLINE char* google_protobuf_MessageOptions_serialize_ex(const google_protobuf_MessageOptions* msg, int options,
3779                                  upb_Arena* arena, size_t* len) {
3780   char* ptr;
3781   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MessageOptions_msg_init, options, arena, &ptr, len);
3782   return ptr;
3783 }
3784 UPB_INLINE void google_protobuf_MessageOptions_clear_message_set_wire_format(google_protobuf_MessageOptions* msg) {
3785   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3786   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3787 }
3788 UPB_INLINE bool google_protobuf_MessageOptions_message_set_wire_format(const google_protobuf_MessageOptions* msg) {
3789   bool default_val = false;
3790   bool ret;
3791   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3792   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3793                                     &default_val, &ret);
3794   return ret;
3795 }
3796 UPB_INLINE bool google_protobuf_MessageOptions_has_message_set_wire_format(const google_protobuf_MessageOptions* msg) {
3797   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3798   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3799 }
3800 UPB_INLINE void google_protobuf_MessageOptions_clear_no_standard_descriptor_accessor(google_protobuf_MessageOptions* msg) {
3801   const upb_MiniTableField field = {2, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3802   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3803 }
3804 UPB_INLINE bool google_protobuf_MessageOptions_no_standard_descriptor_accessor(const google_protobuf_MessageOptions* msg) {
3805   bool default_val = false;
3806   bool ret;
3807   const upb_MiniTableField field = {2, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3808   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3809                                     &default_val, &ret);
3810   return ret;
3811 }
3812 UPB_INLINE bool google_protobuf_MessageOptions_has_no_standard_descriptor_accessor(const google_protobuf_MessageOptions* msg) {
3813   const upb_MiniTableField field = {2, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3814   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3815 }
3816 UPB_INLINE void google_protobuf_MessageOptions_clear_deprecated(google_protobuf_MessageOptions* msg) {
3817   const upb_MiniTableField field = {3, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3818   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3819 }
3820 UPB_INLINE bool google_protobuf_MessageOptions_deprecated(const google_protobuf_MessageOptions* msg) {
3821   bool default_val = false;
3822   bool ret;
3823   const upb_MiniTableField field = {3, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3824   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3825                                     &default_val, &ret);
3826   return ret;
3827 }
3828 UPB_INLINE bool google_protobuf_MessageOptions_has_deprecated(const google_protobuf_MessageOptions* msg) {
3829   const upb_MiniTableField field = {3, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3830   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3831 }
3832 UPB_INLINE void google_protobuf_MessageOptions_clear_map_entry(google_protobuf_MessageOptions* msg) {
3833   const upb_MiniTableField field = {7, 12, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3834   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3835 }
3836 UPB_INLINE bool google_protobuf_MessageOptions_map_entry(const google_protobuf_MessageOptions* msg) {
3837   bool default_val = false;
3838   bool ret;
3839   const upb_MiniTableField field = {7, 12, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3840   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3841                                     &default_val, &ret);
3842   return ret;
3843 }
3844 UPB_INLINE bool google_protobuf_MessageOptions_has_map_entry(const google_protobuf_MessageOptions* msg) {
3845   const upb_MiniTableField field = {7, 12, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3846   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3847 }
3848 UPB_INLINE void google_protobuf_MessageOptions_clear_deprecated_legacy_json_field_conflicts(google_protobuf_MessageOptions* msg) {
3849   const upb_MiniTableField field = {11, 13, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3850   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3851 }
3852 UPB_INLINE bool google_protobuf_MessageOptions_deprecated_legacy_json_field_conflicts(const google_protobuf_MessageOptions* msg) {
3853   bool default_val = false;
3854   bool ret;
3855   const upb_MiniTableField field = {11, 13, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3856   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3857                                     &default_val, &ret);
3858   return ret;
3859 }
3860 UPB_INLINE bool google_protobuf_MessageOptions_has_deprecated_legacy_json_field_conflicts(const google_protobuf_MessageOptions* msg) {
3861   const upb_MiniTableField field = {11, 13, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3862   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3863 }
3864 UPB_INLINE void google_protobuf_MessageOptions_clear_features(google_protobuf_MessageOptions* msg) {
3865   const upb_MiniTableField field = {12, 16, 69, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3866   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3867 }
3868 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_MessageOptions_features(const google_protobuf_MessageOptions* msg) {
3869   const google_protobuf_FeatureSet* default_val = NULL;
3870   const google_protobuf_FeatureSet* ret;
3871   const upb_MiniTableField field = {12, 16, 69, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3872   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
3873   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3874                                     &default_val, &ret);
3875   return ret;
3876 }
3877 UPB_INLINE bool google_protobuf_MessageOptions_has_features(const google_protobuf_MessageOptions* msg) {
3878   const upb_MiniTableField field = {12, 16, 69, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3879   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3880 }
3881 UPB_INLINE void google_protobuf_MessageOptions_clear_uninterpreted_option(google_protobuf_MessageOptions* msg) {
3882   const upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3883   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3884 }
3885 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_MessageOptions_uninterpreted_option(const google_protobuf_MessageOptions* msg, size_t* size) {
3886   const upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3887   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
3888   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
3889   if (arr) {
3890     if (size) *size = arr->UPB_PRIVATE(size);
3891     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
3892   } else {
3893     if (size) *size = 0;
3894     return NULL;
3895   }
3896 }
3897 UPB_INLINE const upb_Array* _google_protobuf_MessageOptions_uninterpreted_option_upb_array(const google_protobuf_MessageOptions* msg, size_t* size) {
3898   const upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3899   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
3900   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
3901   if (size) {
3902     *size = arr ? arr->UPB_PRIVATE(size) : 0;
3903   }
3904   return arr;
3905 }
3906 UPB_INLINE upb_Array* _google_protobuf_MessageOptions_uninterpreted_option_mutable_upb_array(google_protobuf_MessageOptions* msg, size_t* size, upb_Arena* arena) {
3907   const upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3908   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
3909   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
3910                                                        &field, arena);
3911   if (size) {
3912     *size = arr ? arr->UPB_PRIVATE(size) : 0;
3913   }
3914   return arr;
3915 }
3916 
3917 UPB_INLINE void google_protobuf_MessageOptions_set_message_set_wire_format(google_protobuf_MessageOptions *msg, bool value) {
3918   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3919   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3920 }
3921 UPB_INLINE void google_protobuf_MessageOptions_set_no_standard_descriptor_accessor(google_protobuf_MessageOptions *msg, bool value) {
3922   const upb_MiniTableField field = {2, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3923   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3924 }
3925 UPB_INLINE void google_protobuf_MessageOptions_set_deprecated(google_protobuf_MessageOptions *msg, bool value) {
3926   const upb_MiniTableField field = {3, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3927   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3928 }
3929 UPB_INLINE void google_protobuf_MessageOptions_set_map_entry(google_protobuf_MessageOptions *msg, bool value) {
3930   const upb_MiniTableField field = {7, 12, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3931   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3932 }
3933 UPB_INLINE void google_protobuf_MessageOptions_set_deprecated_legacy_json_field_conflicts(google_protobuf_MessageOptions *msg, bool value) {
3934   const upb_MiniTableField field = {11, 13, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3935   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3936 }
3937 UPB_INLINE void google_protobuf_MessageOptions_set_features(google_protobuf_MessageOptions *msg, google_protobuf_FeatureSet* value) {
3938   const upb_MiniTableField field = {12, 16, 69, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3939   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
3940   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
3941 }
3942 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_MessageOptions_mutable_features(google_protobuf_MessageOptions* msg, upb_Arena* arena) {
3943   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_MessageOptions_features(msg);
3944   if (sub == NULL) {
3945     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
3946     if (sub) google_protobuf_MessageOptions_set_features(msg, sub);
3947   }
3948   return sub;
3949 }
3950 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MessageOptions_mutable_uninterpreted_option(google_protobuf_MessageOptions* msg, size_t* size) {
3951   upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3952   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
3953   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
3954   if (arr) {
3955     if (size) *size = arr->UPB_PRIVATE(size);
3956     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
3957   } else {
3958     if (size) *size = 0;
3959     return NULL;
3960   }
3961 }
3962 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MessageOptions_resize_uninterpreted_option(google_protobuf_MessageOptions* msg, size_t size, upb_Arena* arena) {
3963   upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3964   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
3965                                                    &field, size, arena);
3966 }
3967 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MessageOptions_add_uninterpreted_option(google_protobuf_MessageOptions* msg, upb_Arena* arena) {
3968   upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
3969   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
3970   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
3971       UPB_UPCAST(msg), &field, arena);
3972   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
3973                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
3974     return NULL;
3975   }
3976   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
3977   if (!arr || !sub) return NULL;
3978   UPB_PRIVATE(_upb_Array_Set)
3979   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
3980   return sub;
3981 }
3982 
3983 /* google.protobuf.FieldOptions */
3984 
3985 UPB_INLINE google_protobuf_FieldOptions* google_protobuf_FieldOptions_new(upb_Arena* arena) {
3986   return (google_protobuf_FieldOptions*)_upb_Message_New(&google__protobuf__FieldOptions_msg_init, arena);
3987 }
3988 UPB_INLINE google_protobuf_FieldOptions* google_protobuf_FieldOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
3989   google_protobuf_FieldOptions* ret = google_protobuf_FieldOptions_new(arena);
3990   if (!ret) return NULL;
3991   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldOptions_msg_init, NULL, 0, arena) !=
3992       kUpb_DecodeStatus_Ok) {
3993     return NULL;
3994   }
3995   return ret;
3996 }
3997 UPB_INLINE google_protobuf_FieldOptions* google_protobuf_FieldOptions_parse_ex(const char* buf, size_t size,
3998                            const upb_ExtensionRegistry* extreg,
3999                            int options, upb_Arena* arena) {
4000   google_protobuf_FieldOptions* ret = google_protobuf_FieldOptions_new(arena);
4001   if (!ret) return NULL;
4002   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldOptions_msg_init, extreg, options,
4003                  arena) != kUpb_DecodeStatus_Ok) {
4004     return NULL;
4005   }
4006   return ret;
4007 }
4008 UPB_INLINE char* google_protobuf_FieldOptions_serialize(const google_protobuf_FieldOptions* msg, upb_Arena* arena, size_t* len) {
4009   char* ptr;
4010   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldOptions_msg_init, 0, arena, &ptr, len);
4011   return ptr;
4012 }
4013 UPB_INLINE char* google_protobuf_FieldOptions_serialize_ex(const google_protobuf_FieldOptions* msg, int options,
4014                                  upb_Arena* arena, size_t* len) {
4015   char* ptr;
4016   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldOptions_msg_init, options, arena, &ptr, len);
4017   return ptr;
4018 }
4019 UPB_INLINE void google_protobuf_FieldOptions_clear_ctype(google_protobuf_FieldOptions* msg) {
4020   const upb_MiniTableField field = {1, 12, 64, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4021   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4022 }
4023 UPB_INLINE int32_t google_protobuf_FieldOptions_ctype(const google_protobuf_FieldOptions* msg) {
4024   int32_t default_val = 0;
4025   int32_t ret;
4026   const upb_MiniTableField field = {1, 12, 64, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4027   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4028                                     &default_val, &ret);
4029   return ret;
4030 }
4031 UPB_INLINE bool google_protobuf_FieldOptions_has_ctype(const google_protobuf_FieldOptions* msg) {
4032   const upb_MiniTableField field = {1, 12, 64, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4033   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4034 }
4035 UPB_INLINE void google_protobuf_FieldOptions_clear_packed(google_protobuf_FieldOptions* msg) {
4036   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4037   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4038 }
4039 UPB_INLINE bool google_protobuf_FieldOptions_packed(const google_protobuf_FieldOptions* msg) {
4040   bool default_val = false;
4041   bool ret;
4042   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4043   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4044                                     &default_val, &ret);
4045   return ret;
4046 }
4047 UPB_INLINE bool google_protobuf_FieldOptions_has_packed(const google_protobuf_FieldOptions* msg) {
4048   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4049   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4050 }
4051 UPB_INLINE void google_protobuf_FieldOptions_clear_deprecated(google_protobuf_FieldOptions* msg) {
4052   const upb_MiniTableField field = {3, 17, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4053   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4054 }
4055 UPB_INLINE bool google_protobuf_FieldOptions_deprecated(const google_protobuf_FieldOptions* msg) {
4056   bool default_val = false;
4057   bool ret;
4058   const upb_MiniTableField field = {3, 17, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4059   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4060                                     &default_val, &ret);
4061   return ret;
4062 }
4063 UPB_INLINE bool google_protobuf_FieldOptions_has_deprecated(const google_protobuf_FieldOptions* msg) {
4064   const upb_MiniTableField field = {3, 17, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4065   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4066 }
4067 UPB_INLINE void google_protobuf_FieldOptions_clear_lazy(google_protobuf_FieldOptions* msg) {
4068   const upb_MiniTableField field = {5, 18, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4069   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4070 }
4071 UPB_INLINE bool google_protobuf_FieldOptions_lazy(const google_protobuf_FieldOptions* msg) {
4072   bool default_val = false;
4073   bool ret;
4074   const upb_MiniTableField field = {5, 18, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4075   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4076                                     &default_val, &ret);
4077   return ret;
4078 }
4079 UPB_INLINE bool google_protobuf_FieldOptions_has_lazy(const google_protobuf_FieldOptions* msg) {
4080   const upb_MiniTableField field = {5, 18, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4081   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4082 }
4083 UPB_INLINE void google_protobuf_FieldOptions_clear_jstype(google_protobuf_FieldOptions* msg) {
4084   const upb_MiniTableField field = {6, 20, 68, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4085   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4086 }
4087 UPB_INLINE int32_t google_protobuf_FieldOptions_jstype(const google_protobuf_FieldOptions* msg) {
4088   int32_t default_val = 0;
4089   int32_t ret;
4090   const upb_MiniTableField field = {6, 20, 68, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4091   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4092                                     &default_val, &ret);
4093   return ret;
4094 }
4095 UPB_INLINE bool google_protobuf_FieldOptions_has_jstype(const google_protobuf_FieldOptions* msg) {
4096   const upb_MiniTableField field = {6, 20, 68, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4097   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4098 }
4099 UPB_INLINE void google_protobuf_FieldOptions_clear_weak(google_protobuf_FieldOptions* msg) {
4100   const upb_MiniTableField field = {10, 24, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4101   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4102 }
4103 UPB_INLINE bool google_protobuf_FieldOptions_weak(const google_protobuf_FieldOptions* msg) {
4104   bool default_val = false;
4105   bool ret;
4106   const upb_MiniTableField field = {10, 24, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4107   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4108                                     &default_val, &ret);
4109   return ret;
4110 }
4111 UPB_INLINE bool google_protobuf_FieldOptions_has_weak(const google_protobuf_FieldOptions* msg) {
4112   const upb_MiniTableField field = {10, 24, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4113   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4114 }
4115 UPB_INLINE void google_protobuf_FieldOptions_clear_unverified_lazy(google_protobuf_FieldOptions* msg) {
4116   const upb_MiniTableField field = {15, 25, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4117   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4118 }
4119 UPB_INLINE bool google_protobuf_FieldOptions_unverified_lazy(const google_protobuf_FieldOptions* msg) {
4120   bool default_val = false;
4121   bool ret;
4122   const upb_MiniTableField field = {15, 25, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4123   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4124                                     &default_val, &ret);
4125   return ret;
4126 }
4127 UPB_INLINE bool google_protobuf_FieldOptions_has_unverified_lazy(const google_protobuf_FieldOptions* msg) {
4128   const upb_MiniTableField field = {15, 25, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4129   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4130 }
4131 UPB_INLINE void google_protobuf_FieldOptions_clear_debug_redact(google_protobuf_FieldOptions* msg) {
4132   const upb_MiniTableField field = {16, 26, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4133   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4134 }
4135 UPB_INLINE bool google_protobuf_FieldOptions_debug_redact(const google_protobuf_FieldOptions* msg) {
4136   bool default_val = false;
4137   bool ret;
4138   const upb_MiniTableField field = {16, 26, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4139   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4140                                     &default_val, &ret);
4141   return ret;
4142 }
4143 UPB_INLINE bool google_protobuf_FieldOptions_has_debug_redact(const google_protobuf_FieldOptions* msg) {
4144   const upb_MiniTableField field = {16, 26, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4145   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4146 }
4147 UPB_INLINE void google_protobuf_FieldOptions_clear_retention(google_protobuf_FieldOptions* msg) {
4148   const upb_MiniTableField field = {17, 28, 72, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4149   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4150 }
4151 UPB_INLINE int32_t google_protobuf_FieldOptions_retention(const google_protobuf_FieldOptions* msg) {
4152   int32_t default_val = 0;
4153   int32_t ret;
4154   const upb_MiniTableField field = {17, 28, 72, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4155   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4156                                     &default_val, &ret);
4157   return ret;
4158 }
4159 UPB_INLINE bool google_protobuf_FieldOptions_has_retention(const google_protobuf_FieldOptions* msg) {
4160   const upb_MiniTableField field = {17, 28, 72, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4161   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4162 }
4163 UPB_INLINE void google_protobuf_FieldOptions_clear_targets(google_protobuf_FieldOptions* msg) {
4164   const upb_MiniTableField field = {19, 32, 0, 7, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4165   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4166 }
4167 UPB_INLINE int32_t const* google_protobuf_FieldOptions_targets(const google_protobuf_FieldOptions* msg, size_t* size) {
4168   const upb_MiniTableField field = {19, 32, 0, 7, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4169   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4170   if (arr) {
4171     if (size) *size = arr->UPB_PRIVATE(size);
4172     return (int32_t const*)upb_Array_DataPtr(arr);
4173   } else {
4174     if (size) *size = 0;
4175     return NULL;
4176   }
4177 }
4178 UPB_INLINE const upb_Array* _google_protobuf_FieldOptions_targets_upb_array(const google_protobuf_FieldOptions* msg, size_t* size) {
4179   const upb_MiniTableField field = {19, 32, 0, 7, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4180   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4181   if (size) {
4182     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4183   }
4184   return arr;
4185 }
4186 UPB_INLINE upb_Array* _google_protobuf_FieldOptions_targets_mutable_upb_array(google_protobuf_FieldOptions* msg, size_t* size, upb_Arena* arena) {
4187   const upb_MiniTableField field = {19, 32, 0, 7, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4188   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4189                                                        &field, arena);
4190   if (size) {
4191     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4192   }
4193   return arr;
4194 }
4195 UPB_INLINE void google_protobuf_FieldOptions_clear_edition_defaults(google_protobuf_FieldOptions* msg) {
4196   const upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4197   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4198 }
4199 UPB_INLINE const google_protobuf_FieldOptions_EditionDefault* const* google_protobuf_FieldOptions_edition_defaults(const google_protobuf_FieldOptions* msg, size_t* size) {
4200   const upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4201   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldOptions__EditionDefault_msg_init);
4202   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4203   if (arr) {
4204     if (size) *size = arr->UPB_PRIVATE(size);
4205     return (const google_protobuf_FieldOptions_EditionDefault* const*)upb_Array_DataPtr(arr);
4206   } else {
4207     if (size) *size = 0;
4208     return NULL;
4209   }
4210 }
4211 UPB_INLINE const upb_Array* _google_protobuf_FieldOptions_edition_defaults_upb_array(const google_protobuf_FieldOptions* msg, size_t* size) {
4212   const upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4213   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldOptions__EditionDefault_msg_init);
4214   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4215   if (size) {
4216     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4217   }
4218   return arr;
4219 }
4220 UPB_INLINE upb_Array* _google_protobuf_FieldOptions_edition_defaults_mutable_upb_array(google_protobuf_FieldOptions* msg, size_t* size, upb_Arena* arena) {
4221   const upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4222   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldOptions__EditionDefault_msg_init);
4223   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4224                                                        &field, arena);
4225   if (size) {
4226     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4227   }
4228   return arr;
4229 }
4230 UPB_INLINE void google_protobuf_FieldOptions_clear_features(google_protobuf_FieldOptions* msg) {
4231   const upb_MiniTableField field = {21, UPB_SIZE(40, 48), 73, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4232   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4233 }
4234 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_FieldOptions_features(const google_protobuf_FieldOptions* msg) {
4235   const google_protobuf_FeatureSet* default_val = NULL;
4236   const google_protobuf_FeatureSet* ret;
4237   const upb_MiniTableField field = {21, UPB_SIZE(40, 48), 73, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4238   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
4239   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4240                                     &default_val, &ret);
4241   return ret;
4242 }
4243 UPB_INLINE bool google_protobuf_FieldOptions_has_features(const google_protobuf_FieldOptions* msg) {
4244   const upb_MiniTableField field = {21, UPB_SIZE(40, 48), 73, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4245   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4246 }
4247 UPB_INLINE void google_protobuf_FieldOptions_clear_feature_support(google_protobuf_FieldOptions* msg) {
4248   const upb_MiniTableField field = {22, UPB_SIZE(44, 56), 74, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4249   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4250 }
4251 UPB_INLINE const google_protobuf_FieldOptions_FeatureSupport* google_protobuf_FieldOptions_feature_support(const google_protobuf_FieldOptions* msg) {
4252   const google_protobuf_FieldOptions_FeatureSupport* default_val = NULL;
4253   const google_protobuf_FieldOptions_FeatureSupport* ret;
4254   const upb_MiniTableField field = {22, UPB_SIZE(44, 56), 74, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4255   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldOptions__FeatureSupport_msg_init);
4256   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4257                                     &default_val, &ret);
4258   return ret;
4259 }
4260 UPB_INLINE bool google_protobuf_FieldOptions_has_feature_support(const google_protobuf_FieldOptions* msg) {
4261   const upb_MiniTableField field = {22, UPB_SIZE(44, 56), 74, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4262   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4263 }
4264 UPB_INLINE void google_protobuf_FieldOptions_clear_uninterpreted_option(google_protobuf_FieldOptions* msg) {
4265   const upb_MiniTableField field = {999, UPB_SIZE(48, 64), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4266   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4267 }
4268 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_FieldOptions_uninterpreted_option(const google_protobuf_FieldOptions* msg, size_t* size) {
4269   const upb_MiniTableField field = {999, UPB_SIZE(48, 64), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4270   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4271   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4272   if (arr) {
4273     if (size) *size = arr->UPB_PRIVATE(size);
4274     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
4275   } else {
4276     if (size) *size = 0;
4277     return NULL;
4278   }
4279 }
4280 UPB_INLINE const upb_Array* _google_protobuf_FieldOptions_uninterpreted_option_upb_array(const google_protobuf_FieldOptions* msg, size_t* size) {
4281   const upb_MiniTableField field = {999, UPB_SIZE(48, 64), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4282   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4283   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4284   if (size) {
4285     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4286   }
4287   return arr;
4288 }
4289 UPB_INLINE upb_Array* _google_protobuf_FieldOptions_uninterpreted_option_mutable_upb_array(google_protobuf_FieldOptions* msg, size_t* size, upb_Arena* arena) {
4290   const upb_MiniTableField field = {999, UPB_SIZE(48, 64), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4291   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4292   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4293                                                        &field, arena);
4294   if (size) {
4295     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4296   }
4297   return arr;
4298 }
4299 
4300 UPB_INLINE void google_protobuf_FieldOptions_set_ctype(google_protobuf_FieldOptions *msg, int32_t value) {
4301   const upb_MiniTableField field = {1, 12, 64, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4302   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4303 }
4304 UPB_INLINE void google_protobuf_FieldOptions_set_packed(google_protobuf_FieldOptions *msg, bool value) {
4305   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4306   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4307 }
4308 UPB_INLINE void google_protobuf_FieldOptions_set_deprecated(google_protobuf_FieldOptions *msg, bool value) {
4309   const upb_MiniTableField field = {3, 17, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4310   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4311 }
4312 UPB_INLINE void google_protobuf_FieldOptions_set_lazy(google_protobuf_FieldOptions *msg, bool value) {
4313   const upb_MiniTableField field = {5, 18, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4314   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4315 }
4316 UPB_INLINE void google_protobuf_FieldOptions_set_jstype(google_protobuf_FieldOptions *msg, int32_t value) {
4317   const upb_MiniTableField field = {6, 20, 68, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4318   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4319 }
4320 UPB_INLINE void google_protobuf_FieldOptions_set_weak(google_protobuf_FieldOptions *msg, bool value) {
4321   const upb_MiniTableField field = {10, 24, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4322   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4323 }
4324 UPB_INLINE void google_protobuf_FieldOptions_set_unverified_lazy(google_protobuf_FieldOptions *msg, bool value) {
4325   const upb_MiniTableField field = {15, 25, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4326   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4327 }
4328 UPB_INLINE void google_protobuf_FieldOptions_set_debug_redact(google_protobuf_FieldOptions *msg, bool value) {
4329   const upb_MiniTableField field = {16, 26, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4330   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4331 }
4332 UPB_INLINE void google_protobuf_FieldOptions_set_retention(google_protobuf_FieldOptions *msg, int32_t value) {
4333   const upb_MiniTableField field = {17, 28, 72, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4334   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4335 }
4336 UPB_INLINE int32_t* google_protobuf_FieldOptions_mutable_targets(google_protobuf_FieldOptions* msg, size_t* size) {
4337   upb_MiniTableField field = {19, 32, 0, 7, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4338   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4339   if (arr) {
4340     if (size) *size = arr->UPB_PRIVATE(size);
4341     return (int32_t*)upb_Array_MutableDataPtr(arr);
4342   } else {
4343     if (size) *size = 0;
4344     return NULL;
4345   }
4346 }
4347 UPB_INLINE int32_t* google_protobuf_FieldOptions_resize_targets(google_protobuf_FieldOptions* msg, size_t size, upb_Arena* arena) {
4348   upb_MiniTableField field = {19, 32, 0, 7, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4349   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4350                                                    &field, size, arena);
4351 }
4352 UPB_INLINE bool google_protobuf_FieldOptions_add_targets(google_protobuf_FieldOptions* msg, int32_t val, upb_Arena* arena) {
4353   upb_MiniTableField field = {19, 32, 0, 7, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4354   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4355       UPB_UPCAST(msg), &field, arena);
4356   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4357                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4358     return false;
4359   }
4360   UPB_PRIVATE(_upb_Array_Set)
4361   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
4362   return true;
4363 }
4364 UPB_INLINE google_protobuf_FieldOptions_EditionDefault** google_protobuf_FieldOptions_mutable_edition_defaults(google_protobuf_FieldOptions* msg, size_t* size) {
4365   upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4366   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldOptions__EditionDefault_msg_init);
4367   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4368   if (arr) {
4369     if (size) *size = arr->UPB_PRIVATE(size);
4370     return (google_protobuf_FieldOptions_EditionDefault**)upb_Array_MutableDataPtr(arr);
4371   } else {
4372     if (size) *size = 0;
4373     return NULL;
4374   }
4375 }
4376 UPB_INLINE google_protobuf_FieldOptions_EditionDefault** google_protobuf_FieldOptions_resize_edition_defaults(google_protobuf_FieldOptions* msg, size_t size, upb_Arena* arena) {
4377   upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4378   return (google_protobuf_FieldOptions_EditionDefault**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4379                                                    &field, size, arena);
4380 }
4381 UPB_INLINE struct google_protobuf_FieldOptions_EditionDefault* google_protobuf_FieldOptions_add_edition_defaults(google_protobuf_FieldOptions* msg, upb_Arena* arena) {
4382   upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4383   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldOptions__EditionDefault_msg_init);
4384   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4385       UPB_UPCAST(msg), &field, arena);
4386   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4387                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4388     return NULL;
4389   }
4390   struct google_protobuf_FieldOptions_EditionDefault* sub = (struct google_protobuf_FieldOptions_EditionDefault*)_upb_Message_New(&google__protobuf__FieldOptions__EditionDefault_msg_init, arena);
4391   if (!arr || !sub) return NULL;
4392   UPB_PRIVATE(_upb_Array_Set)
4393   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
4394   return sub;
4395 }
4396 UPB_INLINE void google_protobuf_FieldOptions_set_features(google_protobuf_FieldOptions *msg, google_protobuf_FeatureSet* value) {
4397   const upb_MiniTableField field = {21, UPB_SIZE(40, 48), 73, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4398   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
4399   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4400 }
4401 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_FieldOptions_mutable_features(google_protobuf_FieldOptions* msg, upb_Arena* arena) {
4402   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_FieldOptions_features(msg);
4403   if (sub == NULL) {
4404     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
4405     if (sub) google_protobuf_FieldOptions_set_features(msg, sub);
4406   }
4407   return sub;
4408 }
4409 UPB_INLINE void google_protobuf_FieldOptions_set_feature_support(google_protobuf_FieldOptions *msg, google_protobuf_FieldOptions_FeatureSupport* value) {
4410   const upb_MiniTableField field = {22, UPB_SIZE(44, 56), 74, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4411   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldOptions__FeatureSupport_msg_init);
4412   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4413 }
4414 UPB_INLINE struct google_protobuf_FieldOptions_FeatureSupport* google_protobuf_FieldOptions_mutable_feature_support(google_protobuf_FieldOptions* msg, upb_Arena* arena) {
4415   struct google_protobuf_FieldOptions_FeatureSupport* sub = (struct google_protobuf_FieldOptions_FeatureSupport*)google_protobuf_FieldOptions_feature_support(msg);
4416   if (sub == NULL) {
4417     sub = (struct google_protobuf_FieldOptions_FeatureSupport*)_upb_Message_New(&google__protobuf__FieldOptions__FeatureSupport_msg_init, arena);
4418     if (sub) google_protobuf_FieldOptions_set_feature_support(msg, sub);
4419   }
4420   return sub;
4421 }
4422 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FieldOptions_mutable_uninterpreted_option(google_protobuf_FieldOptions* msg, size_t* size) {
4423   upb_MiniTableField field = {999, UPB_SIZE(48, 64), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4424   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4425   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4426   if (arr) {
4427     if (size) *size = arr->UPB_PRIVATE(size);
4428     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
4429   } else {
4430     if (size) *size = 0;
4431     return NULL;
4432   }
4433 }
4434 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FieldOptions_resize_uninterpreted_option(google_protobuf_FieldOptions* msg, size_t size, upb_Arena* arena) {
4435   upb_MiniTableField field = {999, UPB_SIZE(48, 64), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4436   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4437                                                    &field, size, arena);
4438 }
4439 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FieldOptions_add_uninterpreted_option(google_protobuf_FieldOptions* msg, upb_Arena* arena) {
4440   upb_MiniTableField field = {999, UPB_SIZE(48, 64), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4441   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4442   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4443       UPB_UPCAST(msg), &field, arena);
4444   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4445                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4446     return NULL;
4447   }
4448   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
4449   if (!arr || !sub) return NULL;
4450   UPB_PRIVATE(_upb_Array_Set)
4451   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
4452   return sub;
4453 }
4454 
4455 /* google.protobuf.FieldOptions.EditionDefault */
4456 
4457 UPB_INLINE google_protobuf_FieldOptions_EditionDefault* google_protobuf_FieldOptions_EditionDefault_new(upb_Arena* arena) {
4458   return (google_protobuf_FieldOptions_EditionDefault*)_upb_Message_New(&google__protobuf__FieldOptions__EditionDefault_msg_init, arena);
4459 }
4460 UPB_INLINE google_protobuf_FieldOptions_EditionDefault* google_protobuf_FieldOptions_EditionDefault_parse(const char* buf, size_t size, upb_Arena* arena) {
4461   google_protobuf_FieldOptions_EditionDefault* ret = google_protobuf_FieldOptions_EditionDefault_new(arena);
4462   if (!ret) return NULL;
4463   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldOptions__EditionDefault_msg_init, NULL, 0, arena) !=
4464       kUpb_DecodeStatus_Ok) {
4465     return NULL;
4466   }
4467   return ret;
4468 }
4469 UPB_INLINE google_protobuf_FieldOptions_EditionDefault* google_protobuf_FieldOptions_EditionDefault_parse_ex(const char* buf, size_t size,
4470                            const upb_ExtensionRegistry* extreg,
4471                            int options, upb_Arena* arena) {
4472   google_protobuf_FieldOptions_EditionDefault* ret = google_protobuf_FieldOptions_EditionDefault_new(arena);
4473   if (!ret) return NULL;
4474   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldOptions__EditionDefault_msg_init, extreg, options,
4475                  arena) != kUpb_DecodeStatus_Ok) {
4476     return NULL;
4477   }
4478   return ret;
4479 }
4480 UPB_INLINE char* google_protobuf_FieldOptions_EditionDefault_serialize(const google_protobuf_FieldOptions_EditionDefault* msg, upb_Arena* arena, size_t* len) {
4481   char* ptr;
4482   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldOptions__EditionDefault_msg_init, 0, arena, &ptr, len);
4483   return ptr;
4484 }
4485 UPB_INLINE char* google_protobuf_FieldOptions_EditionDefault_serialize_ex(const google_protobuf_FieldOptions_EditionDefault* msg, int options,
4486                                  upb_Arena* arena, size_t* len) {
4487   char* ptr;
4488   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldOptions__EditionDefault_msg_init, options, arena, &ptr, len);
4489   return ptr;
4490 }
4491 UPB_INLINE void google_protobuf_FieldOptions_EditionDefault_clear_value(google_protobuf_FieldOptions_EditionDefault* msg) {
4492   const upb_MiniTableField field = {2, 16, 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
4493   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4494 }
4495 UPB_INLINE upb_StringView google_protobuf_FieldOptions_EditionDefault_value(const google_protobuf_FieldOptions_EditionDefault* msg) {
4496   upb_StringView default_val = upb_StringView_FromString("");
4497   upb_StringView ret;
4498   const upb_MiniTableField field = {2, 16, 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
4499   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4500                                     &default_val, &ret);
4501   return ret;
4502 }
4503 UPB_INLINE bool google_protobuf_FieldOptions_EditionDefault_has_value(const google_protobuf_FieldOptions_EditionDefault* msg) {
4504   const upb_MiniTableField field = {2, 16, 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
4505   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4506 }
4507 UPB_INLINE void google_protobuf_FieldOptions_EditionDefault_clear_edition(google_protobuf_FieldOptions_EditionDefault* msg) {
4508   const upb_MiniTableField field = {3, 12, 65, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4509   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4510 }
4511 UPB_INLINE int32_t google_protobuf_FieldOptions_EditionDefault_edition(const google_protobuf_FieldOptions_EditionDefault* msg) {
4512   int32_t default_val = 0;
4513   int32_t ret;
4514   const upb_MiniTableField field = {3, 12, 65, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4515   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4516                                     &default_val, &ret);
4517   return ret;
4518 }
4519 UPB_INLINE bool google_protobuf_FieldOptions_EditionDefault_has_edition(const google_protobuf_FieldOptions_EditionDefault* msg) {
4520   const upb_MiniTableField field = {3, 12, 65, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4521   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4522 }
4523 
4524 UPB_INLINE void google_protobuf_FieldOptions_EditionDefault_set_value(google_protobuf_FieldOptions_EditionDefault *msg, upb_StringView value) {
4525   const upb_MiniTableField field = {2, 16, 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
4526   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4527 }
4528 UPB_INLINE void google_protobuf_FieldOptions_EditionDefault_set_edition(google_protobuf_FieldOptions_EditionDefault *msg, int32_t value) {
4529   const upb_MiniTableField field = {3, 12, 65, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4530   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4531 }
4532 
4533 /* google.protobuf.FieldOptions.FeatureSupport */
4534 
4535 UPB_INLINE google_protobuf_FieldOptions_FeatureSupport* google_protobuf_FieldOptions_FeatureSupport_new(upb_Arena* arena) {
4536   return (google_protobuf_FieldOptions_FeatureSupport*)_upb_Message_New(&google__protobuf__FieldOptions__FeatureSupport_msg_init, arena);
4537 }
4538 UPB_INLINE google_protobuf_FieldOptions_FeatureSupport* google_protobuf_FieldOptions_FeatureSupport_parse(const char* buf, size_t size, upb_Arena* arena) {
4539   google_protobuf_FieldOptions_FeatureSupport* ret = google_protobuf_FieldOptions_FeatureSupport_new(arena);
4540   if (!ret) return NULL;
4541   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldOptions__FeatureSupport_msg_init, NULL, 0, arena) !=
4542       kUpb_DecodeStatus_Ok) {
4543     return NULL;
4544   }
4545   return ret;
4546 }
4547 UPB_INLINE google_protobuf_FieldOptions_FeatureSupport* google_protobuf_FieldOptions_FeatureSupport_parse_ex(const char* buf, size_t size,
4548                            const upb_ExtensionRegistry* extreg,
4549                            int options, upb_Arena* arena) {
4550   google_protobuf_FieldOptions_FeatureSupport* ret = google_protobuf_FieldOptions_FeatureSupport_new(arena);
4551   if (!ret) return NULL;
4552   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldOptions__FeatureSupport_msg_init, extreg, options,
4553                  arena) != kUpb_DecodeStatus_Ok) {
4554     return NULL;
4555   }
4556   return ret;
4557 }
4558 UPB_INLINE char* google_protobuf_FieldOptions_FeatureSupport_serialize(const google_protobuf_FieldOptions_FeatureSupport* msg, upb_Arena* arena, size_t* len) {
4559   char* ptr;
4560   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldOptions__FeatureSupport_msg_init, 0, arena, &ptr, len);
4561   return ptr;
4562 }
4563 UPB_INLINE char* google_protobuf_FieldOptions_FeatureSupport_serialize_ex(const google_protobuf_FieldOptions_FeatureSupport* msg, int options,
4564                                  upb_Arena* arena, size_t* len) {
4565   char* ptr;
4566   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldOptions__FeatureSupport_msg_init, options, arena, &ptr, len);
4567   return ptr;
4568 }
4569 UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_clear_edition_introduced(google_protobuf_FieldOptions_FeatureSupport* msg) {
4570   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4571   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4572 }
4573 UPB_INLINE int32_t google_protobuf_FieldOptions_FeatureSupport_edition_introduced(const google_protobuf_FieldOptions_FeatureSupport* msg) {
4574   int32_t default_val = 0;
4575   int32_t ret;
4576   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4577   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4578                                     &default_val, &ret);
4579   return ret;
4580 }
4581 UPB_INLINE bool google_protobuf_FieldOptions_FeatureSupport_has_edition_introduced(const google_protobuf_FieldOptions_FeatureSupport* msg) {
4582   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4583   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4584 }
4585 UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_clear_edition_deprecated(google_protobuf_FieldOptions_FeatureSupport* msg) {
4586   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4587   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4588 }
4589 UPB_INLINE int32_t google_protobuf_FieldOptions_FeatureSupport_edition_deprecated(const google_protobuf_FieldOptions_FeatureSupport* msg) {
4590   int32_t default_val = 0;
4591   int32_t ret;
4592   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4593   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4594                                     &default_val, &ret);
4595   return ret;
4596 }
4597 UPB_INLINE bool google_protobuf_FieldOptions_FeatureSupport_has_edition_deprecated(const google_protobuf_FieldOptions_FeatureSupport* msg) {
4598   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4599   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4600 }
4601 UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_clear_deprecation_warning(google_protobuf_FieldOptions_FeatureSupport* msg) {
4602   const upb_MiniTableField field = {3, 24, 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
4603   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4604 }
4605 UPB_INLINE upb_StringView google_protobuf_FieldOptions_FeatureSupport_deprecation_warning(const google_protobuf_FieldOptions_FeatureSupport* msg) {
4606   upb_StringView default_val = upb_StringView_FromString("");
4607   upb_StringView ret;
4608   const upb_MiniTableField field = {3, 24, 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
4609   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4610                                     &default_val, &ret);
4611   return ret;
4612 }
4613 UPB_INLINE bool google_protobuf_FieldOptions_FeatureSupport_has_deprecation_warning(const google_protobuf_FieldOptions_FeatureSupport* msg) {
4614   const upb_MiniTableField field = {3, 24, 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
4615   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4616 }
4617 UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_clear_edition_removed(google_protobuf_FieldOptions_FeatureSupport* msg) {
4618   const upb_MiniTableField field = {4, 20, 67, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4619   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4620 }
4621 UPB_INLINE int32_t google_protobuf_FieldOptions_FeatureSupport_edition_removed(const google_protobuf_FieldOptions_FeatureSupport* msg) {
4622   int32_t default_val = 0;
4623   int32_t ret;
4624   const upb_MiniTableField field = {4, 20, 67, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4625   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4626                                     &default_val, &ret);
4627   return ret;
4628 }
4629 UPB_INLINE bool google_protobuf_FieldOptions_FeatureSupport_has_edition_removed(const google_protobuf_FieldOptions_FeatureSupport* msg) {
4630   const upb_MiniTableField field = {4, 20, 67, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4631   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4632 }
4633 
4634 UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_set_edition_introduced(google_protobuf_FieldOptions_FeatureSupport *msg, int32_t value) {
4635   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4636   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4637 }
4638 UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_set_edition_deprecated(google_protobuf_FieldOptions_FeatureSupport *msg, int32_t value) {
4639   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4640   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4641 }
4642 UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_set_deprecation_warning(google_protobuf_FieldOptions_FeatureSupport *msg, upb_StringView value) {
4643   const upb_MiniTableField field = {3, 24, 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
4644   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4645 }
4646 UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_set_edition_removed(google_protobuf_FieldOptions_FeatureSupport *msg, int32_t value) {
4647   const upb_MiniTableField field = {4, 20, 67, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4648   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4649 }
4650 
4651 /* google.protobuf.OneofOptions */
4652 
4653 UPB_INLINE google_protobuf_OneofOptions* google_protobuf_OneofOptions_new(upb_Arena* arena) {
4654   return (google_protobuf_OneofOptions*)_upb_Message_New(&google__protobuf__OneofOptions_msg_init, arena);
4655 }
4656 UPB_INLINE google_protobuf_OneofOptions* google_protobuf_OneofOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
4657   google_protobuf_OneofOptions* ret = google_protobuf_OneofOptions_new(arena);
4658   if (!ret) return NULL;
4659   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__OneofOptions_msg_init, NULL, 0, arena) !=
4660       kUpb_DecodeStatus_Ok) {
4661     return NULL;
4662   }
4663   return ret;
4664 }
4665 UPB_INLINE google_protobuf_OneofOptions* google_protobuf_OneofOptions_parse_ex(const char* buf, size_t size,
4666                            const upb_ExtensionRegistry* extreg,
4667                            int options, upb_Arena* arena) {
4668   google_protobuf_OneofOptions* ret = google_protobuf_OneofOptions_new(arena);
4669   if (!ret) return NULL;
4670   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__OneofOptions_msg_init, extreg, options,
4671                  arena) != kUpb_DecodeStatus_Ok) {
4672     return NULL;
4673   }
4674   return ret;
4675 }
4676 UPB_INLINE char* google_protobuf_OneofOptions_serialize(const google_protobuf_OneofOptions* msg, upb_Arena* arena, size_t* len) {
4677   char* ptr;
4678   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__OneofOptions_msg_init, 0, arena, &ptr, len);
4679   return ptr;
4680 }
4681 UPB_INLINE char* google_protobuf_OneofOptions_serialize_ex(const google_protobuf_OneofOptions* msg, int options,
4682                                  upb_Arena* arena, size_t* len) {
4683   char* ptr;
4684   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__OneofOptions_msg_init, options, arena, &ptr, len);
4685   return ptr;
4686 }
4687 UPB_INLINE void google_protobuf_OneofOptions_clear_features(google_protobuf_OneofOptions* msg) {
4688   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4689   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4690 }
4691 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_OneofOptions_features(const google_protobuf_OneofOptions* msg) {
4692   const google_protobuf_FeatureSet* default_val = NULL;
4693   const google_protobuf_FeatureSet* ret;
4694   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4695   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
4696   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4697                                     &default_val, &ret);
4698   return ret;
4699 }
4700 UPB_INLINE bool google_protobuf_OneofOptions_has_features(const google_protobuf_OneofOptions* msg) {
4701   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4702   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4703 }
4704 UPB_INLINE void google_protobuf_OneofOptions_clear_uninterpreted_option(google_protobuf_OneofOptions* msg) {
4705   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4706   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4707 }
4708 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_OneofOptions_uninterpreted_option(const google_protobuf_OneofOptions* msg, size_t* size) {
4709   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4710   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4711   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4712   if (arr) {
4713     if (size) *size = arr->UPB_PRIVATE(size);
4714     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
4715   } else {
4716     if (size) *size = 0;
4717     return NULL;
4718   }
4719 }
4720 UPB_INLINE const upb_Array* _google_protobuf_OneofOptions_uninterpreted_option_upb_array(const google_protobuf_OneofOptions* msg, size_t* size) {
4721   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4722   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4723   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4724   if (size) {
4725     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4726   }
4727   return arr;
4728 }
4729 UPB_INLINE upb_Array* _google_protobuf_OneofOptions_uninterpreted_option_mutable_upb_array(google_protobuf_OneofOptions* msg, size_t* size, upb_Arena* arena) {
4730   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4731   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4732   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4733                                                        &field, arena);
4734   if (size) {
4735     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4736   }
4737   return arr;
4738 }
4739 
4740 UPB_INLINE void google_protobuf_OneofOptions_set_features(google_protobuf_OneofOptions *msg, google_protobuf_FeatureSet* value) {
4741   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4742   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
4743   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4744 }
4745 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_OneofOptions_mutable_features(google_protobuf_OneofOptions* msg, upb_Arena* arena) {
4746   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_OneofOptions_features(msg);
4747   if (sub == NULL) {
4748     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
4749     if (sub) google_protobuf_OneofOptions_set_features(msg, sub);
4750   }
4751   return sub;
4752 }
4753 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_OneofOptions_mutable_uninterpreted_option(google_protobuf_OneofOptions* msg, size_t* size) {
4754   upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4755   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4756   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4757   if (arr) {
4758     if (size) *size = arr->UPB_PRIVATE(size);
4759     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
4760   } else {
4761     if (size) *size = 0;
4762     return NULL;
4763   }
4764 }
4765 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_OneofOptions_resize_uninterpreted_option(google_protobuf_OneofOptions* msg, size_t size, upb_Arena* arena) {
4766   upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4767   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4768                                                    &field, size, arena);
4769 }
4770 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_OneofOptions_add_uninterpreted_option(google_protobuf_OneofOptions* msg, upb_Arena* arena) {
4771   upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4772   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4773   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4774       UPB_UPCAST(msg), &field, arena);
4775   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4776                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4777     return NULL;
4778   }
4779   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
4780   if (!arr || !sub) return NULL;
4781   UPB_PRIVATE(_upb_Array_Set)
4782   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
4783   return sub;
4784 }
4785 
4786 /* google.protobuf.EnumOptions */
4787 
4788 UPB_INLINE google_protobuf_EnumOptions* google_protobuf_EnumOptions_new(upb_Arena* arena) {
4789   return (google_protobuf_EnumOptions*)_upb_Message_New(&google__protobuf__EnumOptions_msg_init, arena);
4790 }
4791 UPB_INLINE google_protobuf_EnumOptions* google_protobuf_EnumOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
4792   google_protobuf_EnumOptions* ret = google_protobuf_EnumOptions_new(arena);
4793   if (!ret) return NULL;
4794   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumOptions_msg_init, NULL, 0, arena) !=
4795       kUpb_DecodeStatus_Ok) {
4796     return NULL;
4797   }
4798   return ret;
4799 }
4800 UPB_INLINE google_protobuf_EnumOptions* google_protobuf_EnumOptions_parse_ex(const char* buf, size_t size,
4801                            const upb_ExtensionRegistry* extreg,
4802                            int options, upb_Arena* arena) {
4803   google_protobuf_EnumOptions* ret = google_protobuf_EnumOptions_new(arena);
4804   if (!ret) return NULL;
4805   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumOptions_msg_init, extreg, options,
4806                  arena) != kUpb_DecodeStatus_Ok) {
4807     return NULL;
4808   }
4809   return ret;
4810 }
4811 UPB_INLINE char* google_protobuf_EnumOptions_serialize(const google_protobuf_EnumOptions* msg, upb_Arena* arena, size_t* len) {
4812   char* ptr;
4813   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumOptions_msg_init, 0, arena, &ptr, len);
4814   return ptr;
4815 }
4816 UPB_INLINE char* google_protobuf_EnumOptions_serialize_ex(const google_protobuf_EnumOptions* msg, int options,
4817                                  upb_Arena* arena, size_t* len) {
4818   char* ptr;
4819   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumOptions_msg_init, options, arena, &ptr, len);
4820   return ptr;
4821 }
4822 UPB_INLINE void google_protobuf_EnumOptions_clear_allow_alias(google_protobuf_EnumOptions* msg) {
4823   const upb_MiniTableField field = {2, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4824   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4825 }
4826 UPB_INLINE bool google_protobuf_EnumOptions_allow_alias(const google_protobuf_EnumOptions* msg) {
4827   bool default_val = false;
4828   bool ret;
4829   const upb_MiniTableField field = {2, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4830   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4831                                     &default_val, &ret);
4832   return ret;
4833 }
4834 UPB_INLINE bool google_protobuf_EnumOptions_has_allow_alias(const google_protobuf_EnumOptions* msg) {
4835   const upb_MiniTableField field = {2, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4836   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4837 }
4838 UPB_INLINE void google_protobuf_EnumOptions_clear_deprecated(google_protobuf_EnumOptions* msg) {
4839   const upb_MiniTableField field = {3, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4840   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4841 }
4842 UPB_INLINE bool google_protobuf_EnumOptions_deprecated(const google_protobuf_EnumOptions* msg) {
4843   bool default_val = false;
4844   bool ret;
4845   const upb_MiniTableField field = {3, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4846   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4847                                     &default_val, &ret);
4848   return ret;
4849 }
4850 UPB_INLINE bool google_protobuf_EnumOptions_has_deprecated(const google_protobuf_EnumOptions* msg) {
4851   const upb_MiniTableField field = {3, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4852   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4853 }
4854 UPB_INLINE void google_protobuf_EnumOptions_clear_deprecated_legacy_json_field_conflicts(google_protobuf_EnumOptions* msg) {
4855   const upb_MiniTableField field = {6, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4856   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4857 }
4858 UPB_INLINE bool google_protobuf_EnumOptions_deprecated_legacy_json_field_conflicts(const google_protobuf_EnumOptions* msg) {
4859   bool default_val = false;
4860   bool ret;
4861   const upb_MiniTableField field = {6, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4862   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4863                                     &default_val, &ret);
4864   return ret;
4865 }
4866 UPB_INLINE bool google_protobuf_EnumOptions_has_deprecated_legacy_json_field_conflicts(const google_protobuf_EnumOptions* msg) {
4867   const upb_MiniTableField field = {6, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4868   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4869 }
4870 UPB_INLINE void google_protobuf_EnumOptions_clear_features(google_protobuf_EnumOptions* msg) {
4871   const upb_MiniTableField field = {7, UPB_SIZE(12, 16), 67, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4872   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4873 }
4874 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_EnumOptions_features(const google_protobuf_EnumOptions* msg) {
4875   const google_protobuf_FeatureSet* default_val = NULL;
4876   const google_protobuf_FeatureSet* ret;
4877   const upb_MiniTableField field = {7, UPB_SIZE(12, 16), 67, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4878   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
4879   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4880                                     &default_val, &ret);
4881   return ret;
4882 }
4883 UPB_INLINE bool google_protobuf_EnumOptions_has_features(const google_protobuf_EnumOptions* msg) {
4884   const upb_MiniTableField field = {7, UPB_SIZE(12, 16), 67, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4885   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4886 }
4887 UPB_INLINE void google_protobuf_EnumOptions_clear_uninterpreted_option(google_protobuf_EnumOptions* msg) {
4888   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4889   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4890 }
4891 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_EnumOptions_uninterpreted_option(const google_protobuf_EnumOptions* msg, size_t* size) {
4892   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4893   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4894   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4895   if (arr) {
4896     if (size) *size = arr->UPB_PRIVATE(size);
4897     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
4898   } else {
4899     if (size) *size = 0;
4900     return NULL;
4901   }
4902 }
4903 UPB_INLINE const upb_Array* _google_protobuf_EnumOptions_uninterpreted_option_upb_array(const google_protobuf_EnumOptions* msg, size_t* size) {
4904   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4905   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4906   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4907   if (size) {
4908     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4909   }
4910   return arr;
4911 }
4912 UPB_INLINE upb_Array* _google_protobuf_EnumOptions_uninterpreted_option_mutable_upb_array(google_protobuf_EnumOptions* msg, size_t* size, upb_Arena* arena) {
4913   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4914   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4915   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4916                                                        &field, arena);
4917   if (size) {
4918     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4919   }
4920   return arr;
4921 }
4922 
4923 UPB_INLINE void google_protobuf_EnumOptions_set_allow_alias(google_protobuf_EnumOptions *msg, bool value) {
4924   const upb_MiniTableField field = {2, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4925   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4926 }
4927 UPB_INLINE void google_protobuf_EnumOptions_set_deprecated(google_protobuf_EnumOptions *msg, bool value) {
4928   const upb_MiniTableField field = {3, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4929   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4930 }
4931 UPB_INLINE void google_protobuf_EnumOptions_set_deprecated_legacy_json_field_conflicts(google_protobuf_EnumOptions *msg, bool value) {
4932   const upb_MiniTableField field = {6, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4933   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4934 }
4935 UPB_INLINE void google_protobuf_EnumOptions_set_features(google_protobuf_EnumOptions *msg, google_protobuf_FeatureSet* value) {
4936   const upb_MiniTableField field = {7, UPB_SIZE(12, 16), 67, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4937   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
4938   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
4939 }
4940 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_EnumOptions_mutable_features(google_protobuf_EnumOptions* msg, upb_Arena* arena) {
4941   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_EnumOptions_features(msg);
4942   if (sub == NULL) {
4943     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
4944     if (sub) google_protobuf_EnumOptions_set_features(msg, sub);
4945   }
4946   return sub;
4947 }
4948 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumOptions_mutable_uninterpreted_option(google_protobuf_EnumOptions* msg, size_t* size) {
4949   upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4950   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4951   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4952   if (arr) {
4953     if (size) *size = arr->UPB_PRIVATE(size);
4954     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
4955   } else {
4956     if (size) *size = 0;
4957     return NULL;
4958   }
4959 }
4960 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumOptions_resize_uninterpreted_option(google_protobuf_EnumOptions* msg, size_t size, upb_Arena* arena) {
4961   upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4962   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4963                                                    &field, size, arena);
4964 }
4965 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumOptions_add_uninterpreted_option(google_protobuf_EnumOptions* msg, upb_Arena* arena) {
4966   upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4967   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
4968   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4969       UPB_UPCAST(msg), &field, arena);
4970   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4971                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4972     return NULL;
4973   }
4974   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
4975   if (!arr || !sub) return NULL;
4976   UPB_PRIVATE(_upb_Array_Set)
4977   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
4978   return sub;
4979 }
4980 
4981 /* google.protobuf.EnumValueOptions */
4982 
4983 UPB_INLINE google_protobuf_EnumValueOptions* google_protobuf_EnumValueOptions_new(upb_Arena* arena) {
4984   return (google_protobuf_EnumValueOptions*)_upb_Message_New(&google__protobuf__EnumValueOptions_msg_init, arena);
4985 }
4986 UPB_INLINE google_protobuf_EnumValueOptions* google_protobuf_EnumValueOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
4987   google_protobuf_EnumValueOptions* ret = google_protobuf_EnumValueOptions_new(arena);
4988   if (!ret) return NULL;
4989   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumValueOptions_msg_init, NULL, 0, arena) !=
4990       kUpb_DecodeStatus_Ok) {
4991     return NULL;
4992   }
4993   return ret;
4994 }
4995 UPB_INLINE google_protobuf_EnumValueOptions* google_protobuf_EnumValueOptions_parse_ex(const char* buf, size_t size,
4996                            const upb_ExtensionRegistry* extreg,
4997                            int options, upb_Arena* arena) {
4998   google_protobuf_EnumValueOptions* ret = google_protobuf_EnumValueOptions_new(arena);
4999   if (!ret) return NULL;
5000   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumValueOptions_msg_init, extreg, options,
5001                  arena) != kUpb_DecodeStatus_Ok) {
5002     return NULL;
5003   }
5004   return ret;
5005 }
5006 UPB_INLINE char* google_protobuf_EnumValueOptions_serialize(const google_protobuf_EnumValueOptions* msg, upb_Arena* arena, size_t* len) {
5007   char* ptr;
5008   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumValueOptions_msg_init, 0, arena, &ptr, len);
5009   return ptr;
5010 }
5011 UPB_INLINE char* google_protobuf_EnumValueOptions_serialize_ex(const google_protobuf_EnumValueOptions* msg, int options,
5012                                  upb_Arena* arena, size_t* len) {
5013   char* ptr;
5014   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumValueOptions_msg_init, options, arena, &ptr, len);
5015   return ptr;
5016 }
5017 UPB_INLINE void google_protobuf_EnumValueOptions_clear_deprecated(google_protobuf_EnumValueOptions* msg) {
5018   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5019   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5020 }
5021 UPB_INLINE bool google_protobuf_EnumValueOptions_deprecated(const google_protobuf_EnumValueOptions* msg) {
5022   bool default_val = false;
5023   bool ret;
5024   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5025   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5026                                     &default_val, &ret);
5027   return ret;
5028 }
5029 UPB_INLINE bool google_protobuf_EnumValueOptions_has_deprecated(const google_protobuf_EnumValueOptions* msg) {
5030   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5031   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5032 }
5033 UPB_INLINE void google_protobuf_EnumValueOptions_clear_features(google_protobuf_EnumValueOptions* msg) {
5034   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5035   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5036 }
5037 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_EnumValueOptions_features(const google_protobuf_EnumValueOptions* msg) {
5038   const google_protobuf_FeatureSet* default_val = NULL;
5039   const google_protobuf_FeatureSet* ret;
5040   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5041   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
5042   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5043                                     &default_val, &ret);
5044   return ret;
5045 }
5046 UPB_INLINE bool google_protobuf_EnumValueOptions_has_features(const google_protobuf_EnumValueOptions* msg) {
5047   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5048   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5049 }
5050 UPB_INLINE void google_protobuf_EnumValueOptions_clear_debug_redact(google_protobuf_EnumValueOptions* msg) {
5051   const upb_MiniTableField field = {3, UPB_SIZE(16, 10), 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5052   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5053 }
5054 UPB_INLINE bool google_protobuf_EnumValueOptions_debug_redact(const google_protobuf_EnumValueOptions* msg) {
5055   bool default_val = false;
5056   bool ret;
5057   const upb_MiniTableField field = {3, UPB_SIZE(16, 10), 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5058   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5059                                     &default_val, &ret);
5060   return ret;
5061 }
5062 UPB_INLINE bool google_protobuf_EnumValueOptions_has_debug_redact(const google_protobuf_EnumValueOptions* msg) {
5063   const upb_MiniTableField field = {3, UPB_SIZE(16, 10), 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5064   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5065 }
5066 UPB_INLINE void google_protobuf_EnumValueOptions_clear_feature_support(google_protobuf_EnumValueOptions* msg) {
5067   const upb_MiniTableField field = {4, UPB_SIZE(20, 24), 67, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5068   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5069 }
5070 UPB_INLINE const google_protobuf_FieldOptions_FeatureSupport* google_protobuf_EnumValueOptions_feature_support(const google_protobuf_EnumValueOptions* msg) {
5071   const google_protobuf_FieldOptions_FeatureSupport* default_val = NULL;
5072   const google_protobuf_FieldOptions_FeatureSupport* ret;
5073   const upb_MiniTableField field = {4, UPB_SIZE(20, 24), 67, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5074   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldOptions__FeatureSupport_msg_init);
5075   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5076                                     &default_val, &ret);
5077   return ret;
5078 }
5079 UPB_INLINE bool google_protobuf_EnumValueOptions_has_feature_support(const google_protobuf_EnumValueOptions* msg) {
5080   const upb_MiniTableField field = {4, UPB_SIZE(20, 24), 67, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5081   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5082 }
5083 UPB_INLINE void google_protobuf_EnumValueOptions_clear_uninterpreted_option(google_protobuf_EnumValueOptions* msg) {
5084   const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5085   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5086 }
5087 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_EnumValueOptions_uninterpreted_option(const google_protobuf_EnumValueOptions* msg, size_t* size) {
5088   const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5089   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5090   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5091   if (arr) {
5092     if (size) *size = arr->UPB_PRIVATE(size);
5093     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
5094   } else {
5095     if (size) *size = 0;
5096     return NULL;
5097   }
5098 }
5099 UPB_INLINE const upb_Array* _google_protobuf_EnumValueOptions_uninterpreted_option_upb_array(const google_protobuf_EnumValueOptions* msg, size_t* size) {
5100   const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5101   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5102   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5103   if (size) {
5104     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5105   }
5106   return arr;
5107 }
5108 UPB_INLINE upb_Array* _google_protobuf_EnumValueOptions_uninterpreted_option_mutable_upb_array(google_protobuf_EnumValueOptions* msg, size_t* size, upb_Arena* arena) {
5109   const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5110   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5111   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
5112                                                        &field, arena);
5113   if (size) {
5114     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5115   }
5116   return arr;
5117 }
5118 
5119 UPB_INLINE void google_protobuf_EnumValueOptions_set_deprecated(google_protobuf_EnumValueOptions *msg, bool value) {
5120   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5121   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5122 }
5123 UPB_INLINE void google_protobuf_EnumValueOptions_set_features(google_protobuf_EnumValueOptions *msg, google_protobuf_FeatureSet* value) {
5124   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5125   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
5126   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5127 }
5128 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_EnumValueOptions_mutable_features(google_protobuf_EnumValueOptions* msg, upb_Arena* arena) {
5129   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_EnumValueOptions_features(msg);
5130   if (sub == NULL) {
5131     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
5132     if (sub) google_protobuf_EnumValueOptions_set_features(msg, sub);
5133   }
5134   return sub;
5135 }
5136 UPB_INLINE void google_protobuf_EnumValueOptions_set_debug_redact(google_protobuf_EnumValueOptions *msg, bool value) {
5137   const upb_MiniTableField field = {3, UPB_SIZE(16, 10), 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5138   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5139 }
5140 UPB_INLINE void google_protobuf_EnumValueOptions_set_feature_support(google_protobuf_EnumValueOptions *msg, google_protobuf_FieldOptions_FeatureSupport* value) {
5141   const upb_MiniTableField field = {4, UPB_SIZE(20, 24), 67, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5142   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FieldOptions__FeatureSupport_msg_init);
5143   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5144 }
5145 UPB_INLINE struct google_protobuf_FieldOptions_FeatureSupport* google_protobuf_EnumValueOptions_mutable_feature_support(google_protobuf_EnumValueOptions* msg, upb_Arena* arena) {
5146   struct google_protobuf_FieldOptions_FeatureSupport* sub = (struct google_protobuf_FieldOptions_FeatureSupport*)google_protobuf_EnumValueOptions_feature_support(msg);
5147   if (sub == NULL) {
5148     sub = (struct google_protobuf_FieldOptions_FeatureSupport*)_upb_Message_New(&google__protobuf__FieldOptions__FeatureSupport_msg_init, arena);
5149     if (sub) google_protobuf_EnumValueOptions_set_feature_support(msg, sub);
5150   }
5151   return sub;
5152 }
5153 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumValueOptions_mutable_uninterpreted_option(google_protobuf_EnumValueOptions* msg, size_t* size) {
5154   upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5155   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5156   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
5157   if (arr) {
5158     if (size) *size = arr->UPB_PRIVATE(size);
5159     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
5160   } else {
5161     if (size) *size = 0;
5162     return NULL;
5163   }
5164 }
5165 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumValueOptions_resize_uninterpreted_option(google_protobuf_EnumValueOptions* msg, size_t size, upb_Arena* arena) {
5166   upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5167   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
5168                                                    &field, size, arena);
5169 }
5170 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumValueOptions_add_uninterpreted_option(google_protobuf_EnumValueOptions* msg, upb_Arena* arena) {
5171   upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5172   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5173   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
5174       UPB_UPCAST(msg), &field, arena);
5175   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
5176                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
5177     return NULL;
5178   }
5179   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
5180   if (!arr || !sub) return NULL;
5181   UPB_PRIVATE(_upb_Array_Set)
5182   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
5183   return sub;
5184 }
5185 
5186 /* google.protobuf.ServiceOptions */
5187 
5188 UPB_INLINE google_protobuf_ServiceOptions* google_protobuf_ServiceOptions_new(upb_Arena* arena) {
5189   return (google_protobuf_ServiceOptions*)_upb_Message_New(&google__protobuf__ServiceOptions_msg_init, arena);
5190 }
5191 UPB_INLINE google_protobuf_ServiceOptions* google_protobuf_ServiceOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
5192   google_protobuf_ServiceOptions* ret = google_protobuf_ServiceOptions_new(arena);
5193   if (!ret) return NULL;
5194   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ServiceOptions_msg_init, NULL, 0, arena) !=
5195       kUpb_DecodeStatus_Ok) {
5196     return NULL;
5197   }
5198   return ret;
5199 }
5200 UPB_INLINE google_protobuf_ServiceOptions* google_protobuf_ServiceOptions_parse_ex(const char* buf, size_t size,
5201                            const upb_ExtensionRegistry* extreg,
5202                            int options, upb_Arena* arena) {
5203   google_protobuf_ServiceOptions* ret = google_protobuf_ServiceOptions_new(arena);
5204   if (!ret) return NULL;
5205   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ServiceOptions_msg_init, extreg, options,
5206                  arena) != kUpb_DecodeStatus_Ok) {
5207     return NULL;
5208   }
5209   return ret;
5210 }
5211 UPB_INLINE char* google_protobuf_ServiceOptions_serialize(const google_protobuf_ServiceOptions* msg, upb_Arena* arena, size_t* len) {
5212   char* ptr;
5213   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ServiceOptions_msg_init, 0, arena, &ptr, len);
5214   return ptr;
5215 }
5216 UPB_INLINE char* google_protobuf_ServiceOptions_serialize_ex(const google_protobuf_ServiceOptions* msg, int options,
5217                                  upb_Arena* arena, size_t* len) {
5218   char* ptr;
5219   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ServiceOptions_msg_init, options, arena, &ptr, len);
5220   return ptr;
5221 }
5222 UPB_INLINE void google_protobuf_ServiceOptions_clear_deprecated(google_protobuf_ServiceOptions* msg) {
5223   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5224   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5225 }
5226 UPB_INLINE bool google_protobuf_ServiceOptions_deprecated(const google_protobuf_ServiceOptions* msg) {
5227   bool default_val = false;
5228   bool ret;
5229   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5230   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5231                                     &default_val, &ret);
5232   return ret;
5233 }
5234 UPB_INLINE bool google_protobuf_ServiceOptions_has_deprecated(const google_protobuf_ServiceOptions* msg) {
5235   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5236   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5237 }
5238 UPB_INLINE void google_protobuf_ServiceOptions_clear_features(google_protobuf_ServiceOptions* msg) {
5239   const upb_MiniTableField field = {34, UPB_SIZE(12, 16), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5240   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5241 }
5242 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_ServiceOptions_features(const google_protobuf_ServiceOptions* msg) {
5243   const google_protobuf_FeatureSet* default_val = NULL;
5244   const google_protobuf_FeatureSet* ret;
5245   const upb_MiniTableField field = {34, UPB_SIZE(12, 16), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5246   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
5247   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5248                                     &default_val, &ret);
5249   return ret;
5250 }
5251 UPB_INLINE bool google_protobuf_ServiceOptions_has_features(const google_protobuf_ServiceOptions* msg) {
5252   const upb_MiniTableField field = {34, UPB_SIZE(12, 16), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5253   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5254 }
5255 UPB_INLINE void google_protobuf_ServiceOptions_clear_uninterpreted_option(google_protobuf_ServiceOptions* msg) {
5256   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5257   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5258 }
5259 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_ServiceOptions_uninterpreted_option(const google_protobuf_ServiceOptions* msg, size_t* size) {
5260   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5261   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5262   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5263   if (arr) {
5264     if (size) *size = arr->UPB_PRIVATE(size);
5265     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
5266   } else {
5267     if (size) *size = 0;
5268     return NULL;
5269   }
5270 }
5271 UPB_INLINE const upb_Array* _google_protobuf_ServiceOptions_uninterpreted_option_upb_array(const google_protobuf_ServiceOptions* msg, size_t* size) {
5272   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5273   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5274   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5275   if (size) {
5276     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5277   }
5278   return arr;
5279 }
5280 UPB_INLINE upb_Array* _google_protobuf_ServiceOptions_uninterpreted_option_mutable_upb_array(google_protobuf_ServiceOptions* msg, size_t* size, upb_Arena* arena) {
5281   const upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5282   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5283   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
5284                                                        &field, arena);
5285   if (size) {
5286     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5287   }
5288   return arr;
5289 }
5290 
5291 UPB_INLINE void google_protobuf_ServiceOptions_set_deprecated(google_protobuf_ServiceOptions *msg, bool value) {
5292   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5293   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5294 }
5295 UPB_INLINE void google_protobuf_ServiceOptions_set_features(google_protobuf_ServiceOptions *msg, google_protobuf_FeatureSet* value) {
5296   const upb_MiniTableField field = {34, UPB_SIZE(12, 16), 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5297   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
5298   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5299 }
5300 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_ServiceOptions_mutable_features(google_protobuf_ServiceOptions* msg, upb_Arena* arena) {
5301   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_ServiceOptions_features(msg);
5302   if (sub == NULL) {
5303     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
5304     if (sub) google_protobuf_ServiceOptions_set_features(msg, sub);
5305   }
5306   return sub;
5307 }
5308 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ServiceOptions_mutable_uninterpreted_option(google_protobuf_ServiceOptions* msg, size_t* size) {
5309   upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5310   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5311   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
5312   if (arr) {
5313     if (size) *size = arr->UPB_PRIVATE(size);
5314     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
5315   } else {
5316     if (size) *size = 0;
5317     return NULL;
5318   }
5319 }
5320 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ServiceOptions_resize_uninterpreted_option(google_protobuf_ServiceOptions* msg, size_t size, upb_Arena* arena) {
5321   upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5322   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
5323                                                    &field, size, arena);
5324 }
5325 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_ServiceOptions_add_uninterpreted_option(google_protobuf_ServiceOptions* msg, upb_Arena* arena) {
5326   upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5327   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5328   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
5329       UPB_UPCAST(msg), &field, arena);
5330   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
5331                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
5332     return NULL;
5333   }
5334   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
5335   if (!arr || !sub) return NULL;
5336   UPB_PRIVATE(_upb_Array_Set)
5337   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
5338   return sub;
5339 }
5340 
5341 /* google.protobuf.MethodOptions */
5342 
5343 UPB_INLINE google_protobuf_MethodOptions* google_protobuf_MethodOptions_new(upb_Arena* arena) {
5344   return (google_protobuf_MethodOptions*)_upb_Message_New(&google__protobuf__MethodOptions_msg_init, arena);
5345 }
5346 UPB_INLINE google_protobuf_MethodOptions* google_protobuf_MethodOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
5347   google_protobuf_MethodOptions* ret = google_protobuf_MethodOptions_new(arena);
5348   if (!ret) return NULL;
5349   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MethodOptions_msg_init, NULL, 0, arena) !=
5350       kUpb_DecodeStatus_Ok) {
5351     return NULL;
5352   }
5353   return ret;
5354 }
5355 UPB_INLINE google_protobuf_MethodOptions* google_protobuf_MethodOptions_parse_ex(const char* buf, size_t size,
5356                            const upb_ExtensionRegistry* extreg,
5357                            int options, upb_Arena* arena) {
5358   google_protobuf_MethodOptions* ret = google_protobuf_MethodOptions_new(arena);
5359   if (!ret) return NULL;
5360   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MethodOptions_msg_init, extreg, options,
5361                  arena) != kUpb_DecodeStatus_Ok) {
5362     return NULL;
5363   }
5364   return ret;
5365 }
5366 UPB_INLINE char* google_protobuf_MethodOptions_serialize(const google_protobuf_MethodOptions* msg, upb_Arena* arena, size_t* len) {
5367   char* ptr;
5368   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MethodOptions_msg_init, 0, arena, &ptr, len);
5369   return ptr;
5370 }
5371 UPB_INLINE char* google_protobuf_MethodOptions_serialize_ex(const google_protobuf_MethodOptions* msg, int options,
5372                                  upb_Arena* arena, size_t* len) {
5373   char* ptr;
5374   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MethodOptions_msg_init, options, arena, &ptr, len);
5375   return ptr;
5376 }
5377 UPB_INLINE void google_protobuf_MethodOptions_clear_deprecated(google_protobuf_MethodOptions* msg) {
5378   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5379   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5380 }
5381 UPB_INLINE bool google_protobuf_MethodOptions_deprecated(const google_protobuf_MethodOptions* msg) {
5382   bool default_val = false;
5383   bool ret;
5384   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5385   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5386                                     &default_val, &ret);
5387   return ret;
5388 }
5389 UPB_INLINE bool google_protobuf_MethodOptions_has_deprecated(const google_protobuf_MethodOptions* msg) {
5390   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5391   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5392 }
5393 UPB_INLINE void google_protobuf_MethodOptions_clear_idempotency_level(google_protobuf_MethodOptions* msg) {
5394   const upb_MiniTableField field = {34, 12, 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5395   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5396 }
5397 UPB_INLINE int32_t google_protobuf_MethodOptions_idempotency_level(const google_protobuf_MethodOptions* msg) {
5398   int32_t default_val = 0;
5399   int32_t ret;
5400   const upb_MiniTableField field = {34, 12, 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5401   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5402                                     &default_val, &ret);
5403   return ret;
5404 }
5405 UPB_INLINE bool google_protobuf_MethodOptions_has_idempotency_level(const google_protobuf_MethodOptions* msg) {
5406   const upb_MiniTableField field = {34, 12, 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5407   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5408 }
5409 UPB_INLINE void google_protobuf_MethodOptions_clear_features(google_protobuf_MethodOptions* msg) {
5410   const upb_MiniTableField field = {35, 16, 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5411   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5412 }
5413 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_MethodOptions_features(const google_protobuf_MethodOptions* msg) {
5414   const google_protobuf_FeatureSet* default_val = NULL;
5415   const google_protobuf_FeatureSet* ret;
5416   const upb_MiniTableField field = {35, 16, 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5417   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
5418   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5419                                     &default_val, &ret);
5420   return ret;
5421 }
5422 UPB_INLINE bool google_protobuf_MethodOptions_has_features(const google_protobuf_MethodOptions* msg) {
5423   const upb_MiniTableField field = {35, 16, 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5424   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5425 }
5426 UPB_INLINE void google_protobuf_MethodOptions_clear_uninterpreted_option(google_protobuf_MethodOptions* msg) {
5427   const upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5428   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5429 }
5430 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_MethodOptions_uninterpreted_option(const google_protobuf_MethodOptions* msg, size_t* size) {
5431   const upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5432   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5433   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5434   if (arr) {
5435     if (size) *size = arr->UPB_PRIVATE(size);
5436     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
5437   } else {
5438     if (size) *size = 0;
5439     return NULL;
5440   }
5441 }
5442 UPB_INLINE const upb_Array* _google_protobuf_MethodOptions_uninterpreted_option_upb_array(const google_protobuf_MethodOptions* msg, size_t* size) {
5443   const upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5444   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5445   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5446   if (size) {
5447     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5448   }
5449   return arr;
5450 }
5451 UPB_INLINE upb_Array* _google_protobuf_MethodOptions_uninterpreted_option_mutable_upb_array(google_protobuf_MethodOptions* msg, size_t* size, upb_Arena* arena) {
5452   const upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5453   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5454   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
5455                                                        &field, arena);
5456   if (size) {
5457     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5458   }
5459   return arr;
5460 }
5461 
5462 UPB_INLINE void google_protobuf_MethodOptions_set_deprecated(google_protobuf_MethodOptions *msg, bool value) {
5463   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5464   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5465 }
5466 UPB_INLINE void google_protobuf_MethodOptions_set_idempotency_level(google_protobuf_MethodOptions *msg, int32_t value) {
5467   const upb_MiniTableField field = {34, 12, 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5468   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5469 }
5470 UPB_INLINE void google_protobuf_MethodOptions_set_features(google_protobuf_MethodOptions *msg, google_protobuf_FeatureSet* value) {
5471   const upb_MiniTableField field = {35, 16, 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5472   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
5473   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5474 }
5475 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_MethodOptions_mutable_features(google_protobuf_MethodOptions* msg, upb_Arena* arena) {
5476   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_MethodOptions_features(msg);
5477   if (sub == NULL) {
5478     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
5479     if (sub) google_protobuf_MethodOptions_set_features(msg, sub);
5480   }
5481   return sub;
5482 }
5483 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MethodOptions_mutable_uninterpreted_option(google_protobuf_MethodOptions* msg, size_t* size) {
5484   upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5485   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5486   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
5487   if (arr) {
5488     if (size) *size = arr->UPB_PRIVATE(size);
5489     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
5490   } else {
5491     if (size) *size = 0;
5492     return NULL;
5493   }
5494 }
5495 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MethodOptions_resize_uninterpreted_option(google_protobuf_MethodOptions* msg, size_t size, upb_Arena* arena) {
5496   upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5497   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
5498                                                    &field, size, arena);
5499 }
5500 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MethodOptions_add_uninterpreted_option(google_protobuf_MethodOptions* msg, upb_Arena* arena) {
5501   upb_MiniTableField field = {999, UPB_SIZE(20, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5502   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption_msg_init);
5503   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
5504       UPB_UPCAST(msg), &field, arena);
5505   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
5506                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
5507     return NULL;
5508   }
5509   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
5510   if (!arr || !sub) return NULL;
5511   UPB_PRIVATE(_upb_Array_Set)
5512   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
5513   return sub;
5514 }
5515 
5516 /* google.protobuf.UninterpretedOption */
5517 
5518 UPB_INLINE google_protobuf_UninterpretedOption* google_protobuf_UninterpretedOption_new(upb_Arena* arena) {
5519   return (google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
5520 }
5521 UPB_INLINE google_protobuf_UninterpretedOption* google_protobuf_UninterpretedOption_parse(const char* buf, size_t size, upb_Arena* arena) {
5522   google_protobuf_UninterpretedOption* ret = google_protobuf_UninterpretedOption_new(arena);
5523   if (!ret) return NULL;
5524   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__UninterpretedOption_msg_init, NULL, 0, arena) !=
5525       kUpb_DecodeStatus_Ok) {
5526     return NULL;
5527   }
5528   return ret;
5529 }
5530 UPB_INLINE google_protobuf_UninterpretedOption* google_protobuf_UninterpretedOption_parse_ex(const char* buf, size_t size,
5531                            const upb_ExtensionRegistry* extreg,
5532                            int options, upb_Arena* arena) {
5533   google_protobuf_UninterpretedOption* ret = google_protobuf_UninterpretedOption_new(arena);
5534   if (!ret) return NULL;
5535   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__UninterpretedOption_msg_init, extreg, options,
5536                  arena) != kUpb_DecodeStatus_Ok) {
5537     return NULL;
5538   }
5539   return ret;
5540 }
5541 UPB_INLINE char* google_protobuf_UninterpretedOption_serialize(const google_protobuf_UninterpretedOption* msg, upb_Arena* arena, size_t* len) {
5542   char* ptr;
5543   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__UninterpretedOption_msg_init, 0, arena, &ptr, len);
5544   return ptr;
5545 }
5546 UPB_INLINE char* google_protobuf_UninterpretedOption_serialize_ex(const google_protobuf_UninterpretedOption* msg, int options,
5547                                  upb_Arena* arena, size_t* len) {
5548   char* ptr;
5549   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__UninterpretedOption_msg_init, options, arena, &ptr, len);
5550   return ptr;
5551 }
5552 UPB_INLINE void google_protobuf_UninterpretedOption_clear_name(google_protobuf_UninterpretedOption* msg) {
5553   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5554   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5555 }
5556 UPB_INLINE const google_protobuf_UninterpretedOption_NamePart* const* google_protobuf_UninterpretedOption_name(const google_protobuf_UninterpretedOption* msg, size_t* size) {
5557   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5558   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption__NamePart_msg_init);
5559   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5560   if (arr) {
5561     if (size) *size = arr->UPB_PRIVATE(size);
5562     return (const google_protobuf_UninterpretedOption_NamePart* const*)upb_Array_DataPtr(arr);
5563   } else {
5564     if (size) *size = 0;
5565     return NULL;
5566   }
5567 }
5568 UPB_INLINE const upb_Array* _google_protobuf_UninterpretedOption_name_upb_array(const google_protobuf_UninterpretedOption* msg, size_t* size) {
5569   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5570   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption__NamePart_msg_init);
5571   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5572   if (size) {
5573     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5574   }
5575   return arr;
5576 }
5577 UPB_INLINE upb_Array* _google_protobuf_UninterpretedOption_name_mutable_upb_array(google_protobuf_UninterpretedOption* msg, size_t* size, upb_Arena* arena) {
5578   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5579   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption__NamePart_msg_init);
5580   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
5581                                                        &field, arena);
5582   if (size) {
5583     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5584   }
5585   return arr;
5586 }
5587 UPB_INLINE void google_protobuf_UninterpretedOption_clear_identifier_value(google_protobuf_UninterpretedOption* msg) {
5588   const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5589   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5590 }
5591 UPB_INLINE upb_StringView google_protobuf_UninterpretedOption_identifier_value(const google_protobuf_UninterpretedOption* msg) {
5592   upb_StringView default_val = upb_StringView_FromString("");
5593   upb_StringView ret;
5594   const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5595   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5596                                     &default_val, &ret);
5597   return ret;
5598 }
5599 UPB_INLINE bool google_protobuf_UninterpretedOption_has_identifier_value(const google_protobuf_UninterpretedOption* msg) {
5600   const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5601   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5602 }
5603 UPB_INLINE void google_protobuf_UninterpretedOption_clear_positive_int_value(google_protobuf_UninterpretedOption* msg) {
5604   const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 65, kUpb_NoSub, 4, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5605   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5606 }
5607 UPB_INLINE uint64_t google_protobuf_UninterpretedOption_positive_int_value(const google_protobuf_UninterpretedOption* msg) {
5608   uint64_t default_val = (uint64_t)0ull;
5609   uint64_t ret;
5610   const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 65, kUpb_NoSub, 4, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5611   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5612                                     &default_val, &ret);
5613   return ret;
5614 }
5615 UPB_INLINE bool google_protobuf_UninterpretedOption_has_positive_int_value(const google_protobuf_UninterpretedOption* msg) {
5616   const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 65, kUpb_NoSub, 4, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5617   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5618 }
5619 UPB_INLINE void google_protobuf_UninterpretedOption_clear_negative_int_value(google_protobuf_UninterpretedOption* msg) {
5620   const upb_MiniTableField field = {5, UPB_SIZE(32, 48), 66, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5621   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5622 }
5623 UPB_INLINE int64_t google_protobuf_UninterpretedOption_negative_int_value(const google_protobuf_UninterpretedOption* msg) {
5624   int64_t default_val = (int64_t)0ll;
5625   int64_t ret;
5626   const upb_MiniTableField field = {5, UPB_SIZE(32, 48), 66, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5627   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5628                                     &default_val, &ret);
5629   return ret;
5630 }
5631 UPB_INLINE bool google_protobuf_UninterpretedOption_has_negative_int_value(const google_protobuf_UninterpretedOption* msg) {
5632   const upb_MiniTableField field = {5, UPB_SIZE(32, 48), 66, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5633   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5634 }
5635 UPB_INLINE void google_protobuf_UninterpretedOption_clear_double_value(google_protobuf_UninterpretedOption* msg) {
5636   const upb_MiniTableField field = {6, UPB_SIZE(40, 56), 67, kUpb_NoSub, 1, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5637   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5638 }
5639 UPB_INLINE double google_protobuf_UninterpretedOption_double_value(const google_protobuf_UninterpretedOption* msg) {
5640   double default_val = 0;
5641   double ret;
5642   const upb_MiniTableField field = {6, UPB_SIZE(40, 56), 67, kUpb_NoSub, 1, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5643   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5644                                     &default_val, &ret);
5645   return ret;
5646 }
5647 UPB_INLINE bool google_protobuf_UninterpretedOption_has_double_value(const google_protobuf_UninterpretedOption* msg) {
5648   const upb_MiniTableField field = {6, UPB_SIZE(40, 56), 67, kUpb_NoSub, 1, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5649   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5650 }
5651 UPB_INLINE void google_protobuf_UninterpretedOption_clear_string_value(google_protobuf_UninterpretedOption* msg) {
5652   const upb_MiniTableField field = {7, UPB_SIZE(48, 64), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5653   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5654 }
5655 UPB_INLINE upb_StringView google_protobuf_UninterpretedOption_string_value(const google_protobuf_UninterpretedOption* msg) {
5656   upb_StringView default_val = upb_StringView_FromString("");
5657   upb_StringView ret;
5658   const upb_MiniTableField field = {7, UPB_SIZE(48, 64), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5659   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5660                                     &default_val, &ret);
5661   return ret;
5662 }
5663 UPB_INLINE bool google_protobuf_UninterpretedOption_has_string_value(const google_protobuf_UninterpretedOption* msg) {
5664   const upb_MiniTableField field = {7, UPB_SIZE(48, 64), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5665   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5666 }
5667 UPB_INLINE void google_protobuf_UninterpretedOption_clear_aggregate_value(google_protobuf_UninterpretedOption* msg) {
5668   const upb_MiniTableField field = {8, UPB_SIZE(56, 80), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5669   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5670 }
5671 UPB_INLINE upb_StringView google_protobuf_UninterpretedOption_aggregate_value(const google_protobuf_UninterpretedOption* msg) {
5672   upb_StringView default_val = upb_StringView_FromString("");
5673   upb_StringView ret;
5674   const upb_MiniTableField field = {8, UPB_SIZE(56, 80), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5675   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5676                                     &default_val, &ret);
5677   return ret;
5678 }
5679 UPB_INLINE bool google_protobuf_UninterpretedOption_has_aggregate_value(const google_protobuf_UninterpretedOption* msg) {
5680   const upb_MiniTableField field = {8, UPB_SIZE(56, 80), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5681   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5682 }
5683 
5684 UPB_INLINE google_protobuf_UninterpretedOption_NamePart** google_protobuf_UninterpretedOption_mutable_name(google_protobuf_UninterpretedOption* msg, size_t* size) {
5685   upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5686   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption__NamePart_msg_init);
5687   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
5688   if (arr) {
5689     if (size) *size = arr->UPB_PRIVATE(size);
5690     return (google_protobuf_UninterpretedOption_NamePart**)upb_Array_MutableDataPtr(arr);
5691   } else {
5692     if (size) *size = 0;
5693     return NULL;
5694   }
5695 }
5696 UPB_INLINE google_protobuf_UninterpretedOption_NamePart** google_protobuf_UninterpretedOption_resize_name(google_protobuf_UninterpretedOption* msg, size_t size, upb_Arena* arena) {
5697   upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5698   return (google_protobuf_UninterpretedOption_NamePart**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
5699                                                    &field, size, arena);
5700 }
5701 UPB_INLINE struct google_protobuf_UninterpretedOption_NamePart* google_protobuf_UninterpretedOption_add_name(google_protobuf_UninterpretedOption* msg, upb_Arena* arena) {
5702   upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5703   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UninterpretedOption__NamePart_msg_init);
5704   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
5705       UPB_UPCAST(msg), &field, arena);
5706   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
5707                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
5708     return NULL;
5709   }
5710   struct google_protobuf_UninterpretedOption_NamePart* sub = (struct google_protobuf_UninterpretedOption_NamePart*)_upb_Message_New(&google__protobuf__UninterpretedOption__NamePart_msg_init, arena);
5711   if (!arr || !sub) return NULL;
5712   UPB_PRIVATE(_upb_Array_Set)
5713   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
5714   return sub;
5715 }
5716 UPB_INLINE void google_protobuf_UninterpretedOption_set_identifier_value(google_protobuf_UninterpretedOption *msg, upb_StringView value) {
5717   const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5718   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5719 }
5720 UPB_INLINE void google_protobuf_UninterpretedOption_set_positive_int_value(google_protobuf_UninterpretedOption *msg, uint64_t value) {
5721   const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 65, kUpb_NoSub, 4, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5722   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5723 }
5724 UPB_INLINE void google_protobuf_UninterpretedOption_set_negative_int_value(google_protobuf_UninterpretedOption *msg, int64_t value) {
5725   const upb_MiniTableField field = {5, UPB_SIZE(32, 48), 66, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5726   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5727 }
5728 UPB_INLINE void google_protobuf_UninterpretedOption_set_double_value(google_protobuf_UninterpretedOption *msg, double value) {
5729   const upb_MiniTableField field = {6, UPB_SIZE(40, 56), 67, kUpb_NoSub, 1, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5730   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5731 }
5732 UPB_INLINE void google_protobuf_UninterpretedOption_set_string_value(google_protobuf_UninterpretedOption *msg, upb_StringView value) {
5733   const upb_MiniTableField field = {7, UPB_SIZE(48, 64), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5734   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5735 }
5736 UPB_INLINE void google_protobuf_UninterpretedOption_set_aggregate_value(google_protobuf_UninterpretedOption *msg, upb_StringView value) {
5737   const upb_MiniTableField field = {8, UPB_SIZE(56, 80), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5738   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5739 }
5740 
5741 /* google.protobuf.UninterpretedOption.NamePart */
5742 
5743 UPB_INLINE google_protobuf_UninterpretedOption_NamePart* google_protobuf_UninterpretedOption_NamePart_new(upb_Arena* arena) {
5744   return (google_protobuf_UninterpretedOption_NamePart*)_upb_Message_New(&google__protobuf__UninterpretedOption__NamePart_msg_init, arena);
5745 }
5746 UPB_INLINE google_protobuf_UninterpretedOption_NamePart* google_protobuf_UninterpretedOption_NamePart_parse(const char* buf, size_t size, upb_Arena* arena) {
5747   google_protobuf_UninterpretedOption_NamePart* ret = google_protobuf_UninterpretedOption_NamePart_new(arena);
5748   if (!ret) return NULL;
5749   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__UninterpretedOption__NamePart_msg_init, NULL, 0, arena) !=
5750       kUpb_DecodeStatus_Ok) {
5751     return NULL;
5752   }
5753   return ret;
5754 }
5755 UPB_INLINE google_protobuf_UninterpretedOption_NamePart* google_protobuf_UninterpretedOption_NamePart_parse_ex(const char* buf, size_t size,
5756                            const upb_ExtensionRegistry* extreg,
5757                            int options, upb_Arena* arena) {
5758   google_protobuf_UninterpretedOption_NamePart* ret = google_protobuf_UninterpretedOption_NamePart_new(arena);
5759   if (!ret) return NULL;
5760   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__UninterpretedOption__NamePart_msg_init, extreg, options,
5761                  arena) != kUpb_DecodeStatus_Ok) {
5762     return NULL;
5763   }
5764   return ret;
5765 }
5766 UPB_INLINE char* google_protobuf_UninterpretedOption_NamePart_serialize(const google_protobuf_UninterpretedOption_NamePart* msg, upb_Arena* arena, size_t* len) {
5767   char* ptr;
5768   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__UninterpretedOption__NamePart_msg_init, 0, arena, &ptr, len);
5769   return ptr;
5770 }
5771 UPB_INLINE char* google_protobuf_UninterpretedOption_NamePart_serialize_ex(const google_protobuf_UninterpretedOption_NamePart* msg, int options,
5772                                  upb_Arena* arena, size_t* len) {
5773   char* ptr;
5774   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__UninterpretedOption__NamePart_msg_init, options, arena, &ptr, len);
5775   return ptr;
5776 }
5777 UPB_INLINE void google_protobuf_UninterpretedOption_NamePart_clear_name_part(google_protobuf_UninterpretedOption_NamePart* msg) {
5778   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5779   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5780 }
5781 UPB_INLINE upb_StringView google_protobuf_UninterpretedOption_NamePart_name_part(const google_protobuf_UninterpretedOption_NamePart* msg) {
5782   upb_StringView default_val = upb_StringView_FromString("");
5783   upb_StringView ret;
5784   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5785   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5786                                     &default_val, &ret);
5787   return ret;
5788 }
5789 UPB_INLINE bool google_protobuf_UninterpretedOption_NamePart_has_name_part(const google_protobuf_UninterpretedOption_NamePart* msg) {
5790   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5791   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5792 }
5793 UPB_INLINE void google_protobuf_UninterpretedOption_NamePart_clear_is_extension(google_protobuf_UninterpretedOption_NamePart* msg) {
5794   const upb_MiniTableField field = {2, 9, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5795   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5796 }
5797 UPB_INLINE bool google_protobuf_UninterpretedOption_NamePart_is_extension(const google_protobuf_UninterpretedOption_NamePart* msg) {
5798   bool default_val = false;
5799   bool ret;
5800   const upb_MiniTableField field = {2, 9, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5801   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5802                                     &default_val, &ret);
5803   return ret;
5804 }
5805 UPB_INLINE bool google_protobuf_UninterpretedOption_NamePart_has_is_extension(const google_protobuf_UninterpretedOption_NamePart* msg) {
5806   const upb_MiniTableField field = {2, 9, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5807   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5808 }
5809 
5810 UPB_INLINE void google_protobuf_UninterpretedOption_NamePart_set_name_part(google_protobuf_UninterpretedOption_NamePart *msg, upb_StringView value) {
5811   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5812   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5813 }
5814 UPB_INLINE void google_protobuf_UninterpretedOption_NamePart_set_is_extension(google_protobuf_UninterpretedOption_NamePart *msg, bool value) {
5815   const upb_MiniTableField field = {2, 9, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5816   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5817 }
5818 
5819 /* google.protobuf.FeatureSet */
5820 
5821 UPB_INLINE google_protobuf_FeatureSet* google_protobuf_FeatureSet_new(upb_Arena* arena) {
5822   return (google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
5823 }
5824 UPB_INLINE google_protobuf_FeatureSet* google_protobuf_FeatureSet_parse(const char* buf, size_t size, upb_Arena* arena) {
5825   google_protobuf_FeatureSet* ret = google_protobuf_FeatureSet_new(arena);
5826   if (!ret) return NULL;
5827   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSet_msg_init, NULL, 0, arena) !=
5828       kUpb_DecodeStatus_Ok) {
5829     return NULL;
5830   }
5831   return ret;
5832 }
5833 UPB_INLINE google_protobuf_FeatureSet* google_protobuf_FeatureSet_parse_ex(const char* buf, size_t size,
5834                            const upb_ExtensionRegistry* extreg,
5835                            int options, upb_Arena* arena) {
5836   google_protobuf_FeatureSet* ret = google_protobuf_FeatureSet_new(arena);
5837   if (!ret) return NULL;
5838   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSet_msg_init, extreg, options,
5839                  arena) != kUpb_DecodeStatus_Ok) {
5840     return NULL;
5841   }
5842   return ret;
5843 }
5844 UPB_INLINE char* google_protobuf_FeatureSet_serialize(const google_protobuf_FeatureSet* msg, upb_Arena* arena, size_t* len) {
5845   char* ptr;
5846   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSet_msg_init, 0, arena, &ptr, len);
5847   return ptr;
5848 }
5849 UPB_INLINE char* google_protobuf_FeatureSet_serialize_ex(const google_protobuf_FeatureSet* msg, int options,
5850                                  upb_Arena* arena, size_t* len) {
5851   char* ptr;
5852   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSet_msg_init, options, arena, &ptr, len);
5853   return ptr;
5854 }
5855 UPB_INLINE void google_protobuf_FeatureSet_clear_field_presence(google_protobuf_FeatureSet* msg) {
5856   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5857   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5858 }
5859 UPB_INLINE int32_t google_protobuf_FeatureSet_field_presence(const google_protobuf_FeatureSet* msg) {
5860   int32_t default_val = 0;
5861   int32_t ret;
5862   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5863   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5864                                     &default_val, &ret);
5865   return ret;
5866 }
5867 UPB_INLINE bool google_protobuf_FeatureSet_has_field_presence(const google_protobuf_FeatureSet* msg) {
5868   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5869   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5870 }
5871 UPB_INLINE void google_protobuf_FeatureSet_clear_enum_type(google_protobuf_FeatureSet* msg) {
5872   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5873   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5874 }
5875 UPB_INLINE int32_t google_protobuf_FeatureSet_enum_type(const google_protobuf_FeatureSet* msg) {
5876   int32_t default_val = 0;
5877   int32_t ret;
5878   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5879   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5880                                     &default_val, &ret);
5881   return ret;
5882 }
5883 UPB_INLINE bool google_protobuf_FeatureSet_has_enum_type(const google_protobuf_FeatureSet* msg) {
5884   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5885   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5886 }
5887 UPB_INLINE void google_protobuf_FeatureSet_clear_repeated_field_encoding(google_protobuf_FeatureSet* msg) {
5888   const upb_MiniTableField field = {3, 20, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5889   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5890 }
5891 UPB_INLINE int32_t google_protobuf_FeatureSet_repeated_field_encoding(const google_protobuf_FeatureSet* msg) {
5892   int32_t default_val = 0;
5893   int32_t ret;
5894   const upb_MiniTableField field = {3, 20, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5895   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5896                                     &default_val, &ret);
5897   return ret;
5898 }
5899 UPB_INLINE bool google_protobuf_FeatureSet_has_repeated_field_encoding(const google_protobuf_FeatureSet* msg) {
5900   const upb_MiniTableField field = {3, 20, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5901   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5902 }
5903 UPB_INLINE void google_protobuf_FeatureSet_clear_utf8_validation(google_protobuf_FeatureSet* msg) {
5904   const upb_MiniTableField field = {4, 24, 67, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5905   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5906 }
5907 UPB_INLINE int32_t google_protobuf_FeatureSet_utf8_validation(const google_protobuf_FeatureSet* msg) {
5908   int32_t default_val = 0;
5909   int32_t ret;
5910   const upb_MiniTableField field = {4, 24, 67, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5911   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5912                                     &default_val, &ret);
5913   return ret;
5914 }
5915 UPB_INLINE bool google_protobuf_FeatureSet_has_utf8_validation(const google_protobuf_FeatureSet* msg) {
5916   const upb_MiniTableField field = {4, 24, 67, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5917   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5918 }
5919 UPB_INLINE void google_protobuf_FeatureSet_clear_message_encoding(google_protobuf_FeatureSet* msg) {
5920   const upb_MiniTableField field = {5, 28, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5921   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5922 }
5923 UPB_INLINE int32_t google_protobuf_FeatureSet_message_encoding(const google_protobuf_FeatureSet* msg) {
5924   int32_t default_val = 0;
5925   int32_t ret;
5926   const upb_MiniTableField field = {5, 28, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5927   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5928                                     &default_val, &ret);
5929   return ret;
5930 }
5931 UPB_INLINE bool google_protobuf_FeatureSet_has_message_encoding(const google_protobuf_FeatureSet* msg) {
5932   const upb_MiniTableField field = {5, 28, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5933   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5934 }
5935 UPB_INLINE void google_protobuf_FeatureSet_clear_json_format(google_protobuf_FeatureSet* msg) {
5936   const upb_MiniTableField field = {6, 32, 69, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5937   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5938 }
5939 UPB_INLINE int32_t google_protobuf_FeatureSet_json_format(const google_protobuf_FeatureSet* msg) {
5940   int32_t default_val = 0;
5941   int32_t ret;
5942   const upb_MiniTableField field = {6, 32, 69, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5943   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5944                                     &default_val, &ret);
5945   return ret;
5946 }
5947 UPB_INLINE bool google_protobuf_FeatureSet_has_json_format(const google_protobuf_FeatureSet* msg) {
5948   const upb_MiniTableField field = {6, 32, 69, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5949   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5950 }
5951 
5952 UPB_INLINE void google_protobuf_FeatureSet_set_field_presence(google_protobuf_FeatureSet *msg, int32_t value) {
5953   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5954   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5955 }
5956 UPB_INLINE void google_protobuf_FeatureSet_set_enum_type(google_protobuf_FeatureSet *msg, int32_t value) {
5957   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5958   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5959 }
5960 UPB_INLINE void google_protobuf_FeatureSet_set_repeated_field_encoding(google_protobuf_FeatureSet *msg, int32_t value) {
5961   const upb_MiniTableField field = {3, 20, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5962   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5963 }
5964 UPB_INLINE void google_protobuf_FeatureSet_set_utf8_validation(google_protobuf_FeatureSet *msg, int32_t value) {
5965   const upb_MiniTableField field = {4, 24, 67, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5966   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5967 }
5968 UPB_INLINE void google_protobuf_FeatureSet_set_message_encoding(google_protobuf_FeatureSet *msg, int32_t value) {
5969   const upb_MiniTableField field = {5, 28, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5970   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5971 }
5972 UPB_INLINE void google_protobuf_FeatureSet_set_json_format(google_protobuf_FeatureSet *msg, int32_t value) {
5973   const upb_MiniTableField field = {6, 32, 69, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5974   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
5975 }
5976 
5977 /* google.protobuf.FeatureSetDefaults */
5978 
5979 UPB_INLINE google_protobuf_FeatureSetDefaults* google_protobuf_FeatureSetDefaults_new(upb_Arena* arena) {
5980   return (google_protobuf_FeatureSetDefaults*)_upb_Message_New(&google__protobuf__FeatureSetDefaults_msg_init, arena);
5981 }
5982 UPB_INLINE google_protobuf_FeatureSetDefaults* google_protobuf_FeatureSetDefaults_parse(const char* buf, size_t size, upb_Arena* arena) {
5983   google_protobuf_FeatureSetDefaults* ret = google_protobuf_FeatureSetDefaults_new(arena);
5984   if (!ret) return NULL;
5985   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSetDefaults_msg_init, NULL, 0, arena) !=
5986       kUpb_DecodeStatus_Ok) {
5987     return NULL;
5988   }
5989   return ret;
5990 }
5991 UPB_INLINE google_protobuf_FeatureSetDefaults* google_protobuf_FeatureSetDefaults_parse_ex(const char* buf, size_t size,
5992                            const upb_ExtensionRegistry* extreg,
5993                            int options, upb_Arena* arena) {
5994   google_protobuf_FeatureSetDefaults* ret = google_protobuf_FeatureSetDefaults_new(arena);
5995   if (!ret) return NULL;
5996   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSetDefaults_msg_init, extreg, options,
5997                  arena) != kUpb_DecodeStatus_Ok) {
5998     return NULL;
5999   }
6000   return ret;
6001 }
6002 UPB_INLINE char* google_protobuf_FeatureSetDefaults_serialize(const google_protobuf_FeatureSetDefaults* msg, upb_Arena* arena, size_t* len) {
6003   char* ptr;
6004   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSetDefaults_msg_init, 0, arena, &ptr, len);
6005   return ptr;
6006 }
6007 UPB_INLINE char* google_protobuf_FeatureSetDefaults_serialize_ex(const google_protobuf_FeatureSetDefaults* msg, int options,
6008                                  upb_Arena* arena, size_t* len) {
6009   char* ptr;
6010   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSetDefaults_msg_init, options, arena, &ptr, len);
6011   return ptr;
6012 }
6013 UPB_INLINE void google_protobuf_FeatureSetDefaults_clear_defaults(google_protobuf_FeatureSetDefaults* msg) {
6014   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6015   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6016 }
6017 UPB_INLINE const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* const* google_protobuf_FeatureSetDefaults_defaults(const google_protobuf_FeatureSetDefaults* msg, size_t* size) {
6018   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6019   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init);
6020   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6021   if (arr) {
6022     if (size) *size = arr->UPB_PRIVATE(size);
6023     return (const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* const*)upb_Array_DataPtr(arr);
6024   } else {
6025     if (size) *size = 0;
6026     return NULL;
6027   }
6028 }
6029 UPB_INLINE const upb_Array* _google_protobuf_FeatureSetDefaults_defaults_upb_array(const google_protobuf_FeatureSetDefaults* msg, size_t* size) {
6030   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6031   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init);
6032   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6033   if (size) {
6034     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6035   }
6036   return arr;
6037 }
6038 UPB_INLINE upb_Array* _google_protobuf_FeatureSetDefaults_defaults_mutable_upb_array(google_protobuf_FeatureSetDefaults* msg, size_t* size, upb_Arena* arena) {
6039   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6040   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init);
6041   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6042                                                        &field, arena);
6043   if (size) {
6044     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6045   }
6046   return arr;
6047 }
6048 UPB_INLINE void google_protobuf_FeatureSetDefaults_clear_minimum_edition(google_protobuf_FeatureSetDefaults* msg) {
6049   const upb_MiniTableField field = {4, UPB_SIZE(16, 12), 64, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6050   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6051 }
6052 UPB_INLINE int32_t google_protobuf_FeatureSetDefaults_minimum_edition(const google_protobuf_FeatureSetDefaults* msg) {
6053   int32_t default_val = 0;
6054   int32_t ret;
6055   const upb_MiniTableField field = {4, UPB_SIZE(16, 12), 64, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6056   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6057                                     &default_val, &ret);
6058   return ret;
6059 }
6060 UPB_INLINE bool google_protobuf_FeatureSetDefaults_has_minimum_edition(const google_protobuf_FeatureSetDefaults* msg) {
6061   const upb_MiniTableField field = {4, UPB_SIZE(16, 12), 64, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6062   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6063 }
6064 UPB_INLINE void google_protobuf_FeatureSetDefaults_clear_maximum_edition(google_protobuf_FeatureSetDefaults* msg) {
6065   const upb_MiniTableField field = {5, UPB_SIZE(20, 16), 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6066   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6067 }
6068 UPB_INLINE int32_t google_protobuf_FeatureSetDefaults_maximum_edition(const google_protobuf_FeatureSetDefaults* msg) {
6069   int32_t default_val = 0;
6070   int32_t ret;
6071   const upb_MiniTableField field = {5, UPB_SIZE(20, 16), 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6072   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6073                                     &default_val, &ret);
6074   return ret;
6075 }
6076 UPB_INLINE bool google_protobuf_FeatureSetDefaults_has_maximum_edition(const google_protobuf_FeatureSetDefaults* msg) {
6077   const upb_MiniTableField field = {5, UPB_SIZE(20, 16), 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6078   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6079 }
6080 
6081 UPB_INLINE google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault** google_protobuf_FeatureSetDefaults_mutable_defaults(google_protobuf_FeatureSetDefaults* msg, size_t* size) {
6082   upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6083   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init);
6084   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6085   if (arr) {
6086     if (size) *size = arr->UPB_PRIVATE(size);
6087     return (google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault**)upb_Array_MutableDataPtr(arr);
6088   } else {
6089     if (size) *size = 0;
6090     return NULL;
6091   }
6092 }
6093 UPB_INLINE google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault** google_protobuf_FeatureSetDefaults_resize_defaults(google_protobuf_FeatureSetDefaults* msg, size_t size, upb_Arena* arena) {
6094   upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6095   return (google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6096                                                    &field, size, arena);
6097 }
6098 UPB_INLINE struct google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* google_protobuf_FeatureSetDefaults_add_defaults(google_protobuf_FeatureSetDefaults* msg, upb_Arena* arena) {
6099   upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6100   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init);
6101   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6102       UPB_UPCAST(msg), &field, arena);
6103   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6104                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6105     return NULL;
6106   }
6107   struct google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* sub = (struct google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault*)_upb_Message_New(&google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, arena);
6108   if (!arr || !sub) return NULL;
6109   UPB_PRIVATE(_upb_Array_Set)
6110   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
6111   return sub;
6112 }
6113 UPB_INLINE void google_protobuf_FeatureSetDefaults_set_minimum_edition(google_protobuf_FeatureSetDefaults *msg, int32_t value) {
6114   const upb_MiniTableField field = {4, UPB_SIZE(16, 12), 64, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6115   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
6116 }
6117 UPB_INLINE void google_protobuf_FeatureSetDefaults_set_maximum_edition(google_protobuf_FeatureSetDefaults *msg, int32_t value) {
6118   const upb_MiniTableField field = {5, UPB_SIZE(20, 16), 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6119   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
6120 }
6121 
6122 /* google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault */
6123 
6124 UPB_INLINE google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_new(upb_Arena* arena) {
6125   return (google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault*)_upb_Message_New(&google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, arena);
6126 }
6127 UPB_INLINE google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_parse(const char* buf, size_t size, upb_Arena* arena) {
6128   google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* ret = google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_new(arena);
6129   if (!ret) return NULL;
6130   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, NULL, 0, arena) !=
6131       kUpb_DecodeStatus_Ok) {
6132     return NULL;
6133   }
6134   return ret;
6135 }
6136 UPB_INLINE google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_parse_ex(const char* buf, size_t size,
6137                            const upb_ExtensionRegistry* extreg,
6138                            int options, upb_Arena* arena) {
6139   google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* ret = google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_new(arena);
6140   if (!ret) return NULL;
6141   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, extreg, options,
6142                  arena) != kUpb_DecodeStatus_Ok) {
6143     return NULL;
6144   }
6145   return ret;
6146 }
6147 UPB_INLINE char* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_serialize(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg, upb_Arena* arena, size_t* len) {
6148   char* ptr;
6149   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, 0, arena, &ptr, len);
6150   return ptr;
6151 }
6152 UPB_INLINE char* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_serialize_ex(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg, int options,
6153                                  upb_Arena* arena, size_t* len) {
6154   char* ptr;
6155   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, options, arena, &ptr, len);
6156   return ptr;
6157 }
6158 UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_clear_edition(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
6159   const upb_MiniTableField field = {3, 12, 64, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6160   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6161 }
6162 UPB_INLINE int32_t google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_edition(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
6163   int32_t default_val = 0;
6164   int32_t ret;
6165   const upb_MiniTableField field = {3, 12, 64, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6166   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6167                                     &default_val, &ret);
6168   return ret;
6169 }
6170 UPB_INLINE bool google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_has_edition(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
6171   const upb_MiniTableField field = {3, 12, 64, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6172   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6173 }
6174 UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_clear_overridable_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
6175   const upb_MiniTableField field = {4, 16, 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6176   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6177 }
6178 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_overridable_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
6179   const google_protobuf_FeatureSet* default_val = NULL;
6180   const google_protobuf_FeatureSet* ret;
6181   const upb_MiniTableField field = {4, 16, 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6182   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
6183   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6184                                     &default_val, &ret);
6185   return ret;
6186 }
6187 UPB_INLINE bool google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_has_overridable_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
6188   const upb_MiniTableField field = {4, 16, 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6189   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6190 }
6191 UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_clear_fixed_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
6192   const upb_MiniTableField field = {5, UPB_SIZE(20, 24), 66, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6193   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6194 }
6195 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_fixed_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
6196   const google_protobuf_FeatureSet* default_val = NULL;
6197   const google_protobuf_FeatureSet* ret;
6198   const upb_MiniTableField field = {5, UPB_SIZE(20, 24), 66, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6199   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
6200   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6201                                     &default_val, &ret);
6202   return ret;
6203 }
6204 UPB_INLINE bool google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_has_fixed_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
6205   const upb_MiniTableField field = {5, UPB_SIZE(20, 24), 66, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6206   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6207 }
6208 
6209 UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_edition(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault *msg, int32_t value) {
6210   const upb_MiniTableField field = {3, 12, 64, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6211   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
6212 }
6213 UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_overridable_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault *msg, google_protobuf_FeatureSet* value) {
6214   const upb_MiniTableField field = {4, 16, 65, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6215   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
6216   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
6217 }
6218 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_mutable_overridable_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg, upb_Arena* arena) {
6219   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_overridable_features(msg);
6220   if (sub == NULL) {
6221     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
6222     if (sub) google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_overridable_features(msg, sub);
6223   }
6224   return sub;
6225 }
6226 UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_fixed_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault *msg, google_protobuf_FeatureSet* value) {
6227   const upb_MiniTableField field = {5, UPB_SIZE(20, 24), 66, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6228   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__FeatureSet_msg_init);
6229   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
6230 }
6231 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_mutable_fixed_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg, upb_Arena* arena) {
6232   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_fixed_features(msg);
6233   if (sub == NULL) {
6234     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
6235     if (sub) google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_fixed_features(msg, sub);
6236   }
6237   return sub;
6238 }
6239 
6240 /* google.protobuf.SourceCodeInfo */
6241 
6242 UPB_INLINE google_protobuf_SourceCodeInfo* google_protobuf_SourceCodeInfo_new(upb_Arena* arena) {
6243   return (google_protobuf_SourceCodeInfo*)_upb_Message_New(&google__protobuf__SourceCodeInfo_msg_init, arena);
6244 }
6245 UPB_INLINE google_protobuf_SourceCodeInfo* google_protobuf_SourceCodeInfo_parse(const char* buf, size_t size, upb_Arena* arena) {
6246   google_protobuf_SourceCodeInfo* ret = google_protobuf_SourceCodeInfo_new(arena);
6247   if (!ret) return NULL;
6248   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__SourceCodeInfo_msg_init, NULL, 0, arena) !=
6249       kUpb_DecodeStatus_Ok) {
6250     return NULL;
6251   }
6252   return ret;
6253 }
6254 UPB_INLINE google_protobuf_SourceCodeInfo* google_protobuf_SourceCodeInfo_parse_ex(const char* buf, size_t size,
6255                            const upb_ExtensionRegistry* extreg,
6256                            int options, upb_Arena* arena) {
6257   google_protobuf_SourceCodeInfo* ret = google_protobuf_SourceCodeInfo_new(arena);
6258   if (!ret) return NULL;
6259   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__SourceCodeInfo_msg_init, extreg, options,
6260                  arena) != kUpb_DecodeStatus_Ok) {
6261     return NULL;
6262   }
6263   return ret;
6264 }
6265 UPB_INLINE char* google_protobuf_SourceCodeInfo_serialize(const google_protobuf_SourceCodeInfo* msg, upb_Arena* arena, size_t* len) {
6266   char* ptr;
6267   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__SourceCodeInfo_msg_init, 0, arena, &ptr, len);
6268   return ptr;
6269 }
6270 UPB_INLINE char* google_protobuf_SourceCodeInfo_serialize_ex(const google_protobuf_SourceCodeInfo* msg, int options,
6271                                  upb_Arena* arena, size_t* len) {
6272   char* ptr;
6273   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__SourceCodeInfo_msg_init, options, arena, &ptr, len);
6274   return ptr;
6275 }
6276 UPB_INLINE void google_protobuf_SourceCodeInfo_clear_location(google_protobuf_SourceCodeInfo* msg) {
6277   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6278   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6279 }
6280 UPB_INLINE const google_protobuf_SourceCodeInfo_Location* const* google_protobuf_SourceCodeInfo_location(const google_protobuf_SourceCodeInfo* msg, size_t* size) {
6281   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6282   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__SourceCodeInfo__Location_msg_init);
6283   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6284   if (arr) {
6285     if (size) *size = arr->UPB_PRIVATE(size);
6286     return (const google_protobuf_SourceCodeInfo_Location* const*)upb_Array_DataPtr(arr);
6287   } else {
6288     if (size) *size = 0;
6289     return NULL;
6290   }
6291 }
6292 UPB_INLINE const upb_Array* _google_protobuf_SourceCodeInfo_location_upb_array(const google_protobuf_SourceCodeInfo* msg, size_t* size) {
6293   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6294   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__SourceCodeInfo__Location_msg_init);
6295   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6296   if (size) {
6297     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6298   }
6299   return arr;
6300 }
6301 UPB_INLINE upb_Array* _google_protobuf_SourceCodeInfo_location_mutable_upb_array(google_protobuf_SourceCodeInfo* msg, size_t* size, upb_Arena* arena) {
6302   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6303   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__SourceCodeInfo__Location_msg_init);
6304   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6305                                                        &field, arena);
6306   if (size) {
6307     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6308   }
6309   return arr;
6310 }
6311 
6312 UPB_INLINE google_protobuf_SourceCodeInfo_Location** google_protobuf_SourceCodeInfo_mutable_location(google_protobuf_SourceCodeInfo* msg, size_t* size) {
6313   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6314   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__SourceCodeInfo__Location_msg_init);
6315   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6316   if (arr) {
6317     if (size) *size = arr->UPB_PRIVATE(size);
6318     return (google_protobuf_SourceCodeInfo_Location**)upb_Array_MutableDataPtr(arr);
6319   } else {
6320     if (size) *size = 0;
6321     return NULL;
6322   }
6323 }
6324 UPB_INLINE google_protobuf_SourceCodeInfo_Location** google_protobuf_SourceCodeInfo_resize_location(google_protobuf_SourceCodeInfo* msg, size_t size, upb_Arena* arena) {
6325   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6326   return (google_protobuf_SourceCodeInfo_Location**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6327                                                    &field, size, arena);
6328 }
6329 UPB_INLINE struct google_protobuf_SourceCodeInfo_Location* google_protobuf_SourceCodeInfo_add_location(google_protobuf_SourceCodeInfo* msg, upb_Arena* arena) {
6330   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6331   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__SourceCodeInfo__Location_msg_init);
6332   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6333       UPB_UPCAST(msg), &field, arena);
6334   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6335                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6336     return NULL;
6337   }
6338   struct google_protobuf_SourceCodeInfo_Location* sub = (struct google_protobuf_SourceCodeInfo_Location*)_upb_Message_New(&google__protobuf__SourceCodeInfo__Location_msg_init, arena);
6339   if (!arr || !sub) return NULL;
6340   UPB_PRIVATE(_upb_Array_Set)
6341   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
6342   return sub;
6343 }
6344 
6345 /* google.protobuf.SourceCodeInfo.Location */
6346 
6347 UPB_INLINE google_protobuf_SourceCodeInfo_Location* google_protobuf_SourceCodeInfo_Location_new(upb_Arena* arena) {
6348   return (google_protobuf_SourceCodeInfo_Location*)_upb_Message_New(&google__protobuf__SourceCodeInfo__Location_msg_init, arena);
6349 }
6350 UPB_INLINE google_protobuf_SourceCodeInfo_Location* google_protobuf_SourceCodeInfo_Location_parse(const char* buf, size_t size, upb_Arena* arena) {
6351   google_protobuf_SourceCodeInfo_Location* ret = google_protobuf_SourceCodeInfo_Location_new(arena);
6352   if (!ret) return NULL;
6353   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__SourceCodeInfo__Location_msg_init, NULL, 0, arena) !=
6354       kUpb_DecodeStatus_Ok) {
6355     return NULL;
6356   }
6357   return ret;
6358 }
6359 UPB_INLINE google_protobuf_SourceCodeInfo_Location* google_protobuf_SourceCodeInfo_Location_parse_ex(const char* buf, size_t size,
6360                            const upb_ExtensionRegistry* extreg,
6361                            int options, upb_Arena* arena) {
6362   google_protobuf_SourceCodeInfo_Location* ret = google_protobuf_SourceCodeInfo_Location_new(arena);
6363   if (!ret) return NULL;
6364   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__SourceCodeInfo__Location_msg_init, extreg, options,
6365                  arena) != kUpb_DecodeStatus_Ok) {
6366     return NULL;
6367   }
6368   return ret;
6369 }
6370 UPB_INLINE char* google_protobuf_SourceCodeInfo_Location_serialize(const google_protobuf_SourceCodeInfo_Location* msg, upb_Arena* arena, size_t* len) {
6371   char* ptr;
6372   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__SourceCodeInfo__Location_msg_init, 0, arena, &ptr, len);
6373   return ptr;
6374 }
6375 UPB_INLINE char* google_protobuf_SourceCodeInfo_Location_serialize_ex(const google_protobuf_SourceCodeInfo_Location* msg, int options,
6376                                  upb_Arena* arena, size_t* len) {
6377   char* ptr;
6378   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__SourceCodeInfo__Location_msg_init, options, arena, &ptr, len);
6379   return ptr;
6380 }
6381 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_clear_path(google_protobuf_SourceCodeInfo_Location* msg) {
6382   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6383   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6384 }
6385 UPB_INLINE int32_t const* google_protobuf_SourceCodeInfo_Location_path(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6386   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6387   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6388   if (arr) {
6389     if (size) *size = arr->UPB_PRIVATE(size);
6390     return (int32_t const*)upb_Array_DataPtr(arr);
6391   } else {
6392     if (size) *size = 0;
6393     return NULL;
6394   }
6395 }
6396 UPB_INLINE const upb_Array* _google_protobuf_SourceCodeInfo_Location_path_upb_array(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6397   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6398   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6399   if (size) {
6400     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6401   }
6402   return arr;
6403 }
6404 UPB_INLINE upb_Array* _google_protobuf_SourceCodeInfo_Location_path_mutable_upb_array(google_protobuf_SourceCodeInfo_Location* msg, size_t* size, upb_Arena* arena) {
6405   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6406   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6407                                                        &field, arena);
6408   if (size) {
6409     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6410   }
6411   return arr;
6412 }
6413 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_clear_span(google_protobuf_SourceCodeInfo_Location* msg) {
6414   const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6415   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6416 }
6417 UPB_INLINE int32_t const* google_protobuf_SourceCodeInfo_Location_span(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6418   const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6419   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6420   if (arr) {
6421     if (size) *size = arr->UPB_PRIVATE(size);
6422     return (int32_t const*)upb_Array_DataPtr(arr);
6423   } else {
6424     if (size) *size = 0;
6425     return NULL;
6426   }
6427 }
6428 UPB_INLINE const upb_Array* _google_protobuf_SourceCodeInfo_Location_span_upb_array(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6429   const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6430   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6431   if (size) {
6432     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6433   }
6434   return arr;
6435 }
6436 UPB_INLINE upb_Array* _google_protobuf_SourceCodeInfo_Location_span_mutable_upb_array(google_protobuf_SourceCodeInfo_Location* msg, size_t* size, upb_Arena* arena) {
6437   const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6438   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6439                                                        &field, arena);
6440   if (size) {
6441     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6442   }
6443   return arr;
6444 }
6445 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_clear_leading_comments(google_protobuf_SourceCodeInfo_Location* msg) {
6446   const upb_MiniTableField field = {3, UPB_SIZE(24, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6447   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6448 }
6449 UPB_INLINE upb_StringView google_protobuf_SourceCodeInfo_Location_leading_comments(const google_protobuf_SourceCodeInfo_Location* msg) {
6450   upb_StringView default_val = upb_StringView_FromString("");
6451   upb_StringView ret;
6452   const upb_MiniTableField field = {3, UPB_SIZE(24, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6453   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6454                                     &default_val, &ret);
6455   return ret;
6456 }
6457 UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_has_leading_comments(const google_protobuf_SourceCodeInfo_Location* msg) {
6458   const upb_MiniTableField field = {3, UPB_SIZE(24, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6459   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6460 }
6461 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_clear_trailing_comments(google_protobuf_SourceCodeInfo_Location* msg) {
6462   const upb_MiniTableField field = {4, UPB_SIZE(32, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6463   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6464 }
6465 UPB_INLINE upb_StringView google_protobuf_SourceCodeInfo_Location_trailing_comments(const google_protobuf_SourceCodeInfo_Location* msg) {
6466   upb_StringView default_val = upb_StringView_FromString("");
6467   upb_StringView ret;
6468   const upb_MiniTableField field = {4, UPB_SIZE(32, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6469   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6470                                     &default_val, &ret);
6471   return ret;
6472 }
6473 UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_has_trailing_comments(const google_protobuf_SourceCodeInfo_Location* msg) {
6474   const upb_MiniTableField field = {4, UPB_SIZE(32, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6475   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6476 }
6477 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_clear_leading_detached_comments(google_protobuf_SourceCodeInfo_Location* msg) {
6478   const upb_MiniTableField field = {6, UPB_SIZE(20, 64), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6479   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6480 }
6481 UPB_INLINE upb_StringView const* google_protobuf_SourceCodeInfo_Location_leading_detached_comments(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6482   const upb_MiniTableField field = {6, UPB_SIZE(20, 64), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6483   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6484   if (arr) {
6485     if (size) *size = arr->UPB_PRIVATE(size);
6486     return (upb_StringView const*)upb_Array_DataPtr(arr);
6487   } else {
6488     if (size) *size = 0;
6489     return NULL;
6490   }
6491 }
6492 UPB_INLINE const upb_Array* _google_protobuf_SourceCodeInfo_Location_leading_detached_comments_upb_array(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6493   const upb_MiniTableField field = {6, UPB_SIZE(20, 64), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6494   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6495   if (size) {
6496     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6497   }
6498   return arr;
6499 }
6500 UPB_INLINE upb_Array* _google_protobuf_SourceCodeInfo_Location_leading_detached_comments_mutable_upb_array(google_protobuf_SourceCodeInfo_Location* msg, size_t* size, upb_Arena* arena) {
6501   const upb_MiniTableField field = {6, UPB_SIZE(20, 64), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6502   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6503                                                        &field, arena);
6504   if (size) {
6505     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6506   }
6507   return arr;
6508 }
6509 
6510 UPB_INLINE int32_t* google_protobuf_SourceCodeInfo_Location_mutable_path(google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6511   upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6512   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6513   if (arr) {
6514     if (size) *size = arr->UPB_PRIVATE(size);
6515     return (int32_t*)upb_Array_MutableDataPtr(arr);
6516   } else {
6517     if (size) *size = 0;
6518     return NULL;
6519   }
6520 }
6521 UPB_INLINE int32_t* google_protobuf_SourceCodeInfo_Location_resize_path(google_protobuf_SourceCodeInfo_Location* msg, size_t size, upb_Arena* arena) {
6522   upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6523   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6524                                                    &field, size, arena);
6525 }
6526 UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_path(google_protobuf_SourceCodeInfo_Location* msg, int32_t val, upb_Arena* arena) {
6527   upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6528   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6529       UPB_UPCAST(msg), &field, arena);
6530   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6531                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6532     return false;
6533   }
6534   UPB_PRIVATE(_upb_Array_Set)
6535   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
6536   return true;
6537 }
6538 UPB_INLINE int32_t* google_protobuf_SourceCodeInfo_Location_mutable_span(google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6539   upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6540   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6541   if (arr) {
6542     if (size) *size = arr->UPB_PRIVATE(size);
6543     return (int32_t*)upb_Array_MutableDataPtr(arr);
6544   } else {
6545     if (size) *size = 0;
6546     return NULL;
6547   }
6548 }
6549 UPB_INLINE int32_t* google_protobuf_SourceCodeInfo_Location_resize_span(google_protobuf_SourceCodeInfo_Location* msg, size_t size, upb_Arena* arena) {
6550   upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6551   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6552                                                    &field, size, arena);
6553 }
6554 UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_span(google_protobuf_SourceCodeInfo_Location* msg, int32_t val, upb_Arena* arena) {
6555   upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6556   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6557       UPB_UPCAST(msg), &field, arena);
6558   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6559                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6560     return false;
6561   }
6562   UPB_PRIVATE(_upb_Array_Set)
6563   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
6564   return true;
6565 }
6566 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_set_leading_comments(google_protobuf_SourceCodeInfo_Location *msg, upb_StringView value) {
6567   const upb_MiniTableField field = {3, UPB_SIZE(24, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6568   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
6569 }
6570 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_set_trailing_comments(google_protobuf_SourceCodeInfo_Location *msg, upb_StringView value) {
6571   const upb_MiniTableField field = {4, UPB_SIZE(32, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6572   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
6573 }
6574 UPB_INLINE upb_StringView* google_protobuf_SourceCodeInfo_Location_mutable_leading_detached_comments(google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6575   upb_MiniTableField field = {6, UPB_SIZE(20, 64), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6576   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6577   if (arr) {
6578     if (size) *size = arr->UPB_PRIVATE(size);
6579     return (upb_StringView*)upb_Array_MutableDataPtr(arr);
6580   } else {
6581     if (size) *size = 0;
6582     return NULL;
6583   }
6584 }
6585 UPB_INLINE upb_StringView* google_protobuf_SourceCodeInfo_Location_resize_leading_detached_comments(google_protobuf_SourceCodeInfo_Location* msg, size_t size, upb_Arena* arena) {
6586   upb_MiniTableField field = {6, UPB_SIZE(20, 64), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6587   return (upb_StringView*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6588                                                    &field, size, arena);
6589 }
6590 UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_leading_detached_comments(google_protobuf_SourceCodeInfo_Location* msg, upb_StringView val, upb_Arena* arena) {
6591   upb_MiniTableField field = {6, UPB_SIZE(20, 64), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6592   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6593       UPB_UPCAST(msg), &field, arena);
6594   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6595                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6596     return false;
6597   }
6598   UPB_PRIVATE(_upb_Array_Set)
6599   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
6600   return true;
6601 }
6602 
6603 /* google.protobuf.GeneratedCodeInfo */
6604 
6605 UPB_INLINE google_protobuf_GeneratedCodeInfo* google_protobuf_GeneratedCodeInfo_new(upb_Arena* arena) {
6606   return (google_protobuf_GeneratedCodeInfo*)_upb_Message_New(&google__protobuf__GeneratedCodeInfo_msg_init, arena);
6607 }
6608 UPB_INLINE google_protobuf_GeneratedCodeInfo* google_protobuf_GeneratedCodeInfo_parse(const char* buf, size_t size, upb_Arena* arena) {
6609   google_protobuf_GeneratedCodeInfo* ret = google_protobuf_GeneratedCodeInfo_new(arena);
6610   if (!ret) return NULL;
6611   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__GeneratedCodeInfo_msg_init, NULL, 0, arena) !=
6612       kUpb_DecodeStatus_Ok) {
6613     return NULL;
6614   }
6615   return ret;
6616 }
6617 UPB_INLINE google_protobuf_GeneratedCodeInfo* google_protobuf_GeneratedCodeInfo_parse_ex(const char* buf, size_t size,
6618                            const upb_ExtensionRegistry* extreg,
6619                            int options, upb_Arena* arena) {
6620   google_protobuf_GeneratedCodeInfo* ret = google_protobuf_GeneratedCodeInfo_new(arena);
6621   if (!ret) return NULL;
6622   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__GeneratedCodeInfo_msg_init, extreg, options,
6623                  arena) != kUpb_DecodeStatus_Ok) {
6624     return NULL;
6625   }
6626   return ret;
6627 }
6628 UPB_INLINE char* google_protobuf_GeneratedCodeInfo_serialize(const google_protobuf_GeneratedCodeInfo* msg, upb_Arena* arena, size_t* len) {
6629   char* ptr;
6630   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__GeneratedCodeInfo_msg_init, 0, arena, &ptr, len);
6631   return ptr;
6632 }
6633 UPB_INLINE char* google_protobuf_GeneratedCodeInfo_serialize_ex(const google_protobuf_GeneratedCodeInfo* msg, int options,
6634                                  upb_Arena* arena, size_t* len) {
6635   char* ptr;
6636   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__GeneratedCodeInfo_msg_init, options, arena, &ptr, len);
6637   return ptr;
6638 }
6639 UPB_INLINE void google_protobuf_GeneratedCodeInfo_clear_annotation(google_protobuf_GeneratedCodeInfo* msg) {
6640   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6641   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6642 }
6643 UPB_INLINE const google_protobuf_GeneratedCodeInfo_Annotation* const* google_protobuf_GeneratedCodeInfo_annotation(const google_protobuf_GeneratedCodeInfo* msg, size_t* size) {
6644   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6645   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__GeneratedCodeInfo__Annotation_msg_init);
6646   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6647   if (arr) {
6648     if (size) *size = arr->UPB_PRIVATE(size);
6649     return (const google_protobuf_GeneratedCodeInfo_Annotation* const*)upb_Array_DataPtr(arr);
6650   } else {
6651     if (size) *size = 0;
6652     return NULL;
6653   }
6654 }
6655 UPB_INLINE const upb_Array* _google_protobuf_GeneratedCodeInfo_annotation_upb_array(const google_protobuf_GeneratedCodeInfo* msg, size_t* size) {
6656   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6657   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__GeneratedCodeInfo__Annotation_msg_init);
6658   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6659   if (size) {
6660     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6661   }
6662   return arr;
6663 }
6664 UPB_INLINE upb_Array* _google_protobuf_GeneratedCodeInfo_annotation_mutable_upb_array(google_protobuf_GeneratedCodeInfo* msg, size_t* size, upb_Arena* arena) {
6665   const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6666   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__GeneratedCodeInfo__Annotation_msg_init);
6667   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6668                                                        &field, arena);
6669   if (size) {
6670     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6671   }
6672   return arr;
6673 }
6674 
6675 UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation** google_protobuf_GeneratedCodeInfo_mutable_annotation(google_protobuf_GeneratedCodeInfo* msg, size_t* size) {
6676   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6677   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__GeneratedCodeInfo__Annotation_msg_init);
6678   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6679   if (arr) {
6680     if (size) *size = arr->UPB_PRIVATE(size);
6681     return (google_protobuf_GeneratedCodeInfo_Annotation**)upb_Array_MutableDataPtr(arr);
6682   } else {
6683     if (size) *size = 0;
6684     return NULL;
6685   }
6686 }
6687 UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation** google_protobuf_GeneratedCodeInfo_resize_annotation(google_protobuf_GeneratedCodeInfo* msg, size_t size, upb_Arena* arena) {
6688   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6689   return (google_protobuf_GeneratedCodeInfo_Annotation**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6690                                                    &field, size, arena);
6691 }
6692 UPB_INLINE struct google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_GeneratedCodeInfo_add_annotation(google_protobuf_GeneratedCodeInfo* msg, upb_Arena* arena) {
6693   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6694   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__GeneratedCodeInfo__Annotation_msg_init);
6695   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6696       UPB_UPCAST(msg), &field, arena);
6697   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6698                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6699     return NULL;
6700   }
6701   struct google_protobuf_GeneratedCodeInfo_Annotation* sub = (struct google_protobuf_GeneratedCodeInfo_Annotation*)_upb_Message_New(&google__protobuf__GeneratedCodeInfo__Annotation_msg_init, arena);
6702   if (!arr || !sub) return NULL;
6703   UPB_PRIVATE(_upb_Array_Set)
6704   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
6705   return sub;
6706 }
6707 
6708 /* google.protobuf.GeneratedCodeInfo.Annotation */
6709 
6710 UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_GeneratedCodeInfo_Annotation_new(upb_Arena* arena) {
6711   return (google_protobuf_GeneratedCodeInfo_Annotation*)_upb_Message_New(&google__protobuf__GeneratedCodeInfo__Annotation_msg_init, arena);
6712 }
6713 UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_GeneratedCodeInfo_Annotation_parse(const char* buf, size_t size, upb_Arena* arena) {
6714   google_protobuf_GeneratedCodeInfo_Annotation* ret = google_protobuf_GeneratedCodeInfo_Annotation_new(arena);
6715   if (!ret) return NULL;
6716   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__GeneratedCodeInfo__Annotation_msg_init, NULL, 0, arena) !=
6717       kUpb_DecodeStatus_Ok) {
6718     return NULL;
6719   }
6720   return ret;
6721 }
6722 UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_GeneratedCodeInfo_Annotation_parse_ex(const char* buf, size_t size,
6723                            const upb_ExtensionRegistry* extreg,
6724                            int options, upb_Arena* arena) {
6725   google_protobuf_GeneratedCodeInfo_Annotation* ret = google_protobuf_GeneratedCodeInfo_Annotation_new(arena);
6726   if (!ret) return NULL;
6727   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__GeneratedCodeInfo__Annotation_msg_init, extreg, options,
6728                  arena) != kUpb_DecodeStatus_Ok) {
6729     return NULL;
6730   }
6731   return ret;
6732 }
6733 UPB_INLINE char* google_protobuf_GeneratedCodeInfo_Annotation_serialize(const google_protobuf_GeneratedCodeInfo_Annotation* msg, upb_Arena* arena, size_t* len) {
6734   char* ptr;
6735   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__GeneratedCodeInfo__Annotation_msg_init, 0, arena, &ptr, len);
6736   return ptr;
6737 }
6738 UPB_INLINE char* google_protobuf_GeneratedCodeInfo_Annotation_serialize_ex(const google_protobuf_GeneratedCodeInfo_Annotation* msg, int options,
6739                                  upb_Arena* arena, size_t* len) {
6740   char* ptr;
6741   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__GeneratedCodeInfo__Annotation_msg_init, options, arena, &ptr, len);
6742   return ptr;
6743 }
6744 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_clear_path(google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6745   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6746   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6747 }
6748 UPB_INLINE int32_t const* google_protobuf_GeneratedCodeInfo_Annotation_path(const google_protobuf_GeneratedCodeInfo_Annotation* msg, size_t* size) {
6749   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6750   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6751   if (arr) {
6752     if (size) *size = arr->UPB_PRIVATE(size);
6753     return (int32_t const*)upb_Array_DataPtr(arr);
6754   } else {
6755     if (size) *size = 0;
6756     return NULL;
6757   }
6758 }
6759 UPB_INLINE const upb_Array* _google_protobuf_GeneratedCodeInfo_Annotation_path_upb_array(const google_protobuf_GeneratedCodeInfo_Annotation* msg, size_t* size) {
6760   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6761   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6762   if (size) {
6763     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6764   }
6765   return arr;
6766 }
6767 UPB_INLINE upb_Array* _google_protobuf_GeneratedCodeInfo_Annotation_path_mutable_upb_array(google_protobuf_GeneratedCodeInfo_Annotation* msg, size_t* size, upb_Arena* arena) {
6768   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6769   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6770                                                        &field, arena);
6771   if (size) {
6772     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6773   }
6774   return arr;
6775 }
6776 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_clear_source_file(google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6777   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6778   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6779 }
6780 UPB_INLINE upb_StringView google_protobuf_GeneratedCodeInfo_Annotation_source_file(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6781   upb_StringView default_val = upb_StringView_FromString("");
6782   upb_StringView ret;
6783   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6784   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6785                                     &default_val, &ret);
6786   return ret;
6787 }
6788 UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_has_source_file(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6789   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6790   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6791 }
6792 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_clear_begin(google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6793   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6794   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6795 }
6796 UPB_INLINE int32_t google_protobuf_GeneratedCodeInfo_Annotation_begin(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6797   int32_t default_val = (int32_t)0;
6798   int32_t ret;
6799   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6800   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6801                                     &default_val, &ret);
6802   return ret;
6803 }
6804 UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_has_begin(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6805   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6806   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6807 }
6808 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_clear_end(google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6809   const upb_MiniTableField field = {4, UPB_SIZE(20, 16), 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6810   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6811 }
6812 UPB_INLINE int32_t google_protobuf_GeneratedCodeInfo_Annotation_end(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6813   int32_t default_val = (int32_t)0;
6814   int32_t ret;
6815   const upb_MiniTableField field = {4, UPB_SIZE(20, 16), 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6816   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6817                                     &default_val, &ret);
6818   return ret;
6819 }
6820 UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_has_end(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6821   const upb_MiniTableField field = {4, UPB_SIZE(20, 16), 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6822   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6823 }
6824 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_clear_semantic(google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6825   const upb_MiniTableField field = {5, UPB_SIZE(24, 20), 67, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6826   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6827 }
6828 UPB_INLINE int32_t google_protobuf_GeneratedCodeInfo_Annotation_semantic(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6829   int32_t default_val = 0;
6830   int32_t ret;
6831   const upb_MiniTableField field = {5, UPB_SIZE(24, 20), 67, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6832   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6833                                     &default_val, &ret);
6834   return ret;
6835 }
6836 UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_has_semantic(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6837   const upb_MiniTableField field = {5, UPB_SIZE(24, 20), 67, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6838   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6839 }
6840 
6841 UPB_INLINE int32_t* google_protobuf_GeneratedCodeInfo_Annotation_mutable_path(google_protobuf_GeneratedCodeInfo_Annotation* msg, size_t* size) {
6842   upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6843   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6844   if (arr) {
6845     if (size) *size = arr->UPB_PRIVATE(size);
6846     return (int32_t*)upb_Array_MutableDataPtr(arr);
6847   } else {
6848     if (size) *size = 0;
6849     return NULL;
6850   }
6851 }
6852 UPB_INLINE int32_t* google_protobuf_GeneratedCodeInfo_Annotation_resize_path(google_protobuf_GeneratedCodeInfo_Annotation* msg, size_t size, upb_Arena* arena) {
6853   upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6854   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6855                                                    &field, size, arena);
6856 }
6857 UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_add_path(google_protobuf_GeneratedCodeInfo_Annotation* msg, int32_t val, upb_Arena* arena) {
6858   upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6859   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6860       UPB_UPCAST(msg), &field, arena);
6861   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6862                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6863     return false;
6864   }
6865   UPB_PRIVATE(_upb_Array_Set)
6866   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
6867   return true;
6868 }
6869 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_set_source_file(google_protobuf_GeneratedCodeInfo_Annotation *msg, upb_StringView value) {
6870   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6871   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
6872 }
6873 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_set_begin(google_protobuf_GeneratedCodeInfo_Annotation *msg, int32_t value) {
6874   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6875   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
6876 }
6877 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_set_end(google_protobuf_GeneratedCodeInfo_Annotation *msg, int32_t value) {
6878   const upb_MiniTableField field = {4, UPB_SIZE(20, 16), 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6879   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
6880 }
6881 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_set_semantic(google_protobuf_GeneratedCodeInfo_Annotation *msg, int32_t value) {
6882   const upb_MiniTableField field = {5, UPB_SIZE(24, 20), 67, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6883   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
6884 }
6885 
6886 /* Max size 32 is google.protobuf.FileOptions */
6887 /* Max size 64 is google.protobuf.FileOptions */
6888 #define _UPB_MAXOPT_SIZE UPB_SIZE(112, 200)
6889 
6890 #ifdef __cplusplus
6891 }  /* extern "C" */
6892 #endif
6893 
6894 #include "upb/port/undef.inc"
6895 
6896 #endif  /* GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_ */