Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-14 09:10:17

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