xref: /aosp_15_r20/external/grpc-grpc/src/core/ext/upb-gen/google/protobuf/descriptor.upb.h (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1 /* This file was generated by upb_generator from the input file:
2  *
3  *     google/protobuf/descriptor.proto
4  *
5  * Do not edit -- your changes will be discarded when the file is
6  * regenerated. */
7 
8 #ifndef GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
9 #define GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
10 
11 #include "upb/generated_code_support.h"
12 
13 #include "google/protobuf/descriptor.upb_minitable.h"
14 
15 // Must be last.
16 #include "upb/port/def.inc"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 typedef struct google_protobuf_FileDescriptorSet { upb_Message UPB_PRIVATE(base); } google_protobuf_FileDescriptorSet;
23 typedef struct google_protobuf_FileDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_FileDescriptorProto;
24 typedef struct google_protobuf_DescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_DescriptorProto;
25 typedef struct google_protobuf_DescriptorProto_ExtensionRange { upb_Message UPB_PRIVATE(base); } google_protobuf_DescriptorProto_ExtensionRange;
26 typedef struct google_protobuf_DescriptorProto_ReservedRange { upb_Message UPB_PRIVATE(base); } google_protobuf_DescriptorProto_ReservedRange;
27 typedef struct google_protobuf_ExtensionRangeOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_ExtensionRangeOptions;
28 typedef struct google_protobuf_ExtensionRangeOptions_Declaration { upb_Message UPB_PRIVATE(base); } google_protobuf_ExtensionRangeOptions_Declaration;
29 typedef struct google_protobuf_FieldDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldDescriptorProto;
30 typedef struct google_protobuf_OneofDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_OneofDescriptorProto;
31 typedef struct google_protobuf_EnumDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumDescriptorProto;
32 typedef struct google_protobuf_EnumDescriptorProto_EnumReservedRange { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumDescriptorProto_EnumReservedRange;
33 typedef struct google_protobuf_EnumValueDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumValueDescriptorProto;
34 typedef struct google_protobuf_ServiceDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_ServiceDescriptorProto;
35 typedef struct google_protobuf_MethodDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_MethodDescriptorProto;
36 typedef struct google_protobuf_FileOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_FileOptions;
37 typedef struct google_protobuf_MessageOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_MessageOptions;
38 typedef struct google_protobuf_FieldOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldOptions;
39 typedef struct google_protobuf_FieldOptions_EditionDefault { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldOptions_EditionDefault;
40 typedef struct google_protobuf_OneofOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_OneofOptions;
41 typedef struct google_protobuf_EnumOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumOptions;
42 typedef struct google_protobuf_EnumValueOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumValueOptions;
43 typedef struct google_protobuf_ServiceOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_ServiceOptions;
44 typedef struct google_protobuf_MethodOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_MethodOptions;
45 typedef struct google_protobuf_UninterpretedOption { upb_Message UPB_PRIVATE(base); } google_protobuf_UninterpretedOption;
46 typedef struct google_protobuf_UninterpretedOption_NamePart { upb_Message UPB_PRIVATE(base); } google_protobuf_UninterpretedOption_NamePart;
47 typedef struct google_protobuf_FeatureSet { upb_Message UPB_PRIVATE(base); } google_protobuf_FeatureSet;
48 typedef struct google_protobuf_FeatureSetDefaults { upb_Message UPB_PRIVATE(base); } google_protobuf_FeatureSetDefaults;
49 typedef struct google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault { upb_Message UPB_PRIVATE(base); } google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault;
50 typedef struct google_protobuf_SourceCodeInfo { upb_Message UPB_PRIVATE(base); } google_protobuf_SourceCodeInfo;
51 typedef struct google_protobuf_SourceCodeInfo_Location { upb_Message UPB_PRIVATE(base); } google_protobuf_SourceCodeInfo_Location;
52 typedef struct google_protobuf_GeneratedCodeInfo { upb_Message UPB_PRIVATE(base); } google_protobuf_GeneratedCodeInfo;
53 typedef struct google_protobuf_GeneratedCodeInfo_Annotation { upb_Message UPB_PRIVATE(base); } google_protobuf_GeneratedCodeInfo_Annotation;
54 
55 typedef enum {
56   google_protobuf_EDITION_UNKNOWN = 0,
57   google_protobuf_EDITION_1_TEST_ONLY = 1,
58   google_protobuf_EDITION_2_TEST_ONLY = 2,
59   google_protobuf_EDITION_PROTO2 = 998,
60   google_protobuf_EDITION_PROTO3 = 999,
61   google_protobuf_EDITION_2023 = 1000,
62   google_protobuf_EDITION_2024 = 1001,
63   google_protobuf_EDITION_99997_TEST_ONLY = 99997,
64   google_protobuf_EDITION_99998_TEST_ONLY = 99998,
65   google_protobuf_EDITION_99999_TEST_ONLY = 99999,
66   google_protobuf_EDITION_MAX = 2147483647
67 } google_protobuf_Edition;
68 
69 typedef enum {
70   google_protobuf_ExtensionRangeOptions_DECLARATION = 0,
71   google_protobuf_ExtensionRangeOptions_UNVERIFIED = 1
72 } google_protobuf_ExtensionRangeOptions_VerificationState;
73 
74 typedef enum {
75   google_protobuf_FeatureSet_ENUM_TYPE_UNKNOWN = 0,
76   google_protobuf_FeatureSet_OPEN = 1,
77   google_protobuf_FeatureSet_CLOSED = 2
78 } google_protobuf_FeatureSet_EnumType;
79 
80 typedef enum {
81   google_protobuf_FeatureSet_FIELD_PRESENCE_UNKNOWN = 0,
82   google_protobuf_FeatureSet_EXPLICIT = 1,
83   google_protobuf_FeatureSet_IMPLICIT = 2,
84   google_protobuf_FeatureSet_LEGACY_REQUIRED = 3
85 } google_protobuf_FeatureSet_FieldPresence;
86 
87 typedef enum {
88   google_protobuf_FeatureSet_JSON_FORMAT_UNKNOWN = 0,
89   google_protobuf_FeatureSet_ALLOW = 1,
90   google_protobuf_FeatureSet_LEGACY_BEST_EFFORT = 2
91 } google_protobuf_FeatureSet_JsonFormat;
92 
93 typedef enum {
94   google_protobuf_FeatureSet_MESSAGE_ENCODING_UNKNOWN = 0,
95   google_protobuf_FeatureSet_LENGTH_PREFIXED = 1,
96   google_protobuf_FeatureSet_DELIMITED = 2
97 } google_protobuf_FeatureSet_MessageEncoding;
98 
99 typedef enum {
100   google_protobuf_FeatureSet_REPEATED_FIELD_ENCODING_UNKNOWN = 0,
101   google_protobuf_FeatureSet_PACKED = 1,
102   google_protobuf_FeatureSet_EXPANDED = 2
103 } google_protobuf_FeatureSet_RepeatedFieldEncoding;
104 
105 typedef enum {
106   google_protobuf_FeatureSet_UTF8_VALIDATION_UNKNOWN = 0,
107   google_protobuf_FeatureSet_VERIFY = 2,
108   google_protobuf_FeatureSet_NONE = 3
109 } google_protobuf_FeatureSet_Utf8Validation;
110 
111 typedef enum {
112   google_protobuf_FieldDescriptorProto_LABEL_OPTIONAL = 1,
113   google_protobuf_FieldDescriptorProto_LABEL_REQUIRED = 2,
114   google_protobuf_FieldDescriptorProto_LABEL_REPEATED = 3
115 } google_protobuf_FieldDescriptorProto_Label;
116 
117 typedef enum {
118   google_protobuf_FieldDescriptorProto_TYPE_DOUBLE = 1,
119   google_protobuf_FieldDescriptorProto_TYPE_FLOAT = 2,
120   google_protobuf_FieldDescriptorProto_TYPE_INT64 = 3,
121   google_protobuf_FieldDescriptorProto_TYPE_UINT64 = 4,
122   google_protobuf_FieldDescriptorProto_TYPE_INT32 = 5,
123   google_protobuf_FieldDescriptorProto_TYPE_FIXED64 = 6,
124   google_protobuf_FieldDescriptorProto_TYPE_FIXED32 = 7,
125   google_protobuf_FieldDescriptorProto_TYPE_BOOL = 8,
126   google_protobuf_FieldDescriptorProto_TYPE_STRING = 9,
127   google_protobuf_FieldDescriptorProto_TYPE_GROUP = 10,
128   google_protobuf_FieldDescriptorProto_TYPE_MESSAGE = 11,
129   google_protobuf_FieldDescriptorProto_TYPE_BYTES = 12,
130   google_protobuf_FieldDescriptorProto_TYPE_UINT32 = 13,
131   google_protobuf_FieldDescriptorProto_TYPE_ENUM = 14,
132   google_protobuf_FieldDescriptorProto_TYPE_SFIXED32 = 15,
133   google_protobuf_FieldDescriptorProto_TYPE_SFIXED64 = 16,
134   google_protobuf_FieldDescriptorProto_TYPE_SINT32 = 17,
135   google_protobuf_FieldDescriptorProto_TYPE_SINT64 = 18
136 } google_protobuf_FieldDescriptorProto_Type;
137 
138 typedef enum {
139   google_protobuf_FieldOptions_STRING = 0,
140   google_protobuf_FieldOptions_CORD = 1,
141   google_protobuf_FieldOptions_STRING_PIECE = 2
142 } google_protobuf_FieldOptions_CType;
143 
144 typedef enum {
145   google_protobuf_FieldOptions_JS_NORMAL = 0,
146   google_protobuf_FieldOptions_JS_STRING = 1,
147   google_protobuf_FieldOptions_JS_NUMBER = 2
148 } google_protobuf_FieldOptions_JSType;
149 
150 typedef enum {
151   google_protobuf_FieldOptions_RETENTION_UNKNOWN = 0,
152   google_protobuf_FieldOptions_RETENTION_RUNTIME = 1,
153   google_protobuf_FieldOptions_RETENTION_SOURCE = 2
154 } google_protobuf_FieldOptions_OptionRetention;
155 
156 typedef enum {
157   google_protobuf_FieldOptions_TARGET_TYPE_UNKNOWN = 0,
158   google_protobuf_FieldOptions_TARGET_TYPE_FILE = 1,
159   google_protobuf_FieldOptions_TARGET_TYPE_EXTENSION_RANGE = 2,
160   google_protobuf_FieldOptions_TARGET_TYPE_MESSAGE = 3,
161   google_protobuf_FieldOptions_TARGET_TYPE_FIELD = 4,
162   google_protobuf_FieldOptions_TARGET_TYPE_ONEOF = 5,
163   google_protobuf_FieldOptions_TARGET_TYPE_ENUM = 6,
164   google_protobuf_FieldOptions_TARGET_TYPE_ENUM_ENTRY = 7,
165   google_protobuf_FieldOptions_TARGET_TYPE_SERVICE = 8,
166   google_protobuf_FieldOptions_TARGET_TYPE_METHOD = 9
167 } google_protobuf_FieldOptions_OptionTargetType;
168 
169 typedef enum {
170   google_protobuf_FileOptions_SPEED = 1,
171   google_protobuf_FileOptions_CODE_SIZE = 2,
172   google_protobuf_FileOptions_LITE_RUNTIME = 3
173 } google_protobuf_FileOptions_OptimizeMode;
174 
175 typedef enum {
176   google_protobuf_GeneratedCodeInfo_Annotation_NONE = 0,
177   google_protobuf_GeneratedCodeInfo_Annotation_SET = 1,
178   google_protobuf_GeneratedCodeInfo_Annotation_ALIAS = 2
179 } google_protobuf_GeneratedCodeInfo_Annotation_Semantic;
180 
181 typedef enum {
182   google_protobuf_MethodOptions_IDEMPOTENCY_UNKNOWN = 0,
183   google_protobuf_MethodOptions_NO_SIDE_EFFECTS = 1,
184   google_protobuf_MethodOptions_IDEMPOTENT = 2
185 } google_protobuf_MethodOptions_IdempotencyLevel;
186 
187 
188 
189 /* google.protobuf.FileDescriptorSet */
190 
google_protobuf_FileDescriptorSet_new(upb_Arena * arena)191 UPB_INLINE google_protobuf_FileDescriptorSet* google_protobuf_FileDescriptorSet_new(upb_Arena* arena) {
192   return (google_protobuf_FileDescriptorSet*)_upb_Message_New(&google__protobuf__FileDescriptorSet_msg_init, arena);
193 }
google_protobuf_FileDescriptorSet_parse(const char * buf,size_t size,upb_Arena * arena)194 UPB_INLINE google_protobuf_FileDescriptorSet* google_protobuf_FileDescriptorSet_parse(const char* buf, size_t size, upb_Arena* arena) {
195   google_protobuf_FileDescriptorSet* ret = google_protobuf_FileDescriptorSet_new(arena);
196   if (!ret) return NULL;
197   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorSet_msg_init, NULL, 0, arena) !=
198       kUpb_DecodeStatus_Ok) {
199     return NULL;
200   }
201   return ret;
202 }
google_protobuf_FileDescriptorSet_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)203 UPB_INLINE google_protobuf_FileDescriptorSet* google_protobuf_FileDescriptorSet_parse_ex(const char* buf, size_t size,
204                            const upb_ExtensionRegistry* extreg,
205                            int options, upb_Arena* arena) {
206   google_protobuf_FileDescriptorSet* ret = google_protobuf_FileDescriptorSet_new(arena);
207   if (!ret) return NULL;
208   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorSet_msg_init, extreg, options,
209                  arena) != kUpb_DecodeStatus_Ok) {
210     return NULL;
211   }
212   return ret;
213 }
google_protobuf_FileDescriptorSet_serialize(const google_protobuf_FileDescriptorSet * msg,upb_Arena * arena,size_t * len)214 UPB_INLINE char* google_protobuf_FileDescriptorSet_serialize(const google_protobuf_FileDescriptorSet* msg, upb_Arena* arena, size_t* len) {
215   char* ptr;
216   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorSet_msg_init, 0, arena, &ptr, len);
217   return ptr;
218 }
google_protobuf_FileDescriptorSet_serialize_ex(const google_protobuf_FileDescriptorSet * msg,int options,upb_Arena * arena,size_t * len)219 UPB_INLINE char* google_protobuf_FileDescriptorSet_serialize_ex(const google_protobuf_FileDescriptorSet* msg, int options,
220                                  upb_Arena* arena, size_t* len) {
221   char* ptr;
222   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorSet_msg_init, options, arena, &ptr, len);
223   return ptr;
224 }
google_protobuf_FileDescriptorSet_clear_file(google_protobuf_FileDescriptorSet * msg)225 UPB_INLINE void google_protobuf_FileDescriptorSet_clear_file(google_protobuf_FileDescriptorSet* msg) {
226   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)};
227   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
228 }
google_protobuf_FileDescriptorSet_file(const google_protobuf_FileDescriptorSet * msg,size_t * size)229 UPB_INLINE const google_protobuf_FileDescriptorProto* const* google_protobuf_FileDescriptorSet_file(const google_protobuf_FileDescriptorSet* msg, size_t* size) {
230   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)};
231   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
232   if (arr) {
233     if (size) *size = arr->UPB_PRIVATE(size);
234     return (const google_protobuf_FileDescriptorProto* const*)upb_Array_DataPtr(arr);
235   } else {
236     if (size) *size = 0;
237     return NULL;
238   }
239 }
_google_protobuf_FileDescriptorSet_file_upb_array(const google_protobuf_FileDescriptorSet * msg,size_t * size)240 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorSet_file_upb_array(const google_protobuf_FileDescriptorSet* msg, size_t* size) {
241   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)};
242   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
243   if (size) {
244     *size = arr ? arr->UPB_PRIVATE(size) : 0;
245   }
246   return arr;
247 }
_google_protobuf_FileDescriptorSet_file_mutable_upb_array(google_protobuf_FileDescriptorSet * msg,size_t * size,upb_Arena * arena)248 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorSet_file_mutable_upb_array(google_protobuf_FileDescriptorSet* msg, size_t* size, upb_Arena* arena) {
249   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)};
250   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
251                                                        &field, arena);
252   if (size) {
253     *size = arr ? arr->UPB_PRIVATE(size) : 0;
254   }
255   return arr;
256 }
257 
google_protobuf_FileDescriptorSet_mutable_file(google_protobuf_FileDescriptorSet * msg,size_t * size)258 UPB_INLINE google_protobuf_FileDescriptorProto** google_protobuf_FileDescriptorSet_mutable_file(google_protobuf_FileDescriptorSet* msg, size_t* size) {
259   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
260   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
261   if (arr) {
262     if (size) *size = arr->UPB_PRIVATE(size);
263     return (google_protobuf_FileDescriptorProto**)upb_Array_MutableDataPtr(arr);
264   } else {
265     if (size) *size = 0;
266     return NULL;
267   }
268 }
google_protobuf_FileDescriptorSet_resize_file(google_protobuf_FileDescriptorSet * msg,size_t size,upb_Arena * arena)269 UPB_INLINE google_protobuf_FileDescriptorProto** google_protobuf_FileDescriptorSet_resize_file(google_protobuf_FileDescriptorSet* msg, size_t size, upb_Arena* arena) {
270   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
271   return (google_protobuf_FileDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
272                                                    &field, size, arena);
273 }
google_protobuf_FileDescriptorSet_add_file(google_protobuf_FileDescriptorSet * msg,upb_Arena * arena)274 UPB_INLINE struct google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorSet_add_file(google_protobuf_FileDescriptorSet* msg, upb_Arena* arena) {
275   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
276   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
277       UPB_UPCAST(msg), &field, arena);
278   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
279                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
280     return NULL;
281   }
282   struct google_protobuf_FileDescriptorProto* sub = (struct google_protobuf_FileDescriptorProto*)_upb_Message_New(&google__protobuf__FileDescriptorProto_msg_init, arena);
283   if (!arr || !sub) return NULL;
284   UPB_PRIVATE(_upb_Array_Set)
285   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
286   return sub;
287 }
288 
289 /* google.protobuf.FileDescriptorProto */
290 
google_protobuf_FileDescriptorProto_new(upb_Arena * arena)291 UPB_INLINE google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorProto_new(upb_Arena* arena) {
292   return (google_protobuf_FileDescriptorProto*)_upb_Message_New(&google__protobuf__FileDescriptorProto_msg_init, arena);
293 }
google_protobuf_FileDescriptorProto_parse(const char * buf,size_t size,upb_Arena * arena)294 UPB_INLINE google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
295   google_protobuf_FileDescriptorProto* ret = google_protobuf_FileDescriptorProto_new(arena);
296   if (!ret) return NULL;
297   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorProto_msg_init, NULL, 0, arena) !=
298       kUpb_DecodeStatus_Ok) {
299     return NULL;
300   }
301   return ret;
302 }
google_protobuf_FileDescriptorProto_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)303 UPB_INLINE google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorProto_parse_ex(const char* buf, size_t size,
304                            const upb_ExtensionRegistry* extreg,
305                            int options, upb_Arena* arena) {
306   google_protobuf_FileDescriptorProto* ret = google_protobuf_FileDescriptorProto_new(arena);
307   if (!ret) return NULL;
308   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorProto_msg_init, extreg, options,
309                  arena) != kUpb_DecodeStatus_Ok) {
310     return NULL;
311   }
312   return ret;
313 }
google_protobuf_FileDescriptorProto_serialize(const google_protobuf_FileDescriptorProto * msg,upb_Arena * arena,size_t * len)314 UPB_INLINE char* google_protobuf_FileDescriptorProto_serialize(const google_protobuf_FileDescriptorProto* msg, upb_Arena* arena, size_t* len) {
315   char* ptr;
316   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorProto_msg_init, 0, arena, &ptr, len);
317   return ptr;
318 }
google_protobuf_FileDescriptorProto_serialize_ex(const google_protobuf_FileDescriptorProto * msg,int options,upb_Arena * arena,size_t * len)319 UPB_INLINE char* google_protobuf_FileDescriptorProto_serialize_ex(const google_protobuf_FileDescriptorProto* msg, int options,
320                                  upb_Arena* arena, size_t* len) {
321   char* ptr;
322   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorProto_msg_init, options, arena, &ptr, len);
323   return ptr;
324 }
google_protobuf_FileDescriptorProto_clear_name(google_protobuf_FileDescriptorProto * msg)325 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_name(google_protobuf_FileDescriptorProto* msg) {
326   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)};
327   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
328 }
google_protobuf_FileDescriptorProto_name(const google_protobuf_FileDescriptorProto * msg)329 UPB_INLINE upb_StringView google_protobuf_FileDescriptorProto_name(const google_protobuf_FileDescriptorProto* msg) {
330   upb_StringView default_val = upb_StringView_FromString("");
331   upb_StringView ret;
332   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)};
333   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
334                                     &default_val, &ret);
335   return ret;
336 }
google_protobuf_FileDescriptorProto_has_name(const google_protobuf_FileDescriptorProto * msg)337 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_name(const google_protobuf_FileDescriptorProto* msg) {
338   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)};
339   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
340 }
google_protobuf_FileDescriptorProto_clear_package(google_protobuf_FileDescriptorProto * msg)341 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_package(google_protobuf_FileDescriptorProto* msg) {
342   const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
343   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
344 }
google_protobuf_FileDescriptorProto_package(const google_protobuf_FileDescriptorProto * msg)345 UPB_INLINE upb_StringView google_protobuf_FileDescriptorProto_package(const google_protobuf_FileDescriptorProto* msg) {
346   upb_StringView default_val = upb_StringView_FromString("");
347   upb_StringView ret;
348   const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
349   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
350                                     &default_val, &ret);
351   return ret;
352 }
google_protobuf_FileDescriptorProto_has_package(const google_protobuf_FileDescriptorProto * msg)353 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_package(const google_protobuf_FileDescriptorProto* msg) {
354   const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
355   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
356 }
google_protobuf_FileDescriptorProto_clear_dependency(google_protobuf_FileDescriptorProto * msg)357 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_dependency(google_protobuf_FileDescriptorProto* msg) {
358   const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
359   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
360 }
google_protobuf_FileDescriptorProto_dependency(const google_protobuf_FileDescriptorProto * msg,size_t * size)361 UPB_INLINE upb_StringView const* google_protobuf_FileDescriptorProto_dependency(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
362   const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
363   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
364   if (arr) {
365     if (size) *size = arr->UPB_PRIVATE(size);
366     return (upb_StringView const*)upb_Array_DataPtr(arr);
367   } else {
368     if (size) *size = 0;
369     return NULL;
370   }
371 }
_google_protobuf_FileDescriptorProto_dependency_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)372 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_dependency_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
373   const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
374   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
375   if (size) {
376     *size = arr ? arr->UPB_PRIVATE(size) : 0;
377   }
378   return arr;
379 }
_google_protobuf_FileDescriptorProto_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)380 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
381   const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
382   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
383                                                        &field, arena);
384   if (size) {
385     *size = arr ? arr->UPB_PRIVATE(size) : 0;
386   }
387   return arr;
388 }
google_protobuf_FileDescriptorProto_clear_message_type(google_protobuf_FileDescriptorProto * msg)389 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_message_type(google_protobuf_FileDescriptorProto* msg) {
390   const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
391   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
392 }
google_protobuf_FileDescriptorProto_message_type(const google_protobuf_FileDescriptorProto * msg,size_t * size)393 UPB_INLINE const google_protobuf_DescriptorProto* const* google_protobuf_FileDescriptorProto_message_type(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
394   const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
395   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
396   if (arr) {
397     if (size) *size = arr->UPB_PRIVATE(size);
398     return (const google_protobuf_DescriptorProto* const*)upb_Array_DataPtr(arr);
399   } else {
400     if (size) *size = 0;
401     return NULL;
402   }
403 }
_google_protobuf_FileDescriptorProto_message_type_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)404 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_message_type_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
405   const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
406   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
407   if (size) {
408     *size = arr ? arr->UPB_PRIVATE(size) : 0;
409   }
410   return arr;
411 }
_google_protobuf_FileDescriptorProto_message_type_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)412 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_message_type_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
413   const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
414   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
415                                                        &field, arena);
416   if (size) {
417     *size = arr ? arr->UPB_PRIVATE(size) : 0;
418   }
419   return arr;
420 }
google_protobuf_FileDescriptorProto_clear_enum_type(google_protobuf_FileDescriptorProto * msg)421 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_enum_type(google_protobuf_FileDescriptorProto* msg) {
422   const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
423   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
424 }
google_protobuf_FileDescriptorProto_enum_type(const google_protobuf_FileDescriptorProto * msg,size_t * size)425 UPB_INLINE const google_protobuf_EnumDescriptorProto* const* google_protobuf_FileDescriptorProto_enum_type(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
426   const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
427   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
428   if (arr) {
429     if (size) *size = arr->UPB_PRIVATE(size);
430     return (const google_protobuf_EnumDescriptorProto* const*)upb_Array_DataPtr(arr);
431   } else {
432     if (size) *size = 0;
433     return NULL;
434   }
435 }
_google_protobuf_FileDescriptorProto_enum_type_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)436 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_enum_type_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
437   const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
438   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
439   if (size) {
440     *size = arr ? arr->UPB_PRIVATE(size) : 0;
441   }
442   return arr;
443 }
_google_protobuf_FileDescriptorProto_enum_type_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)444 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_enum_type_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
445   const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
446   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
447                                                        &field, arena);
448   if (size) {
449     *size = arr ? arr->UPB_PRIVATE(size) : 0;
450   }
451   return arr;
452 }
google_protobuf_FileDescriptorProto_clear_service(google_protobuf_FileDescriptorProto * msg)453 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_service(google_protobuf_FileDescriptorProto* msg) {
454   const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
455   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
456 }
google_protobuf_FileDescriptorProto_service(const google_protobuf_FileDescriptorProto * msg,size_t * size)457 UPB_INLINE const google_protobuf_ServiceDescriptorProto* const* google_protobuf_FileDescriptorProto_service(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
458   const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
459   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
460   if (arr) {
461     if (size) *size = arr->UPB_PRIVATE(size);
462     return (const google_protobuf_ServiceDescriptorProto* const*)upb_Array_DataPtr(arr);
463   } else {
464     if (size) *size = 0;
465     return NULL;
466   }
467 }
_google_protobuf_FileDescriptorProto_service_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)468 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_service_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
469   const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
470   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
471   if (size) {
472     *size = arr ? arr->UPB_PRIVATE(size) : 0;
473   }
474   return arr;
475 }
_google_protobuf_FileDescriptorProto_service_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)476 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_service_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
477   const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
478   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
479                                                        &field, arena);
480   if (size) {
481     *size = arr ? arr->UPB_PRIVATE(size) : 0;
482   }
483   return arr;
484 }
google_protobuf_FileDescriptorProto_clear_extension(google_protobuf_FileDescriptorProto * msg)485 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_extension(google_protobuf_FileDescriptorProto* msg) {
486   const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
487   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
488 }
google_protobuf_FileDescriptorProto_extension(const google_protobuf_FileDescriptorProto * msg,size_t * size)489 UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_FileDescriptorProto_extension(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
490   const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
491   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
492   if (arr) {
493     if (size) *size = arr->UPB_PRIVATE(size);
494     return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr);
495   } else {
496     if (size) *size = 0;
497     return NULL;
498   }
499 }
_google_protobuf_FileDescriptorProto_extension_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)500 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_extension_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
501   const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
502   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
503   if (size) {
504     *size = arr ? arr->UPB_PRIVATE(size) : 0;
505   }
506   return arr;
507 }
_google_protobuf_FileDescriptorProto_extension_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)508 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_extension_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
509   const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
510   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
511                                                        &field, arena);
512   if (size) {
513     *size = arr ? arr->UPB_PRIVATE(size) : 0;
514   }
515   return arr;
516 }
google_protobuf_FileDescriptorProto_clear_options(google_protobuf_FileDescriptorProto * msg)517 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_options(google_protobuf_FileDescriptorProto* msg) {
518   const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
519   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
520 }
google_protobuf_FileDescriptorProto_options(const google_protobuf_FileDescriptorProto * msg)521 UPB_INLINE const google_protobuf_FileOptions* google_protobuf_FileDescriptorProto_options(const google_protobuf_FileDescriptorProto* msg) {
522   const google_protobuf_FileOptions* default_val = NULL;
523   const google_protobuf_FileOptions* ret;
524   const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
525   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
526                                     &default_val, &ret);
527   return ret;
528 }
google_protobuf_FileDescriptorProto_has_options(const google_protobuf_FileDescriptorProto * msg)529 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_options(const google_protobuf_FileDescriptorProto* msg) {
530   const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
531   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
532 }
google_protobuf_FileDescriptorProto_clear_source_code_info(google_protobuf_FileDescriptorProto * msg)533 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_source_code_info(google_protobuf_FileDescriptorProto* msg) {
534   const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
535   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
536 }
google_protobuf_FileDescriptorProto_source_code_info(const google_protobuf_FileDescriptorProto * msg)537 UPB_INLINE const google_protobuf_SourceCodeInfo* google_protobuf_FileDescriptorProto_source_code_info(const google_protobuf_FileDescriptorProto* msg) {
538   const google_protobuf_SourceCodeInfo* default_val = NULL;
539   const google_protobuf_SourceCodeInfo* ret;
540   const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
541   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
542                                     &default_val, &ret);
543   return ret;
544 }
google_protobuf_FileDescriptorProto_has_source_code_info(const google_protobuf_FileDescriptorProto * msg)545 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_source_code_info(const google_protobuf_FileDescriptorProto* msg) {
546   const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
547   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
548 }
google_protobuf_FileDescriptorProto_clear_public_dependency(google_protobuf_FileDescriptorProto * msg)549 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_public_dependency(google_protobuf_FileDescriptorProto* msg) {
550   const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
551   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
552 }
google_protobuf_FileDescriptorProto_public_dependency(const google_protobuf_FileDescriptorProto * msg,size_t * size)553 UPB_INLINE int32_t const* google_protobuf_FileDescriptorProto_public_dependency(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
554   const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
555   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
556   if (arr) {
557     if (size) *size = arr->UPB_PRIVATE(size);
558     return (int32_t const*)upb_Array_DataPtr(arr);
559   } else {
560     if (size) *size = 0;
561     return NULL;
562   }
563 }
_google_protobuf_FileDescriptorProto_public_dependency_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)564 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_public_dependency_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
565   const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
566   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
567   if (size) {
568     *size = arr ? arr->UPB_PRIVATE(size) : 0;
569   }
570   return arr;
571 }
_google_protobuf_FileDescriptorProto_public_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)572 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_public_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
573   const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
574   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
575                                                        &field, arena);
576   if (size) {
577     *size = arr ? arr->UPB_PRIVATE(size) : 0;
578   }
579   return arr;
580 }
google_protobuf_FileDescriptorProto_clear_weak_dependency(google_protobuf_FileDescriptorProto * msg)581 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_weak_dependency(google_protobuf_FileDescriptorProto* msg) {
582   const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
583   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
584 }
google_protobuf_FileDescriptorProto_weak_dependency(const google_protobuf_FileDescriptorProto * msg,size_t * size)585 UPB_INLINE int32_t const* google_protobuf_FileDescriptorProto_weak_dependency(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
586   const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
587   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
588   if (arr) {
589     if (size) *size = arr->UPB_PRIVATE(size);
590     return (int32_t const*)upb_Array_DataPtr(arr);
591   } else {
592     if (size) *size = 0;
593     return NULL;
594   }
595 }
_google_protobuf_FileDescriptorProto_weak_dependency_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)596 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_weak_dependency_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
597   const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
598   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
599   if (size) {
600     *size = arr ? arr->UPB_PRIVATE(size) : 0;
601   }
602   return arr;
603 }
_google_protobuf_FileDescriptorProto_weak_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)604 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_weak_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
605   const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
606   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
607                                                        &field, arena);
608   if (size) {
609     *size = arr ? arr->UPB_PRIVATE(size) : 0;
610   }
611   return arr;
612 }
google_protobuf_FileDescriptorProto_clear_syntax(google_protobuf_FileDescriptorProto * msg)613 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_syntax(google_protobuf_FileDescriptorProto* msg) {
614   const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
615   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
616 }
google_protobuf_FileDescriptorProto_syntax(const google_protobuf_FileDescriptorProto * msg)617 UPB_INLINE upb_StringView google_protobuf_FileDescriptorProto_syntax(const google_protobuf_FileDescriptorProto* msg) {
618   upb_StringView default_val = upb_StringView_FromString("");
619   upb_StringView ret;
620   const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
621   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
622                                     &default_val, &ret);
623   return ret;
624 }
google_protobuf_FileDescriptorProto_has_syntax(const google_protobuf_FileDescriptorProto * msg)625 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_syntax(const google_protobuf_FileDescriptorProto* msg) {
626   const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
627   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
628 }
google_protobuf_FileDescriptorProto_clear_edition(google_protobuf_FileDescriptorProto * msg)629 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_edition(google_protobuf_FileDescriptorProto* msg) {
630   const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
631   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
632 }
google_protobuf_FileDescriptorProto_edition(const google_protobuf_FileDescriptorProto * msg)633 UPB_INLINE int32_t google_protobuf_FileDescriptorProto_edition(const google_protobuf_FileDescriptorProto* msg) {
634   int32_t default_val = 0;
635   int32_t ret;
636   const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
637   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
638                                     &default_val, &ret);
639   return ret;
640 }
google_protobuf_FileDescriptorProto_has_edition(const google_protobuf_FileDescriptorProto * msg)641 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_edition(const google_protobuf_FileDescriptorProto* msg) {
642   const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
643   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
644 }
645 
google_protobuf_FileDescriptorProto_set_name(google_protobuf_FileDescriptorProto * msg,upb_StringView value)646 UPB_INLINE void google_protobuf_FileDescriptorProto_set_name(google_protobuf_FileDescriptorProto *msg, upb_StringView value) {
647   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)};
648   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
649 }
google_protobuf_FileDescriptorProto_set_package(google_protobuf_FileDescriptorProto * msg,upb_StringView value)650 UPB_INLINE void google_protobuf_FileDescriptorProto_set_package(google_protobuf_FileDescriptorProto *msg, upb_StringView value) {
651   const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
652   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
653 }
google_protobuf_FileDescriptorProto_mutable_dependency(google_protobuf_FileDescriptorProto * msg,size_t * size)654 UPB_INLINE upb_StringView* google_protobuf_FileDescriptorProto_mutable_dependency(google_protobuf_FileDescriptorProto* msg, size_t* size) {
655   upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
656   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
657   if (arr) {
658     if (size) *size = arr->UPB_PRIVATE(size);
659     return (upb_StringView*)upb_Array_MutableDataPtr(arr);
660   } else {
661     if (size) *size = 0;
662     return NULL;
663   }
664 }
google_protobuf_FileDescriptorProto_resize_dependency(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)665 UPB_INLINE upb_StringView* google_protobuf_FileDescriptorProto_resize_dependency(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
666   upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
667   return (upb_StringView*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
668                                                    &field, size, arena);
669 }
google_protobuf_FileDescriptorProto_add_dependency(google_protobuf_FileDescriptorProto * msg,upb_StringView val,upb_Arena * arena)670 UPB_INLINE bool google_protobuf_FileDescriptorProto_add_dependency(google_protobuf_FileDescriptorProto* msg, upb_StringView val, upb_Arena* arena) {
671   upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
672   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
673       UPB_UPCAST(msg), &field, arena);
674   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
675                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
676     return false;
677   }
678   UPB_PRIVATE(_upb_Array_Set)
679   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
680   return true;
681 }
google_protobuf_FileDescriptorProto_mutable_message_type(google_protobuf_FileDescriptorProto * msg,size_t * size)682 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_FileDescriptorProto_mutable_message_type(google_protobuf_FileDescriptorProto* msg, size_t* size) {
683   upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
684   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
685   if (arr) {
686     if (size) *size = arr->UPB_PRIVATE(size);
687     return (google_protobuf_DescriptorProto**)upb_Array_MutableDataPtr(arr);
688   } else {
689     if (size) *size = 0;
690     return NULL;
691   }
692 }
google_protobuf_FileDescriptorProto_resize_message_type(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)693 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_FileDescriptorProto_resize_message_type(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
694   upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
695   return (google_protobuf_DescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
696                                                    &field, size, arena);
697 }
google_protobuf_FileDescriptorProto_add_message_type(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)698 UPB_INLINE struct google_protobuf_DescriptorProto* google_protobuf_FileDescriptorProto_add_message_type(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
699   upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
700   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
701       UPB_UPCAST(msg), &field, arena);
702   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
703                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
704     return NULL;
705   }
706   struct google_protobuf_DescriptorProto* sub = (struct google_protobuf_DescriptorProto*)_upb_Message_New(&google__protobuf__DescriptorProto_msg_init, arena);
707   if (!arr || !sub) return NULL;
708   UPB_PRIVATE(_upb_Array_Set)
709   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
710   return sub;
711 }
google_protobuf_FileDescriptorProto_mutable_enum_type(google_protobuf_FileDescriptorProto * msg,size_t * size)712 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_FileDescriptorProto_mutable_enum_type(google_protobuf_FileDescriptorProto* msg, size_t* size) {
713   upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
714   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
715   if (arr) {
716     if (size) *size = arr->UPB_PRIVATE(size);
717     return (google_protobuf_EnumDescriptorProto**)upb_Array_MutableDataPtr(arr);
718   } else {
719     if (size) *size = 0;
720     return NULL;
721   }
722 }
google_protobuf_FileDescriptorProto_resize_enum_type(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)723 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_FileDescriptorProto_resize_enum_type(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
724   upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
725   return (google_protobuf_EnumDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
726                                                    &field, size, arena);
727 }
google_protobuf_FileDescriptorProto_add_enum_type(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)728 UPB_INLINE struct google_protobuf_EnumDescriptorProto* google_protobuf_FileDescriptorProto_add_enum_type(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
729   upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
730   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
731       UPB_UPCAST(msg), &field, arena);
732   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
733                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
734     return NULL;
735   }
736   struct google_protobuf_EnumDescriptorProto* sub = (struct google_protobuf_EnumDescriptorProto*)_upb_Message_New(&google__protobuf__EnumDescriptorProto_msg_init, arena);
737   if (!arr || !sub) return NULL;
738   UPB_PRIVATE(_upb_Array_Set)
739   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
740   return sub;
741 }
google_protobuf_FileDescriptorProto_mutable_service(google_protobuf_FileDescriptorProto * msg,size_t * size)742 UPB_INLINE google_protobuf_ServiceDescriptorProto** google_protobuf_FileDescriptorProto_mutable_service(google_protobuf_FileDescriptorProto* msg, size_t* size) {
743   upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
744   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
745   if (arr) {
746     if (size) *size = arr->UPB_PRIVATE(size);
747     return (google_protobuf_ServiceDescriptorProto**)upb_Array_MutableDataPtr(arr);
748   } else {
749     if (size) *size = 0;
750     return NULL;
751   }
752 }
google_protobuf_FileDescriptorProto_resize_service(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)753 UPB_INLINE google_protobuf_ServiceDescriptorProto** google_protobuf_FileDescriptorProto_resize_service(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
754   upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
755   return (google_protobuf_ServiceDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
756                                                    &field, size, arena);
757 }
google_protobuf_FileDescriptorProto_add_service(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)758 UPB_INLINE struct google_protobuf_ServiceDescriptorProto* google_protobuf_FileDescriptorProto_add_service(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
759   upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
760   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
761       UPB_UPCAST(msg), &field, arena);
762   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
763                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
764     return NULL;
765   }
766   struct google_protobuf_ServiceDescriptorProto* sub = (struct google_protobuf_ServiceDescriptorProto*)_upb_Message_New(&google__protobuf__ServiceDescriptorProto_msg_init, arena);
767   if (!arr || !sub) return NULL;
768   UPB_PRIVATE(_upb_Array_Set)
769   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
770   return sub;
771 }
google_protobuf_FileDescriptorProto_mutable_extension(google_protobuf_FileDescriptorProto * msg,size_t * size)772 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_FileDescriptorProto_mutable_extension(google_protobuf_FileDescriptorProto* msg, size_t* size) {
773   upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
774   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
775   if (arr) {
776     if (size) *size = arr->UPB_PRIVATE(size);
777     return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr);
778   } else {
779     if (size) *size = 0;
780     return NULL;
781   }
782 }
google_protobuf_FileDescriptorProto_resize_extension(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)783 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_FileDescriptorProto_resize_extension(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
784   upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
785   return (google_protobuf_FieldDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
786                                                    &field, size, arena);
787 }
google_protobuf_FileDescriptorProto_add_extension(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)788 UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_FileDescriptorProto_add_extension(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
789   upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
790   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
791       UPB_UPCAST(msg), &field, arena);
792   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
793                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
794     return NULL;
795   }
796   struct google_protobuf_FieldDescriptorProto* sub = (struct google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
797   if (!arr || !sub) return NULL;
798   UPB_PRIVATE(_upb_Array_Set)
799   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
800   return sub;
801 }
google_protobuf_FileDescriptorProto_set_options(google_protobuf_FileDescriptorProto * msg,google_protobuf_FileOptions * value)802 UPB_INLINE void google_protobuf_FileDescriptorProto_set_options(google_protobuf_FileDescriptorProto *msg, google_protobuf_FileOptions* value) {
803   const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
804   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
805 }
google_protobuf_FileDescriptorProto_mutable_options(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)806 UPB_INLINE struct google_protobuf_FileOptions* google_protobuf_FileDescriptorProto_mutable_options(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
807   struct google_protobuf_FileOptions* sub = (struct google_protobuf_FileOptions*)google_protobuf_FileDescriptorProto_options(msg);
808   if (sub == NULL) {
809     sub = (struct google_protobuf_FileOptions*)_upb_Message_New(&google__protobuf__FileOptions_msg_init, arena);
810     if (sub) google_protobuf_FileDescriptorProto_set_options(msg, sub);
811   }
812   return sub;
813 }
google_protobuf_FileDescriptorProto_set_source_code_info(google_protobuf_FileDescriptorProto * msg,google_protobuf_SourceCodeInfo * value)814 UPB_INLINE void google_protobuf_FileDescriptorProto_set_source_code_info(google_protobuf_FileDescriptorProto *msg, google_protobuf_SourceCodeInfo* value) {
815   const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
816   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
817 }
google_protobuf_FileDescriptorProto_mutable_source_code_info(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)818 UPB_INLINE struct google_protobuf_SourceCodeInfo* google_protobuf_FileDescriptorProto_mutable_source_code_info(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
819   struct google_protobuf_SourceCodeInfo* sub = (struct google_protobuf_SourceCodeInfo*)google_protobuf_FileDescriptorProto_source_code_info(msg);
820   if (sub == NULL) {
821     sub = (struct google_protobuf_SourceCodeInfo*)_upb_Message_New(&google__protobuf__SourceCodeInfo_msg_init, arena);
822     if (sub) google_protobuf_FileDescriptorProto_set_source_code_info(msg, sub);
823   }
824   return sub;
825 }
google_protobuf_FileDescriptorProto_mutable_public_dependency(google_protobuf_FileDescriptorProto * msg,size_t * size)826 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_mutable_public_dependency(google_protobuf_FileDescriptorProto* msg, size_t* size) {
827   upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
828   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
829   if (arr) {
830     if (size) *size = arr->UPB_PRIVATE(size);
831     return (int32_t*)upb_Array_MutableDataPtr(arr);
832   } else {
833     if (size) *size = 0;
834     return NULL;
835   }
836 }
google_protobuf_FileDescriptorProto_resize_public_dependency(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)837 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_resize_public_dependency(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
838   upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
839   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
840                                                    &field, size, arena);
841 }
google_protobuf_FileDescriptorProto_add_public_dependency(google_protobuf_FileDescriptorProto * msg,int32_t val,upb_Arena * arena)842 UPB_INLINE bool google_protobuf_FileDescriptorProto_add_public_dependency(google_protobuf_FileDescriptorProto* msg, int32_t val, upb_Arena* arena) {
843   upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
844   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
845       UPB_UPCAST(msg), &field, arena);
846   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
847                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
848     return false;
849   }
850   UPB_PRIVATE(_upb_Array_Set)
851   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
852   return true;
853 }
google_protobuf_FileDescriptorProto_mutable_weak_dependency(google_protobuf_FileDescriptorProto * msg,size_t * size)854 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_mutable_weak_dependency(google_protobuf_FileDescriptorProto* msg, size_t* size) {
855   upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
856   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
857   if (arr) {
858     if (size) *size = arr->UPB_PRIVATE(size);
859     return (int32_t*)upb_Array_MutableDataPtr(arr);
860   } else {
861     if (size) *size = 0;
862     return NULL;
863   }
864 }
google_protobuf_FileDescriptorProto_resize_weak_dependency(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)865 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_resize_weak_dependency(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
866   upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
867   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
868                                                    &field, size, arena);
869 }
google_protobuf_FileDescriptorProto_add_weak_dependency(google_protobuf_FileDescriptorProto * msg,int32_t val,upb_Arena * arena)870 UPB_INLINE bool google_protobuf_FileDescriptorProto_add_weak_dependency(google_protobuf_FileDescriptorProto* msg, int32_t val, upb_Arena* arena) {
871   upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
872   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
873       UPB_UPCAST(msg), &field, arena);
874   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
875                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
876     return false;
877   }
878   UPB_PRIVATE(_upb_Array_Set)
879   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
880   return true;
881 }
google_protobuf_FileDescriptorProto_set_syntax(google_protobuf_FileDescriptorProto * msg,upb_StringView value)882 UPB_INLINE void google_protobuf_FileDescriptorProto_set_syntax(google_protobuf_FileDescriptorProto *msg, upb_StringView value) {
883   const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
884   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
885 }
google_protobuf_FileDescriptorProto_set_edition(google_protobuf_FileDescriptorProto * msg,int32_t value)886 UPB_INLINE void google_protobuf_FileDescriptorProto_set_edition(google_protobuf_FileDescriptorProto *msg, int32_t value) {
887   const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
888   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
889 }
890 
891 /* google.protobuf.DescriptorProto */
892 
google_protobuf_DescriptorProto_new(upb_Arena * arena)893 UPB_INLINE google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_new(upb_Arena* arena) {
894   return (google_protobuf_DescriptorProto*)_upb_Message_New(&google__protobuf__DescriptorProto_msg_init, arena);
895 }
google_protobuf_DescriptorProto_parse(const char * buf,size_t size,upb_Arena * arena)896 UPB_INLINE google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
897   google_protobuf_DescriptorProto* ret = google_protobuf_DescriptorProto_new(arena);
898   if (!ret) return NULL;
899   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto_msg_init, NULL, 0, arena) !=
900       kUpb_DecodeStatus_Ok) {
901     return NULL;
902   }
903   return ret;
904 }
google_protobuf_DescriptorProto_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)905 UPB_INLINE google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_parse_ex(const char* buf, size_t size,
906                            const upb_ExtensionRegistry* extreg,
907                            int options, upb_Arena* arena) {
908   google_protobuf_DescriptorProto* ret = google_protobuf_DescriptorProto_new(arena);
909   if (!ret) return NULL;
910   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto_msg_init, extreg, options,
911                  arena) != kUpb_DecodeStatus_Ok) {
912     return NULL;
913   }
914   return ret;
915 }
google_protobuf_DescriptorProto_serialize(const google_protobuf_DescriptorProto * msg,upb_Arena * arena,size_t * len)916 UPB_INLINE char* google_protobuf_DescriptorProto_serialize(const google_protobuf_DescriptorProto* msg, upb_Arena* arena, size_t* len) {
917   char* ptr;
918   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto_msg_init, 0, arena, &ptr, len);
919   return ptr;
920 }
google_protobuf_DescriptorProto_serialize_ex(const google_protobuf_DescriptorProto * msg,int options,upb_Arena * arena,size_t * len)921 UPB_INLINE char* google_protobuf_DescriptorProto_serialize_ex(const google_protobuf_DescriptorProto* msg, int options,
922                                  upb_Arena* arena, size_t* len) {
923   char* ptr;
924   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto_msg_init, options, arena, &ptr, len);
925   return ptr;
926 }
google_protobuf_DescriptorProto_clear_name(google_protobuf_DescriptorProto * msg)927 UPB_INLINE void google_protobuf_DescriptorProto_clear_name(google_protobuf_DescriptorProto* msg) {
928   const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
929   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
930 }
google_protobuf_DescriptorProto_name(const google_protobuf_DescriptorProto * msg)931 UPB_INLINE upb_StringView google_protobuf_DescriptorProto_name(const google_protobuf_DescriptorProto* msg) {
932   upb_StringView default_val = upb_StringView_FromString("");
933   upb_StringView ret;
934   const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
935   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
936                                     &default_val, &ret);
937   return ret;
938 }
google_protobuf_DescriptorProto_has_name(const google_protobuf_DescriptorProto * msg)939 UPB_INLINE bool google_protobuf_DescriptorProto_has_name(const google_protobuf_DescriptorProto* msg) {
940   const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
941   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
942 }
google_protobuf_DescriptorProto_clear_field(google_protobuf_DescriptorProto * msg)943 UPB_INLINE void google_protobuf_DescriptorProto_clear_field(google_protobuf_DescriptorProto* msg) {
944   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)};
945   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
946 }
google_protobuf_DescriptorProto_field(const google_protobuf_DescriptorProto * msg,size_t * size)947 UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_DescriptorProto_field(const google_protobuf_DescriptorProto* msg, size_t* size) {
948   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)};
949   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
950   if (arr) {
951     if (size) *size = arr->UPB_PRIVATE(size);
952     return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr);
953   } else {
954     if (size) *size = 0;
955     return NULL;
956   }
957 }
_google_protobuf_DescriptorProto_field_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)958 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_field_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
959   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)};
960   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
961   if (size) {
962     *size = arr ? arr->UPB_PRIVATE(size) : 0;
963   }
964   return arr;
965 }
_google_protobuf_DescriptorProto_field_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)966 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_field_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
967   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)};
968   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
969                                                        &field, arena);
970   if (size) {
971     *size = arr ? arr->UPB_PRIVATE(size) : 0;
972   }
973   return arr;
974 }
google_protobuf_DescriptorProto_clear_nested_type(google_protobuf_DescriptorProto * msg)975 UPB_INLINE void google_protobuf_DescriptorProto_clear_nested_type(google_protobuf_DescriptorProto* msg) {
976   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)};
977   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
978 }
google_protobuf_DescriptorProto_nested_type(const google_protobuf_DescriptorProto * msg,size_t * size)979 UPB_INLINE const google_protobuf_DescriptorProto* const* google_protobuf_DescriptorProto_nested_type(const google_protobuf_DescriptorProto* msg, size_t* size) {
980   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)};
981   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
982   if (arr) {
983     if (size) *size = arr->UPB_PRIVATE(size);
984     return (const google_protobuf_DescriptorProto* const*)upb_Array_DataPtr(arr);
985   } else {
986     if (size) *size = 0;
987     return NULL;
988   }
989 }
_google_protobuf_DescriptorProto_nested_type_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)990 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_nested_type_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
991   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)};
992   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
993   if (size) {
994     *size = arr ? arr->UPB_PRIVATE(size) : 0;
995   }
996   return arr;
997 }
_google_protobuf_DescriptorProto_nested_type_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)998 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_nested_type_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
999   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)};
1000   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1001                                                        &field, arena);
1002   if (size) {
1003     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1004   }
1005   return arr;
1006 }
google_protobuf_DescriptorProto_clear_enum_type(google_protobuf_DescriptorProto * msg)1007 UPB_INLINE void google_protobuf_DescriptorProto_clear_enum_type(google_protobuf_DescriptorProto* msg) {
1008   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)};
1009   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1010 }
google_protobuf_DescriptorProto_enum_type(const google_protobuf_DescriptorProto * msg,size_t * size)1011 UPB_INLINE const google_protobuf_EnumDescriptorProto* const* google_protobuf_DescriptorProto_enum_type(const google_protobuf_DescriptorProto* msg, size_t* size) {
1012   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)};
1013   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1014   if (arr) {
1015     if (size) *size = arr->UPB_PRIVATE(size);
1016     return (const google_protobuf_EnumDescriptorProto* const*)upb_Array_DataPtr(arr);
1017   } else {
1018     if (size) *size = 0;
1019     return NULL;
1020   }
1021 }
_google_protobuf_DescriptorProto_enum_type_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1022 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_enum_type_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1023   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)};
1024   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1025   if (size) {
1026     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1027   }
1028   return arr;
1029 }
_google_protobuf_DescriptorProto_enum_type_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1030 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_enum_type_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1031   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)};
1032   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1033                                                        &field, arena);
1034   if (size) {
1035     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1036   }
1037   return arr;
1038 }
google_protobuf_DescriptorProto_clear_extension_range(google_protobuf_DescriptorProto * msg)1039 UPB_INLINE void google_protobuf_DescriptorProto_clear_extension_range(google_protobuf_DescriptorProto* msg) {
1040   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)};
1041   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1042 }
google_protobuf_DescriptorProto_extension_range(const google_protobuf_DescriptorProto * msg,size_t * size)1043 UPB_INLINE const google_protobuf_DescriptorProto_ExtensionRange* const* google_protobuf_DescriptorProto_extension_range(const google_protobuf_DescriptorProto* msg, size_t* size) {
1044   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)};
1045   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1046   if (arr) {
1047     if (size) *size = arr->UPB_PRIVATE(size);
1048     return (const google_protobuf_DescriptorProto_ExtensionRange* const*)upb_Array_DataPtr(arr);
1049   } else {
1050     if (size) *size = 0;
1051     return NULL;
1052   }
1053 }
_google_protobuf_DescriptorProto_extension_range_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1054 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_extension_range_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1055   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)};
1056   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1057   if (size) {
1058     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1059   }
1060   return arr;
1061 }
_google_protobuf_DescriptorProto_extension_range_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1062 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_extension_range_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1063   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)};
1064   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1065                                                        &field, arena);
1066   if (size) {
1067     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1068   }
1069   return arr;
1070 }
google_protobuf_DescriptorProto_clear_extension(google_protobuf_DescriptorProto * msg)1071 UPB_INLINE void google_protobuf_DescriptorProto_clear_extension(google_protobuf_DescriptorProto* msg) {
1072   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)};
1073   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1074 }
google_protobuf_DescriptorProto_extension(const google_protobuf_DescriptorProto * msg,size_t * size)1075 UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_DescriptorProto_extension(const google_protobuf_DescriptorProto* msg, size_t* size) {
1076   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)};
1077   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1078   if (arr) {
1079     if (size) *size = arr->UPB_PRIVATE(size);
1080     return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr);
1081   } else {
1082     if (size) *size = 0;
1083     return NULL;
1084   }
1085 }
_google_protobuf_DescriptorProto_extension_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1086 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_extension_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1087   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)};
1088   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1089   if (size) {
1090     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1091   }
1092   return arr;
1093 }
_google_protobuf_DescriptorProto_extension_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1094 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_extension_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1095   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)};
1096   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1097                                                        &field, arena);
1098   if (size) {
1099     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1100   }
1101   return arr;
1102 }
google_protobuf_DescriptorProto_clear_options(google_protobuf_DescriptorProto * msg)1103 UPB_INLINE void google_protobuf_DescriptorProto_clear_options(google_protobuf_DescriptorProto* msg) {
1104   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)};
1105   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1106 }
google_protobuf_DescriptorProto_options(const google_protobuf_DescriptorProto * msg)1107 UPB_INLINE const google_protobuf_MessageOptions* google_protobuf_DescriptorProto_options(const google_protobuf_DescriptorProto* msg) {
1108   const google_protobuf_MessageOptions* default_val = NULL;
1109   const google_protobuf_MessageOptions* ret;
1110   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)};
1111   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1112                                     &default_val, &ret);
1113   return ret;
1114 }
google_protobuf_DescriptorProto_has_options(const google_protobuf_DescriptorProto * msg)1115 UPB_INLINE bool google_protobuf_DescriptorProto_has_options(const google_protobuf_DescriptorProto* msg) {
1116   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)};
1117   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1118 }
google_protobuf_DescriptorProto_clear_oneof_decl(google_protobuf_DescriptorProto * msg)1119 UPB_INLINE void google_protobuf_DescriptorProto_clear_oneof_decl(google_protobuf_DescriptorProto* msg) {
1120   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)};
1121   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1122 }
google_protobuf_DescriptorProto_oneof_decl(const google_protobuf_DescriptorProto * msg,size_t * size)1123 UPB_INLINE const google_protobuf_OneofDescriptorProto* const* google_protobuf_DescriptorProto_oneof_decl(const google_protobuf_DescriptorProto* msg, size_t* size) {
1124   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)};
1125   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1126   if (arr) {
1127     if (size) *size = arr->UPB_PRIVATE(size);
1128     return (const google_protobuf_OneofDescriptorProto* const*)upb_Array_DataPtr(arr);
1129   } else {
1130     if (size) *size = 0;
1131     return NULL;
1132   }
1133 }
_google_protobuf_DescriptorProto_oneof_decl_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1134 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_oneof_decl_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1135   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)};
1136   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1137   if (size) {
1138     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1139   }
1140   return arr;
1141 }
_google_protobuf_DescriptorProto_oneof_decl_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1142 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_oneof_decl_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1143   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)};
1144   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1145                                                        &field, arena);
1146   if (size) {
1147     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1148   }
1149   return arr;
1150 }
google_protobuf_DescriptorProto_clear_reserved_range(google_protobuf_DescriptorProto * msg)1151 UPB_INLINE void google_protobuf_DescriptorProto_clear_reserved_range(google_protobuf_DescriptorProto* msg) {
1152   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)};
1153   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1154 }
google_protobuf_DescriptorProto_reserved_range(const google_protobuf_DescriptorProto * msg,size_t * size)1155 UPB_INLINE const google_protobuf_DescriptorProto_ReservedRange* const* google_protobuf_DescriptorProto_reserved_range(const google_protobuf_DescriptorProto* msg, size_t* size) {
1156   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)};
1157   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1158   if (arr) {
1159     if (size) *size = arr->UPB_PRIVATE(size);
1160     return (const google_protobuf_DescriptorProto_ReservedRange* const*)upb_Array_DataPtr(arr);
1161   } else {
1162     if (size) *size = 0;
1163     return NULL;
1164   }
1165 }
_google_protobuf_DescriptorProto_reserved_range_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1166 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_reserved_range_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1167   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)};
1168   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1169   if (size) {
1170     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1171   }
1172   return arr;
1173 }
_google_protobuf_DescriptorProto_reserved_range_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1174 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_reserved_range_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1175   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)};
1176   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1177                                                        &field, arena);
1178   if (size) {
1179     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1180   }
1181   return arr;
1182 }
google_protobuf_DescriptorProto_clear_reserved_name(google_protobuf_DescriptorProto * msg)1183 UPB_INLINE void google_protobuf_DescriptorProto_clear_reserved_name(google_protobuf_DescriptorProto* msg) {
1184   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)};
1185   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1186 }
google_protobuf_DescriptorProto_reserved_name(const google_protobuf_DescriptorProto * msg,size_t * size)1187 UPB_INLINE upb_StringView const* google_protobuf_DescriptorProto_reserved_name(const google_protobuf_DescriptorProto* msg, size_t* size) {
1188   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)};
1189   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1190   if (arr) {
1191     if (size) *size = arr->UPB_PRIVATE(size);
1192     return (upb_StringView const*)upb_Array_DataPtr(arr);
1193   } else {
1194     if (size) *size = 0;
1195     return NULL;
1196   }
1197 }
_google_protobuf_DescriptorProto_reserved_name_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1198 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_reserved_name_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1199   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)};
1200   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1201   if (size) {
1202     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1203   }
1204   return arr;
1205 }
_google_protobuf_DescriptorProto_reserved_name_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1206 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_reserved_name_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1207   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)};
1208   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1209                                                        &field, arena);
1210   if (size) {
1211     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1212   }
1213   return arr;
1214 }
1215 
google_protobuf_DescriptorProto_set_name(google_protobuf_DescriptorProto * msg,upb_StringView value)1216 UPB_INLINE void google_protobuf_DescriptorProto_set_name(google_protobuf_DescriptorProto *msg, upb_StringView value) {
1217   const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1218   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1219 }
google_protobuf_DescriptorProto_mutable_field(google_protobuf_DescriptorProto * msg,size_t * size)1220 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_mutable_field(google_protobuf_DescriptorProto* msg, size_t* size) {
1221   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)};
1222   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1223   if (arr) {
1224     if (size) *size = arr->UPB_PRIVATE(size);
1225     return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr);
1226   } else {
1227     if (size) *size = 0;
1228     return NULL;
1229   }
1230 }
google_protobuf_DescriptorProto_resize_field(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1231 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_resize_field(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1232   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)};
1233   return (google_protobuf_FieldDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1234                                                    &field, size, arena);
1235 }
google_protobuf_DescriptorProto_add_field(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1236 UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_DescriptorProto_add_field(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1237   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)};
1238   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1239       UPB_UPCAST(msg), &field, arena);
1240   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1241                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1242     return NULL;
1243   }
1244   struct google_protobuf_FieldDescriptorProto* sub = (struct google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
1245   if (!arr || !sub) return NULL;
1246   UPB_PRIVATE(_upb_Array_Set)
1247   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1248   return sub;
1249 }
google_protobuf_DescriptorProto_mutable_nested_type(google_protobuf_DescriptorProto * msg,size_t * size)1250 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_DescriptorProto_mutable_nested_type(google_protobuf_DescriptorProto* msg, size_t* size) {
1251   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)};
1252   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1253   if (arr) {
1254     if (size) *size = arr->UPB_PRIVATE(size);
1255     return (google_protobuf_DescriptorProto**)upb_Array_MutableDataPtr(arr);
1256   } else {
1257     if (size) *size = 0;
1258     return NULL;
1259   }
1260 }
google_protobuf_DescriptorProto_resize_nested_type(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1261 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_DescriptorProto_resize_nested_type(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1262   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)};
1263   return (google_protobuf_DescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1264                                                    &field, size, arena);
1265 }
google_protobuf_DescriptorProto_add_nested_type(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1266 UPB_INLINE struct google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_add_nested_type(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1267   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)};
1268   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1269       UPB_UPCAST(msg), &field, arena);
1270   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1271                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1272     return NULL;
1273   }
1274   struct google_protobuf_DescriptorProto* sub = (struct google_protobuf_DescriptorProto*)_upb_Message_New(&google__protobuf__DescriptorProto_msg_init, arena);
1275   if (!arr || !sub) return NULL;
1276   UPB_PRIVATE(_upb_Array_Set)
1277   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1278   return sub;
1279 }
google_protobuf_DescriptorProto_mutable_enum_type(google_protobuf_DescriptorProto * msg,size_t * size)1280 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_DescriptorProto_mutable_enum_type(google_protobuf_DescriptorProto* msg, size_t* size) {
1281   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)};
1282   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1283   if (arr) {
1284     if (size) *size = arr->UPB_PRIVATE(size);
1285     return (google_protobuf_EnumDescriptorProto**)upb_Array_MutableDataPtr(arr);
1286   } else {
1287     if (size) *size = 0;
1288     return NULL;
1289   }
1290 }
google_protobuf_DescriptorProto_resize_enum_type(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1291 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_DescriptorProto_resize_enum_type(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1292   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)};
1293   return (google_protobuf_EnumDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1294                                                    &field, size, arena);
1295 }
google_protobuf_DescriptorProto_add_enum_type(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1296 UPB_INLINE struct google_protobuf_EnumDescriptorProto* google_protobuf_DescriptorProto_add_enum_type(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1297   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)};
1298   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1299       UPB_UPCAST(msg), &field, arena);
1300   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1301                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1302     return NULL;
1303   }
1304   struct google_protobuf_EnumDescriptorProto* sub = (struct google_protobuf_EnumDescriptorProto*)_upb_Message_New(&google__protobuf__EnumDescriptorProto_msg_init, arena);
1305   if (!arr || !sub) return NULL;
1306   UPB_PRIVATE(_upb_Array_Set)
1307   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1308   return sub;
1309 }
google_protobuf_DescriptorProto_mutable_extension_range(google_protobuf_DescriptorProto * msg,size_t * size)1310 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange** google_protobuf_DescriptorProto_mutable_extension_range(google_protobuf_DescriptorProto* msg, size_t* size) {
1311   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)};
1312   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1313   if (arr) {
1314     if (size) *size = arr->UPB_PRIVATE(size);
1315     return (google_protobuf_DescriptorProto_ExtensionRange**)upb_Array_MutableDataPtr(arr);
1316   } else {
1317     if (size) *size = 0;
1318     return NULL;
1319   }
1320 }
google_protobuf_DescriptorProto_resize_extension_range(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1321 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange** google_protobuf_DescriptorProto_resize_extension_range(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1322   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)};
1323   return (google_protobuf_DescriptorProto_ExtensionRange**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1324                                                    &field, size, arena);
1325 }
google_protobuf_DescriptorProto_add_extension_range(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1326 UPB_INLINE struct google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_add_extension_range(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1327   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)};
1328   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1329       UPB_UPCAST(msg), &field, arena);
1330   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1331                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1332     return NULL;
1333   }
1334   struct google_protobuf_DescriptorProto_ExtensionRange* sub = (struct google_protobuf_DescriptorProto_ExtensionRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ExtensionRange_msg_init, arena);
1335   if (!arr || !sub) return NULL;
1336   UPB_PRIVATE(_upb_Array_Set)
1337   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1338   return sub;
1339 }
google_protobuf_DescriptorProto_mutable_extension(google_protobuf_DescriptorProto * msg,size_t * size)1340 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_mutable_extension(google_protobuf_DescriptorProto* msg, size_t* size) {
1341   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)};
1342   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1343   if (arr) {
1344     if (size) *size = arr->UPB_PRIVATE(size);
1345     return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr);
1346   } else {
1347     if (size) *size = 0;
1348     return NULL;
1349   }
1350 }
google_protobuf_DescriptorProto_resize_extension(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1351 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_resize_extension(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1352   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)};
1353   return (google_protobuf_FieldDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1354                                                    &field, size, arena);
1355 }
google_protobuf_DescriptorProto_add_extension(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1356 UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_DescriptorProto_add_extension(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1357   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)};
1358   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1359       UPB_UPCAST(msg), &field, arena);
1360   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1361                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1362     return NULL;
1363   }
1364   struct google_protobuf_FieldDescriptorProto* sub = (struct google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
1365   if (!arr || !sub) return NULL;
1366   UPB_PRIVATE(_upb_Array_Set)
1367   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1368   return sub;
1369 }
google_protobuf_DescriptorProto_set_options(google_protobuf_DescriptorProto * msg,google_protobuf_MessageOptions * value)1370 UPB_INLINE void google_protobuf_DescriptorProto_set_options(google_protobuf_DescriptorProto *msg, google_protobuf_MessageOptions* value) {
1371   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)};
1372   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1373 }
google_protobuf_DescriptorProto_mutable_options(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1374 UPB_INLINE struct google_protobuf_MessageOptions* google_protobuf_DescriptorProto_mutable_options(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1375   struct google_protobuf_MessageOptions* sub = (struct google_protobuf_MessageOptions*)google_protobuf_DescriptorProto_options(msg);
1376   if (sub == NULL) {
1377     sub = (struct google_protobuf_MessageOptions*)_upb_Message_New(&google__protobuf__MessageOptions_msg_init, arena);
1378     if (sub) google_protobuf_DescriptorProto_set_options(msg, sub);
1379   }
1380   return sub;
1381 }
google_protobuf_DescriptorProto_mutable_oneof_decl(google_protobuf_DescriptorProto * msg,size_t * size)1382 UPB_INLINE google_protobuf_OneofDescriptorProto** google_protobuf_DescriptorProto_mutable_oneof_decl(google_protobuf_DescriptorProto* msg, size_t* size) {
1383   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)};
1384   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1385   if (arr) {
1386     if (size) *size = arr->UPB_PRIVATE(size);
1387     return (google_protobuf_OneofDescriptorProto**)upb_Array_MutableDataPtr(arr);
1388   } else {
1389     if (size) *size = 0;
1390     return NULL;
1391   }
1392 }
google_protobuf_DescriptorProto_resize_oneof_decl(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1393 UPB_INLINE google_protobuf_OneofDescriptorProto** google_protobuf_DescriptorProto_resize_oneof_decl(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1394   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)};
1395   return (google_protobuf_OneofDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1396                                                    &field, size, arena);
1397 }
google_protobuf_DescriptorProto_add_oneof_decl(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1398 UPB_INLINE struct google_protobuf_OneofDescriptorProto* google_protobuf_DescriptorProto_add_oneof_decl(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1399   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)};
1400   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1401       UPB_UPCAST(msg), &field, arena);
1402   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1403                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1404     return NULL;
1405   }
1406   struct google_protobuf_OneofDescriptorProto* sub = (struct google_protobuf_OneofDescriptorProto*)_upb_Message_New(&google__protobuf__OneofDescriptorProto_msg_init, arena);
1407   if (!arr || !sub) return NULL;
1408   UPB_PRIVATE(_upb_Array_Set)
1409   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1410   return sub;
1411 }
google_protobuf_DescriptorProto_mutable_reserved_range(google_protobuf_DescriptorProto * msg,size_t * size)1412 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange** google_protobuf_DescriptorProto_mutable_reserved_range(google_protobuf_DescriptorProto* msg, size_t* size) {
1413   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)};
1414   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1415   if (arr) {
1416     if (size) *size = arr->UPB_PRIVATE(size);
1417     return (google_protobuf_DescriptorProto_ReservedRange**)upb_Array_MutableDataPtr(arr);
1418   } else {
1419     if (size) *size = 0;
1420     return NULL;
1421   }
1422 }
google_protobuf_DescriptorProto_resize_reserved_range(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1423 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange** google_protobuf_DescriptorProto_resize_reserved_range(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1424   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)};
1425   return (google_protobuf_DescriptorProto_ReservedRange**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1426                                                    &field, size, arena);
1427 }
google_protobuf_DescriptorProto_add_reserved_range(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1428 UPB_INLINE struct google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_add_reserved_range(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1429   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)};
1430   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1431       UPB_UPCAST(msg), &field, arena);
1432   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1433                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1434     return NULL;
1435   }
1436   struct google_protobuf_DescriptorProto_ReservedRange* sub = (struct google_protobuf_DescriptorProto_ReservedRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ReservedRange_msg_init, arena);
1437   if (!arr || !sub) return NULL;
1438   UPB_PRIVATE(_upb_Array_Set)
1439   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1440   return sub;
1441 }
google_protobuf_DescriptorProto_mutable_reserved_name(google_protobuf_DescriptorProto * msg,size_t * size)1442 UPB_INLINE upb_StringView* google_protobuf_DescriptorProto_mutable_reserved_name(google_protobuf_DescriptorProto* msg, size_t* size) {
1443   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)};
1444   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1445   if (arr) {
1446     if (size) *size = arr->UPB_PRIVATE(size);
1447     return (upb_StringView*)upb_Array_MutableDataPtr(arr);
1448   } else {
1449     if (size) *size = 0;
1450     return NULL;
1451   }
1452 }
google_protobuf_DescriptorProto_resize_reserved_name(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1453 UPB_INLINE upb_StringView* google_protobuf_DescriptorProto_resize_reserved_name(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1454   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)};
1455   return (upb_StringView*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1456                                                    &field, size, arena);
1457 }
google_protobuf_DescriptorProto_add_reserved_name(google_protobuf_DescriptorProto * msg,upb_StringView val,upb_Arena * arena)1458 UPB_INLINE bool google_protobuf_DescriptorProto_add_reserved_name(google_protobuf_DescriptorProto* msg, upb_StringView val, upb_Arena* arena) {
1459   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)};
1460   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1461       UPB_UPCAST(msg), &field, arena);
1462   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1463                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1464     return false;
1465   }
1466   UPB_PRIVATE(_upb_Array_Set)
1467   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
1468   return true;
1469 }
1470 
1471 /* google.protobuf.DescriptorProto.ExtensionRange */
1472 
google_protobuf_DescriptorProto_ExtensionRange_new(upb_Arena * arena)1473 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_ExtensionRange_new(upb_Arena* arena) {
1474   return (google_protobuf_DescriptorProto_ExtensionRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ExtensionRange_msg_init, arena);
1475 }
google_protobuf_DescriptorProto_ExtensionRange_parse(const char * buf,size_t size,upb_Arena * arena)1476 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_ExtensionRange_parse(const char* buf, size_t size, upb_Arena* arena) {
1477   google_protobuf_DescriptorProto_ExtensionRange* ret = google_protobuf_DescriptorProto_ExtensionRange_new(arena);
1478   if (!ret) return NULL;
1479   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, NULL, 0, arena) !=
1480       kUpb_DecodeStatus_Ok) {
1481     return NULL;
1482   }
1483   return ret;
1484 }
google_protobuf_DescriptorProto_ExtensionRange_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)1485 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_ExtensionRange_parse_ex(const char* buf, size_t size,
1486                            const upb_ExtensionRegistry* extreg,
1487                            int options, upb_Arena* arena) {
1488   google_protobuf_DescriptorProto_ExtensionRange* ret = google_protobuf_DescriptorProto_ExtensionRange_new(arena);
1489   if (!ret) return NULL;
1490   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, extreg, options,
1491                  arena) != kUpb_DecodeStatus_Ok) {
1492     return NULL;
1493   }
1494   return ret;
1495 }
google_protobuf_DescriptorProto_ExtensionRange_serialize(const google_protobuf_DescriptorProto_ExtensionRange * msg,upb_Arena * arena,size_t * len)1496 UPB_INLINE char* google_protobuf_DescriptorProto_ExtensionRange_serialize(const google_protobuf_DescriptorProto_ExtensionRange* msg, upb_Arena* arena, size_t* len) {
1497   char* ptr;
1498   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, 0, arena, &ptr, len);
1499   return ptr;
1500 }
google_protobuf_DescriptorProto_ExtensionRange_serialize_ex(const google_protobuf_DescriptorProto_ExtensionRange * msg,int options,upb_Arena * arena,size_t * len)1501 UPB_INLINE char* google_protobuf_DescriptorProto_ExtensionRange_serialize_ex(const google_protobuf_DescriptorProto_ExtensionRange* msg, int options,
1502                                  upb_Arena* arena, size_t* len) {
1503   char* ptr;
1504   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, options, arena, &ptr, len);
1505   return ptr;
1506 }
google_protobuf_DescriptorProto_ExtensionRange_clear_start(google_protobuf_DescriptorProto_ExtensionRange * msg)1507 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_clear_start(google_protobuf_DescriptorProto_ExtensionRange* msg) {
1508   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1509   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1510 }
google_protobuf_DescriptorProto_ExtensionRange_start(const google_protobuf_DescriptorProto_ExtensionRange * msg)1511 UPB_INLINE int32_t google_protobuf_DescriptorProto_ExtensionRange_start(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1512   int32_t default_val = (int32_t)0;
1513   int32_t ret;
1514   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1515   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1516                                     &default_val, &ret);
1517   return ret;
1518 }
google_protobuf_DescriptorProto_ExtensionRange_has_start(const google_protobuf_DescriptorProto_ExtensionRange * msg)1519 UPB_INLINE bool google_protobuf_DescriptorProto_ExtensionRange_has_start(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1520   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1521   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1522 }
google_protobuf_DescriptorProto_ExtensionRange_clear_end(google_protobuf_DescriptorProto_ExtensionRange * msg)1523 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_clear_end(google_protobuf_DescriptorProto_ExtensionRange* msg) {
1524   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1525   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1526 }
google_protobuf_DescriptorProto_ExtensionRange_end(const google_protobuf_DescriptorProto_ExtensionRange * msg)1527 UPB_INLINE int32_t google_protobuf_DescriptorProto_ExtensionRange_end(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1528   int32_t default_val = (int32_t)0;
1529   int32_t ret;
1530   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1531   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1532                                     &default_val, &ret);
1533   return ret;
1534 }
google_protobuf_DescriptorProto_ExtensionRange_has_end(const google_protobuf_DescriptorProto_ExtensionRange * msg)1535 UPB_INLINE bool google_protobuf_DescriptorProto_ExtensionRange_has_end(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1536   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1537   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1538 }
google_protobuf_DescriptorProto_ExtensionRange_clear_options(google_protobuf_DescriptorProto_ExtensionRange * msg)1539 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_clear_options(google_protobuf_DescriptorProto_ExtensionRange* msg) {
1540   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)};
1541   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1542 }
google_protobuf_DescriptorProto_ExtensionRange_options(const google_protobuf_DescriptorProto_ExtensionRange * msg)1543 UPB_INLINE const google_protobuf_ExtensionRangeOptions* google_protobuf_DescriptorProto_ExtensionRange_options(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1544   const google_protobuf_ExtensionRangeOptions* default_val = NULL;
1545   const google_protobuf_ExtensionRangeOptions* ret;
1546   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)};
1547   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1548                                     &default_val, &ret);
1549   return ret;
1550 }
google_protobuf_DescriptorProto_ExtensionRange_has_options(const google_protobuf_DescriptorProto_ExtensionRange * msg)1551 UPB_INLINE bool google_protobuf_DescriptorProto_ExtensionRange_has_options(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1552   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)};
1553   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1554 }
1555 
google_protobuf_DescriptorProto_ExtensionRange_set_start(google_protobuf_DescriptorProto_ExtensionRange * msg,int32_t value)1556 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_set_start(google_protobuf_DescriptorProto_ExtensionRange *msg, int32_t value) {
1557   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1558   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1559 }
google_protobuf_DescriptorProto_ExtensionRange_set_end(google_protobuf_DescriptorProto_ExtensionRange * msg,int32_t value)1560 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_set_end(google_protobuf_DescriptorProto_ExtensionRange *msg, int32_t value) {
1561   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1562   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1563 }
google_protobuf_DescriptorProto_ExtensionRange_set_options(google_protobuf_DescriptorProto_ExtensionRange * msg,google_protobuf_ExtensionRangeOptions * value)1564 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_set_options(google_protobuf_DescriptorProto_ExtensionRange *msg, google_protobuf_ExtensionRangeOptions* value) {
1565   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)};
1566   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1567 }
google_protobuf_DescriptorProto_ExtensionRange_mutable_options(google_protobuf_DescriptorProto_ExtensionRange * msg,upb_Arena * arena)1568 UPB_INLINE struct google_protobuf_ExtensionRangeOptions* google_protobuf_DescriptorProto_ExtensionRange_mutable_options(google_protobuf_DescriptorProto_ExtensionRange* msg, upb_Arena* arena) {
1569   struct google_protobuf_ExtensionRangeOptions* sub = (struct google_protobuf_ExtensionRangeOptions*)google_protobuf_DescriptorProto_ExtensionRange_options(msg);
1570   if (sub == NULL) {
1571     sub = (struct google_protobuf_ExtensionRangeOptions*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions_msg_init, arena);
1572     if (sub) google_protobuf_DescriptorProto_ExtensionRange_set_options(msg, sub);
1573   }
1574   return sub;
1575 }
1576 
1577 /* google.protobuf.DescriptorProto.ReservedRange */
1578 
google_protobuf_DescriptorProto_ReservedRange_new(upb_Arena * arena)1579 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_ReservedRange_new(upb_Arena* arena) {
1580   return (google_protobuf_DescriptorProto_ReservedRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ReservedRange_msg_init, arena);
1581 }
google_protobuf_DescriptorProto_ReservedRange_parse(const char * buf,size_t size,upb_Arena * arena)1582 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_ReservedRange_parse(const char* buf, size_t size, upb_Arena* arena) {
1583   google_protobuf_DescriptorProto_ReservedRange* ret = google_protobuf_DescriptorProto_ReservedRange_new(arena);
1584   if (!ret) return NULL;
1585   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ReservedRange_msg_init, NULL, 0, arena) !=
1586       kUpb_DecodeStatus_Ok) {
1587     return NULL;
1588   }
1589   return ret;
1590 }
google_protobuf_DescriptorProto_ReservedRange_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)1591 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_ReservedRange_parse_ex(const char* buf, size_t size,
1592                            const upb_ExtensionRegistry* extreg,
1593                            int options, upb_Arena* arena) {
1594   google_protobuf_DescriptorProto_ReservedRange* ret = google_protobuf_DescriptorProto_ReservedRange_new(arena);
1595   if (!ret) return NULL;
1596   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ReservedRange_msg_init, extreg, options,
1597                  arena) != kUpb_DecodeStatus_Ok) {
1598     return NULL;
1599   }
1600   return ret;
1601 }
google_protobuf_DescriptorProto_ReservedRange_serialize(const google_protobuf_DescriptorProto_ReservedRange * msg,upb_Arena * arena,size_t * len)1602 UPB_INLINE char* google_protobuf_DescriptorProto_ReservedRange_serialize(const google_protobuf_DescriptorProto_ReservedRange* msg, upb_Arena* arena, size_t* len) {
1603   char* ptr;
1604   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ReservedRange_msg_init, 0, arena, &ptr, len);
1605   return ptr;
1606 }
google_protobuf_DescriptorProto_ReservedRange_serialize_ex(const google_protobuf_DescriptorProto_ReservedRange * msg,int options,upb_Arena * arena,size_t * len)1607 UPB_INLINE char* google_protobuf_DescriptorProto_ReservedRange_serialize_ex(const google_protobuf_DescriptorProto_ReservedRange* msg, int options,
1608                                  upb_Arena* arena, size_t* len) {
1609   char* ptr;
1610   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ReservedRange_msg_init, options, arena, &ptr, len);
1611   return ptr;
1612 }
google_protobuf_DescriptorProto_ReservedRange_clear_start(google_protobuf_DescriptorProto_ReservedRange * msg)1613 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_clear_start(google_protobuf_DescriptorProto_ReservedRange* msg) {
1614   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1615   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1616 }
google_protobuf_DescriptorProto_ReservedRange_start(const google_protobuf_DescriptorProto_ReservedRange * msg)1617 UPB_INLINE int32_t google_protobuf_DescriptorProto_ReservedRange_start(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1618   int32_t default_val = (int32_t)0;
1619   int32_t ret;
1620   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1621   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1622                                     &default_val, &ret);
1623   return ret;
1624 }
google_protobuf_DescriptorProto_ReservedRange_has_start(const google_protobuf_DescriptorProto_ReservedRange * msg)1625 UPB_INLINE bool google_protobuf_DescriptorProto_ReservedRange_has_start(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1626   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1627   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1628 }
google_protobuf_DescriptorProto_ReservedRange_clear_end(google_protobuf_DescriptorProto_ReservedRange * msg)1629 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_clear_end(google_protobuf_DescriptorProto_ReservedRange* msg) {
1630   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1631   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1632 }
google_protobuf_DescriptorProto_ReservedRange_end(const google_protobuf_DescriptorProto_ReservedRange * msg)1633 UPB_INLINE int32_t google_protobuf_DescriptorProto_ReservedRange_end(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1634   int32_t default_val = (int32_t)0;
1635   int32_t ret;
1636   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1637   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1638                                     &default_val, &ret);
1639   return ret;
1640 }
google_protobuf_DescriptorProto_ReservedRange_has_end(const google_protobuf_DescriptorProto_ReservedRange * msg)1641 UPB_INLINE bool google_protobuf_DescriptorProto_ReservedRange_has_end(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1642   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1643   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1644 }
1645 
google_protobuf_DescriptorProto_ReservedRange_set_start(google_protobuf_DescriptorProto_ReservedRange * msg,int32_t value)1646 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_set_start(google_protobuf_DescriptorProto_ReservedRange *msg, int32_t value) {
1647   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1648   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1649 }
google_protobuf_DescriptorProto_ReservedRange_set_end(google_protobuf_DescriptorProto_ReservedRange * msg,int32_t value)1650 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_set_end(google_protobuf_DescriptorProto_ReservedRange *msg, int32_t value) {
1651   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1652   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1653 }
1654 
1655 /* google.protobuf.ExtensionRangeOptions */
1656 
google_protobuf_ExtensionRangeOptions_new(upb_Arena * arena)1657 UPB_INLINE google_protobuf_ExtensionRangeOptions* google_protobuf_ExtensionRangeOptions_new(upb_Arena* arena) {
1658   return (google_protobuf_ExtensionRangeOptions*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions_msg_init, arena);
1659 }
google_protobuf_ExtensionRangeOptions_parse(const char * buf,size_t size,upb_Arena * arena)1660 UPB_INLINE google_protobuf_ExtensionRangeOptions* google_protobuf_ExtensionRangeOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
1661   google_protobuf_ExtensionRangeOptions* ret = google_protobuf_ExtensionRangeOptions_new(arena);
1662   if (!ret) return NULL;
1663   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions_msg_init, NULL, 0, arena) !=
1664       kUpb_DecodeStatus_Ok) {
1665     return NULL;
1666   }
1667   return ret;
1668 }
google_protobuf_ExtensionRangeOptions_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)1669 UPB_INLINE google_protobuf_ExtensionRangeOptions* google_protobuf_ExtensionRangeOptions_parse_ex(const char* buf, size_t size,
1670                            const upb_ExtensionRegistry* extreg,
1671                            int options, upb_Arena* arena) {
1672   google_protobuf_ExtensionRangeOptions* ret = google_protobuf_ExtensionRangeOptions_new(arena);
1673   if (!ret) return NULL;
1674   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions_msg_init, extreg, options,
1675                  arena) != kUpb_DecodeStatus_Ok) {
1676     return NULL;
1677   }
1678   return ret;
1679 }
google_protobuf_ExtensionRangeOptions_serialize(const google_protobuf_ExtensionRangeOptions * msg,upb_Arena * arena,size_t * len)1680 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_serialize(const google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena, size_t* len) {
1681   char* ptr;
1682   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions_msg_init, 0, arena, &ptr, len);
1683   return ptr;
1684 }
google_protobuf_ExtensionRangeOptions_serialize_ex(const google_protobuf_ExtensionRangeOptions * msg,int options,upb_Arena * arena,size_t * len)1685 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_serialize_ex(const google_protobuf_ExtensionRangeOptions* msg, int options,
1686                                  upb_Arena* arena, size_t* len) {
1687   char* ptr;
1688   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions_msg_init, options, arena, &ptr, len);
1689   return ptr;
1690 }
google_protobuf_ExtensionRangeOptions_clear_declaration(google_protobuf_ExtensionRangeOptions * msg)1691 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_declaration(google_protobuf_ExtensionRangeOptions* msg) {
1692   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)};
1693   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1694 }
google_protobuf_ExtensionRangeOptions_declaration(const google_protobuf_ExtensionRangeOptions * msg,size_t * size)1695 UPB_INLINE const google_protobuf_ExtensionRangeOptions_Declaration* const* google_protobuf_ExtensionRangeOptions_declaration(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1696   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)};
1697   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1698   if (arr) {
1699     if (size) *size = arr->UPB_PRIVATE(size);
1700     return (const google_protobuf_ExtensionRangeOptions_Declaration* const*)upb_Array_DataPtr(arr);
1701   } else {
1702     if (size) *size = 0;
1703     return NULL;
1704   }
1705 }
_google_protobuf_ExtensionRangeOptions_declaration_upb_array(const google_protobuf_ExtensionRangeOptions * msg,size_t * size)1706 UPB_INLINE const upb_Array* _google_protobuf_ExtensionRangeOptions_declaration_upb_array(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1707   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)};
1708   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1709   if (size) {
1710     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1711   }
1712   return arr;
1713 }
_google_protobuf_ExtensionRangeOptions_declaration_mutable_upb_array(google_protobuf_ExtensionRangeOptions * msg,size_t * size,upb_Arena * arena)1714 UPB_INLINE upb_Array* _google_protobuf_ExtensionRangeOptions_declaration_mutable_upb_array(google_protobuf_ExtensionRangeOptions* msg, size_t* size, upb_Arena* arena) {
1715   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)};
1716   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1717                                                        &field, arena);
1718   if (size) {
1719     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1720   }
1721   return arr;
1722 }
google_protobuf_ExtensionRangeOptions_clear_verification(google_protobuf_ExtensionRangeOptions * msg)1723 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_verification(google_protobuf_ExtensionRangeOptions* msg) {
1724   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1725   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1726 }
google_protobuf_ExtensionRangeOptions_verification(const google_protobuf_ExtensionRangeOptions * msg)1727 UPB_INLINE int32_t google_protobuf_ExtensionRangeOptions_verification(const google_protobuf_ExtensionRangeOptions* msg) {
1728   int32_t default_val = 1;
1729   int32_t ret;
1730   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1731   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1732                                     &default_val, &ret);
1733   return ret;
1734 }
google_protobuf_ExtensionRangeOptions_has_verification(const google_protobuf_ExtensionRangeOptions * msg)1735 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_has_verification(const google_protobuf_ExtensionRangeOptions* msg) {
1736   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1737   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1738 }
google_protobuf_ExtensionRangeOptions_clear_features(google_protobuf_ExtensionRangeOptions * msg)1739 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_features(google_protobuf_ExtensionRangeOptions* msg) {
1740   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)};
1741   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1742 }
google_protobuf_ExtensionRangeOptions_features(const google_protobuf_ExtensionRangeOptions * msg)1743 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_ExtensionRangeOptions_features(const google_protobuf_ExtensionRangeOptions* msg) {
1744   const google_protobuf_FeatureSet* default_val = NULL;
1745   const google_protobuf_FeatureSet* ret;
1746   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)};
1747   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1748                                     &default_val, &ret);
1749   return ret;
1750 }
google_protobuf_ExtensionRangeOptions_has_features(const google_protobuf_ExtensionRangeOptions * msg)1751 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_has_features(const google_protobuf_ExtensionRangeOptions* msg) {
1752   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)};
1753   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1754 }
google_protobuf_ExtensionRangeOptions_clear_uninterpreted_option(google_protobuf_ExtensionRangeOptions * msg)1755 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg) {
1756   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)};
1757   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1758 }
google_protobuf_ExtensionRangeOptions_uninterpreted_option(const google_protobuf_ExtensionRangeOptions * msg,size_t * size)1759 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_ExtensionRangeOptions_uninterpreted_option(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1760   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)};
1761   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1762   if (arr) {
1763     if (size) *size = arr->UPB_PRIVATE(size);
1764     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
1765   } else {
1766     if (size) *size = 0;
1767     return NULL;
1768   }
1769 }
_google_protobuf_ExtensionRangeOptions_uninterpreted_option_upb_array(const google_protobuf_ExtensionRangeOptions * msg,size_t * size)1770 UPB_INLINE const upb_Array* _google_protobuf_ExtensionRangeOptions_uninterpreted_option_upb_array(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1771   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)};
1772   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1773   if (size) {
1774     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1775   }
1776   return arr;
1777 }
_google_protobuf_ExtensionRangeOptions_uninterpreted_option_mutable_upb_array(google_protobuf_ExtensionRangeOptions * msg,size_t * size,upb_Arena * arena)1778 UPB_INLINE upb_Array* _google_protobuf_ExtensionRangeOptions_uninterpreted_option_mutable_upb_array(google_protobuf_ExtensionRangeOptions* msg, size_t* size, upb_Arena* arena) {
1779   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)};
1780   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1781                                                        &field, arena);
1782   if (size) {
1783     *size = arr ? arr->UPB_PRIVATE(size) : 0;
1784   }
1785   return arr;
1786 }
1787 
google_protobuf_ExtensionRangeOptions_mutable_declaration(google_protobuf_ExtensionRangeOptions * msg,size_t * size)1788 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration** google_protobuf_ExtensionRangeOptions_mutable_declaration(google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1789   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)};
1790   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1791   if (arr) {
1792     if (size) *size = arr->UPB_PRIVATE(size);
1793     return (google_protobuf_ExtensionRangeOptions_Declaration**)upb_Array_MutableDataPtr(arr);
1794   } else {
1795     if (size) *size = 0;
1796     return NULL;
1797   }
1798 }
google_protobuf_ExtensionRangeOptions_resize_declaration(google_protobuf_ExtensionRangeOptions * msg,size_t size,upb_Arena * arena)1799 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration** google_protobuf_ExtensionRangeOptions_resize_declaration(google_protobuf_ExtensionRangeOptions* msg, size_t size, upb_Arena* arena) {
1800   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)};
1801   return (google_protobuf_ExtensionRangeOptions_Declaration**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1802                                                    &field, size, arena);
1803 }
google_protobuf_ExtensionRangeOptions_add_declaration(google_protobuf_ExtensionRangeOptions * msg,upb_Arena * arena)1804 UPB_INLINE struct google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_add_declaration(google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena) {
1805   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)};
1806   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1807       UPB_UPCAST(msg), &field, arena);
1808   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1809                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1810     return NULL;
1811   }
1812   struct google_protobuf_ExtensionRangeOptions_Declaration* sub = (struct google_protobuf_ExtensionRangeOptions_Declaration*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions__Declaration_msg_init, arena);
1813   if (!arr || !sub) return NULL;
1814   UPB_PRIVATE(_upb_Array_Set)
1815   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1816   return sub;
1817 }
google_protobuf_ExtensionRangeOptions_set_verification(google_protobuf_ExtensionRangeOptions * msg,int32_t value)1818 UPB_INLINE void google_protobuf_ExtensionRangeOptions_set_verification(google_protobuf_ExtensionRangeOptions *msg, int32_t value) {
1819   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1820   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1821 }
google_protobuf_ExtensionRangeOptions_set_features(google_protobuf_ExtensionRangeOptions * msg,google_protobuf_FeatureSet * value)1822 UPB_INLINE void google_protobuf_ExtensionRangeOptions_set_features(google_protobuf_ExtensionRangeOptions *msg, google_protobuf_FeatureSet* value) {
1823   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)};
1824   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1825 }
google_protobuf_ExtensionRangeOptions_mutable_features(google_protobuf_ExtensionRangeOptions * msg,upb_Arena * arena)1826 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_ExtensionRangeOptions_mutable_features(google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena) {
1827   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_ExtensionRangeOptions_features(msg);
1828   if (sub == NULL) {
1829     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
1830     if (sub) google_protobuf_ExtensionRangeOptions_set_features(msg, sub);
1831   }
1832   return sub;
1833 }
google_protobuf_ExtensionRangeOptions_mutable_uninterpreted_option(google_protobuf_ExtensionRangeOptions * msg,size_t * size)1834 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ExtensionRangeOptions_mutable_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1835   upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1836   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1837   if (arr) {
1838     if (size) *size = arr->UPB_PRIVATE(size);
1839     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
1840   } else {
1841     if (size) *size = 0;
1842     return NULL;
1843   }
1844 }
google_protobuf_ExtensionRangeOptions_resize_uninterpreted_option(google_protobuf_ExtensionRangeOptions * msg,size_t size,upb_Arena * arena)1845 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ExtensionRangeOptions_resize_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg, size_t size, upb_Arena* arena) {
1846   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)};
1847   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1848                                                    &field, size, arena);
1849 }
google_protobuf_ExtensionRangeOptions_add_uninterpreted_option(google_protobuf_ExtensionRangeOptions * msg,upb_Arena * arena)1850 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_ExtensionRangeOptions_add_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena) {
1851   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)};
1852   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1853       UPB_UPCAST(msg), &field, arena);
1854   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1855                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1856     return NULL;
1857   }
1858   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
1859   if (!arr || !sub) return NULL;
1860   UPB_PRIVATE(_upb_Array_Set)
1861   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1862   return sub;
1863 }
1864 
1865 /* google.protobuf.ExtensionRangeOptions.Declaration */
1866 
google_protobuf_ExtensionRangeOptions_Declaration_new(upb_Arena * arena)1867 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_Declaration_new(upb_Arena* arena) {
1868   return (google_protobuf_ExtensionRangeOptions_Declaration*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions__Declaration_msg_init, arena);
1869 }
google_protobuf_ExtensionRangeOptions_Declaration_parse(const char * buf,size_t size,upb_Arena * arena)1870 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_Declaration_parse(const char* buf, size_t size, upb_Arena* arena) {
1871   google_protobuf_ExtensionRangeOptions_Declaration* ret = google_protobuf_ExtensionRangeOptions_Declaration_new(arena);
1872   if (!ret) return NULL;
1873   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, NULL, 0, arena) !=
1874       kUpb_DecodeStatus_Ok) {
1875     return NULL;
1876   }
1877   return ret;
1878 }
google_protobuf_ExtensionRangeOptions_Declaration_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)1879 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_Declaration_parse_ex(const char* buf, size_t size,
1880                            const upb_ExtensionRegistry* extreg,
1881                            int options, upb_Arena* arena) {
1882   google_protobuf_ExtensionRangeOptions_Declaration* ret = google_protobuf_ExtensionRangeOptions_Declaration_new(arena);
1883   if (!ret) return NULL;
1884   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, extreg, options,
1885                  arena) != kUpb_DecodeStatus_Ok) {
1886     return NULL;
1887   }
1888   return ret;
1889 }
google_protobuf_ExtensionRangeOptions_Declaration_serialize(const google_protobuf_ExtensionRangeOptions_Declaration * msg,upb_Arena * arena,size_t * len)1890 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_Declaration_serialize(const google_protobuf_ExtensionRangeOptions_Declaration* msg, upb_Arena* arena, size_t* len) {
1891   char* ptr;
1892   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, 0, arena, &ptr, len);
1893   return ptr;
1894 }
google_protobuf_ExtensionRangeOptions_Declaration_serialize_ex(const google_protobuf_ExtensionRangeOptions_Declaration * msg,int options,upb_Arena * arena,size_t * len)1895 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_Declaration_serialize_ex(const google_protobuf_ExtensionRangeOptions_Declaration* msg, int options,
1896                                  upb_Arena* arena, size_t* len) {
1897   char* ptr;
1898   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, options, arena, &ptr, len);
1899   return ptr;
1900 }
google_protobuf_ExtensionRangeOptions_Declaration_clear_number(google_protobuf_ExtensionRangeOptions_Declaration * msg)1901 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_number(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1902   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1903   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1904 }
google_protobuf_ExtensionRangeOptions_Declaration_number(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1905 UPB_INLINE int32_t google_protobuf_ExtensionRangeOptions_Declaration_number(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1906   int32_t default_val = (int32_t)0;
1907   int32_t ret;
1908   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1909   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1910                                     &default_val, &ret);
1911   return ret;
1912 }
google_protobuf_ExtensionRangeOptions_Declaration_has_number(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1913 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_number(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1914   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1915   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1916 }
google_protobuf_ExtensionRangeOptions_Declaration_clear_full_name(google_protobuf_ExtensionRangeOptions_Declaration * msg)1917 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_full_name(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1918   const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1919   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1920 }
google_protobuf_ExtensionRangeOptions_Declaration_full_name(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1921 UPB_INLINE upb_StringView google_protobuf_ExtensionRangeOptions_Declaration_full_name(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1922   upb_StringView default_val = upb_StringView_FromString("");
1923   upb_StringView ret;
1924   const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1925   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1926                                     &default_val, &ret);
1927   return ret;
1928 }
google_protobuf_ExtensionRangeOptions_Declaration_has_full_name(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1929 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_full_name(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1930   const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1931   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1932 }
google_protobuf_ExtensionRangeOptions_Declaration_clear_type(google_protobuf_ExtensionRangeOptions_Declaration * msg)1933 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_type(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1934   const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1935   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1936 }
google_protobuf_ExtensionRangeOptions_Declaration_type(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1937 UPB_INLINE upb_StringView google_protobuf_ExtensionRangeOptions_Declaration_type(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1938   upb_StringView default_val = upb_StringView_FromString("");
1939   upb_StringView ret;
1940   const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1941   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1942                                     &default_val, &ret);
1943   return ret;
1944 }
google_protobuf_ExtensionRangeOptions_Declaration_has_type(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1945 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_type(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1946   const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1947   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1948 }
google_protobuf_ExtensionRangeOptions_Declaration_clear_reserved(google_protobuf_ExtensionRangeOptions_Declaration * msg)1949 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_reserved(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1950   const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1951   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1952 }
google_protobuf_ExtensionRangeOptions_Declaration_reserved(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1953 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_reserved(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1954   bool default_val = false;
1955   bool ret;
1956   const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1957   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1958                                     &default_val, &ret);
1959   return ret;
1960 }
google_protobuf_ExtensionRangeOptions_Declaration_has_reserved(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1961 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_reserved(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1962   const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1963   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1964 }
google_protobuf_ExtensionRangeOptions_Declaration_clear_repeated(google_protobuf_ExtensionRangeOptions_Declaration * msg)1965 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_repeated(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1966   const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1967   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1968 }
google_protobuf_ExtensionRangeOptions_Declaration_repeated(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1969 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_repeated(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1970   bool default_val = false;
1971   bool ret;
1972   const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1973   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1974                                     &default_val, &ret);
1975   return ret;
1976 }
google_protobuf_ExtensionRangeOptions_Declaration_has_repeated(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1977 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_repeated(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1978   const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1979   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1980 }
1981 
google_protobuf_ExtensionRangeOptions_Declaration_set_number(google_protobuf_ExtensionRangeOptions_Declaration * msg,int32_t value)1982 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_number(google_protobuf_ExtensionRangeOptions_Declaration *msg, int32_t value) {
1983   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1984   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1985 }
google_protobuf_ExtensionRangeOptions_Declaration_set_full_name(google_protobuf_ExtensionRangeOptions_Declaration * msg,upb_StringView value)1986 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_full_name(google_protobuf_ExtensionRangeOptions_Declaration *msg, upb_StringView value) {
1987   const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1988   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1989 }
google_protobuf_ExtensionRangeOptions_Declaration_set_type(google_protobuf_ExtensionRangeOptions_Declaration * msg,upb_StringView value)1990 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_type(google_protobuf_ExtensionRangeOptions_Declaration *msg, upb_StringView value) {
1991   const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1992   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1993 }
google_protobuf_ExtensionRangeOptions_Declaration_set_reserved(google_protobuf_ExtensionRangeOptions_Declaration * msg,bool value)1994 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_reserved(google_protobuf_ExtensionRangeOptions_Declaration *msg, bool value) {
1995   const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1996   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1997 }
google_protobuf_ExtensionRangeOptions_Declaration_set_repeated(google_protobuf_ExtensionRangeOptions_Declaration * msg,bool value)1998 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_repeated(google_protobuf_ExtensionRangeOptions_Declaration *msg, bool value) {
1999   const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2000   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2001 }
2002 
2003 /* google.protobuf.FieldDescriptorProto */
2004 
google_protobuf_FieldDescriptorProto_new(upb_Arena * arena)2005 UPB_INLINE google_protobuf_FieldDescriptorProto* google_protobuf_FieldDescriptorProto_new(upb_Arena* arena) {
2006   return (google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
2007 }
google_protobuf_FieldDescriptorProto_parse(const char * buf,size_t size,upb_Arena * arena)2008 UPB_INLINE google_protobuf_FieldDescriptorProto* google_protobuf_FieldDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2009   google_protobuf_FieldDescriptorProto* ret = google_protobuf_FieldDescriptorProto_new(arena);
2010   if (!ret) return NULL;
2011   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldDescriptorProto_msg_init, NULL, 0, arena) !=
2012       kUpb_DecodeStatus_Ok) {
2013     return NULL;
2014   }
2015   return ret;
2016 }
google_protobuf_FieldDescriptorProto_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)2017 UPB_INLINE google_protobuf_FieldDescriptorProto* google_protobuf_FieldDescriptorProto_parse_ex(const char* buf, size_t size,
2018                            const upb_ExtensionRegistry* extreg,
2019                            int options, upb_Arena* arena) {
2020   google_protobuf_FieldDescriptorProto* ret = google_protobuf_FieldDescriptorProto_new(arena);
2021   if (!ret) return NULL;
2022   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldDescriptorProto_msg_init, extreg, options,
2023                  arena) != kUpb_DecodeStatus_Ok) {
2024     return NULL;
2025   }
2026   return ret;
2027 }
google_protobuf_FieldDescriptorProto_serialize(const google_protobuf_FieldDescriptorProto * msg,upb_Arena * arena,size_t * len)2028 UPB_INLINE char* google_protobuf_FieldDescriptorProto_serialize(const google_protobuf_FieldDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2029   char* ptr;
2030   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldDescriptorProto_msg_init, 0, arena, &ptr, len);
2031   return ptr;
2032 }
google_protobuf_FieldDescriptorProto_serialize_ex(const google_protobuf_FieldDescriptorProto * msg,int options,upb_Arena * arena,size_t * len)2033 UPB_INLINE char* google_protobuf_FieldDescriptorProto_serialize_ex(const google_protobuf_FieldDescriptorProto* msg, int options,
2034                                  upb_Arena* arena, size_t* len) {
2035   char* ptr;
2036   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldDescriptorProto_msg_init, options, arena, &ptr, len);
2037   return ptr;
2038 }
google_protobuf_FieldDescriptorProto_clear_name(google_protobuf_FieldDescriptorProto * msg)2039 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_name(google_protobuf_FieldDescriptorProto* msg) {
2040   const upb_MiniTableField field = {1, UPB_SIZE(36, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2041   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2042 }
google_protobuf_FieldDescriptorProto_name(const google_protobuf_FieldDescriptorProto * msg)2043 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_name(const google_protobuf_FieldDescriptorProto* msg) {
2044   upb_StringView default_val = upb_StringView_FromString("");
2045   upb_StringView ret;
2046   const upb_MiniTableField field = {1, UPB_SIZE(36, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2047   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2048                                     &default_val, &ret);
2049   return ret;
2050 }
google_protobuf_FieldDescriptorProto_has_name(const google_protobuf_FieldDescriptorProto * msg)2051 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_name(const google_protobuf_FieldDescriptorProto* msg) {
2052   const upb_MiniTableField field = {1, UPB_SIZE(36, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2053   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2054 }
google_protobuf_FieldDescriptorProto_clear_extendee(google_protobuf_FieldDescriptorProto * msg)2055 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_extendee(google_protobuf_FieldDescriptorProto* msg) {
2056   const upb_MiniTableField field = {2, UPB_SIZE(44, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2057   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2058 }
google_protobuf_FieldDescriptorProto_extendee(const google_protobuf_FieldDescriptorProto * msg)2059 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_extendee(const google_protobuf_FieldDescriptorProto* msg) {
2060   upb_StringView default_val = upb_StringView_FromString("");
2061   upb_StringView ret;
2062   const upb_MiniTableField field = {2, UPB_SIZE(44, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2063   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2064                                     &default_val, &ret);
2065   return ret;
2066 }
google_protobuf_FieldDescriptorProto_has_extendee(const google_protobuf_FieldDescriptorProto * msg)2067 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_extendee(const google_protobuf_FieldDescriptorProto* msg) {
2068   const upb_MiniTableField field = {2, UPB_SIZE(44, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2069   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2070 }
google_protobuf_FieldDescriptorProto_clear_number(google_protobuf_FieldDescriptorProto * msg)2071 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_number(google_protobuf_FieldDescriptorProto* msg) {
2072   const upb_MiniTableField field = {3, 12, 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2073   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2074 }
google_protobuf_FieldDescriptorProto_number(const google_protobuf_FieldDescriptorProto * msg)2075 UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_number(const google_protobuf_FieldDescriptorProto* msg) {
2076   int32_t default_val = (int32_t)0;
2077   int32_t ret;
2078   const upb_MiniTableField field = {3, 12, 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2079   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2080                                     &default_val, &ret);
2081   return ret;
2082 }
google_protobuf_FieldDescriptorProto_has_number(const google_protobuf_FieldDescriptorProto * msg)2083 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_number(const google_protobuf_FieldDescriptorProto* msg) {
2084   const upb_MiniTableField field = {3, 12, 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2085   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2086 }
google_protobuf_FieldDescriptorProto_clear_label(google_protobuf_FieldDescriptorProto * msg)2087 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_label(google_protobuf_FieldDescriptorProto* msg) {
2088   const upb_MiniTableField field = {4, 16, 67, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2089   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2090 }
google_protobuf_FieldDescriptorProto_label(const google_protobuf_FieldDescriptorProto * msg)2091 UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_label(const google_protobuf_FieldDescriptorProto* msg) {
2092   int32_t default_val = 1;
2093   int32_t ret;
2094   const upb_MiniTableField field = {4, 16, 67, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2095   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2096                                     &default_val, &ret);
2097   return ret;
2098 }
google_protobuf_FieldDescriptorProto_has_label(const google_protobuf_FieldDescriptorProto * msg)2099 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_label(const google_protobuf_FieldDescriptorProto* msg) {
2100   const upb_MiniTableField field = {4, 16, 67, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2101   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2102 }
google_protobuf_FieldDescriptorProto_clear_type(google_protobuf_FieldDescriptorProto * msg)2103 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_type(google_protobuf_FieldDescriptorProto* msg) {
2104   const upb_MiniTableField field = {5, 20, 68, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2105   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2106 }
google_protobuf_FieldDescriptorProto_type(const google_protobuf_FieldDescriptorProto * msg)2107 UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_type(const google_protobuf_FieldDescriptorProto* msg) {
2108   int32_t default_val = 1;
2109   int32_t ret;
2110   const upb_MiniTableField field = {5, 20, 68, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2111   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2112                                     &default_val, &ret);
2113   return ret;
2114 }
google_protobuf_FieldDescriptorProto_has_type(const google_protobuf_FieldDescriptorProto * msg)2115 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_type(const google_protobuf_FieldDescriptorProto* msg) {
2116   const upb_MiniTableField field = {5, 20, 68, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2117   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2118 }
google_protobuf_FieldDescriptorProto_clear_type_name(google_protobuf_FieldDescriptorProto * msg)2119 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_type_name(google_protobuf_FieldDescriptorProto* msg) {
2120   const upb_MiniTableField field = {6, UPB_SIZE(52, 64), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2121   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2122 }
google_protobuf_FieldDescriptorProto_type_name(const google_protobuf_FieldDescriptorProto * msg)2123 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_type_name(const google_protobuf_FieldDescriptorProto* msg) {
2124   upb_StringView default_val = upb_StringView_FromString("");
2125   upb_StringView ret;
2126   const upb_MiniTableField field = {6, UPB_SIZE(52, 64), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2127   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2128                                     &default_val, &ret);
2129   return ret;
2130 }
google_protobuf_FieldDescriptorProto_has_type_name(const google_protobuf_FieldDescriptorProto * msg)2131 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_type_name(const google_protobuf_FieldDescriptorProto* msg) {
2132   const upb_MiniTableField field = {6, UPB_SIZE(52, 64), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2133   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2134 }
google_protobuf_FieldDescriptorProto_clear_default_value(google_protobuf_FieldDescriptorProto * msg)2135 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_default_value(google_protobuf_FieldDescriptorProto* msg) {
2136   const upb_MiniTableField field = {7, UPB_SIZE(60, 80), 70, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2137   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2138 }
google_protobuf_FieldDescriptorProto_default_value(const google_protobuf_FieldDescriptorProto * msg)2139 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_default_value(const google_protobuf_FieldDescriptorProto* msg) {
2140   upb_StringView default_val = upb_StringView_FromString("");
2141   upb_StringView ret;
2142   const upb_MiniTableField field = {7, UPB_SIZE(60, 80), 70, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2143   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2144                                     &default_val, &ret);
2145   return ret;
2146 }
google_protobuf_FieldDescriptorProto_has_default_value(const google_protobuf_FieldDescriptorProto * msg)2147 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_default_value(const google_protobuf_FieldDescriptorProto* msg) {
2148   const upb_MiniTableField field = {7, UPB_SIZE(60, 80), 70, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2149   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2150 }
google_protobuf_FieldDescriptorProto_clear_options(google_protobuf_FieldDescriptorProto * msg)2151 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_options(google_protobuf_FieldDescriptorProto* msg) {
2152   const upb_MiniTableField field = {8, UPB_SIZE(24, 96), 71, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2153   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2154 }
google_protobuf_FieldDescriptorProto_options(const google_protobuf_FieldDescriptorProto * msg)2155 UPB_INLINE const google_protobuf_FieldOptions* google_protobuf_FieldDescriptorProto_options(const google_protobuf_FieldDescriptorProto* msg) {
2156   const google_protobuf_FieldOptions* default_val = NULL;
2157   const google_protobuf_FieldOptions* ret;
2158   const upb_MiniTableField field = {8, UPB_SIZE(24, 96), 71, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2159   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2160                                     &default_val, &ret);
2161   return ret;
2162 }
google_protobuf_FieldDescriptorProto_has_options(const google_protobuf_FieldDescriptorProto * msg)2163 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_options(const google_protobuf_FieldDescriptorProto* msg) {
2164   const upb_MiniTableField field = {8, UPB_SIZE(24, 96), 71, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2165   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2166 }
google_protobuf_FieldDescriptorProto_clear_oneof_index(google_protobuf_FieldDescriptorProto * msg)2167 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_oneof_index(google_protobuf_FieldDescriptorProto* msg) {
2168   const upb_MiniTableField field = {9, UPB_SIZE(28, 24), 72, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2169   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2170 }
google_protobuf_FieldDescriptorProto_oneof_index(const google_protobuf_FieldDescriptorProto * msg)2171 UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_oneof_index(const google_protobuf_FieldDescriptorProto* msg) {
2172   int32_t default_val = (int32_t)0;
2173   int32_t ret;
2174   const upb_MiniTableField field = {9, UPB_SIZE(28, 24), 72, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2175   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2176                                     &default_val, &ret);
2177   return ret;
2178 }
google_protobuf_FieldDescriptorProto_has_oneof_index(const google_protobuf_FieldDescriptorProto * msg)2179 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_oneof_index(const google_protobuf_FieldDescriptorProto* msg) {
2180   const upb_MiniTableField field = {9, UPB_SIZE(28, 24), 72, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2181   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2182 }
google_protobuf_FieldDescriptorProto_clear_json_name(google_protobuf_FieldDescriptorProto * msg)2183 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_json_name(google_protobuf_FieldDescriptorProto* msg) {
2184   const upb_MiniTableField field = {10, UPB_SIZE(68, 104), 73, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2185   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2186 }
google_protobuf_FieldDescriptorProto_json_name(const google_protobuf_FieldDescriptorProto * msg)2187 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_json_name(const google_protobuf_FieldDescriptorProto* msg) {
2188   upb_StringView default_val = upb_StringView_FromString("");
2189   upb_StringView ret;
2190   const upb_MiniTableField field = {10, UPB_SIZE(68, 104), 73, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2191   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2192                                     &default_val, &ret);
2193   return ret;
2194 }
google_protobuf_FieldDescriptorProto_has_json_name(const google_protobuf_FieldDescriptorProto * msg)2195 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_json_name(const google_protobuf_FieldDescriptorProto* msg) {
2196   const upb_MiniTableField field = {10, UPB_SIZE(68, 104), 73, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2197   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2198 }
google_protobuf_FieldDescriptorProto_clear_proto3_optional(google_protobuf_FieldDescriptorProto * msg)2199 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_proto3_optional(google_protobuf_FieldDescriptorProto* msg) {
2200   const upb_MiniTableField field = {17, UPB_SIZE(32, 28), 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2201   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2202 }
google_protobuf_FieldDescriptorProto_proto3_optional(const google_protobuf_FieldDescriptorProto * msg)2203 UPB_INLINE bool google_protobuf_FieldDescriptorProto_proto3_optional(const google_protobuf_FieldDescriptorProto* msg) {
2204   bool default_val = false;
2205   bool ret;
2206   const upb_MiniTableField field = {17, UPB_SIZE(32, 28), 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2207   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2208                                     &default_val, &ret);
2209   return ret;
2210 }
google_protobuf_FieldDescriptorProto_has_proto3_optional(const google_protobuf_FieldDescriptorProto * msg)2211 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_proto3_optional(const google_protobuf_FieldDescriptorProto* msg) {
2212   const upb_MiniTableField field = {17, UPB_SIZE(32, 28), 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2213   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2214 }
2215 
google_protobuf_FieldDescriptorProto_set_name(google_protobuf_FieldDescriptorProto * msg,upb_StringView value)2216 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_name(google_protobuf_FieldDescriptorProto *msg, upb_StringView value) {
2217   const upb_MiniTableField field = {1, UPB_SIZE(36, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2218   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2219 }
google_protobuf_FieldDescriptorProto_set_extendee(google_protobuf_FieldDescriptorProto * msg,upb_StringView value)2220 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_extendee(google_protobuf_FieldDescriptorProto *msg, upb_StringView value) {
2221   const upb_MiniTableField field = {2, UPB_SIZE(44, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2222   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2223 }
google_protobuf_FieldDescriptorProto_set_number(google_protobuf_FieldDescriptorProto * msg,int32_t value)2224 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_number(google_protobuf_FieldDescriptorProto *msg, int32_t value) {
2225   const upb_MiniTableField field = {3, 12, 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2226   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2227 }
google_protobuf_FieldDescriptorProto_set_label(google_protobuf_FieldDescriptorProto * msg,int32_t value)2228 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_label(google_protobuf_FieldDescriptorProto *msg, int32_t value) {
2229   const upb_MiniTableField field = {4, 16, 67, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2230   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2231 }
google_protobuf_FieldDescriptorProto_set_type(google_protobuf_FieldDescriptorProto * msg,int32_t value)2232 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_type(google_protobuf_FieldDescriptorProto *msg, int32_t value) {
2233   const upb_MiniTableField field = {5, 20, 68, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2234   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2235 }
google_protobuf_FieldDescriptorProto_set_type_name(google_protobuf_FieldDescriptorProto * msg,upb_StringView value)2236 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_type_name(google_protobuf_FieldDescriptorProto *msg, upb_StringView value) {
2237   const upb_MiniTableField field = {6, UPB_SIZE(52, 64), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2238   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2239 }
google_protobuf_FieldDescriptorProto_set_default_value(google_protobuf_FieldDescriptorProto * msg,upb_StringView value)2240 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_default_value(google_protobuf_FieldDescriptorProto *msg, upb_StringView value) {
2241   const upb_MiniTableField field = {7, UPB_SIZE(60, 80), 70, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2242   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2243 }
google_protobuf_FieldDescriptorProto_set_options(google_protobuf_FieldDescriptorProto * msg,google_protobuf_FieldOptions * value)2244 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_options(google_protobuf_FieldDescriptorProto *msg, google_protobuf_FieldOptions* value) {
2245   const upb_MiniTableField field = {8, UPB_SIZE(24, 96), 71, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2246   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2247 }
google_protobuf_FieldDescriptorProto_mutable_options(google_protobuf_FieldDescriptorProto * msg,upb_Arena * arena)2248 UPB_INLINE struct google_protobuf_FieldOptions* google_protobuf_FieldDescriptorProto_mutable_options(google_protobuf_FieldDescriptorProto* msg, upb_Arena* arena) {
2249   struct google_protobuf_FieldOptions* sub = (struct google_protobuf_FieldOptions*)google_protobuf_FieldDescriptorProto_options(msg);
2250   if (sub == NULL) {
2251     sub = (struct google_protobuf_FieldOptions*)_upb_Message_New(&google__protobuf__FieldOptions_msg_init, arena);
2252     if (sub) google_protobuf_FieldDescriptorProto_set_options(msg, sub);
2253   }
2254   return sub;
2255 }
google_protobuf_FieldDescriptorProto_set_oneof_index(google_protobuf_FieldDescriptorProto * msg,int32_t value)2256 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_oneof_index(google_protobuf_FieldDescriptorProto *msg, int32_t value) {
2257   const upb_MiniTableField field = {9, UPB_SIZE(28, 24), 72, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2258   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2259 }
google_protobuf_FieldDescriptorProto_set_json_name(google_protobuf_FieldDescriptorProto * msg,upb_StringView value)2260 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_json_name(google_protobuf_FieldDescriptorProto *msg, upb_StringView value) {
2261   const upb_MiniTableField field = {10, UPB_SIZE(68, 104), 73, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2262   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2263 }
google_protobuf_FieldDescriptorProto_set_proto3_optional(google_protobuf_FieldDescriptorProto * msg,bool value)2264 UPB_INLINE void google_protobuf_FieldDescriptorProto_set_proto3_optional(google_protobuf_FieldDescriptorProto *msg, bool value) {
2265   const upb_MiniTableField field = {17, UPB_SIZE(32, 28), 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2266   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2267 }
2268 
2269 /* google.protobuf.OneofDescriptorProto */
2270 
google_protobuf_OneofDescriptorProto_new(upb_Arena * arena)2271 UPB_INLINE google_protobuf_OneofDescriptorProto* google_protobuf_OneofDescriptorProto_new(upb_Arena* arena) {
2272   return (google_protobuf_OneofDescriptorProto*)_upb_Message_New(&google__protobuf__OneofDescriptorProto_msg_init, arena);
2273 }
google_protobuf_OneofDescriptorProto_parse(const char * buf,size_t size,upb_Arena * arena)2274 UPB_INLINE google_protobuf_OneofDescriptorProto* google_protobuf_OneofDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2275   google_protobuf_OneofDescriptorProto* ret = google_protobuf_OneofDescriptorProto_new(arena);
2276   if (!ret) return NULL;
2277   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__OneofDescriptorProto_msg_init, NULL, 0, arena) !=
2278       kUpb_DecodeStatus_Ok) {
2279     return NULL;
2280   }
2281   return ret;
2282 }
google_protobuf_OneofDescriptorProto_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)2283 UPB_INLINE google_protobuf_OneofDescriptorProto* google_protobuf_OneofDescriptorProto_parse_ex(const char* buf, size_t size,
2284                            const upb_ExtensionRegistry* extreg,
2285                            int options, upb_Arena* arena) {
2286   google_protobuf_OneofDescriptorProto* ret = google_protobuf_OneofDescriptorProto_new(arena);
2287   if (!ret) return NULL;
2288   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__OneofDescriptorProto_msg_init, extreg, options,
2289                  arena) != kUpb_DecodeStatus_Ok) {
2290     return NULL;
2291   }
2292   return ret;
2293 }
google_protobuf_OneofDescriptorProto_serialize(const google_protobuf_OneofDescriptorProto * msg,upb_Arena * arena,size_t * len)2294 UPB_INLINE char* google_protobuf_OneofDescriptorProto_serialize(const google_protobuf_OneofDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2295   char* ptr;
2296   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__OneofDescriptorProto_msg_init, 0, arena, &ptr, len);
2297   return ptr;
2298 }
google_protobuf_OneofDescriptorProto_serialize_ex(const google_protobuf_OneofDescriptorProto * msg,int options,upb_Arena * arena,size_t * len)2299 UPB_INLINE char* google_protobuf_OneofDescriptorProto_serialize_ex(const google_protobuf_OneofDescriptorProto* msg, int options,
2300                                  upb_Arena* arena, size_t* len) {
2301   char* ptr;
2302   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__OneofDescriptorProto_msg_init, options, arena, &ptr, len);
2303   return ptr;
2304 }
google_protobuf_OneofDescriptorProto_clear_name(google_protobuf_OneofDescriptorProto * msg)2305 UPB_INLINE void google_protobuf_OneofDescriptorProto_clear_name(google_protobuf_OneofDescriptorProto* msg) {
2306   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)};
2307   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2308 }
google_protobuf_OneofDescriptorProto_name(const google_protobuf_OneofDescriptorProto * msg)2309 UPB_INLINE upb_StringView google_protobuf_OneofDescriptorProto_name(const google_protobuf_OneofDescriptorProto* msg) {
2310   upb_StringView default_val = upb_StringView_FromString("");
2311   upb_StringView ret;
2312   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)};
2313   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2314                                     &default_val, &ret);
2315   return ret;
2316 }
google_protobuf_OneofDescriptorProto_has_name(const google_protobuf_OneofDescriptorProto * msg)2317 UPB_INLINE bool google_protobuf_OneofDescriptorProto_has_name(const google_protobuf_OneofDescriptorProto* msg) {
2318   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)};
2319   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2320 }
google_protobuf_OneofDescriptorProto_clear_options(google_protobuf_OneofDescriptorProto * msg)2321 UPB_INLINE void google_protobuf_OneofDescriptorProto_clear_options(google_protobuf_OneofDescriptorProto* msg) {
2322   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)};
2323   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2324 }
google_protobuf_OneofDescriptorProto_options(const google_protobuf_OneofDescriptorProto * msg)2325 UPB_INLINE const google_protobuf_OneofOptions* google_protobuf_OneofDescriptorProto_options(const google_protobuf_OneofDescriptorProto* msg) {
2326   const google_protobuf_OneofOptions* default_val = NULL;
2327   const google_protobuf_OneofOptions* ret;
2328   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)};
2329   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2330                                     &default_val, &ret);
2331   return ret;
2332 }
google_protobuf_OneofDescriptorProto_has_options(const google_protobuf_OneofDescriptorProto * msg)2333 UPB_INLINE bool google_protobuf_OneofDescriptorProto_has_options(const google_protobuf_OneofDescriptorProto* msg) {
2334   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)};
2335   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2336 }
2337 
google_protobuf_OneofDescriptorProto_set_name(google_protobuf_OneofDescriptorProto * msg,upb_StringView value)2338 UPB_INLINE void google_protobuf_OneofDescriptorProto_set_name(google_protobuf_OneofDescriptorProto *msg, upb_StringView value) {
2339   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)};
2340   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2341 }
google_protobuf_OneofDescriptorProto_set_options(google_protobuf_OneofDescriptorProto * msg,google_protobuf_OneofOptions * value)2342 UPB_INLINE void google_protobuf_OneofDescriptorProto_set_options(google_protobuf_OneofDescriptorProto *msg, google_protobuf_OneofOptions* value) {
2343   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)};
2344   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2345 }
google_protobuf_OneofDescriptorProto_mutable_options(google_protobuf_OneofDescriptorProto * msg,upb_Arena * arena)2346 UPB_INLINE struct google_protobuf_OneofOptions* google_protobuf_OneofDescriptorProto_mutable_options(google_protobuf_OneofDescriptorProto* msg, upb_Arena* arena) {
2347   struct google_protobuf_OneofOptions* sub = (struct google_protobuf_OneofOptions*)google_protobuf_OneofDescriptorProto_options(msg);
2348   if (sub == NULL) {
2349     sub = (struct google_protobuf_OneofOptions*)_upb_Message_New(&google__protobuf__OneofOptions_msg_init, arena);
2350     if (sub) google_protobuf_OneofDescriptorProto_set_options(msg, sub);
2351   }
2352   return sub;
2353 }
2354 
2355 /* google.protobuf.EnumDescriptorProto */
2356 
google_protobuf_EnumDescriptorProto_new(upb_Arena * arena)2357 UPB_INLINE google_protobuf_EnumDescriptorProto* google_protobuf_EnumDescriptorProto_new(upb_Arena* arena) {
2358   return (google_protobuf_EnumDescriptorProto*)_upb_Message_New(&google__protobuf__EnumDescriptorProto_msg_init, arena);
2359 }
google_protobuf_EnumDescriptorProto_parse(const char * buf,size_t size,upb_Arena * arena)2360 UPB_INLINE google_protobuf_EnumDescriptorProto* google_protobuf_EnumDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2361   google_protobuf_EnumDescriptorProto* ret = google_protobuf_EnumDescriptorProto_new(arena);
2362   if (!ret) return NULL;
2363   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumDescriptorProto_msg_init, NULL, 0, arena) !=
2364       kUpb_DecodeStatus_Ok) {
2365     return NULL;
2366   }
2367   return ret;
2368 }
google_protobuf_EnumDescriptorProto_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)2369 UPB_INLINE google_protobuf_EnumDescriptorProto* google_protobuf_EnumDescriptorProto_parse_ex(const char* buf, size_t size,
2370                            const upb_ExtensionRegistry* extreg,
2371                            int options, upb_Arena* arena) {
2372   google_protobuf_EnumDescriptorProto* ret = google_protobuf_EnumDescriptorProto_new(arena);
2373   if (!ret) return NULL;
2374   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumDescriptorProto_msg_init, extreg, options,
2375                  arena) != kUpb_DecodeStatus_Ok) {
2376     return NULL;
2377   }
2378   return ret;
2379 }
google_protobuf_EnumDescriptorProto_serialize(const google_protobuf_EnumDescriptorProto * msg,upb_Arena * arena,size_t * len)2380 UPB_INLINE char* google_protobuf_EnumDescriptorProto_serialize(const google_protobuf_EnumDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2381   char* ptr;
2382   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumDescriptorProto_msg_init, 0, arena, &ptr, len);
2383   return ptr;
2384 }
google_protobuf_EnumDescriptorProto_serialize_ex(const google_protobuf_EnumDescriptorProto * msg,int options,upb_Arena * arena,size_t * len)2385 UPB_INLINE char* google_protobuf_EnumDescriptorProto_serialize_ex(const google_protobuf_EnumDescriptorProto* msg, int options,
2386                                  upb_Arena* arena, size_t* len) {
2387   char* ptr;
2388   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumDescriptorProto_msg_init, options, arena, &ptr, len);
2389   return ptr;
2390 }
google_protobuf_EnumDescriptorProto_clear_name(google_protobuf_EnumDescriptorProto * msg)2391 UPB_INLINE void google_protobuf_EnumDescriptorProto_clear_name(google_protobuf_EnumDescriptorProto* msg) {
2392   const upb_MiniTableField field = {1, UPB_SIZE(28, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2393   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2394 }
google_protobuf_EnumDescriptorProto_name(const google_protobuf_EnumDescriptorProto * msg)2395 UPB_INLINE upb_StringView google_protobuf_EnumDescriptorProto_name(const google_protobuf_EnumDescriptorProto* msg) {
2396   upb_StringView default_val = upb_StringView_FromString("");
2397   upb_StringView ret;
2398   const upb_MiniTableField field = {1, UPB_SIZE(28, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2399   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2400                                     &default_val, &ret);
2401   return ret;
2402 }
google_protobuf_EnumDescriptorProto_has_name(const google_protobuf_EnumDescriptorProto * msg)2403 UPB_INLINE bool google_protobuf_EnumDescriptorProto_has_name(const google_protobuf_EnumDescriptorProto* msg) {
2404   const upb_MiniTableField field = {1, UPB_SIZE(28, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2405   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2406 }
google_protobuf_EnumDescriptorProto_clear_value(google_protobuf_EnumDescriptorProto * msg)2407 UPB_INLINE void google_protobuf_EnumDescriptorProto_clear_value(google_protobuf_EnumDescriptorProto* msg) {
2408   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)};
2409   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2410 }
google_protobuf_EnumDescriptorProto_value(const google_protobuf_EnumDescriptorProto * msg,size_t * size)2411 UPB_INLINE const google_protobuf_EnumValueDescriptorProto* const* google_protobuf_EnumDescriptorProto_value(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2412   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)};
2413   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2414   if (arr) {
2415     if (size) *size = arr->UPB_PRIVATE(size);
2416     return (const google_protobuf_EnumValueDescriptorProto* const*)upb_Array_DataPtr(arr);
2417   } else {
2418     if (size) *size = 0;
2419     return NULL;
2420   }
2421 }
_google_protobuf_EnumDescriptorProto_value_upb_array(const google_protobuf_EnumDescriptorProto * msg,size_t * size)2422 UPB_INLINE const upb_Array* _google_protobuf_EnumDescriptorProto_value_upb_array(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2423   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)};
2424   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2425   if (size) {
2426     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2427   }
2428   return arr;
2429 }
_google_protobuf_EnumDescriptorProto_value_mutable_upb_array(google_protobuf_EnumDescriptorProto * msg,size_t * size,upb_Arena * arena)2430 UPB_INLINE upb_Array* _google_protobuf_EnumDescriptorProto_value_mutable_upb_array(google_protobuf_EnumDescriptorProto* msg, size_t* size, upb_Arena* arena) {
2431   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)};
2432   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
2433                                                        &field, arena);
2434   if (size) {
2435     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2436   }
2437   return arr;
2438 }
google_protobuf_EnumDescriptorProto_clear_options(google_protobuf_EnumDescriptorProto * msg)2439 UPB_INLINE void google_protobuf_EnumDescriptorProto_clear_options(google_protobuf_EnumDescriptorProto* msg) {
2440   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)};
2441   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2442 }
google_protobuf_EnumDescriptorProto_options(const google_protobuf_EnumDescriptorProto * msg)2443 UPB_INLINE const google_protobuf_EnumOptions* google_protobuf_EnumDescriptorProto_options(const google_protobuf_EnumDescriptorProto* msg) {
2444   const google_protobuf_EnumOptions* default_val = NULL;
2445   const google_protobuf_EnumOptions* ret;
2446   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)};
2447   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2448                                     &default_val, &ret);
2449   return ret;
2450 }
google_protobuf_EnumDescriptorProto_has_options(const google_protobuf_EnumDescriptorProto * msg)2451 UPB_INLINE bool google_protobuf_EnumDescriptorProto_has_options(const google_protobuf_EnumDescriptorProto* msg) {
2452   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)};
2453   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2454 }
google_protobuf_EnumDescriptorProto_clear_reserved_range(google_protobuf_EnumDescriptorProto * msg)2455 UPB_INLINE void google_protobuf_EnumDescriptorProto_clear_reserved_range(google_protobuf_EnumDescriptorProto* msg) {
2456   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)};
2457   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2458 }
google_protobuf_EnumDescriptorProto_reserved_range(const google_protobuf_EnumDescriptorProto * msg,size_t * size)2459 UPB_INLINE const google_protobuf_EnumDescriptorProto_EnumReservedRange* const* google_protobuf_EnumDescriptorProto_reserved_range(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2460   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)};
2461   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2462   if (arr) {
2463     if (size) *size = arr->UPB_PRIVATE(size);
2464     return (const google_protobuf_EnumDescriptorProto_EnumReservedRange* const*)upb_Array_DataPtr(arr);
2465   } else {
2466     if (size) *size = 0;
2467     return NULL;
2468   }
2469 }
_google_protobuf_EnumDescriptorProto_reserved_range_upb_array(const google_protobuf_EnumDescriptorProto * msg,size_t * size)2470 UPB_INLINE const upb_Array* _google_protobuf_EnumDescriptorProto_reserved_range_upb_array(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2471   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)};
2472   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2473   if (size) {
2474     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2475   }
2476   return arr;
2477 }
_google_protobuf_EnumDescriptorProto_reserved_range_mutable_upb_array(google_protobuf_EnumDescriptorProto * msg,size_t * size,upb_Arena * arena)2478 UPB_INLINE upb_Array* _google_protobuf_EnumDescriptorProto_reserved_range_mutable_upb_array(google_protobuf_EnumDescriptorProto* msg, size_t* size, upb_Arena* arena) {
2479   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)};
2480   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
2481                                                        &field, arena);
2482   if (size) {
2483     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2484   }
2485   return arr;
2486 }
google_protobuf_EnumDescriptorProto_clear_reserved_name(google_protobuf_EnumDescriptorProto * msg)2487 UPB_INLINE void google_protobuf_EnumDescriptorProto_clear_reserved_name(google_protobuf_EnumDescriptorProto* msg) {
2488   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)};
2489   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2490 }
google_protobuf_EnumDescriptorProto_reserved_name(const google_protobuf_EnumDescriptorProto * msg,size_t * size)2491 UPB_INLINE upb_StringView const* google_protobuf_EnumDescriptorProto_reserved_name(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2492   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)};
2493   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2494   if (arr) {
2495     if (size) *size = arr->UPB_PRIVATE(size);
2496     return (upb_StringView const*)upb_Array_DataPtr(arr);
2497   } else {
2498     if (size) *size = 0;
2499     return NULL;
2500   }
2501 }
_google_protobuf_EnumDescriptorProto_reserved_name_upb_array(const google_protobuf_EnumDescriptorProto * msg,size_t * size)2502 UPB_INLINE const upb_Array* _google_protobuf_EnumDescriptorProto_reserved_name_upb_array(const google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2503   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)};
2504   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2505   if (size) {
2506     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2507   }
2508   return arr;
2509 }
_google_protobuf_EnumDescriptorProto_reserved_name_mutable_upb_array(google_protobuf_EnumDescriptorProto * msg,size_t * size,upb_Arena * arena)2510 UPB_INLINE upb_Array* _google_protobuf_EnumDescriptorProto_reserved_name_mutable_upb_array(google_protobuf_EnumDescriptorProto* msg, size_t* size, upb_Arena* arena) {
2511   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)};
2512   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
2513                                                        &field, arena);
2514   if (size) {
2515     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2516   }
2517   return arr;
2518 }
2519 
google_protobuf_EnumDescriptorProto_set_name(google_protobuf_EnumDescriptorProto * msg,upb_StringView value)2520 UPB_INLINE void google_protobuf_EnumDescriptorProto_set_name(google_protobuf_EnumDescriptorProto *msg, upb_StringView value) {
2521   const upb_MiniTableField field = {1, UPB_SIZE(28, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2522   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2523 }
google_protobuf_EnumDescriptorProto_mutable_value(google_protobuf_EnumDescriptorProto * msg,size_t * size)2524 UPB_INLINE google_protobuf_EnumValueDescriptorProto** google_protobuf_EnumDescriptorProto_mutable_value(google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2525   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)};
2526   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
2527   if (arr) {
2528     if (size) *size = arr->UPB_PRIVATE(size);
2529     return (google_protobuf_EnumValueDescriptorProto**)upb_Array_MutableDataPtr(arr);
2530   } else {
2531     if (size) *size = 0;
2532     return NULL;
2533   }
2534 }
google_protobuf_EnumDescriptorProto_resize_value(google_protobuf_EnumDescriptorProto * msg,size_t size,upb_Arena * arena)2535 UPB_INLINE google_protobuf_EnumValueDescriptorProto** google_protobuf_EnumDescriptorProto_resize_value(google_protobuf_EnumDescriptorProto* msg, size_t size, upb_Arena* arena) {
2536   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)};
2537   return (google_protobuf_EnumValueDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
2538                                                    &field, size, arena);
2539 }
google_protobuf_EnumDescriptorProto_add_value(google_protobuf_EnumDescriptorProto * msg,upb_Arena * arena)2540 UPB_INLINE struct google_protobuf_EnumValueDescriptorProto* google_protobuf_EnumDescriptorProto_add_value(google_protobuf_EnumDescriptorProto* msg, upb_Arena* arena) {
2541   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)};
2542   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
2543       UPB_UPCAST(msg), &field, arena);
2544   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
2545                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
2546     return NULL;
2547   }
2548   struct google_protobuf_EnumValueDescriptorProto* sub = (struct google_protobuf_EnumValueDescriptorProto*)_upb_Message_New(&google__protobuf__EnumValueDescriptorProto_msg_init, arena);
2549   if (!arr || !sub) return NULL;
2550   UPB_PRIVATE(_upb_Array_Set)
2551   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
2552   return sub;
2553 }
google_protobuf_EnumDescriptorProto_set_options(google_protobuf_EnumDescriptorProto * msg,google_protobuf_EnumOptions * value)2554 UPB_INLINE void google_protobuf_EnumDescriptorProto_set_options(google_protobuf_EnumDescriptorProto *msg, google_protobuf_EnumOptions* value) {
2555   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)};
2556   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2557 }
google_protobuf_EnumDescriptorProto_mutable_options(google_protobuf_EnumDescriptorProto * msg,upb_Arena * arena)2558 UPB_INLINE struct google_protobuf_EnumOptions* google_protobuf_EnumDescriptorProto_mutable_options(google_protobuf_EnumDescriptorProto* msg, upb_Arena* arena) {
2559   struct google_protobuf_EnumOptions* sub = (struct google_protobuf_EnumOptions*)google_protobuf_EnumDescriptorProto_options(msg);
2560   if (sub == NULL) {
2561     sub = (struct google_protobuf_EnumOptions*)_upb_Message_New(&google__protobuf__EnumOptions_msg_init, arena);
2562     if (sub) google_protobuf_EnumDescriptorProto_set_options(msg, sub);
2563   }
2564   return sub;
2565 }
google_protobuf_EnumDescriptorProto_mutable_reserved_range(google_protobuf_EnumDescriptorProto * msg,size_t * size)2566 UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange** google_protobuf_EnumDescriptorProto_mutable_reserved_range(google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2567   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)};
2568   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
2569   if (arr) {
2570     if (size) *size = arr->UPB_PRIVATE(size);
2571     return (google_protobuf_EnumDescriptorProto_EnumReservedRange**)upb_Array_MutableDataPtr(arr);
2572   } else {
2573     if (size) *size = 0;
2574     return NULL;
2575   }
2576 }
google_protobuf_EnumDescriptorProto_resize_reserved_range(google_protobuf_EnumDescriptorProto * msg,size_t size,upb_Arena * arena)2577 UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange** google_protobuf_EnumDescriptorProto_resize_reserved_range(google_protobuf_EnumDescriptorProto* msg, size_t size, upb_Arena* arena) {
2578   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)};
2579   return (google_protobuf_EnumDescriptorProto_EnumReservedRange**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
2580                                                    &field, size, arena);
2581 }
google_protobuf_EnumDescriptorProto_add_reserved_range(google_protobuf_EnumDescriptorProto * msg,upb_Arena * arena)2582 UPB_INLINE struct google_protobuf_EnumDescriptorProto_EnumReservedRange* google_protobuf_EnumDescriptorProto_add_reserved_range(google_protobuf_EnumDescriptorProto* msg, upb_Arena* arena) {
2583   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)};
2584   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
2585       UPB_UPCAST(msg), &field, arena);
2586   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
2587                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
2588     return NULL;
2589   }
2590   struct google_protobuf_EnumDescriptorProto_EnumReservedRange* sub = (struct google_protobuf_EnumDescriptorProto_EnumReservedRange*)_upb_Message_New(&google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, arena);
2591   if (!arr || !sub) return NULL;
2592   UPB_PRIVATE(_upb_Array_Set)
2593   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
2594   return sub;
2595 }
google_protobuf_EnumDescriptorProto_mutable_reserved_name(google_protobuf_EnumDescriptorProto * msg,size_t * size)2596 UPB_INLINE upb_StringView* google_protobuf_EnumDescriptorProto_mutable_reserved_name(google_protobuf_EnumDescriptorProto* msg, size_t* size) {
2597   upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2598   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
2599   if (arr) {
2600     if (size) *size = arr->UPB_PRIVATE(size);
2601     return (upb_StringView*)upb_Array_MutableDataPtr(arr);
2602   } else {
2603     if (size) *size = 0;
2604     return NULL;
2605   }
2606 }
google_protobuf_EnumDescriptorProto_resize_reserved_name(google_protobuf_EnumDescriptorProto * msg,size_t size,upb_Arena * arena)2607 UPB_INLINE upb_StringView* google_protobuf_EnumDescriptorProto_resize_reserved_name(google_protobuf_EnumDescriptorProto* msg, size_t size, upb_Arena* arena) {
2608   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)};
2609   return (upb_StringView*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
2610                                                    &field, size, arena);
2611 }
google_protobuf_EnumDescriptorProto_add_reserved_name(google_protobuf_EnumDescriptorProto * msg,upb_StringView val,upb_Arena * arena)2612 UPB_INLINE bool google_protobuf_EnumDescriptorProto_add_reserved_name(google_protobuf_EnumDescriptorProto* msg, upb_StringView val, upb_Arena* arena) {
2613   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)};
2614   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
2615       UPB_UPCAST(msg), &field, arena);
2616   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
2617                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
2618     return false;
2619   }
2620   UPB_PRIVATE(_upb_Array_Set)
2621   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
2622   return true;
2623 }
2624 
2625 /* google.protobuf.EnumDescriptorProto.EnumReservedRange */
2626 
google_protobuf_EnumDescriptorProto_EnumReservedRange_new(upb_Arena * arena)2627 UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange* google_protobuf_EnumDescriptorProto_EnumReservedRange_new(upb_Arena* arena) {
2628   return (google_protobuf_EnumDescriptorProto_EnumReservedRange*)_upb_Message_New(&google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, arena);
2629 }
google_protobuf_EnumDescriptorProto_EnumReservedRange_parse(const char * buf,size_t size,upb_Arena * arena)2630 UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange* google_protobuf_EnumDescriptorProto_EnumReservedRange_parse(const char* buf, size_t size, upb_Arena* arena) {
2631   google_protobuf_EnumDescriptorProto_EnumReservedRange* ret = google_protobuf_EnumDescriptorProto_EnumReservedRange_new(arena);
2632   if (!ret) return NULL;
2633   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, NULL, 0, arena) !=
2634       kUpb_DecodeStatus_Ok) {
2635     return NULL;
2636   }
2637   return ret;
2638 }
google_protobuf_EnumDescriptorProto_EnumReservedRange_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)2639 UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange* google_protobuf_EnumDescriptorProto_EnumReservedRange_parse_ex(const char* buf, size_t size,
2640                            const upb_ExtensionRegistry* extreg,
2641                            int options, upb_Arena* arena) {
2642   google_protobuf_EnumDescriptorProto_EnumReservedRange* ret = google_protobuf_EnumDescriptorProto_EnumReservedRange_new(arena);
2643   if (!ret) return NULL;
2644   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, extreg, options,
2645                  arena) != kUpb_DecodeStatus_Ok) {
2646     return NULL;
2647   }
2648   return ret;
2649 }
google_protobuf_EnumDescriptorProto_EnumReservedRange_serialize(const google_protobuf_EnumDescriptorProto_EnumReservedRange * msg,upb_Arena * arena,size_t * len)2650 UPB_INLINE char* google_protobuf_EnumDescriptorProto_EnumReservedRange_serialize(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg, upb_Arena* arena, size_t* len) {
2651   char* ptr;
2652   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, 0, arena, &ptr, len);
2653   return ptr;
2654 }
google_protobuf_EnumDescriptorProto_EnumReservedRange_serialize_ex(const google_protobuf_EnumDescriptorProto_EnumReservedRange * msg,int options,upb_Arena * arena,size_t * len)2655 UPB_INLINE char* google_protobuf_EnumDescriptorProto_EnumReservedRange_serialize_ex(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg, int options,
2656                                  upb_Arena* arena, size_t* len) {
2657   char* ptr;
2658   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumDescriptorProto__EnumReservedRange_msg_init, options, arena, &ptr, len);
2659   return ptr;
2660 }
google_protobuf_EnumDescriptorProto_EnumReservedRange_clear_start(google_protobuf_EnumDescriptorProto_EnumReservedRange * msg)2661 UPB_INLINE void google_protobuf_EnumDescriptorProto_EnumReservedRange_clear_start(google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2662   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2663   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2664 }
google_protobuf_EnumDescriptorProto_EnumReservedRange_start(const google_protobuf_EnumDescriptorProto_EnumReservedRange * msg)2665 UPB_INLINE int32_t google_protobuf_EnumDescriptorProto_EnumReservedRange_start(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2666   int32_t default_val = (int32_t)0;
2667   int32_t ret;
2668   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2669   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2670                                     &default_val, &ret);
2671   return ret;
2672 }
google_protobuf_EnumDescriptorProto_EnumReservedRange_has_start(const google_protobuf_EnumDescriptorProto_EnumReservedRange * msg)2673 UPB_INLINE bool google_protobuf_EnumDescriptorProto_EnumReservedRange_has_start(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2674   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2675   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2676 }
google_protobuf_EnumDescriptorProto_EnumReservedRange_clear_end(google_protobuf_EnumDescriptorProto_EnumReservedRange * msg)2677 UPB_INLINE void google_protobuf_EnumDescriptorProto_EnumReservedRange_clear_end(google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2678   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2679   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2680 }
google_protobuf_EnumDescriptorProto_EnumReservedRange_end(const google_protobuf_EnumDescriptorProto_EnumReservedRange * msg)2681 UPB_INLINE int32_t google_protobuf_EnumDescriptorProto_EnumReservedRange_end(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2682   int32_t default_val = (int32_t)0;
2683   int32_t ret;
2684   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2685   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2686                                     &default_val, &ret);
2687   return ret;
2688 }
google_protobuf_EnumDescriptorProto_EnumReservedRange_has_end(const google_protobuf_EnumDescriptorProto_EnumReservedRange * msg)2689 UPB_INLINE bool google_protobuf_EnumDescriptorProto_EnumReservedRange_has_end(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) {
2690   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2691   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2692 }
2693 
google_protobuf_EnumDescriptorProto_EnumReservedRange_set_start(google_protobuf_EnumDescriptorProto_EnumReservedRange * msg,int32_t value)2694 UPB_INLINE void google_protobuf_EnumDescriptorProto_EnumReservedRange_set_start(google_protobuf_EnumDescriptorProto_EnumReservedRange *msg, int32_t value) {
2695   const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2696   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2697 }
google_protobuf_EnumDescriptorProto_EnumReservedRange_set_end(google_protobuf_EnumDescriptorProto_EnumReservedRange * msg,int32_t value)2698 UPB_INLINE void google_protobuf_EnumDescriptorProto_EnumReservedRange_set_end(google_protobuf_EnumDescriptorProto_EnumReservedRange *msg, int32_t value) {
2699   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2700   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2701 }
2702 
2703 /* google.protobuf.EnumValueDescriptorProto */
2704 
google_protobuf_EnumValueDescriptorProto_new(upb_Arena * arena)2705 UPB_INLINE google_protobuf_EnumValueDescriptorProto* google_protobuf_EnumValueDescriptorProto_new(upb_Arena* arena) {
2706   return (google_protobuf_EnumValueDescriptorProto*)_upb_Message_New(&google__protobuf__EnumValueDescriptorProto_msg_init, arena);
2707 }
google_protobuf_EnumValueDescriptorProto_parse(const char * buf,size_t size,upb_Arena * arena)2708 UPB_INLINE google_protobuf_EnumValueDescriptorProto* google_protobuf_EnumValueDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2709   google_protobuf_EnumValueDescriptorProto* ret = google_protobuf_EnumValueDescriptorProto_new(arena);
2710   if (!ret) return NULL;
2711   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumValueDescriptorProto_msg_init, NULL, 0, arena) !=
2712       kUpb_DecodeStatus_Ok) {
2713     return NULL;
2714   }
2715   return ret;
2716 }
google_protobuf_EnumValueDescriptorProto_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)2717 UPB_INLINE google_protobuf_EnumValueDescriptorProto* google_protobuf_EnumValueDescriptorProto_parse_ex(const char* buf, size_t size,
2718                            const upb_ExtensionRegistry* extreg,
2719                            int options, upb_Arena* arena) {
2720   google_protobuf_EnumValueDescriptorProto* ret = google_protobuf_EnumValueDescriptorProto_new(arena);
2721   if (!ret) return NULL;
2722   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumValueDescriptorProto_msg_init, extreg, options,
2723                  arena) != kUpb_DecodeStatus_Ok) {
2724     return NULL;
2725   }
2726   return ret;
2727 }
google_protobuf_EnumValueDescriptorProto_serialize(const google_protobuf_EnumValueDescriptorProto * msg,upb_Arena * arena,size_t * len)2728 UPB_INLINE char* google_protobuf_EnumValueDescriptorProto_serialize(const google_protobuf_EnumValueDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2729   char* ptr;
2730   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumValueDescriptorProto_msg_init, 0, arena, &ptr, len);
2731   return ptr;
2732 }
google_protobuf_EnumValueDescriptorProto_serialize_ex(const google_protobuf_EnumValueDescriptorProto * msg,int options,upb_Arena * arena,size_t * len)2733 UPB_INLINE char* google_protobuf_EnumValueDescriptorProto_serialize_ex(const google_protobuf_EnumValueDescriptorProto* msg, int options,
2734                                  upb_Arena* arena, size_t* len) {
2735   char* ptr;
2736   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumValueDescriptorProto_msg_init, options, arena, &ptr, len);
2737   return ptr;
2738 }
google_protobuf_EnumValueDescriptorProto_clear_name(google_protobuf_EnumValueDescriptorProto * msg)2739 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_clear_name(google_protobuf_EnumValueDescriptorProto* msg) {
2740   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)};
2741   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2742 }
google_protobuf_EnumValueDescriptorProto_name(const google_protobuf_EnumValueDescriptorProto * msg)2743 UPB_INLINE upb_StringView google_protobuf_EnumValueDescriptorProto_name(const google_protobuf_EnumValueDescriptorProto* msg) {
2744   upb_StringView default_val = upb_StringView_FromString("");
2745   upb_StringView ret;
2746   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)};
2747   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2748                                     &default_val, &ret);
2749   return ret;
2750 }
google_protobuf_EnumValueDescriptorProto_has_name(const google_protobuf_EnumValueDescriptorProto * msg)2751 UPB_INLINE bool google_protobuf_EnumValueDescriptorProto_has_name(const google_protobuf_EnumValueDescriptorProto* msg) {
2752   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)};
2753   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2754 }
google_protobuf_EnumValueDescriptorProto_clear_number(google_protobuf_EnumValueDescriptorProto * msg)2755 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_clear_number(google_protobuf_EnumValueDescriptorProto* msg) {
2756   const upb_MiniTableField field = {2, 12, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2757   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2758 }
google_protobuf_EnumValueDescriptorProto_number(const google_protobuf_EnumValueDescriptorProto * msg)2759 UPB_INLINE int32_t google_protobuf_EnumValueDescriptorProto_number(const google_protobuf_EnumValueDescriptorProto* msg) {
2760   int32_t default_val = (int32_t)0;
2761   int32_t ret;
2762   const upb_MiniTableField field = {2, 12, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2763   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2764                                     &default_val, &ret);
2765   return ret;
2766 }
google_protobuf_EnumValueDescriptorProto_has_number(const google_protobuf_EnumValueDescriptorProto * msg)2767 UPB_INLINE bool google_protobuf_EnumValueDescriptorProto_has_number(const google_protobuf_EnumValueDescriptorProto* msg) {
2768   const upb_MiniTableField field = {2, 12, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2769   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2770 }
google_protobuf_EnumValueDescriptorProto_clear_options(google_protobuf_EnumValueDescriptorProto * msg)2771 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_clear_options(google_protobuf_EnumValueDescriptorProto* msg) {
2772   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)};
2773   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2774 }
google_protobuf_EnumValueDescriptorProto_options(const google_protobuf_EnumValueDescriptorProto * msg)2775 UPB_INLINE const google_protobuf_EnumValueOptions* google_protobuf_EnumValueDescriptorProto_options(const google_protobuf_EnumValueDescriptorProto* msg) {
2776   const google_protobuf_EnumValueOptions* default_val = NULL;
2777   const google_protobuf_EnumValueOptions* ret;
2778   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)};
2779   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2780                                     &default_val, &ret);
2781   return ret;
2782 }
google_protobuf_EnumValueDescriptorProto_has_options(const google_protobuf_EnumValueDescriptorProto * msg)2783 UPB_INLINE bool google_protobuf_EnumValueDescriptorProto_has_options(const google_protobuf_EnumValueDescriptorProto* msg) {
2784   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)};
2785   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2786 }
2787 
google_protobuf_EnumValueDescriptorProto_set_name(google_protobuf_EnumValueDescriptorProto * msg,upb_StringView value)2788 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_set_name(google_protobuf_EnumValueDescriptorProto *msg, upb_StringView value) {
2789   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)};
2790   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2791 }
google_protobuf_EnumValueDescriptorProto_set_number(google_protobuf_EnumValueDescriptorProto * msg,int32_t value)2792 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_set_number(google_protobuf_EnumValueDescriptorProto *msg, int32_t value) {
2793   const upb_MiniTableField field = {2, 12, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2794   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2795 }
google_protobuf_EnumValueDescriptorProto_set_options(google_protobuf_EnumValueDescriptorProto * msg,google_protobuf_EnumValueOptions * value)2796 UPB_INLINE void google_protobuf_EnumValueDescriptorProto_set_options(google_protobuf_EnumValueDescriptorProto *msg, google_protobuf_EnumValueOptions* value) {
2797   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)};
2798   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2799 }
google_protobuf_EnumValueDescriptorProto_mutable_options(google_protobuf_EnumValueDescriptorProto * msg,upb_Arena * arena)2800 UPB_INLINE struct google_protobuf_EnumValueOptions* google_protobuf_EnumValueDescriptorProto_mutable_options(google_protobuf_EnumValueDescriptorProto* msg, upb_Arena* arena) {
2801   struct google_protobuf_EnumValueOptions* sub = (struct google_protobuf_EnumValueOptions*)google_protobuf_EnumValueDescriptorProto_options(msg);
2802   if (sub == NULL) {
2803     sub = (struct google_protobuf_EnumValueOptions*)_upb_Message_New(&google__protobuf__EnumValueOptions_msg_init, arena);
2804     if (sub) google_protobuf_EnumValueDescriptorProto_set_options(msg, sub);
2805   }
2806   return sub;
2807 }
2808 
2809 /* google.protobuf.ServiceDescriptorProto */
2810 
google_protobuf_ServiceDescriptorProto_new(upb_Arena * arena)2811 UPB_INLINE google_protobuf_ServiceDescriptorProto* google_protobuf_ServiceDescriptorProto_new(upb_Arena* arena) {
2812   return (google_protobuf_ServiceDescriptorProto*)_upb_Message_New(&google__protobuf__ServiceDescriptorProto_msg_init, arena);
2813 }
google_protobuf_ServiceDescriptorProto_parse(const char * buf,size_t size,upb_Arena * arena)2814 UPB_INLINE google_protobuf_ServiceDescriptorProto* google_protobuf_ServiceDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2815   google_protobuf_ServiceDescriptorProto* ret = google_protobuf_ServiceDescriptorProto_new(arena);
2816   if (!ret) return NULL;
2817   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ServiceDescriptorProto_msg_init, NULL, 0, arena) !=
2818       kUpb_DecodeStatus_Ok) {
2819     return NULL;
2820   }
2821   return ret;
2822 }
google_protobuf_ServiceDescriptorProto_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)2823 UPB_INLINE google_protobuf_ServiceDescriptorProto* google_protobuf_ServiceDescriptorProto_parse_ex(const char* buf, size_t size,
2824                            const upb_ExtensionRegistry* extreg,
2825                            int options, upb_Arena* arena) {
2826   google_protobuf_ServiceDescriptorProto* ret = google_protobuf_ServiceDescriptorProto_new(arena);
2827   if (!ret) return NULL;
2828   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ServiceDescriptorProto_msg_init, extreg, options,
2829                  arena) != kUpb_DecodeStatus_Ok) {
2830     return NULL;
2831   }
2832   return ret;
2833 }
google_protobuf_ServiceDescriptorProto_serialize(const google_protobuf_ServiceDescriptorProto * msg,upb_Arena * arena,size_t * len)2834 UPB_INLINE char* google_protobuf_ServiceDescriptorProto_serialize(const google_protobuf_ServiceDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2835   char* ptr;
2836   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ServiceDescriptorProto_msg_init, 0, arena, &ptr, len);
2837   return ptr;
2838 }
google_protobuf_ServiceDescriptorProto_serialize_ex(const google_protobuf_ServiceDescriptorProto * msg,int options,upb_Arena * arena,size_t * len)2839 UPB_INLINE char* google_protobuf_ServiceDescriptorProto_serialize_ex(const google_protobuf_ServiceDescriptorProto* msg, int options,
2840                                  upb_Arena* arena, size_t* len) {
2841   char* ptr;
2842   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ServiceDescriptorProto_msg_init, options, arena, &ptr, len);
2843   return ptr;
2844 }
google_protobuf_ServiceDescriptorProto_clear_name(google_protobuf_ServiceDescriptorProto * msg)2845 UPB_INLINE void google_protobuf_ServiceDescriptorProto_clear_name(google_protobuf_ServiceDescriptorProto* msg) {
2846   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)};
2847   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2848 }
google_protobuf_ServiceDescriptorProto_name(const google_protobuf_ServiceDescriptorProto * msg)2849 UPB_INLINE upb_StringView google_protobuf_ServiceDescriptorProto_name(const google_protobuf_ServiceDescriptorProto* msg) {
2850   upb_StringView default_val = upb_StringView_FromString("");
2851   upb_StringView ret;
2852   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)};
2853   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2854                                     &default_val, &ret);
2855   return ret;
2856 }
google_protobuf_ServiceDescriptorProto_has_name(const google_protobuf_ServiceDescriptorProto * msg)2857 UPB_INLINE bool google_protobuf_ServiceDescriptorProto_has_name(const google_protobuf_ServiceDescriptorProto* msg) {
2858   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)};
2859   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2860 }
google_protobuf_ServiceDescriptorProto_clear_method(google_protobuf_ServiceDescriptorProto * msg)2861 UPB_INLINE void google_protobuf_ServiceDescriptorProto_clear_method(google_protobuf_ServiceDescriptorProto* msg) {
2862   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)};
2863   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2864 }
google_protobuf_ServiceDescriptorProto_method(const google_protobuf_ServiceDescriptorProto * msg,size_t * size)2865 UPB_INLINE const google_protobuf_MethodDescriptorProto* const* google_protobuf_ServiceDescriptorProto_method(const google_protobuf_ServiceDescriptorProto* msg, size_t* size) {
2866   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)};
2867   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2868   if (arr) {
2869     if (size) *size = arr->UPB_PRIVATE(size);
2870     return (const google_protobuf_MethodDescriptorProto* const*)upb_Array_DataPtr(arr);
2871   } else {
2872     if (size) *size = 0;
2873     return NULL;
2874   }
2875 }
_google_protobuf_ServiceDescriptorProto_method_upb_array(const google_protobuf_ServiceDescriptorProto * msg,size_t * size)2876 UPB_INLINE const upb_Array* _google_protobuf_ServiceDescriptorProto_method_upb_array(const google_protobuf_ServiceDescriptorProto* msg, size_t* size) {
2877   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)};
2878   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2879   if (size) {
2880     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2881   }
2882   return arr;
2883 }
_google_protobuf_ServiceDescriptorProto_method_mutable_upb_array(google_protobuf_ServiceDescriptorProto * msg,size_t * size,upb_Arena * arena)2884 UPB_INLINE upb_Array* _google_protobuf_ServiceDescriptorProto_method_mutable_upb_array(google_protobuf_ServiceDescriptorProto* msg, size_t* size, upb_Arena* arena) {
2885   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)};
2886   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
2887                                                        &field, arena);
2888   if (size) {
2889     *size = arr ? arr->UPB_PRIVATE(size) : 0;
2890   }
2891   return arr;
2892 }
google_protobuf_ServiceDescriptorProto_clear_options(google_protobuf_ServiceDescriptorProto * msg)2893 UPB_INLINE void google_protobuf_ServiceDescriptorProto_clear_options(google_protobuf_ServiceDescriptorProto* msg) {
2894   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)};
2895   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2896 }
google_protobuf_ServiceDescriptorProto_options(const google_protobuf_ServiceDescriptorProto * msg)2897 UPB_INLINE const google_protobuf_ServiceOptions* google_protobuf_ServiceDescriptorProto_options(const google_protobuf_ServiceDescriptorProto* msg) {
2898   const google_protobuf_ServiceOptions* default_val = NULL;
2899   const google_protobuf_ServiceOptions* ret;
2900   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)};
2901   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2902                                     &default_val, &ret);
2903   return ret;
2904 }
google_protobuf_ServiceDescriptorProto_has_options(const google_protobuf_ServiceDescriptorProto * msg)2905 UPB_INLINE bool google_protobuf_ServiceDescriptorProto_has_options(const google_protobuf_ServiceDescriptorProto* msg) {
2906   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)};
2907   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2908 }
2909 
google_protobuf_ServiceDescriptorProto_set_name(google_protobuf_ServiceDescriptorProto * msg,upb_StringView value)2910 UPB_INLINE void google_protobuf_ServiceDescriptorProto_set_name(google_protobuf_ServiceDescriptorProto *msg, upb_StringView value) {
2911   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)};
2912   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2913 }
google_protobuf_ServiceDescriptorProto_mutable_method(google_protobuf_ServiceDescriptorProto * msg,size_t * size)2914 UPB_INLINE google_protobuf_MethodDescriptorProto** google_protobuf_ServiceDescriptorProto_mutable_method(google_protobuf_ServiceDescriptorProto* msg, size_t* size) {
2915   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)};
2916   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
2917   if (arr) {
2918     if (size) *size = arr->UPB_PRIVATE(size);
2919     return (google_protobuf_MethodDescriptorProto**)upb_Array_MutableDataPtr(arr);
2920   } else {
2921     if (size) *size = 0;
2922     return NULL;
2923   }
2924 }
google_protobuf_ServiceDescriptorProto_resize_method(google_protobuf_ServiceDescriptorProto * msg,size_t size,upb_Arena * arena)2925 UPB_INLINE google_protobuf_MethodDescriptorProto** google_protobuf_ServiceDescriptorProto_resize_method(google_protobuf_ServiceDescriptorProto* msg, size_t size, upb_Arena* arena) {
2926   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)};
2927   return (google_protobuf_MethodDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
2928                                                    &field, size, arena);
2929 }
google_protobuf_ServiceDescriptorProto_add_method(google_protobuf_ServiceDescriptorProto * msg,upb_Arena * arena)2930 UPB_INLINE struct google_protobuf_MethodDescriptorProto* google_protobuf_ServiceDescriptorProto_add_method(google_protobuf_ServiceDescriptorProto* msg, upb_Arena* arena) {
2931   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)};
2932   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
2933       UPB_UPCAST(msg), &field, arena);
2934   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
2935                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
2936     return NULL;
2937   }
2938   struct google_protobuf_MethodDescriptorProto* sub = (struct google_protobuf_MethodDescriptorProto*)_upb_Message_New(&google__protobuf__MethodDescriptorProto_msg_init, arena);
2939   if (!arr || !sub) return NULL;
2940   UPB_PRIVATE(_upb_Array_Set)
2941   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
2942   return sub;
2943 }
google_protobuf_ServiceDescriptorProto_set_options(google_protobuf_ServiceDescriptorProto * msg,google_protobuf_ServiceOptions * value)2944 UPB_INLINE void google_protobuf_ServiceDescriptorProto_set_options(google_protobuf_ServiceDescriptorProto *msg, google_protobuf_ServiceOptions* value) {
2945   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)};
2946   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2947 }
google_protobuf_ServiceDescriptorProto_mutable_options(google_protobuf_ServiceDescriptorProto * msg,upb_Arena * arena)2948 UPB_INLINE struct google_protobuf_ServiceOptions* google_protobuf_ServiceDescriptorProto_mutable_options(google_protobuf_ServiceDescriptorProto* msg, upb_Arena* arena) {
2949   struct google_protobuf_ServiceOptions* sub = (struct google_protobuf_ServiceOptions*)google_protobuf_ServiceDescriptorProto_options(msg);
2950   if (sub == NULL) {
2951     sub = (struct google_protobuf_ServiceOptions*)_upb_Message_New(&google__protobuf__ServiceOptions_msg_init, arena);
2952     if (sub) google_protobuf_ServiceDescriptorProto_set_options(msg, sub);
2953   }
2954   return sub;
2955 }
2956 
2957 /* google.protobuf.MethodDescriptorProto */
2958 
google_protobuf_MethodDescriptorProto_new(upb_Arena * arena)2959 UPB_INLINE google_protobuf_MethodDescriptorProto* google_protobuf_MethodDescriptorProto_new(upb_Arena* arena) {
2960   return (google_protobuf_MethodDescriptorProto*)_upb_Message_New(&google__protobuf__MethodDescriptorProto_msg_init, arena);
2961 }
google_protobuf_MethodDescriptorProto_parse(const char * buf,size_t size,upb_Arena * arena)2962 UPB_INLINE google_protobuf_MethodDescriptorProto* google_protobuf_MethodDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2963   google_protobuf_MethodDescriptorProto* ret = google_protobuf_MethodDescriptorProto_new(arena);
2964   if (!ret) return NULL;
2965   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MethodDescriptorProto_msg_init, NULL, 0, arena) !=
2966       kUpb_DecodeStatus_Ok) {
2967     return NULL;
2968   }
2969   return ret;
2970 }
google_protobuf_MethodDescriptorProto_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)2971 UPB_INLINE google_protobuf_MethodDescriptorProto* google_protobuf_MethodDescriptorProto_parse_ex(const char* buf, size_t size,
2972                            const upb_ExtensionRegistry* extreg,
2973                            int options, upb_Arena* arena) {
2974   google_protobuf_MethodDescriptorProto* ret = google_protobuf_MethodDescriptorProto_new(arena);
2975   if (!ret) return NULL;
2976   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MethodDescriptorProto_msg_init, extreg, options,
2977                  arena) != kUpb_DecodeStatus_Ok) {
2978     return NULL;
2979   }
2980   return ret;
2981 }
google_protobuf_MethodDescriptorProto_serialize(const google_protobuf_MethodDescriptorProto * msg,upb_Arena * arena,size_t * len)2982 UPB_INLINE char* google_protobuf_MethodDescriptorProto_serialize(const google_protobuf_MethodDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2983   char* ptr;
2984   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MethodDescriptorProto_msg_init, 0, arena, &ptr, len);
2985   return ptr;
2986 }
google_protobuf_MethodDescriptorProto_serialize_ex(const google_protobuf_MethodDescriptorProto * msg,int options,upb_Arena * arena,size_t * len)2987 UPB_INLINE char* google_protobuf_MethodDescriptorProto_serialize_ex(const google_protobuf_MethodDescriptorProto* msg, int options,
2988                                  upb_Arena* arena, size_t* len) {
2989   char* ptr;
2990   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MethodDescriptorProto_msg_init, options, arena, &ptr, len);
2991   return ptr;
2992 }
google_protobuf_MethodDescriptorProto_clear_name(google_protobuf_MethodDescriptorProto * msg)2993 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_name(google_protobuf_MethodDescriptorProto* msg) {
2994   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)};
2995   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2996 }
google_protobuf_MethodDescriptorProto_name(const google_protobuf_MethodDescriptorProto * msg)2997 UPB_INLINE upb_StringView google_protobuf_MethodDescriptorProto_name(const google_protobuf_MethodDescriptorProto* msg) {
2998   upb_StringView default_val = upb_StringView_FromString("");
2999   upb_StringView ret;
3000   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)};
3001   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3002                                     &default_val, &ret);
3003   return ret;
3004 }
google_protobuf_MethodDescriptorProto_has_name(const google_protobuf_MethodDescriptorProto * msg)3005 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_name(const google_protobuf_MethodDescriptorProto* msg) {
3006   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)};
3007   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3008 }
google_protobuf_MethodDescriptorProto_clear_input_type(google_protobuf_MethodDescriptorProto * msg)3009 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_input_type(google_protobuf_MethodDescriptorProto* msg) {
3010   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3011   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3012 }
google_protobuf_MethodDescriptorProto_input_type(const google_protobuf_MethodDescriptorProto * msg)3013 UPB_INLINE upb_StringView google_protobuf_MethodDescriptorProto_input_type(const google_protobuf_MethodDescriptorProto* msg) {
3014   upb_StringView default_val = upb_StringView_FromString("");
3015   upb_StringView ret;
3016   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3017   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3018                                     &default_val, &ret);
3019   return ret;
3020 }
google_protobuf_MethodDescriptorProto_has_input_type(const google_protobuf_MethodDescriptorProto * msg)3021 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_input_type(const google_protobuf_MethodDescriptorProto* msg) {
3022   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3023   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3024 }
google_protobuf_MethodDescriptorProto_clear_output_type(google_protobuf_MethodDescriptorProto * msg)3025 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_output_type(google_protobuf_MethodDescriptorProto* msg) {
3026   const upb_MiniTableField field = {3, UPB_SIZE(36, 48), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3027   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3028 }
google_protobuf_MethodDescriptorProto_output_type(const google_protobuf_MethodDescriptorProto * msg)3029 UPB_INLINE upb_StringView google_protobuf_MethodDescriptorProto_output_type(const google_protobuf_MethodDescriptorProto* msg) {
3030   upb_StringView default_val = upb_StringView_FromString("");
3031   upb_StringView ret;
3032   const upb_MiniTableField field = {3, UPB_SIZE(36, 48), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3033   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3034                                     &default_val, &ret);
3035   return ret;
3036 }
google_protobuf_MethodDescriptorProto_has_output_type(const google_protobuf_MethodDescriptorProto * msg)3037 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_output_type(const google_protobuf_MethodDescriptorProto* msg) {
3038   const upb_MiniTableField field = {3, UPB_SIZE(36, 48), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3039   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3040 }
google_protobuf_MethodDescriptorProto_clear_options(google_protobuf_MethodDescriptorProto * msg)3041 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_options(google_protobuf_MethodDescriptorProto* msg) {
3042   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)};
3043   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3044 }
google_protobuf_MethodDescriptorProto_options(const google_protobuf_MethodDescriptorProto * msg)3045 UPB_INLINE const google_protobuf_MethodOptions* google_protobuf_MethodDescriptorProto_options(const google_protobuf_MethodDescriptorProto* msg) {
3046   const google_protobuf_MethodOptions* default_val = NULL;
3047   const google_protobuf_MethodOptions* ret;
3048   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)};
3049   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3050                                     &default_val, &ret);
3051   return ret;
3052 }
google_protobuf_MethodDescriptorProto_has_options(const google_protobuf_MethodDescriptorProto * msg)3053 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_options(const google_protobuf_MethodDescriptorProto* msg) {
3054   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)};
3055   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3056 }
google_protobuf_MethodDescriptorProto_clear_client_streaming(google_protobuf_MethodDescriptorProto * msg)3057 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_client_streaming(google_protobuf_MethodDescriptorProto* msg) {
3058   const upb_MiniTableField field = {5, UPB_SIZE(16, 9), 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3059   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3060 }
google_protobuf_MethodDescriptorProto_client_streaming(const google_protobuf_MethodDescriptorProto * msg)3061 UPB_INLINE bool google_protobuf_MethodDescriptorProto_client_streaming(const google_protobuf_MethodDescriptorProto* msg) {
3062   bool default_val = false;
3063   bool ret;
3064   const upb_MiniTableField field = {5, UPB_SIZE(16, 9), 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3065   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3066                                     &default_val, &ret);
3067   return ret;
3068 }
google_protobuf_MethodDescriptorProto_has_client_streaming(const google_protobuf_MethodDescriptorProto * msg)3069 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_client_streaming(const google_protobuf_MethodDescriptorProto* msg) {
3070   const upb_MiniTableField field = {5, UPB_SIZE(16, 9), 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3071   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3072 }
google_protobuf_MethodDescriptorProto_clear_server_streaming(google_protobuf_MethodDescriptorProto * msg)3073 UPB_INLINE void google_protobuf_MethodDescriptorProto_clear_server_streaming(google_protobuf_MethodDescriptorProto* msg) {
3074   const upb_MiniTableField field = {6, UPB_SIZE(17, 10), 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3075   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3076 }
google_protobuf_MethodDescriptorProto_server_streaming(const google_protobuf_MethodDescriptorProto * msg)3077 UPB_INLINE bool google_protobuf_MethodDescriptorProto_server_streaming(const google_protobuf_MethodDescriptorProto* msg) {
3078   bool default_val = false;
3079   bool ret;
3080   const upb_MiniTableField field = {6, UPB_SIZE(17, 10), 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3081   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3082                                     &default_val, &ret);
3083   return ret;
3084 }
google_protobuf_MethodDescriptorProto_has_server_streaming(const google_protobuf_MethodDescriptorProto * msg)3085 UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_server_streaming(const google_protobuf_MethodDescriptorProto* msg) {
3086   const upb_MiniTableField field = {6, UPB_SIZE(17, 10), 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3087   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3088 }
3089 
google_protobuf_MethodDescriptorProto_set_name(google_protobuf_MethodDescriptorProto * msg,upb_StringView value)3090 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_name(google_protobuf_MethodDescriptorProto *msg, upb_StringView value) {
3091   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)};
3092   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3093 }
google_protobuf_MethodDescriptorProto_set_input_type(google_protobuf_MethodDescriptorProto * msg,upb_StringView value)3094 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_input_type(google_protobuf_MethodDescriptorProto *msg, upb_StringView value) {
3095   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3096   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3097 }
google_protobuf_MethodDescriptorProto_set_output_type(google_protobuf_MethodDescriptorProto * msg,upb_StringView value)3098 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_output_type(google_protobuf_MethodDescriptorProto *msg, upb_StringView value) {
3099   const upb_MiniTableField field = {3, UPB_SIZE(36, 48), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
3100   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3101 }
google_protobuf_MethodDescriptorProto_set_options(google_protobuf_MethodDescriptorProto * msg,google_protobuf_MethodOptions * value)3102 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_options(google_protobuf_MethodDescriptorProto *msg, google_protobuf_MethodOptions* value) {
3103   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)};
3104   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3105 }
google_protobuf_MethodDescriptorProto_mutable_options(google_protobuf_MethodDescriptorProto * msg,upb_Arena * arena)3106 UPB_INLINE struct google_protobuf_MethodOptions* google_protobuf_MethodDescriptorProto_mutable_options(google_protobuf_MethodDescriptorProto* msg, upb_Arena* arena) {
3107   struct google_protobuf_MethodOptions* sub = (struct google_protobuf_MethodOptions*)google_protobuf_MethodDescriptorProto_options(msg);
3108   if (sub == NULL) {
3109     sub = (struct google_protobuf_MethodOptions*)_upb_Message_New(&google__protobuf__MethodOptions_msg_init, arena);
3110     if (sub) google_protobuf_MethodDescriptorProto_set_options(msg, sub);
3111   }
3112   return sub;
3113 }
google_protobuf_MethodDescriptorProto_set_client_streaming(google_protobuf_MethodDescriptorProto * msg,bool value)3114 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_client_streaming(google_protobuf_MethodDescriptorProto *msg, bool value) {
3115   const upb_MiniTableField field = {5, UPB_SIZE(16, 9), 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3116   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3117 }
google_protobuf_MethodDescriptorProto_set_server_streaming(google_protobuf_MethodDescriptorProto * msg,bool value)3118 UPB_INLINE void google_protobuf_MethodDescriptorProto_set_server_streaming(google_protobuf_MethodDescriptorProto *msg, bool value) {
3119   const upb_MiniTableField field = {6, UPB_SIZE(17, 10), 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3120   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3121 }
3122 
3123 /* google.protobuf.FileOptions */
3124 
google_protobuf_FileOptions_new(upb_Arena * arena)3125 UPB_INLINE google_protobuf_FileOptions* google_protobuf_FileOptions_new(upb_Arena* arena) {
3126   return (google_protobuf_FileOptions*)_upb_Message_New(&google__protobuf__FileOptions_msg_init, arena);
3127 }
google_protobuf_FileOptions_parse(const char * buf,size_t size,upb_Arena * arena)3128 UPB_INLINE google_protobuf_FileOptions* google_protobuf_FileOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
3129   google_protobuf_FileOptions* ret = google_protobuf_FileOptions_new(arena);
3130   if (!ret) return NULL;
3131   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileOptions_msg_init, NULL, 0, arena) !=
3132       kUpb_DecodeStatus_Ok) {
3133     return NULL;
3134   }
3135   return ret;
3136 }
google_protobuf_FileOptions_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)3137 UPB_INLINE google_protobuf_FileOptions* google_protobuf_FileOptions_parse_ex(const char* buf, size_t size,
3138                            const upb_ExtensionRegistry* extreg,
3139                            int options, upb_Arena* arena) {
3140   google_protobuf_FileOptions* ret = google_protobuf_FileOptions_new(arena);
3141   if (!ret) return NULL;
3142   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileOptions_msg_init, extreg, options,
3143                  arena) != kUpb_DecodeStatus_Ok) {
3144     return NULL;
3145   }
3146   return ret;
3147 }
google_protobuf_FileOptions_serialize(const google_protobuf_FileOptions * msg,upb_Arena * arena,size_t * len)3148 UPB_INLINE char* google_protobuf_FileOptions_serialize(const google_protobuf_FileOptions* msg, upb_Arena* arena, size_t* len) {
3149   char* ptr;
3150   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileOptions_msg_init, 0, arena, &ptr, len);
3151   return ptr;
3152 }
google_protobuf_FileOptions_serialize_ex(const google_protobuf_FileOptions * msg,int options,upb_Arena * arena,size_t * len)3153 UPB_INLINE char* google_protobuf_FileOptions_serialize_ex(const google_protobuf_FileOptions* msg, int options,
3154                                  upb_Arena* arena, size_t* len) {
3155   char* ptr;
3156   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileOptions_msg_init, options, arena, &ptr, len);
3157   return ptr;
3158 }
google_protobuf_FileOptions_clear_java_package(google_protobuf_FileOptions * msg)3159 UPB_INLINE void google_protobuf_FileOptions_clear_java_package(google_protobuf_FileOptions* msg) {
3160   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)};
3161   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3162 }
google_protobuf_FileOptions_java_package(const google_protobuf_FileOptions * msg)3163 UPB_INLINE upb_StringView google_protobuf_FileOptions_java_package(const google_protobuf_FileOptions* msg) {
3164   upb_StringView default_val = upb_StringView_FromString("");
3165   upb_StringView ret;
3166   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)};
3167   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3168                                     &default_val, &ret);
3169   return ret;
3170 }
google_protobuf_FileOptions_has_java_package(const google_protobuf_FileOptions * msg)3171 UPB_INLINE bool google_protobuf_FileOptions_has_java_package(const google_protobuf_FileOptions* msg) {
3172   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)};
3173   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3174 }
google_protobuf_FileOptions_clear_java_outer_classname(google_protobuf_FileOptions * msg)3175 UPB_INLINE void google_protobuf_FileOptions_clear_java_outer_classname(google_protobuf_FileOptions* msg) {
3176   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)};
3177   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3178 }
google_protobuf_FileOptions_java_outer_classname(const google_protobuf_FileOptions * msg)3179 UPB_INLINE upb_StringView google_protobuf_FileOptions_java_outer_classname(const google_protobuf_FileOptions* msg) {
3180   upb_StringView default_val = upb_StringView_FromString("");
3181   upb_StringView ret;
3182   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)};
3183   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3184                                     &default_val, &ret);
3185   return ret;
3186 }
google_protobuf_FileOptions_has_java_outer_classname(const google_protobuf_FileOptions * msg)3187 UPB_INLINE bool google_protobuf_FileOptions_has_java_outer_classname(const google_protobuf_FileOptions* msg) {
3188   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)};
3189   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3190 }
google_protobuf_FileOptions_clear_optimize_for(google_protobuf_FileOptions * msg)3191 UPB_INLINE void google_protobuf_FileOptions_clear_optimize_for(google_protobuf_FileOptions* msg) {
3192   const upb_MiniTableField field = {9, 12, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3193   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3194 }
google_protobuf_FileOptions_optimize_for(const google_protobuf_FileOptions * msg)3195 UPB_INLINE int32_t google_protobuf_FileOptions_optimize_for(const google_protobuf_FileOptions* msg) {
3196   int32_t default_val = 1;
3197   int32_t ret;
3198   const upb_MiniTableField field = {9, 12, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3199   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3200                                     &default_val, &ret);
3201   return ret;
3202 }
google_protobuf_FileOptions_has_optimize_for(const google_protobuf_FileOptions * msg)3203 UPB_INLINE bool google_protobuf_FileOptions_has_optimize_for(const google_protobuf_FileOptions* msg) {
3204   const upb_MiniTableField field = {9, 12, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3205   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3206 }
google_protobuf_FileOptions_clear_java_multiple_files(google_protobuf_FileOptions * msg)3207 UPB_INLINE void google_protobuf_FileOptions_clear_java_multiple_files(google_protobuf_FileOptions* msg) {
3208   const upb_MiniTableField field = {10, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3209   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3210 }
google_protobuf_FileOptions_java_multiple_files(const google_protobuf_FileOptions * msg)3211 UPB_INLINE bool google_protobuf_FileOptions_java_multiple_files(const google_protobuf_FileOptions* msg) {
3212   bool default_val = false;
3213   bool ret;
3214   const upb_MiniTableField field = {10, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3215   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3216                                     &default_val, &ret);
3217   return ret;
3218 }
google_protobuf_FileOptions_has_java_multiple_files(const google_protobuf_FileOptions * msg)3219 UPB_INLINE bool google_protobuf_FileOptions_has_java_multiple_files(const google_protobuf_FileOptions* msg) {
3220   const upb_MiniTableField field = {10, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3221   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3222 }
google_protobuf_FileOptions_clear_go_package(google_protobuf_FileOptions * msg)3223 UPB_INLINE void google_protobuf_FileOptions_clear_go_package(google_protobuf_FileOptions* msg) {
3224   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)};
3225   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3226 }
google_protobuf_FileOptions_go_package(const google_protobuf_FileOptions * msg)3227 UPB_INLINE upb_StringView google_protobuf_FileOptions_go_package(const google_protobuf_FileOptions* msg) {
3228   upb_StringView default_val = upb_StringView_FromString("");
3229   upb_StringView ret;
3230   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)};
3231   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3232                                     &default_val, &ret);
3233   return ret;
3234 }
google_protobuf_FileOptions_has_go_package(const google_protobuf_FileOptions * msg)3235 UPB_INLINE bool google_protobuf_FileOptions_has_go_package(const google_protobuf_FileOptions* msg) {
3236   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)};
3237   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3238 }
google_protobuf_FileOptions_clear_cc_generic_services(google_protobuf_FileOptions * msg)3239 UPB_INLINE void google_protobuf_FileOptions_clear_cc_generic_services(google_protobuf_FileOptions* msg) {
3240   const upb_MiniTableField field = {16, 17, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3241   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3242 }
google_protobuf_FileOptions_cc_generic_services(const google_protobuf_FileOptions * msg)3243 UPB_INLINE bool google_protobuf_FileOptions_cc_generic_services(const google_protobuf_FileOptions* msg) {
3244   bool default_val = false;
3245   bool ret;
3246   const upb_MiniTableField field = {16, 17, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3247   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3248                                     &default_val, &ret);
3249   return ret;
3250 }
google_protobuf_FileOptions_has_cc_generic_services(const google_protobuf_FileOptions * msg)3251 UPB_INLINE bool google_protobuf_FileOptions_has_cc_generic_services(const google_protobuf_FileOptions* msg) {
3252   const upb_MiniTableField field = {16, 17, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3253   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3254 }
google_protobuf_FileOptions_clear_java_generic_services(google_protobuf_FileOptions * msg)3255 UPB_INLINE void google_protobuf_FileOptions_clear_java_generic_services(google_protobuf_FileOptions* msg) {
3256   const upb_MiniTableField field = {17, 18, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3257   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3258 }
google_protobuf_FileOptions_java_generic_services(const google_protobuf_FileOptions * msg)3259 UPB_INLINE bool google_protobuf_FileOptions_java_generic_services(const google_protobuf_FileOptions* msg) {
3260   bool default_val = false;
3261   bool ret;
3262   const upb_MiniTableField field = {17, 18, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3263   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3264                                     &default_val, &ret);
3265   return ret;
3266 }
google_protobuf_FileOptions_has_java_generic_services(const google_protobuf_FileOptions * msg)3267 UPB_INLINE bool google_protobuf_FileOptions_has_java_generic_services(const google_protobuf_FileOptions* msg) {
3268   const upb_MiniTableField field = {17, 18, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3269   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3270 }
google_protobuf_FileOptions_clear_py_generic_services(google_protobuf_FileOptions * msg)3271 UPB_INLINE void google_protobuf_FileOptions_clear_py_generic_services(google_protobuf_FileOptions* msg) {
3272   const upb_MiniTableField field = {18, 19, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3273   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3274 }
google_protobuf_FileOptions_py_generic_services(const google_protobuf_FileOptions * msg)3275 UPB_INLINE bool google_protobuf_FileOptions_py_generic_services(const google_protobuf_FileOptions* msg) {
3276   bool default_val = false;
3277   bool ret;
3278   const upb_MiniTableField field = {18, 19, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3279   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3280                                     &default_val, &ret);
3281   return ret;
3282 }
google_protobuf_FileOptions_has_py_generic_services(const google_protobuf_FileOptions * msg)3283 UPB_INLINE bool google_protobuf_FileOptions_has_py_generic_services(const google_protobuf_FileOptions* msg) {
3284   const upb_MiniTableField field = {18, 19, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3285   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3286 }
google_protobuf_FileOptions_clear_java_generate_equals_and_hash(google_protobuf_FileOptions * msg)3287 UPB_INLINE void google_protobuf_FileOptions_clear_java_generate_equals_and_hash(google_protobuf_FileOptions* msg) {
3288   const upb_MiniTableField field = {20, 20, 72, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3289   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3290 }
google_protobuf_FileOptions_java_generate_equals_and_hash(const google_protobuf_FileOptions * msg)3291 UPB_INLINE bool google_protobuf_FileOptions_java_generate_equals_and_hash(const google_protobuf_FileOptions* msg) {
3292   bool default_val = false;
3293   bool ret;
3294   const upb_MiniTableField field = {20, 20, 72, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3295   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3296                                     &default_val, &ret);
3297   return ret;
3298 }
google_protobuf_FileOptions_has_java_generate_equals_and_hash(const google_protobuf_FileOptions * msg)3299 UPB_INLINE bool google_protobuf_FileOptions_has_java_generate_equals_and_hash(const google_protobuf_FileOptions* msg) {
3300   const upb_MiniTableField field = {20, 20, 72, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3301   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3302 }
google_protobuf_FileOptions_clear_deprecated(google_protobuf_FileOptions * msg)3303 UPB_INLINE void google_protobuf_FileOptions_clear_deprecated(google_protobuf_FileOptions* msg) {
3304   const upb_MiniTableField field = {23, 21, 73, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3305   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3306 }
google_protobuf_FileOptions_deprecated(const google_protobuf_FileOptions * msg)3307 UPB_INLINE bool google_protobuf_FileOptions_deprecated(const google_protobuf_FileOptions* msg) {
3308   bool default_val = false;
3309   bool ret;
3310   const upb_MiniTableField field = {23, 21, 73, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3311   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3312                                     &default_val, &ret);
3313   return ret;
3314 }
google_protobuf_FileOptions_has_deprecated(const google_protobuf_FileOptions * msg)3315 UPB_INLINE bool google_protobuf_FileOptions_has_deprecated(const google_protobuf_FileOptions* msg) {
3316   const upb_MiniTableField field = {23, 21, 73, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3317   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3318 }
google_protobuf_FileOptions_clear_java_string_check_utf8(google_protobuf_FileOptions * msg)3319 UPB_INLINE void google_protobuf_FileOptions_clear_java_string_check_utf8(google_protobuf_FileOptions* msg) {
3320   const upb_MiniTableField field = {27, 22, 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3321   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3322 }
google_protobuf_FileOptions_java_string_check_utf8(const google_protobuf_FileOptions * msg)3323 UPB_INLINE bool google_protobuf_FileOptions_java_string_check_utf8(const google_protobuf_FileOptions* msg) {
3324   bool default_val = false;
3325   bool ret;
3326   const upb_MiniTableField field = {27, 22, 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3327   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3328                                     &default_val, &ret);
3329   return ret;
3330 }
google_protobuf_FileOptions_has_java_string_check_utf8(const google_protobuf_FileOptions * msg)3331 UPB_INLINE bool google_protobuf_FileOptions_has_java_string_check_utf8(const google_protobuf_FileOptions* msg) {
3332   const upb_MiniTableField field = {27, 22, 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3333   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3334 }
google_protobuf_FileOptions_clear_cc_enable_arenas(google_protobuf_FileOptions * msg)3335 UPB_INLINE void google_protobuf_FileOptions_clear_cc_enable_arenas(google_protobuf_FileOptions* msg) {
3336   const upb_MiniTableField field = {31, 23, 75, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3337   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3338 }
google_protobuf_FileOptions_cc_enable_arenas(const google_protobuf_FileOptions * msg)3339 UPB_INLINE bool google_protobuf_FileOptions_cc_enable_arenas(const google_protobuf_FileOptions* msg) {
3340   bool default_val = true;
3341   bool ret;
3342   const upb_MiniTableField field = {31, 23, 75, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3343   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3344                                     &default_val, &ret);
3345   return ret;
3346 }
google_protobuf_FileOptions_has_cc_enable_arenas(const google_protobuf_FileOptions * msg)3347 UPB_INLINE bool google_protobuf_FileOptions_has_cc_enable_arenas(const google_protobuf_FileOptions* msg) {
3348   const upb_MiniTableField field = {31, 23, 75, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3349   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3350 }
google_protobuf_FileOptions_clear_objc_class_prefix(google_protobuf_FileOptions * msg)3351 UPB_INLINE void google_protobuf_FileOptions_clear_objc_class_prefix(google_protobuf_FileOptions* msg) {
3352   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)};
3353   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3354 }
google_protobuf_FileOptions_objc_class_prefix(const google_protobuf_FileOptions * msg)3355 UPB_INLINE upb_StringView google_protobuf_FileOptions_objc_class_prefix(const google_protobuf_FileOptions* msg) {
3356   upb_StringView default_val = upb_StringView_FromString("");
3357   upb_StringView ret;
3358   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)};
3359   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3360                                     &default_val, &ret);
3361   return ret;
3362 }
google_protobuf_FileOptions_has_objc_class_prefix(const google_protobuf_FileOptions * msg)3363 UPB_INLINE bool google_protobuf_FileOptions_has_objc_class_prefix(const google_protobuf_FileOptions* msg) {
3364   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)};
3365   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3366 }
google_protobuf_FileOptions_clear_csharp_namespace(google_protobuf_FileOptions * msg)3367 UPB_INLINE void google_protobuf_FileOptions_clear_csharp_namespace(google_protobuf_FileOptions* msg) {
3368   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)};
3369   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3370 }
google_protobuf_FileOptions_csharp_namespace(const google_protobuf_FileOptions * msg)3371 UPB_INLINE upb_StringView google_protobuf_FileOptions_csharp_namespace(const google_protobuf_FileOptions* msg) {
3372   upb_StringView default_val = upb_StringView_FromString("");
3373   upb_StringView ret;
3374   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)};
3375   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3376                                     &default_val, &ret);
3377   return ret;
3378 }
google_protobuf_FileOptions_has_csharp_namespace(const google_protobuf_FileOptions * msg)3379 UPB_INLINE bool google_protobuf_FileOptions_has_csharp_namespace(const google_protobuf_FileOptions* msg) {
3380   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)};
3381   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3382 }
google_protobuf_FileOptions_clear_swift_prefix(google_protobuf_FileOptions * msg)3383 UPB_INLINE void google_protobuf_FileOptions_clear_swift_prefix(google_protobuf_FileOptions* msg) {
3384   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)};
3385   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3386 }
google_protobuf_FileOptions_swift_prefix(const google_protobuf_FileOptions * msg)3387 UPB_INLINE upb_StringView google_protobuf_FileOptions_swift_prefix(const google_protobuf_FileOptions* msg) {
3388   upb_StringView default_val = upb_StringView_FromString("");
3389   upb_StringView ret;
3390   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)};
3391   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3392                                     &default_val, &ret);
3393   return ret;
3394 }
google_protobuf_FileOptions_has_swift_prefix(const google_protobuf_FileOptions * msg)3395 UPB_INLINE bool google_protobuf_FileOptions_has_swift_prefix(const google_protobuf_FileOptions* msg) {
3396   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)};
3397   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3398 }
google_protobuf_FileOptions_clear_php_class_prefix(google_protobuf_FileOptions * msg)3399 UPB_INLINE void google_protobuf_FileOptions_clear_php_class_prefix(google_protobuf_FileOptions* msg) {
3400   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)};
3401   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3402 }
google_protobuf_FileOptions_php_class_prefix(const google_protobuf_FileOptions * msg)3403 UPB_INLINE upb_StringView google_protobuf_FileOptions_php_class_prefix(const google_protobuf_FileOptions* msg) {
3404   upb_StringView default_val = upb_StringView_FromString("");
3405   upb_StringView ret;
3406   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)};
3407   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3408                                     &default_val, &ret);
3409   return ret;
3410 }
google_protobuf_FileOptions_has_php_class_prefix(const google_protobuf_FileOptions * msg)3411 UPB_INLINE bool google_protobuf_FileOptions_has_php_class_prefix(const google_protobuf_FileOptions* msg) {
3412   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)};
3413   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3414 }
google_protobuf_FileOptions_clear_php_namespace(google_protobuf_FileOptions * msg)3415 UPB_INLINE void google_protobuf_FileOptions_clear_php_namespace(google_protobuf_FileOptions* msg) {
3416   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)};
3417   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3418 }
google_protobuf_FileOptions_php_namespace(const google_protobuf_FileOptions * msg)3419 UPB_INLINE upb_StringView google_protobuf_FileOptions_php_namespace(const google_protobuf_FileOptions* msg) {
3420   upb_StringView default_val = upb_StringView_FromString("");
3421   upb_StringView ret;
3422   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)};
3423   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3424                                     &default_val, &ret);
3425   return ret;
3426 }
google_protobuf_FileOptions_has_php_namespace(const google_protobuf_FileOptions * msg)3427 UPB_INLINE bool google_protobuf_FileOptions_has_php_namespace(const google_protobuf_FileOptions* msg) {
3428   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)};
3429   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3430 }
google_protobuf_FileOptions_clear_php_metadata_namespace(google_protobuf_FileOptions * msg)3431 UPB_INLINE void google_protobuf_FileOptions_clear_php_metadata_namespace(google_protobuf_FileOptions* msg) {
3432   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)};
3433   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3434 }
google_protobuf_FileOptions_php_metadata_namespace(const google_protobuf_FileOptions * msg)3435 UPB_INLINE upb_StringView google_protobuf_FileOptions_php_metadata_namespace(const google_protobuf_FileOptions* msg) {
3436   upb_StringView default_val = upb_StringView_FromString("");
3437   upb_StringView ret;
3438   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)};
3439   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3440                                     &default_val, &ret);
3441   return ret;
3442 }
google_protobuf_FileOptions_has_php_metadata_namespace(const google_protobuf_FileOptions * msg)3443 UPB_INLINE bool google_protobuf_FileOptions_has_php_metadata_namespace(const google_protobuf_FileOptions* msg) {
3444   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)};
3445   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3446 }
google_protobuf_FileOptions_clear_ruby_package(google_protobuf_FileOptions * msg)3447 UPB_INLINE void google_protobuf_FileOptions_clear_ruby_package(google_protobuf_FileOptions* msg) {
3448   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)};
3449   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3450 }
google_protobuf_FileOptions_ruby_package(const google_protobuf_FileOptions * msg)3451 UPB_INLINE upb_StringView google_protobuf_FileOptions_ruby_package(const google_protobuf_FileOptions* msg) {
3452   upb_StringView default_val = upb_StringView_FromString("");
3453   upb_StringView ret;
3454   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)};
3455   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3456                                     &default_val, &ret);
3457   return ret;
3458 }
google_protobuf_FileOptions_has_ruby_package(const google_protobuf_FileOptions * msg)3459 UPB_INLINE bool google_protobuf_FileOptions_has_ruby_package(const google_protobuf_FileOptions* msg) {
3460   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)};
3461   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3462 }
google_protobuf_FileOptions_clear_features(google_protobuf_FileOptions * msg)3463 UPB_INLINE void google_protobuf_FileOptions_clear_features(google_protobuf_FileOptions* msg) {
3464   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)};
3465   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3466 }
google_protobuf_FileOptions_features(const google_protobuf_FileOptions * msg)3467 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_FileOptions_features(const google_protobuf_FileOptions* msg) {
3468   const google_protobuf_FeatureSet* default_val = NULL;
3469   const google_protobuf_FeatureSet* ret;
3470   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)};
3471   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3472                                     &default_val, &ret);
3473   return ret;
3474 }
google_protobuf_FileOptions_has_features(const google_protobuf_FileOptions * msg)3475 UPB_INLINE bool google_protobuf_FileOptions_has_features(const google_protobuf_FileOptions* msg) {
3476   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)};
3477   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3478 }
google_protobuf_FileOptions_clear_uninterpreted_option(google_protobuf_FileOptions * msg)3479 UPB_INLINE void google_protobuf_FileOptions_clear_uninterpreted_option(google_protobuf_FileOptions* msg) {
3480   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)};
3481   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3482 }
google_protobuf_FileOptions_uninterpreted_option(const google_protobuf_FileOptions * msg,size_t * size)3483 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_FileOptions_uninterpreted_option(const google_protobuf_FileOptions* msg, size_t* size) {
3484   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)};
3485   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
3486   if (arr) {
3487     if (size) *size = arr->UPB_PRIVATE(size);
3488     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
3489   } else {
3490     if (size) *size = 0;
3491     return NULL;
3492   }
3493 }
_google_protobuf_FileOptions_uninterpreted_option_upb_array(const google_protobuf_FileOptions * msg,size_t * size)3494 UPB_INLINE const upb_Array* _google_protobuf_FileOptions_uninterpreted_option_upb_array(const google_protobuf_FileOptions* msg, size_t* size) {
3495   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)};
3496   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
3497   if (size) {
3498     *size = arr ? arr->UPB_PRIVATE(size) : 0;
3499   }
3500   return arr;
3501 }
_google_protobuf_FileOptions_uninterpreted_option_mutable_upb_array(google_protobuf_FileOptions * msg,size_t * size,upb_Arena * arena)3502 UPB_INLINE upb_Array* _google_protobuf_FileOptions_uninterpreted_option_mutable_upb_array(google_protobuf_FileOptions* msg, size_t* size, upb_Arena* arena) {
3503   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)};
3504   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
3505                                                        &field, arena);
3506   if (size) {
3507     *size = arr ? arr->UPB_PRIVATE(size) : 0;
3508   }
3509   return arr;
3510 }
3511 
google_protobuf_FileOptions_set_java_package(google_protobuf_FileOptions * msg,upb_StringView value)3512 UPB_INLINE void google_protobuf_FileOptions_set_java_package(google_protobuf_FileOptions *msg, upb_StringView value) {
3513   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)};
3514   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3515 }
google_protobuf_FileOptions_set_java_outer_classname(google_protobuf_FileOptions * msg,upb_StringView value)3516 UPB_INLINE void google_protobuf_FileOptions_set_java_outer_classname(google_protobuf_FileOptions *msg, upb_StringView value) {
3517   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)};
3518   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3519 }
google_protobuf_FileOptions_set_optimize_for(google_protobuf_FileOptions * msg,int32_t value)3520 UPB_INLINE void google_protobuf_FileOptions_set_optimize_for(google_protobuf_FileOptions *msg, int32_t value) {
3521   const upb_MiniTableField field = {9, 12, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3522   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3523 }
google_protobuf_FileOptions_set_java_multiple_files(google_protobuf_FileOptions * msg,bool value)3524 UPB_INLINE void google_protobuf_FileOptions_set_java_multiple_files(google_protobuf_FileOptions *msg, bool value) {
3525   const upb_MiniTableField field = {10, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3526   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3527 }
google_protobuf_FileOptions_set_go_package(google_protobuf_FileOptions * msg,upb_StringView value)3528 UPB_INLINE void google_protobuf_FileOptions_set_go_package(google_protobuf_FileOptions *msg, upb_StringView value) {
3529   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)};
3530   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3531 }
google_protobuf_FileOptions_set_cc_generic_services(google_protobuf_FileOptions * msg,bool value)3532 UPB_INLINE void google_protobuf_FileOptions_set_cc_generic_services(google_protobuf_FileOptions *msg, bool value) {
3533   const upb_MiniTableField field = {16, 17, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3534   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3535 }
google_protobuf_FileOptions_set_java_generic_services(google_protobuf_FileOptions * msg,bool value)3536 UPB_INLINE void google_protobuf_FileOptions_set_java_generic_services(google_protobuf_FileOptions *msg, bool value) {
3537   const upb_MiniTableField field = {17, 18, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3538   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3539 }
google_protobuf_FileOptions_set_py_generic_services(google_protobuf_FileOptions * msg,bool value)3540 UPB_INLINE void google_protobuf_FileOptions_set_py_generic_services(google_protobuf_FileOptions *msg, bool value) {
3541   const upb_MiniTableField field = {18, 19, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3542   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3543 }
google_protobuf_FileOptions_set_java_generate_equals_and_hash(google_protobuf_FileOptions * msg,bool value)3544 UPB_INLINE void google_protobuf_FileOptions_set_java_generate_equals_and_hash(google_protobuf_FileOptions *msg, bool value) {
3545   const upb_MiniTableField field = {20, 20, 72, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3546   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3547 }
google_protobuf_FileOptions_set_deprecated(google_protobuf_FileOptions * msg,bool value)3548 UPB_INLINE void google_protobuf_FileOptions_set_deprecated(google_protobuf_FileOptions *msg, bool value) {
3549   const upb_MiniTableField field = {23, 21, 73, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3550   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3551 }
google_protobuf_FileOptions_set_java_string_check_utf8(google_protobuf_FileOptions * msg,bool value)3552 UPB_INLINE void google_protobuf_FileOptions_set_java_string_check_utf8(google_protobuf_FileOptions *msg, bool value) {
3553   const upb_MiniTableField field = {27, 22, 74, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3554   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3555 }
google_protobuf_FileOptions_set_cc_enable_arenas(google_protobuf_FileOptions * msg,bool value)3556 UPB_INLINE void google_protobuf_FileOptions_set_cc_enable_arenas(google_protobuf_FileOptions *msg, bool value) {
3557   const upb_MiniTableField field = {31, 23, 75, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3558   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3559 }
google_protobuf_FileOptions_set_objc_class_prefix(google_protobuf_FileOptions * msg,upb_StringView value)3560 UPB_INLINE void google_protobuf_FileOptions_set_objc_class_prefix(google_protobuf_FileOptions *msg, upb_StringView value) {
3561   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)};
3562   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3563 }
google_protobuf_FileOptions_set_csharp_namespace(google_protobuf_FileOptions * msg,upb_StringView value)3564 UPB_INLINE void google_protobuf_FileOptions_set_csharp_namespace(google_protobuf_FileOptions *msg, upb_StringView value) {
3565   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)};
3566   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3567 }
google_protobuf_FileOptions_set_swift_prefix(google_protobuf_FileOptions * msg,upb_StringView value)3568 UPB_INLINE void google_protobuf_FileOptions_set_swift_prefix(google_protobuf_FileOptions *msg, upb_StringView value) {
3569   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)};
3570   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3571 }
google_protobuf_FileOptions_set_php_class_prefix(google_protobuf_FileOptions * msg,upb_StringView value)3572 UPB_INLINE void google_protobuf_FileOptions_set_php_class_prefix(google_protobuf_FileOptions *msg, upb_StringView value) {
3573   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)};
3574   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3575 }
google_protobuf_FileOptions_set_php_namespace(google_protobuf_FileOptions * msg,upb_StringView value)3576 UPB_INLINE void google_protobuf_FileOptions_set_php_namespace(google_protobuf_FileOptions *msg, upb_StringView value) {
3577   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)};
3578   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3579 }
google_protobuf_FileOptions_set_php_metadata_namespace(google_protobuf_FileOptions * msg,upb_StringView value)3580 UPB_INLINE void google_protobuf_FileOptions_set_php_metadata_namespace(google_protobuf_FileOptions *msg, upb_StringView value) {
3581   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)};
3582   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3583 }
google_protobuf_FileOptions_set_ruby_package(google_protobuf_FileOptions * msg,upb_StringView value)3584 UPB_INLINE void google_protobuf_FileOptions_set_ruby_package(google_protobuf_FileOptions *msg, upb_StringView value) {
3585   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)};
3586   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3587 }
google_protobuf_FileOptions_set_features(google_protobuf_FileOptions * msg,google_protobuf_FeatureSet * value)3588 UPB_INLINE void google_protobuf_FileOptions_set_features(google_protobuf_FileOptions *msg, google_protobuf_FeatureSet* value) {
3589   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)};
3590   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3591 }
google_protobuf_FileOptions_mutable_features(google_protobuf_FileOptions * msg,upb_Arena * arena)3592 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_FileOptions_mutable_features(google_protobuf_FileOptions* msg, upb_Arena* arena) {
3593   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_FileOptions_features(msg);
3594   if (sub == NULL) {
3595     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
3596     if (sub) google_protobuf_FileOptions_set_features(msg, sub);
3597   }
3598   return sub;
3599 }
google_protobuf_FileOptions_mutable_uninterpreted_option(google_protobuf_FileOptions * msg,size_t * size)3600 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FileOptions_mutable_uninterpreted_option(google_protobuf_FileOptions* msg, size_t* size) {
3601   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)};
3602   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
3603   if (arr) {
3604     if (size) *size = arr->UPB_PRIVATE(size);
3605     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
3606   } else {
3607     if (size) *size = 0;
3608     return NULL;
3609   }
3610 }
google_protobuf_FileOptions_resize_uninterpreted_option(google_protobuf_FileOptions * msg,size_t size,upb_Arena * arena)3611 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FileOptions_resize_uninterpreted_option(google_protobuf_FileOptions* msg, size_t size, upb_Arena* arena) {
3612   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)};
3613   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
3614                                                    &field, size, arena);
3615 }
google_protobuf_FileOptions_add_uninterpreted_option(google_protobuf_FileOptions * msg,upb_Arena * arena)3616 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FileOptions_add_uninterpreted_option(google_protobuf_FileOptions* msg, upb_Arena* arena) {
3617   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)};
3618   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
3619       UPB_UPCAST(msg), &field, arena);
3620   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
3621                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
3622     return NULL;
3623   }
3624   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
3625   if (!arr || !sub) return NULL;
3626   UPB_PRIVATE(_upb_Array_Set)
3627   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
3628   return sub;
3629 }
3630 
3631 /* google.protobuf.MessageOptions */
3632 
google_protobuf_MessageOptions_new(upb_Arena * arena)3633 UPB_INLINE google_protobuf_MessageOptions* google_protobuf_MessageOptions_new(upb_Arena* arena) {
3634   return (google_protobuf_MessageOptions*)_upb_Message_New(&google__protobuf__MessageOptions_msg_init, arena);
3635 }
google_protobuf_MessageOptions_parse(const char * buf,size_t size,upb_Arena * arena)3636 UPB_INLINE google_protobuf_MessageOptions* google_protobuf_MessageOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
3637   google_protobuf_MessageOptions* ret = google_protobuf_MessageOptions_new(arena);
3638   if (!ret) return NULL;
3639   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MessageOptions_msg_init, NULL, 0, arena) !=
3640       kUpb_DecodeStatus_Ok) {
3641     return NULL;
3642   }
3643   return ret;
3644 }
google_protobuf_MessageOptions_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)3645 UPB_INLINE google_protobuf_MessageOptions* google_protobuf_MessageOptions_parse_ex(const char* buf, size_t size,
3646                            const upb_ExtensionRegistry* extreg,
3647                            int options, upb_Arena* arena) {
3648   google_protobuf_MessageOptions* ret = google_protobuf_MessageOptions_new(arena);
3649   if (!ret) return NULL;
3650   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MessageOptions_msg_init, extreg, options,
3651                  arena) != kUpb_DecodeStatus_Ok) {
3652     return NULL;
3653   }
3654   return ret;
3655 }
google_protobuf_MessageOptions_serialize(const google_protobuf_MessageOptions * msg,upb_Arena * arena,size_t * len)3656 UPB_INLINE char* google_protobuf_MessageOptions_serialize(const google_protobuf_MessageOptions* msg, upb_Arena* arena, size_t* len) {
3657   char* ptr;
3658   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MessageOptions_msg_init, 0, arena, &ptr, len);
3659   return ptr;
3660 }
google_protobuf_MessageOptions_serialize_ex(const google_protobuf_MessageOptions * msg,int options,upb_Arena * arena,size_t * len)3661 UPB_INLINE char* google_protobuf_MessageOptions_serialize_ex(const google_protobuf_MessageOptions* msg, int options,
3662                                  upb_Arena* arena, size_t* len) {
3663   char* ptr;
3664   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MessageOptions_msg_init, options, arena, &ptr, len);
3665   return ptr;
3666 }
google_protobuf_MessageOptions_clear_message_set_wire_format(google_protobuf_MessageOptions * msg)3667 UPB_INLINE void google_protobuf_MessageOptions_clear_message_set_wire_format(google_protobuf_MessageOptions* msg) {
3668   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3669   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3670 }
google_protobuf_MessageOptions_message_set_wire_format(const google_protobuf_MessageOptions * msg)3671 UPB_INLINE bool google_protobuf_MessageOptions_message_set_wire_format(const google_protobuf_MessageOptions* msg) {
3672   bool default_val = false;
3673   bool ret;
3674   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3675   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3676                                     &default_val, &ret);
3677   return ret;
3678 }
google_protobuf_MessageOptions_has_message_set_wire_format(const google_protobuf_MessageOptions * msg)3679 UPB_INLINE bool google_protobuf_MessageOptions_has_message_set_wire_format(const google_protobuf_MessageOptions* msg) {
3680   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3681   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3682 }
google_protobuf_MessageOptions_clear_no_standard_descriptor_accessor(google_protobuf_MessageOptions * msg)3683 UPB_INLINE void google_protobuf_MessageOptions_clear_no_standard_descriptor_accessor(google_protobuf_MessageOptions* msg) {
3684   const upb_MiniTableField field = {2, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3685   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3686 }
google_protobuf_MessageOptions_no_standard_descriptor_accessor(const google_protobuf_MessageOptions * msg)3687 UPB_INLINE bool google_protobuf_MessageOptions_no_standard_descriptor_accessor(const google_protobuf_MessageOptions* msg) {
3688   bool default_val = false;
3689   bool ret;
3690   const upb_MiniTableField field = {2, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3691   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3692                                     &default_val, &ret);
3693   return ret;
3694 }
google_protobuf_MessageOptions_has_no_standard_descriptor_accessor(const google_protobuf_MessageOptions * msg)3695 UPB_INLINE bool google_protobuf_MessageOptions_has_no_standard_descriptor_accessor(const google_protobuf_MessageOptions* msg) {
3696   const upb_MiniTableField field = {2, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3697   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3698 }
google_protobuf_MessageOptions_clear_deprecated(google_protobuf_MessageOptions * msg)3699 UPB_INLINE void google_protobuf_MessageOptions_clear_deprecated(google_protobuf_MessageOptions* msg) {
3700   const upb_MiniTableField field = {3, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3701   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3702 }
google_protobuf_MessageOptions_deprecated(const google_protobuf_MessageOptions * msg)3703 UPB_INLINE bool google_protobuf_MessageOptions_deprecated(const google_protobuf_MessageOptions* msg) {
3704   bool default_val = false;
3705   bool ret;
3706   const upb_MiniTableField field = {3, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3707   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3708                                     &default_val, &ret);
3709   return ret;
3710 }
google_protobuf_MessageOptions_has_deprecated(const google_protobuf_MessageOptions * msg)3711 UPB_INLINE bool google_protobuf_MessageOptions_has_deprecated(const google_protobuf_MessageOptions* msg) {
3712   const upb_MiniTableField field = {3, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3713   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3714 }
google_protobuf_MessageOptions_clear_map_entry(google_protobuf_MessageOptions * msg)3715 UPB_INLINE void google_protobuf_MessageOptions_clear_map_entry(google_protobuf_MessageOptions* msg) {
3716   const upb_MiniTableField field = {7, 12, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3717   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3718 }
google_protobuf_MessageOptions_map_entry(const google_protobuf_MessageOptions * msg)3719 UPB_INLINE bool google_protobuf_MessageOptions_map_entry(const google_protobuf_MessageOptions* msg) {
3720   bool default_val = false;
3721   bool ret;
3722   const upb_MiniTableField field = {7, 12, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3723   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3724                                     &default_val, &ret);
3725   return ret;
3726 }
google_protobuf_MessageOptions_has_map_entry(const google_protobuf_MessageOptions * msg)3727 UPB_INLINE bool google_protobuf_MessageOptions_has_map_entry(const google_protobuf_MessageOptions* msg) {
3728   const upb_MiniTableField field = {7, 12, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3729   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3730 }
google_protobuf_MessageOptions_clear_deprecated_legacy_json_field_conflicts(google_protobuf_MessageOptions * msg)3731 UPB_INLINE void google_protobuf_MessageOptions_clear_deprecated_legacy_json_field_conflicts(google_protobuf_MessageOptions* msg) {
3732   const upb_MiniTableField field = {11, 13, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3733   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3734 }
google_protobuf_MessageOptions_deprecated_legacy_json_field_conflicts(const google_protobuf_MessageOptions * msg)3735 UPB_INLINE bool google_protobuf_MessageOptions_deprecated_legacy_json_field_conflicts(const google_protobuf_MessageOptions* msg) {
3736   bool default_val = false;
3737   bool ret;
3738   const upb_MiniTableField field = {11, 13, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3739   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3740                                     &default_val, &ret);
3741   return ret;
3742 }
google_protobuf_MessageOptions_has_deprecated_legacy_json_field_conflicts(const google_protobuf_MessageOptions * msg)3743 UPB_INLINE bool google_protobuf_MessageOptions_has_deprecated_legacy_json_field_conflicts(const google_protobuf_MessageOptions* msg) {
3744   const upb_MiniTableField field = {11, 13, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3745   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3746 }
google_protobuf_MessageOptions_clear_features(google_protobuf_MessageOptions * msg)3747 UPB_INLINE void google_protobuf_MessageOptions_clear_features(google_protobuf_MessageOptions* msg) {
3748   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)};
3749   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3750 }
google_protobuf_MessageOptions_features(const google_protobuf_MessageOptions * msg)3751 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_MessageOptions_features(const google_protobuf_MessageOptions* msg) {
3752   const google_protobuf_FeatureSet* default_val = NULL;
3753   const google_protobuf_FeatureSet* ret;
3754   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)};
3755   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3756                                     &default_val, &ret);
3757   return ret;
3758 }
google_protobuf_MessageOptions_has_features(const google_protobuf_MessageOptions * msg)3759 UPB_INLINE bool google_protobuf_MessageOptions_has_features(const google_protobuf_MessageOptions* msg) {
3760   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)};
3761   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3762 }
google_protobuf_MessageOptions_clear_uninterpreted_option(google_protobuf_MessageOptions * msg)3763 UPB_INLINE void google_protobuf_MessageOptions_clear_uninterpreted_option(google_protobuf_MessageOptions* msg) {
3764   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)};
3765   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3766 }
google_protobuf_MessageOptions_uninterpreted_option(const google_protobuf_MessageOptions * msg,size_t * size)3767 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_MessageOptions_uninterpreted_option(const google_protobuf_MessageOptions* msg, size_t* size) {
3768   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)};
3769   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
3770   if (arr) {
3771     if (size) *size = arr->UPB_PRIVATE(size);
3772     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
3773   } else {
3774     if (size) *size = 0;
3775     return NULL;
3776   }
3777 }
_google_protobuf_MessageOptions_uninterpreted_option_upb_array(const google_protobuf_MessageOptions * msg,size_t * size)3778 UPB_INLINE const upb_Array* _google_protobuf_MessageOptions_uninterpreted_option_upb_array(const google_protobuf_MessageOptions* msg, size_t* size) {
3779   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)};
3780   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
3781   if (size) {
3782     *size = arr ? arr->UPB_PRIVATE(size) : 0;
3783   }
3784   return arr;
3785 }
_google_protobuf_MessageOptions_uninterpreted_option_mutable_upb_array(google_protobuf_MessageOptions * msg,size_t * size,upb_Arena * arena)3786 UPB_INLINE upb_Array* _google_protobuf_MessageOptions_uninterpreted_option_mutable_upb_array(google_protobuf_MessageOptions* msg, size_t* size, upb_Arena* arena) {
3787   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)};
3788   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
3789                                                        &field, arena);
3790   if (size) {
3791     *size = arr ? arr->UPB_PRIVATE(size) : 0;
3792   }
3793   return arr;
3794 }
3795 
google_protobuf_MessageOptions_set_message_set_wire_format(google_protobuf_MessageOptions * msg,bool value)3796 UPB_INLINE void google_protobuf_MessageOptions_set_message_set_wire_format(google_protobuf_MessageOptions *msg, bool value) {
3797   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3798   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3799 }
google_protobuf_MessageOptions_set_no_standard_descriptor_accessor(google_protobuf_MessageOptions * msg,bool value)3800 UPB_INLINE void google_protobuf_MessageOptions_set_no_standard_descriptor_accessor(google_protobuf_MessageOptions *msg, bool value) {
3801   const upb_MiniTableField field = {2, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3802   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3803 }
google_protobuf_MessageOptions_set_deprecated(google_protobuf_MessageOptions * msg,bool value)3804 UPB_INLINE void google_protobuf_MessageOptions_set_deprecated(google_protobuf_MessageOptions *msg, bool value) {
3805   const upb_MiniTableField field = {3, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3806   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3807 }
google_protobuf_MessageOptions_set_map_entry(google_protobuf_MessageOptions * msg,bool value)3808 UPB_INLINE void google_protobuf_MessageOptions_set_map_entry(google_protobuf_MessageOptions *msg, bool value) {
3809   const upb_MiniTableField field = {7, 12, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3810   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3811 }
google_protobuf_MessageOptions_set_deprecated_legacy_json_field_conflicts(google_protobuf_MessageOptions * msg,bool value)3812 UPB_INLINE void google_protobuf_MessageOptions_set_deprecated_legacy_json_field_conflicts(google_protobuf_MessageOptions *msg, bool value) {
3813   const upb_MiniTableField field = {11, 13, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3814   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3815 }
google_protobuf_MessageOptions_set_features(google_protobuf_MessageOptions * msg,google_protobuf_FeatureSet * value)3816 UPB_INLINE void google_protobuf_MessageOptions_set_features(google_protobuf_MessageOptions *msg, google_protobuf_FeatureSet* value) {
3817   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)};
3818   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
3819 }
google_protobuf_MessageOptions_mutable_features(google_protobuf_MessageOptions * msg,upb_Arena * arena)3820 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_MessageOptions_mutable_features(google_protobuf_MessageOptions* msg, upb_Arena* arena) {
3821   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_MessageOptions_features(msg);
3822   if (sub == NULL) {
3823     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
3824     if (sub) google_protobuf_MessageOptions_set_features(msg, sub);
3825   }
3826   return sub;
3827 }
google_protobuf_MessageOptions_mutable_uninterpreted_option(google_protobuf_MessageOptions * msg,size_t * size)3828 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MessageOptions_mutable_uninterpreted_option(google_protobuf_MessageOptions* msg, size_t* size) {
3829   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)};
3830   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
3831   if (arr) {
3832     if (size) *size = arr->UPB_PRIVATE(size);
3833     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
3834   } else {
3835     if (size) *size = 0;
3836     return NULL;
3837   }
3838 }
google_protobuf_MessageOptions_resize_uninterpreted_option(google_protobuf_MessageOptions * msg,size_t size,upb_Arena * arena)3839 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MessageOptions_resize_uninterpreted_option(google_protobuf_MessageOptions* msg, size_t size, upb_Arena* arena) {
3840   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)};
3841   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
3842                                                    &field, size, arena);
3843 }
google_protobuf_MessageOptions_add_uninterpreted_option(google_protobuf_MessageOptions * msg,upb_Arena * arena)3844 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MessageOptions_add_uninterpreted_option(google_protobuf_MessageOptions* msg, upb_Arena* arena) {
3845   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)};
3846   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
3847       UPB_UPCAST(msg), &field, arena);
3848   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
3849                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
3850     return NULL;
3851   }
3852   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
3853   if (!arr || !sub) return NULL;
3854   UPB_PRIVATE(_upb_Array_Set)
3855   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
3856   return sub;
3857 }
3858 
3859 /* google.protobuf.FieldOptions */
3860 
google_protobuf_FieldOptions_new(upb_Arena * arena)3861 UPB_INLINE google_protobuf_FieldOptions* google_protobuf_FieldOptions_new(upb_Arena* arena) {
3862   return (google_protobuf_FieldOptions*)_upb_Message_New(&google__protobuf__FieldOptions_msg_init, arena);
3863 }
google_protobuf_FieldOptions_parse(const char * buf,size_t size,upb_Arena * arena)3864 UPB_INLINE google_protobuf_FieldOptions* google_protobuf_FieldOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
3865   google_protobuf_FieldOptions* ret = google_protobuf_FieldOptions_new(arena);
3866   if (!ret) return NULL;
3867   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldOptions_msg_init, NULL, 0, arena) !=
3868       kUpb_DecodeStatus_Ok) {
3869     return NULL;
3870   }
3871   return ret;
3872 }
google_protobuf_FieldOptions_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)3873 UPB_INLINE google_protobuf_FieldOptions* google_protobuf_FieldOptions_parse_ex(const char* buf, size_t size,
3874                            const upb_ExtensionRegistry* extreg,
3875                            int options, upb_Arena* arena) {
3876   google_protobuf_FieldOptions* ret = google_protobuf_FieldOptions_new(arena);
3877   if (!ret) return NULL;
3878   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldOptions_msg_init, extreg, options,
3879                  arena) != kUpb_DecodeStatus_Ok) {
3880     return NULL;
3881   }
3882   return ret;
3883 }
google_protobuf_FieldOptions_serialize(const google_protobuf_FieldOptions * msg,upb_Arena * arena,size_t * len)3884 UPB_INLINE char* google_protobuf_FieldOptions_serialize(const google_protobuf_FieldOptions* msg, upb_Arena* arena, size_t* len) {
3885   char* ptr;
3886   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldOptions_msg_init, 0, arena, &ptr, len);
3887   return ptr;
3888 }
google_protobuf_FieldOptions_serialize_ex(const google_protobuf_FieldOptions * msg,int options,upb_Arena * arena,size_t * len)3889 UPB_INLINE char* google_protobuf_FieldOptions_serialize_ex(const google_protobuf_FieldOptions* msg, int options,
3890                                  upb_Arena* arena, size_t* len) {
3891   char* ptr;
3892   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldOptions_msg_init, options, arena, &ptr, len);
3893   return ptr;
3894 }
google_protobuf_FieldOptions_clear_ctype(google_protobuf_FieldOptions * msg)3895 UPB_INLINE void google_protobuf_FieldOptions_clear_ctype(google_protobuf_FieldOptions* msg) {
3896   const upb_MiniTableField field = {1, 12, 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3897   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3898 }
google_protobuf_FieldOptions_ctype(const google_protobuf_FieldOptions * msg)3899 UPB_INLINE int32_t google_protobuf_FieldOptions_ctype(const google_protobuf_FieldOptions* msg) {
3900   int32_t default_val = 0;
3901   int32_t ret;
3902   const upb_MiniTableField field = {1, 12, 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3903   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3904                                     &default_val, &ret);
3905   return ret;
3906 }
google_protobuf_FieldOptions_has_ctype(const google_protobuf_FieldOptions * msg)3907 UPB_INLINE bool google_protobuf_FieldOptions_has_ctype(const google_protobuf_FieldOptions* msg) {
3908   const upb_MiniTableField field = {1, 12, 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3909   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3910 }
google_protobuf_FieldOptions_clear_packed(google_protobuf_FieldOptions * msg)3911 UPB_INLINE void google_protobuf_FieldOptions_clear_packed(google_protobuf_FieldOptions* msg) {
3912   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3913   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3914 }
google_protobuf_FieldOptions_packed(const google_protobuf_FieldOptions * msg)3915 UPB_INLINE bool google_protobuf_FieldOptions_packed(const google_protobuf_FieldOptions* msg) {
3916   bool default_val = false;
3917   bool ret;
3918   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3919   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3920                                     &default_val, &ret);
3921   return ret;
3922 }
google_protobuf_FieldOptions_has_packed(const google_protobuf_FieldOptions * msg)3923 UPB_INLINE bool google_protobuf_FieldOptions_has_packed(const google_protobuf_FieldOptions* msg) {
3924   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3925   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3926 }
google_protobuf_FieldOptions_clear_deprecated(google_protobuf_FieldOptions * msg)3927 UPB_INLINE void google_protobuf_FieldOptions_clear_deprecated(google_protobuf_FieldOptions* msg) {
3928   const upb_MiniTableField field = {3, 17, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3929   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3930 }
google_protobuf_FieldOptions_deprecated(const google_protobuf_FieldOptions * msg)3931 UPB_INLINE bool google_protobuf_FieldOptions_deprecated(const google_protobuf_FieldOptions* msg) {
3932   bool default_val = false;
3933   bool ret;
3934   const upb_MiniTableField field = {3, 17, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3935   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3936                                     &default_val, &ret);
3937   return ret;
3938 }
google_protobuf_FieldOptions_has_deprecated(const google_protobuf_FieldOptions * msg)3939 UPB_INLINE bool google_protobuf_FieldOptions_has_deprecated(const google_protobuf_FieldOptions* msg) {
3940   const upb_MiniTableField field = {3, 17, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3941   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3942 }
google_protobuf_FieldOptions_clear_lazy(google_protobuf_FieldOptions * msg)3943 UPB_INLINE void google_protobuf_FieldOptions_clear_lazy(google_protobuf_FieldOptions* msg) {
3944   const upb_MiniTableField field = {5, 18, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3945   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3946 }
google_protobuf_FieldOptions_lazy(const google_protobuf_FieldOptions * msg)3947 UPB_INLINE bool google_protobuf_FieldOptions_lazy(const google_protobuf_FieldOptions* msg) {
3948   bool default_val = false;
3949   bool ret;
3950   const upb_MiniTableField field = {5, 18, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3951   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3952                                     &default_val, &ret);
3953   return ret;
3954 }
google_protobuf_FieldOptions_has_lazy(const google_protobuf_FieldOptions * msg)3955 UPB_INLINE bool google_protobuf_FieldOptions_has_lazy(const google_protobuf_FieldOptions* msg) {
3956   const upb_MiniTableField field = {5, 18, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3957   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3958 }
google_protobuf_FieldOptions_clear_jstype(google_protobuf_FieldOptions * msg)3959 UPB_INLINE void google_protobuf_FieldOptions_clear_jstype(google_protobuf_FieldOptions* msg) {
3960   const upb_MiniTableField field = {6, 20, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3961   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3962 }
google_protobuf_FieldOptions_jstype(const google_protobuf_FieldOptions * msg)3963 UPB_INLINE int32_t google_protobuf_FieldOptions_jstype(const google_protobuf_FieldOptions* msg) {
3964   int32_t default_val = 0;
3965   int32_t ret;
3966   const upb_MiniTableField field = {6, 20, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3967   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3968                                     &default_val, &ret);
3969   return ret;
3970 }
google_protobuf_FieldOptions_has_jstype(const google_protobuf_FieldOptions * msg)3971 UPB_INLINE bool google_protobuf_FieldOptions_has_jstype(const google_protobuf_FieldOptions* msg) {
3972   const upb_MiniTableField field = {6, 20, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
3973   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3974 }
google_protobuf_FieldOptions_clear_weak(google_protobuf_FieldOptions * msg)3975 UPB_INLINE void google_protobuf_FieldOptions_clear_weak(google_protobuf_FieldOptions* msg) {
3976   const upb_MiniTableField field = {10, 24, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3977   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3978 }
google_protobuf_FieldOptions_weak(const google_protobuf_FieldOptions * msg)3979 UPB_INLINE bool google_protobuf_FieldOptions_weak(const google_protobuf_FieldOptions* msg) {
3980   bool default_val = false;
3981   bool ret;
3982   const upb_MiniTableField field = {10, 24, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3983   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
3984                                     &default_val, &ret);
3985   return ret;
3986 }
google_protobuf_FieldOptions_has_weak(const google_protobuf_FieldOptions * msg)3987 UPB_INLINE bool google_protobuf_FieldOptions_has_weak(const google_protobuf_FieldOptions* msg) {
3988   const upb_MiniTableField field = {10, 24, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3989   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
3990 }
google_protobuf_FieldOptions_clear_unverified_lazy(google_protobuf_FieldOptions * msg)3991 UPB_INLINE void google_protobuf_FieldOptions_clear_unverified_lazy(google_protobuf_FieldOptions* msg) {
3992   const upb_MiniTableField field = {15, 25, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3993   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
3994 }
google_protobuf_FieldOptions_unverified_lazy(const google_protobuf_FieldOptions * msg)3995 UPB_INLINE bool google_protobuf_FieldOptions_unverified_lazy(const google_protobuf_FieldOptions* msg) {
3996   bool default_val = false;
3997   bool ret;
3998   const upb_MiniTableField field = {15, 25, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
3999   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4000                                     &default_val, &ret);
4001   return ret;
4002 }
google_protobuf_FieldOptions_has_unverified_lazy(const google_protobuf_FieldOptions * msg)4003 UPB_INLINE bool google_protobuf_FieldOptions_has_unverified_lazy(const google_protobuf_FieldOptions* msg) {
4004   const upb_MiniTableField field = {15, 25, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4005   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4006 }
google_protobuf_FieldOptions_clear_debug_redact(google_protobuf_FieldOptions * msg)4007 UPB_INLINE void google_protobuf_FieldOptions_clear_debug_redact(google_protobuf_FieldOptions* msg) {
4008   const upb_MiniTableField field = {16, 26, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4009   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4010 }
google_protobuf_FieldOptions_debug_redact(const google_protobuf_FieldOptions * msg)4011 UPB_INLINE bool google_protobuf_FieldOptions_debug_redact(const google_protobuf_FieldOptions* msg) {
4012   bool default_val = false;
4013   bool ret;
4014   const upb_MiniTableField field = {16, 26, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4015   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4016                                     &default_val, &ret);
4017   return ret;
4018 }
google_protobuf_FieldOptions_has_debug_redact(const google_protobuf_FieldOptions * msg)4019 UPB_INLINE bool google_protobuf_FieldOptions_has_debug_redact(const google_protobuf_FieldOptions* msg) {
4020   const upb_MiniTableField field = {16, 26, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4021   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4022 }
google_protobuf_FieldOptions_clear_retention(google_protobuf_FieldOptions * msg)4023 UPB_INLINE void google_protobuf_FieldOptions_clear_retention(google_protobuf_FieldOptions* msg) {
4024   const upb_MiniTableField field = {17, 28, 72, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4025   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4026 }
google_protobuf_FieldOptions_retention(const google_protobuf_FieldOptions * msg)4027 UPB_INLINE int32_t google_protobuf_FieldOptions_retention(const google_protobuf_FieldOptions* msg) {
4028   int32_t default_val = 0;
4029   int32_t ret;
4030   const upb_MiniTableField field = {17, 28, 72, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4031   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4032                                     &default_val, &ret);
4033   return ret;
4034 }
google_protobuf_FieldOptions_has_retention(const google_protobuf_FieldOptions * msg)4035 UPB_INLINE bool google_protobuf_FieldOptions_has_retention(const google_protobuf_FieldOptions* msg) {
4036   const upb_MiniTableField field = {17, 28, 72, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4037   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4038 }
google_protobuf_FieldOptions_clear_targets(google_protobuf_FieldOptions * msg)4039 UPB_INLINE void google_protobuf_FieldOptions_clear_targets(google_protobuf_FieldOptions* msg) {
4040   const upb_MiniTableField field = {19, 32, 0, 6, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4041   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4042 }
google_protobuf_FieldOptions_targets(const google_protobuf_FieldOptions * msg,size_t * size)4043 UPB_INLINE int32_t const* google_protobuf_FieldOptions_targets(const google_protobuf_FieldOptions* msg, size_t* size) {
4044   const upb_MiniTableField field = {19, 32, 0, 6, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4045   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4046   if (arr) {
4047     if (size) *size = arr->UPB_PRIVATE(size);
4048     return (int32_t const*)upb_Array_DataPtr(arr);
4049   } else {
4050     if (size) *size = 0;
4051     return NULL;
4052   }
4053 }
_google_protobuf_FieldOptions_targets_upb_array(const google_protobuf_FieldOptions * msg,size_t * size)4054 UPB_INLINE const upb_Array* _google_protobuf_FieldOptions_targets_upb_array(const google_protobuf_FieldOptions* msg, size_t* size) {
4055   const upb_MiniTableField field = {19, 32, 0, 6, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4056   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4057   if (size) {
4058     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4059   }
4060   return arr;
4061 }
_google_protobuf_FieldOptions_targets_mutable_upb_array(google_protobuf_FieldOptions * msg,size_t * size,upb_Arena * arena)4062 UPB_INLINE upb_Array* _google_protobuf_FieldOptions_targets_mutable_upb_array(google_protobuf_FieldOptions* msg, size_t* size, upb_Arena* arena) {
4063   const upb_MiniTableField field = {19, 32, 0, 6, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4064   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4065                                                        &field, arena);
4066   if (size) {
4067     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4068   }
4069   return arr;
4070 }
google_protobuf_FieldOptions_clear_edition_defaults(google_protobuf_FieldOptions * msg)4071 UPB_INLINE void google_protobuf_FieldOptions_clear_edition_defaults(google_protobuf_FieldOptions* msg) {
4072   const upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4073   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4074 }
google_protobuf_FieldOptions_edition_defaults(const google_protobuf_FieldOptions * msg,size_t * size)4075 UPB_INLINE const google_protobuf_FieldOptions_EditionDefault* const* google_protobuf_FieldOptions_edition_defaults(const google_protobuf_FieldOptions* msg, size_t* size) {
4076   const upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4077   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4078   if (arr) {
4079     if (size) *size = arr->UPB_PRIVATE(size);
4080     return (const google_protobuf_FieldOptions_EditionDefault* const*)upb_Array_DataPtr(arr);
4081   } else {
4082     if (size) *size = 0;
4083     return NULL;
4084   }
4085 }
_google_protobuf_FieldOptions_edition_defaults_upb_array(const google_protobuf_FieldOptions * msg,size_t * size)4086 UPB_INLINE const upb_Array* _google_protobuf_FieldOptions_edition_defaults_upb_array(const google_protobuf_FieldOptions* msg, size_t* size) {
4087   const upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4088   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4089   if (size) {
4090     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4091   }
4092   return arr;
4093 }
_google_protobuf_FieldOptions_edition_defaults_mutable_upb_array(google_protobuf_FieldOptions * msg,size_t * size,upb_Arena * arena)4094 UPB_INLINE upb_Array* _google_protobuf_FieldOptions_edition_defaults_mutable_upb_array(google_protobuf_FieldOptions* msg, size_t* size, upb_Arena* arena) {
4095   const upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4096   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4097                                                        &field, arena);
4098   if (size) {
4099     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4100   }
4101   return arr;
4102 }
google_protobuf_FieldOptions_clear_features(google_protobuf_FieldOptions * msg)4103 UPB_INLINE void google_protobuf_FieldOptions_clear_features(google_protobuf_FieldOptions* msg) {
4104   const upb_MiniTableField field = {21, UPB_SIZE(40, 48), 73, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4105   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4106 }
google_protobuf_FieldOptions_features(const google_protobuf_FieldOptions * msg)4107 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_FieldOptions_features(const google_protobuf_FieldOptions* msg) {
4108   const google_protobuf_FeatureSet* default_val = NULL;
4109   const google_protobuf_FeatureSet* ret;
4110   const upb_MiniTableField field = {21, UPB_SIZE(40, 48), 73, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4111   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4112                                     &default_val, &ret);
4113   return ret;
4114 }
google_protobuf_FieldOptions_has_features(const google_protobuf_FieldOptions * msg)4115 UPB_INLINE bool google_protobuf_FieldOptions_has_features(const google_protobuf_FieldOptions* msg) {
4116   const upb_MiniTableField field = {21, UPB_SIZE(40, 48), 73, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4117   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4118 }
google_protobuf_FieldOptions_clear_uninterpreted_option(google_protobuf_FieldOptions * msg)4119 UPB_INLINE void google_protobuf_FieldOptions_clear_uninterpreted_option(google_protobuf_FieldOptions* msg) {
4120   const upb_MiniTableField field = {999, UPB_SIZE(44, 56), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4121   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4122 }
google_protobuf_FieldOptions_uninterpreted_option(const google_protobuf_FieldOptions * msg,size_t * size)4123 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_FieldOptions_uninterpreted_option(const google_protobuf_FieldOptions* msg, size_t* size) {
4124   const upb_MiniTableField field = {999, UPB_SIZE(44, 56), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4125   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4126   if (arr) {
4127     if (size) *size = arr->UPB_PRIVATE(size);
4128     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
4129   } else {
4130     if (size) *size = 0;
4131     return NULL;
4132   }
4133 }
_google_protobuf_FieldOptions_uninterpreted_option_upb_array(const google_protobuf_FieldOptions * msg,size_t * size)4134 UPB_INLINE const upb_Array* _google_protobuf_FieldOptions_uninterpreted_option_upb_array(const google_protobuf_FieldOptions* msg, size_t* size) {
4135   const upb_MiniTableField field = {999, UPB_SIZE(44, 56), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4136   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4137   if (size) {
4138     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4139   }
4140   return arr;
4141 }
_google_protobuf_FieldOptions_uninterpreted_option_mutable_upb_array(google_protobuf_FieldOptions * msg,size_t * size,upb_Arena * arena)4142 UPB_INLINE upb_Array* _google_protobuf_FieldOptions_uninterpreted_option_mutable_upb_array(google_protobuf_FieldOptions* msg, size_t* size, upb_Arena* arena) {
4143   const upb_MiniTableField field = {999, UPB_SIZE(44, 56), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4144   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4145                                                        &field, arena);
4146   if (size) {
4147     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4148   }
4149   return arr;
4150 }
4151 
google_protobuf_FieldOptions_set_ctype(google_protobuf_FieldOptions * msg,int32_t value)4152 UPB_INLINE void google_protobuf_FieldOptions_set_ctype(google_protobuf_FieldOptions *msg, int32_t value) {
4153   const upb_MiniTableField field = {1, 12, 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4154   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4155 }
google_protobuf_FieldOptions_set_packed(google_protobuf_FieldOptions * msg,bool value)4156 UPB_INLINE void google_protobuf_FieldOptions_set_packed(google_protobuf_FieldOptions *msg, bool value) {
4157   const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4158   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4159 }
google_protobuf_FieldOptions_set_deprecated(google_protobuf_FieldOptions * msg,bool value)4160 UPB_INLINE void google_protobuf_FieldOptions_set_deprecated(google_protobuf_FieldOptions *msg, bool value) {
4161   const upb_MiniTableField field = {3, 17, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4162   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4163 }
google_protobuf_FieldOptions_set_lazy(google_protobuf_FieldOptions * msg,bool value)4164 UPB_INLINE void google_protobuf_FieldOptions_set_lazy(google_protobuf_FieldOptions *msg, bool value) {
4165   const upb_MiniTableField field = {5, 18, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4166   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4167 }
google_protobuf_FieldOptions_set_jstype(google_protobuf_FieldOptions * msg,int32_t value)4168 UPB_INLINE void google_protobuf_FieldOptions_set_jstype(google_protobuf_FieldOptions *msg, int32_t value) {
4169   const upb_MiniTableField field = {6, 20, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4170   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4171 }
google_protobuf_FieldOptions_set_weak(google_protobuf_FieldOptions * msg,bool value)4172 UPB_INLINE void google_protobuf_FieldOptions_set_weak(google_protobuf_FieldOptions *msg, bool value) {
4173   const upb_MiniTableField field = {10, 24, 69, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4174   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4175 }
google_protobuf_FieldOptions_set_unverified_lazy(google_protobuf_FieldOptions * msg,bool value)4176 UPB_INLINE void google_protobuf_FieldOptions_set_unverified_lazy(google_protobuf_FieldOptions *msg, bool value) {
4177   const upb_MiniTableField field = {15, 25, 70, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4178   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4179 }
google_protobuf_FieldOptions_set_debug_redact(google_protobuf_FieldOptions * msg,bool value)4180 UPB_INLINE void google_protobuf_FieldOptions_set_debug_redact(google_protobuf_FieldOptions *msg, bool value) {
4181   const upb_MiniTableField field = {16, 26, 71, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4182   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4183 }
google_protobuf_FieldOptions_set_retention(google_protobuf_FieldOptions * msg,int32_t value)4184 UPB_INLINE void google_protobuf_FieldOptions_set_retention(google_protobuf_FieldOptions *msg, int32_t value) {
4185   const upb_MiniTableField field = {17, 28, 72, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4186   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4187 }
google_protobuf_FieldOptions_mutable_targets(google_protobuf_FieldOptions * msg,size_t * size)4188 UPB_INLINE int32_t* google_protobuf_FieldOptions_mutable_targets(google_protobuf_FieldOptions* msg, size_t* size) {
4189   upb_MiniTableField field = {19, 32, 0, 6, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4190   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4191   if (arr) {
4192     if (size) *size = arr->UPB_PRIVATE(size);
4193     return (int32_t*)upb_Array_MutableDataPtr(arr);
4194   } else {
4195     if (size) *size = 0;
4196     return NULL;
4197   }
4198 }
google_protobuf_FieldOptions_resize_targets(google_protobuf_FieldOptions * msg,size_t size,upb_Arena * arena)4199 UPB_INLINE int32_t* google_protobuf_FieldOptions_resize_targets(google_protobuf_FieldOptions* msg, size_t size, upb_Arena* arena) {
4200   upb_MiniTableField field = {19, 32, 0, 6, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4201   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4202                                                    &field, size, arena);
4203 }
google_protobuf_FieldOptions_add_targets(google_protobuf_FieldOptions * msg,int32_t val,upb_Arena * arena)4204 UPB_INLINE bool google_protobuf_FieldOptions_add_targets(google_protobuf_FieldOptions* msg, int32_t val, upb_Arena* arena) {
4205   upb_MiniTableField field = {19, 32, 0, 6, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4206   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4207       UPB_UPCAST(msg), &field, arena);
4208   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4209                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4210     return false;
4211   }
4212   UPB_PRIVATE(_upb_Array_Set)
4213   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
4214   return true;
4215 }
google_protobuf_FieldOptions_mutable_edition_defaults(google_protobuf_FieldOptions * msg,size_t * size)4216 UPB_INLINE google_protobuf_FieldOptions_EditionDefault** google_protobuf_FieldOptions_mutable_edition_defaults(google_protobuf_FieldOptions* msg, size_t* size) {
4217   upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4218   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4219   if (arr) {
4220     if (size) *size = arr->UPB_PRIVATE(size);
4221     return (google_protobuf_FieldOptions_EditionDefault**)upb_Array_MutableDataPtr(arr);
4222   } else {
4223     if (size) *size = 0;
4224     return NULL;
4225   }
4226 }
google_protobuf_FieldOptions_resize_edition_defaults(google_protobuf_FieldOptions * msg,size_t size,upb_Arena * arena)4227 UPB_INLINE google_protobuf_FieldOptions_EditionDefault** google_protobuf_FieldOptions_resize_edition_defaults(google_protobuf_FieldOptions* msg, size_t size, upb_Arena* arena) {
4228   upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4229   return (google_protobuf_FieldOptions_EditionDefault**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4230                                                    &field, size, arena);
4231 }
google_protobuf_FieldOptions_add_edition_defaults(google_protobuf_FieldOptions * msg,upb_Arena * arena)4232 UPB_INLINE struct google_protobuf_FieldOptions_EditionDefault* google_protobuf_FieldOptions_add_edition_defaults(google_protobuf_FieldOptions* msg, upb_Arena* arena) {
4233   upb_MiniTableField field = {20, UPB_SIZE(36, 40), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4234   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4235       UPB_UPCAST(msg), &field, arena);
4236   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4237                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4238     return NULL;
4239   }
4240   struct google_protobuf_FieldOptions_EditionDefault* sub = (struct google_protobuf_FieldOptions_EditionDefault*)_upb_Message_New(&google__protobuf__FieldOptions__EditionDefault_msg_init, arena);
4241   if (!arr || !sub) return NULL;
4242   UPB_PRIVATE(_upb_Array_Set)
4243   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
4244   return sub;
4245 }
google_protobuf_FieldOptions_set_features(google_protobuf_FieldOptions * msg,google_protobuf_FeatureSet * value)4246 UPB_INLINE void google_protobuf_FieldOptions_set_features(google_protobuf_FieldOptions *msg, google_protobuf_FeatureSet* value) {
4247   const upb_MiniTableField field = {21, UPB_SIZE(40, 48), 73, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4248   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4249 }
google_protobuf_FieldOptions_mutable_features(google_protobuf_FieldOptions * msg,upb_Arena * arena)4250 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_FieldOptions_mutable_features(google_protobuf_FieldOptions* msg, upb_Arena* arena) {
4251   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_FieldOptions_features(msg);
4252   if (sub == NULL) {
4253     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
4254     if (sub) google_protobuf_FieldOptions_set_features(msg, sub);
4255   }
4256   return sub;
4257 }
google_protobuf_FieldOptions_mutable_uninterpreted_option(google_protobuf_FieldOptions * msg,size_t * size)4258 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FieldOptions_mutable_uninterpreted_option(google_protobuf_FieldOptions* msg, size_t* size) {
4259   upb_MiniTableField field = {999, UPB_SIZE(44, 56), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4260   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4261   if (arr) {
4262     if (size) *size = arr->UPB_PRIVATE(size);
4263     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
4264   } else {
4265     if (size) *size = 0;
4266     return NULL;
4267   }
4268 }
google_protobuf_FieldOptions_resize_uninterpreted_option(google_protobuf_FieldOptions * msg,size_t size,upb_Arena * arena)4269 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FieldOptions_resize_uninterpreted_option(google_protobuf_FieldOptions* msg, size_t size, upb_Arena* arena) {
4270   upb_MiniTableField field = {999, UPB_SIZE(44, 56), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4271   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4272                                                    &field, size, arena);
4273 }
google_protobuf_FieldOptions_add_uninterpreted_option(google_protobuf_FieldOptions * msg,upb_Arena * arena)4274 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FieldOptions_add_uninterpreted_option(google_protobuf_FieldOptions* msg, upb_Arena* arena) {
4275   upb_MiniTableField field = {999, UPB_SIZE(44, 56), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
4276   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4277       UPB_UPCAST(msg), &field, arena);
4278   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4279                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4280     return NULL;
4281   }
4282   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
4283   if (!arr || !sub) return NULL;
4284   UPB_PRIVATE(_upb_Array_Set)
4285   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
4286   return sub;
4287 }
4288 
4289 /* google.protobuf.FieldOptions.EditionDefault */
4290 
google_protobuf_FieldOptions_EditionDefault_new(upb_Arena * arena)4291 UPB_INLINE google_protobuf_FieldOptions_EditionDefault* google_protobuf_FieldOptions_EditionDefault_new(upb_Arena* arena) {
4292   return (google_protobuf_FieldOptions_EditionDefault*)_upb_Message_New(&google__protobuf__FieldOptions__EditionDefault_msg_init, arena);
4293 }
google_protobuf_FieldOptions_EditionDefault_parse(const char * buf,size_t size,upb_Arena * arena)4294 UPB_INLINE google_protobuf_FieldOptions_EditionDefault* google_protobuf_FieldOptions_EditionDefault_parse(const char* buf, size_t size, upb_Arena* arena) {
4295   google_protobuf_FieldOptions_EditionDefault* ret = google_protobuf_FieldOptions_EditionDefault_new(arena);
4296   if (!ret) return NULL;
4297   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldOptions__EditionDefault_msg_init, NULL, 0, arena) !=
4298       kUpb_DecodeStatus_Ok) {
4299     return NULL;
4300   }
4301   return ret;
4302 }
google_protobuf_FieldOptions_EditionDefault_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)4303 UPB_INLINE google_protobuf_FieldOptions_EditionDefault* google_protobuf_FieldOptions_EditionDefault_parse_ex(const char* buf, size_t size,
4304                            const upb_ExtensionRegistry* extreg,
4305                            int options, upb_Arena* arena) {
4306   google_protobuf_FieldOptions_EditionDefault* ret = google_protobuf_FieldOptions_EditionDefault_new(arena);
4307   if (!ret) return NULL;
4308   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldOptions__EditionDefault_msg_init, extreg, options,
4309                  arena) != kUpb_DecodeStatus_Ok) {
4310     return NULL;
4311   }
4312   return ret;
4313 }
google_protobuf_FieldOptions_EditionDefault_serialize(const google_protobuf_FieldOptions_EditionDefault * msg,upb_Arena * arena,size_t * len)4314 UPB_INLINE char* google_protobuf_FieldOptions_EditionDefault_serialize(const google_protobuf_FieldOptions_EditionDefault* msg, upb_Arena* arena, size_t* len) {
4315   char* ptr;
4316   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldOptions__EditionDefault_msg_init, 0, arena, &ptr, len);
4317   return ptr;
4318 }
google_protobuf_FieldOptions_EditionDefault_serialize_ex(const google_protobuf_FieldOptions_EditionDefault * msg,int options,upb_Arena * arena,size_t * len)4319 UPB_INLINE char* google_protobuf_FieldOptions_EditionDefault_serialize_ex(const google_protobuf_FieldOptions_EditionDefault* msg, int options,
4320                                  upb_Arena* arena, size_t* len) {
4321   char* ptr;
4322   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldOptions__EditionDefault_msg_init, options, arena, &ptr, len);
4323   return ptr;
4324 }
google_protobuf_FieldOptions_EditionDefault_clear_value(google_protobuf_FieldOptions_EditionDefault * msg)4325 UPB_INLINE void google_protobuf_FieldOptions_EditionDefault_clear_value(google_protobuf_FieldOptions_EditionDefault* msg) {
4326   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)};
4327   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4328 }
google_protobuf_FieldOptions_EditionDefault_value(const google_protobuf_FieldOptions_EditionDefault * msg)4329 UPB_INLINE upb_StringView google_protobuf_FieldOptions_EditionDefault_value(const google_protobuf_FieldOptions_EditionDefault* msg) {
4330   upb_StringView default_val = upb_StringView_FromString("");
4331   upb_StringView ret;
4332   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)};
4333   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4334                                     &default_val, &ret);
4335   return ret;
4336 }
google_protobuf_FieldOptions_EditionDefault_has_value(const google_protobuf_FieldOptions_EditionDefault * msg)4337 UPB_INLINE bool google_protobuf_FieldOptions_EditionDefault_has_value(const google_protobuf_FieldOptions_EditionDefault* msg) {
4338   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)};
4339   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4340 }
google_protobuf_FieldOptions_EditionDefault_clear_edition(google_protobuf_FieldOptions_EditionDefault * msg)4341 UPB_INLINE void google_protobuf_FieldOptions_EditionDefault_clear_edition(google_protobuf_FieldOptions_EditionDefault* msg) {
4342   const upb_MiniTableField field = {3, 12, 65, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4343   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4344 }
google_protobuf_FieldOptions_EditionDefault_edition(const google_protobuf_FieldOptions_EditionDefault * msg)4345 UPB_INLINE int32_t google_protobuf_FieldOptions_EditionDefault_edition(const google_protobuf_FieldOptions_EditionDefault* msg) {
4346   int32_t default_val = 0;
4347   int32_t ret;
4348   const upb_MiniTableField field = {3, 12, 65, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4349   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4350                                     &default_val, &ret);
4351   return ret;
4352 }
google_protobuf_FieldOptions_EditionDefault_has_edition(const google_protobuf_FieldOptions_EditionDefault * msg)4353 UPB_INLINE bool google_protobuf_FieldOptions_EditionDefault_has_edition(const google_protobuf_FieldOptions_EditionDefault* msg) {
4354   const upb_MiniTableField field = {3, 12, 65, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4355   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4356 }
4357 
google_protobuf_FieldOptions_EditionDefault_set_value(google_protobuf_FieldOptions_EditionDefault * msg,upb_StringView value)4358 UPB_INLINE void google_protobuf_FieldOptions_EditionDefault_set_value(google_protobuf_FieldOptions_EditionDefault *msg, upb_StringView value) {
4359   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)};
4360   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4361 }
google_protobuf_FieldOptions_EditionDefault_set_edition(google_protobuf_FieldOptions_EditionDefault * msg,int32_t value)4362 UPB_INLINE void google_protobuf_FieldOptions_EditionDefault_set_edition(google_protobuf_FieldOptions_EditionDefault *msg, int32_t value) {
4363   const upb_MiniTableField field = {3, 12, 65, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
4364   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4365 }
4366 
4367 /* google.protobuf.OneofOptions */
4368 
google_protobuf_OneofOptions_new(upb_Arena * arena)4369 UPB_INLINE google_protobuf_OneofOptions* google_protobuf_OneofOptions_new(upb_Arena* arena) {
4370   return (google_protobuf_OneofOptions*)_upb_Message_New(&google__protobuf__OneofOptions_msg_init, arena);
4371 }
google_protobuf_OneofOptions_parse(const char * buf,size_t size,upb_Arena * arena)4372 UPB_INLINE google_protobuf_OneofOptions* google_protobuf_OneofOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
4373   google_protobuf_OneofOptions* ret = google_protobuf_OneofOptions_new(arena);
4374   if (!ret) return NULL;
4375   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__OneofOptions_msg_init, NULL, 0, arena) !=
4376       kUpb_DecodeStatus_Ok) {
4377     return NULL;
4378   }
4379   return ret;
4380 }
google_protobuf_OneofOptions_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)4381 UPB_INLINE google_protobuf_OneofOptions* google_protobuf_OneofOptions_parse_ex(const char* buf, size_t size,
4382                            const upb_ExtensionRegistry* extreg,
4383                            int options, upb_Arena* arena) {
4384   google_protobuf_OneofOptions* ret = google_protobuf_OneofOptions_new(arena);
4385   if (!ret) return NULL;
4386   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__OneofOptions_msg_init, extreg, options,
4387                  arena) != kUpb_DecodeStatus_Ok) {
4388     return NULL;
4389   }
4390   return ret;
4391 }
google_protobuf_OneofOptions_serialize(const google_protobuf_OneofOptions * msg,upb_Arena * arena,size_t * len)4392 UPB_INLINE char* google_protobuf_OneofOptions_serialize(const google_protobuf_OneofOptions* msg, upb_Arena* arena, size_t* len) {
4393   char* ptr;
4394   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__OneofOptions_msg_init, 0, arena, &ptr, len);
4395   return ptr;
4396 }
google_protobuf_OneofOptions_serialize_ex(const google_protobuf_OneofOptions * msg,int options,upb_Arena * arena,size_t * len)4397 UPB_INLINE char* google_protobuf_OneofOptions_serialize_ex(const google_protobuf_OneofOptions* msg, int options,
4398                                  upb_Arena* arena, size_t* len) {
4399   char* ptr;
4400   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__OneofOptions_msg_init, options, arena, &ptr, len);
4401   return ptr;
4402 }
google_protobuf_OneofOptions_clear_features(google_protobuf_OneofOptions * msg)4403 UPB_INLINE void google_protobuf_OneofOptions_clear_features(google_protobuf_OneofOptions* msg) {
4404   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)};
4405   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4406 }
google_protobuf_OneofOptions_features(const google_protobuf_OneofOptions * msg)4407 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_OneofOptions_features(const google_protobuf_OneofOptions* msg) {
4408   const google_protobuf_FeatureSet* default_val = NULL;
4409   const google_protobuf_FeatureSet* ret;
4410   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)};
4411   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4412                                     &default_val, &ret);
4413   return ret;
4414 }
google_protobuf_OneofOptions_has_features(const google_protobuf_OneofOptions * msg)4415 UPB_INLINE bool google_protobuf_OneofOptions_has_features(const google_protobuf_OneofOptions* msg) {
4416   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)};
4417   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4418 }
google_protobuf_OneofOptions_clear_uninterpreted_option(google_protobuf_OneofOptions * msg)4419 UPB_INLINE void google_protobuf_OneofOptions_clear_uninterpreted_option(google_protobuf_OneofOptions* msg) {
4420   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)};
4421   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4422 }
google_protobuf_OneofOptions_uninterpreted_option(const google_protobuf_OneofOptions * msg,size_t * size)4423 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_OneofOptions_uninterpreted_option(const google_protobuf_OneofOptions* msg, size_t* size) {
4424   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)};
4425   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4426   if (arr) {
4427     if (size) *size = arr->UPB_PRIVATE(size);
4428     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
4429   } else {
4430     if (size) *size = 0;
4431     return NULL;
4432   }
4433 }
_google_protobuf_OneofOptions_uninterpreted_option_upb_array(const google_protobuf_OneofOptions * msg,size_t * size)4434 UPB_INLINE const upb_Array* _google_protobuf_OneofOptions_uninterpreted_option_upb_array(const google_protobuf_OneofOptions* msg, size_t* size) {
4435   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)};
4436   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4437   if (size) {
4438     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4439   }
4440   return arr;
4441 }
_google_protobuf_OneofOptions_uninterpreted_option_mutable_upb_array(google_protobuf_OneofOptions * msg,size_t * size,upb_Arena * arena)4442 UPB_INLINE upb_Array* _google_protobuf_OneofOptions_uninterpreted_option_mutable_upb_array(google_protobuf_OneofOptions* msg, size_t* size, upb_Arena* arena) {
4443   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)};
4444   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4445                                                        &field, arena);
4446   if (size) {
4447     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4448   }
4449   return arr;
4450 }
4451 
google_protobuf_OneofOptions_set_features(google_protobuf_OneofOptions * msg,google_protobuf_FeatureSet * value)4452 UPB_INLINE void google_protobuf_OneofOptions_set_features(google_protobuf_OneofOptions *msg, google_protobuf_FeatureSet* value) {
4453   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)};
4454   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4455 }
google_protobuf_OneofOptions_mutable_features(google_protobuf_OneofOptions * msg,upb_Arena * arena)4456 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_OneofOptions_mutable_features(google_protobuf_OneofOptions* msg, upb_Arena* arena) {
4457   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_OneofOptions_features(msg);
4458   if (sub == NULL) {
4459     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
4460     if (sub) google_protobuf_OneofOptions_set_features(msg, sub);
4461   }
4462   return sub;
4463 }
google_protobuf_OneofOptions_mutable_uninterpreted_option(google_protobuf_OneofOptions * msg,size_t * size)4464 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_OneofOptions_mutable_uninterpreted_option(google_protobuf_OneofOptions* msg, size_t* size) {
4465   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)};
4466   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4467   if (arr) {
4468     if (size) *size = arr->UPB_PRIVATE(size);
4469     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
4470   } else {
4471     if (size) *size = 0;
4472     return NULL;
4473   }
4474 }
google_protobuf_OneofOptions_resize_uninterpreted_option(google_protobuf_OneofOptions * msg,size_t size,upb_Arena * arena)4475 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_OneofOptions_resize_uninterpreted_option(google_protobuf_OneofOptions* msg, size_t size, upb_Arena* arena) {
4476   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)};
4477   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4478                                                    &field, size, arena);
4479 }
google_protobuf_OneofOptions_add_uninterpreted_option(google_protobuf_OneofOptions * msg,upb_Arena * arena)4480 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_OneofOptions_add_uninterpreted_option(google_protobuf_OneofOptions* msg, upb_Arena* arena) {
4481   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)};
4482   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4483       UPB_UPCAST(msg), &field, arena);
4484   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4485                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4486     return NULL;
4487   }
4488   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
4489   if (!arr || !sub) return NULL;
4490   UPB_PRIVATE(_upb_Array_Set)
4491   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
4492   return sub;
4493 }
4494 
4495 /* google.protobuf.EnumOptions */
4496 
google_protobuf_EnumOptions_new(upb_Arena * arena)4497 UPB_INLINE google_protobuf_EnumOptions* google_protobuf_EnumOptions_new(upb_Arena* arena) {
4498   return (google_protobuf_EnumOptions*)_upb_Message_New(&google__protobuf__EnumOptions_msg_init, arena);
4499 }
google_protobuf_EnumOptions_parse(const char * buf,size_t size,upb_Arena * arena)4500 UPB_INLINE google_protobuf_EnumOptions* google_protobuf_EnumOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
4501   google_protobuf_EnumOptions* ret = google_protobuf_EnumOptions_new(arena);
4502   if (!ret) return NULL;
4503   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumOptions_msg_init, NULL, 0, arena) !=
4504       kUpb_DecodeStatus_Ok) {
4505     return NULL;
4506   }
4507   return ret;
4508 }
google_protobuf_EnumOptions_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)4509 UPB_INLINE google_protobuf_EnumOptions* google_protobuf_EnumOptions_parse_ex(const char* buf, size_t size,
4510                            const upb_ExtensionRegistry* extreg,
4511                            int options, upb_Arena* arena) {
4512   google_protobuf_EnumOptions* ret = google_protobuf_EnumOptions_new(arena);
4513   if (!ret) return NULL;
4514   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumOptions_msg_init, extreg, options,
4515                  arena) != kUpb_DecodeStatus_Ok) {
4516     return NULL;
4517   }
4518   return ret;
4519 }
google_protobuf_EnumOptions_serialize(const google_protobuf_EnumOptions * msg,upb_Arena * arena,size_t * len)4520 UPB_INLINE char* google_protobuf_EnumOptions_serialize(const google_protobuf_EnumOptions* msg, upb_Arena* arena, size_t* len) {
4521   char* ptr;
4522   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumOptions_msg_init, 0, arena, &ptr, len);
4523   return ptr;
4524 }
google_protobuf_EnumOptions_serialize_ex(const google_protobuf_EnumOptions * msg,int options,upb_Arena * arena,size_t * len)4525 UPB_INLINE char* google_protobuf_EnumOptions_serialize_ex(const google_protobuf_EnumOptions* msg, int options,
4526                                  upb_Arena* arena, size_t* len) {
4527   char* ptr;
4528   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumOptions_msg_init, options, arena, &ptr, len);
4529   return ptr;
4530 }
google_protobuf_EnumOptions_clear_allow_alias(google_protobuf_EnumOptions * msg)4531 UPB_INLINE void google_protobuf_EnumOptions_clear_allow_alias(google_protobuf_EnumOptions* msg) {
4532   const upb_MiniTableField field = {2, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4533   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4534 }
google_protobuf_EnumOptions_allow_alias(const google_protobuf_EnumOptions * msg)4535 UPB_INLINE bool google_protobuf_EnumOptions_allow_alias(const google_protobuf_EnumOptions* msg) {
4536   bool default_val = false;
4537   bool ret;
4538   const upb_MiniTableField field = {2, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4539   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4540                                     &default_val, &ret);
4541   return ret;
4542 }
google_protobuf_EnumOptions_has_allow_alias(const google_protobuf_EnumOptions * msg)4543 UPB_INLINE bool google_protobuf_EnumOptions_has_allow_alias(const google_protobuf_EnumOptions* msg) {
4544   const upb_MiniTableField field = {2, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4545   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4546 }
google_protobuf_EnumOptions_clear_deprecated(google_protobuf_EnumOptions * msg)4547 UPB_INLINE void google_protobuf_EnumOptions_clear_deprecated(google_protobuf_EnumOptions* msg) {
4548   const upb_MiniTableField field = {3, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4549   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4550 }
google_protobuf_EnumOptions_deprecated(const google_protobuf_EnumOptions * msg)4551 UPB_INLINE bool google_protobuf_EnumOptions_deprecated(const google_protobuf_EnumOptions* msg) {
4552   bool default_val = false;
4553   bool ret;
4554   const upb_MiniTableField field = {3, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4555   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4556                                     &default_val, &ret);
4557   return ret;
4558 }
google_protobuf_EnumOptions_has_deprecated(const google_protobuf_EnumOptions * msg)4559 UPB_INLINE bool google_protobuf_EnumOptions_has_deprecated(const google_protobuf_EnumOptions* msg) {
4560   const upb_MiniTableField field = {3, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4561   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4562 }
google_protobuf_EnumOptions_clear_deprecated_legacy_json_field_conflicts(google_protobuf_EnumOptions * msg)4563 UPB_INLINE void google_protobuf_EnumOptions_clear_deprecated_legacy_json_field_conflicts(google_protobuf_EnumOptions* msg) {
4564   const upb_MiniTableField field = {6, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4565   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4566 }
google_protobuf_EnumOptions_deprecated_legacy_json_field_conflicts(const google_protobuf_EnumOptions * msg)4567 UPB_INLINE bool google_protobuf_EnumOptions_deprecated_legacy_json_field_conflicts(const google_protobuf_EnumOptions* msg) {
4568   bool default_val = false;
4569   bool ret;
4570   const upb_MiniTableField field = {6, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4571   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4572                                     &default_val, &ret);
4573   return ret;
4574 }
google_protobuf_EnumOptions_has_deprecated_legacy_json_field_conflicts(const google_protobuf_EnumOptions * msg)4575 UPB_INLINE bool google_protobuf_EnumOptions_has_deprecated_legacy_json_field_conflicts(const google_protobuf_EnumOptions* msg) {
4576   const upb_MiniTableField field = {6, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4577   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4578 }
google_protobuf_EnumOptions_clear_features(google_protobuf_EnumOptions * msg)4579 UPB_INLINE void google_protobuf_EnumOptions_clear_features(google_protobuf_EnumOptions* msg) {
4580   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)};
4581   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4582 }
google_protobuf_EnumOptions_features(const google_protobuf_EnumOptions * msg)4583 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_EnumOptions_features(const google_protobuf_EnumOptions* msg) {
4584   const google_protobuf_FeatureSet* default_val = NULL;
4585   const google_protobuf_FeatureSet* ret;
4586   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)};
4587   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4588                                     &default_val, &ret);
4589   return ret;
4590 }
google_protobuf_EnumOptions_has_features(const google_protobuf_EnumOptions * msg)4591 UPB_INLINE bool google_protobuf_EnumOptions_has_features(const google_protobuf_EnumOptions* msg) {
4592   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)};
4593   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4594 }
google_protobuf_EnumOptions_clear_uninterpreted_option(google_protobuf_EnumOptions * msg)4595 UPB_INLINE void google_protobuf_EnumOptions_clear_uninterpreted_option(google_protobuf_EnumOptions* msg) {
4596   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)};
4597   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4598 }
google_protobuf_EnumOptions_uninterpreted_option(const google_protobuf_EnumOptions * msg,size_t * size)4599 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_EnumOptions_uninterpreted_option(const google_protobuf_EnumOptions* msg, size_t* size) {
4600   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)};
4601   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4602   if (arr) {
4603     if (size) *size = arr->UPB_PRIVATE(size);
4604     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
4605   } else {
4606     if (size) *size = 0;
4607     return NULL;
4608   }
4609 }
_google_protobuf_EnumOptions_uninterpreted_option_upb_array(const google_protobuf_EnumOptions * msg,size_t * size)4610 UPB_INLINE const upb_Array* _google_protobuf_EnumOptions_uninterpreted_option_upb_array(const google_protobuf_EnumOptions* msg, size_t* size) {
4611   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)};
4612   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4613   if (size) {
4614     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4615   }
4616   return arr;
4617 }
_google_protobuf_EnumOptions_uninterpreted_option_mutable_upb_array(google_protobuf_EnumOptions * msg,size_t * size,upb_Arena * arena)4618 UPB_INLINE upb_Array* _google_protobuf_EnumOptions_uninterpreted_option_mutable_upb_array(google_protobuf_EnumOptions* msg, size_t* size, upb_Arena* arena) {
4619   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)};
4620   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4621                                                        &field, arena);
4622   if (size) {
4623     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4624   }
4625   return arr;
4626 }
4627 
google_protobuf_EnumOptions_set_allow_alias(google_protobuf_EnumOptions * msg,bool value)4628 UPB_INLINE void google_protobuf_EnumOptions_set_allow_alias(google_protobuf_EnumOptions *msg, bool value) {
4629   const upb_MiniTableField field = {2, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4630   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4631 }
google_protobuf_EnumOptions_set_deprecated(google_protobuf_EnumOptions * msg,bool value)4632 UPB_INLINE void google_protobuf_EnumOptions_set_deprecated(google_protobuf_EnumOptions *msg, bool value) {
4633   const upb_MiniTableField field = {3, 10, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4634   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4635 }
google_protobuf_EnumOptions_set_deprecated_legacy_json_field_conflicts(google_protobuf_EnumOptions * msg,bool value)4636 UPB_INLINE void google_protobuf_EnumOptions_set_deprecated_legacy_json_field_conflicts(google_protobuf_EnumOptions *msg, bool value) {
4637   const upb_MiniTableField field = {6, 11, 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4638   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4639 }
google_protobuf_EnumOptions_set_features(google_protobuf_EnumOptions * msg,google_protobuf_FeatureSet * value)4640 UPB_INLINE void google_protobuf_EnumOptions_set_features(google_protobuf_EnumOptions *msg, google_protobuf_FeatureSet* value) {
4641   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)};
4642   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4643 }
google_protobuf_EnumOptions_mutable_features(google_protobuf_EnumOptions * msg,upb_Arena * arena)4644 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_EnumOptions_mutable_features(google_protobuf_EnumOptions* msg, upb_Arena* arena) {
4645   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_EnumOptions_features(msg);
4646   if (sub == NULL) {
4647     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
4648     if (sub) google_protobuf_EnumOptions_set_features(msg, sub);
4649   }
4650   return sub;
4651 }
google_protobuf_EnumOptions_mutable_uninterpreted_option(google_protobuf_EnumOptions * msg,size_t * size)4652 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumOptions_mutable_uninterpreted_option(google_protobuf_EnumOptions* msg, size_t* size) {
4653   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)};
4654   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4655   if (arr) {
4656     if (size) *size = arr->UPB_PRIVATE(size);
4657     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
4658   } else {
4659     if (size) *size = 0;
4660     return NULL;
4661   }
4662 }
google_protobuf_EnumOptions_resize_uninterpreted_option(google_protobuf_EnumOptions * msg,size_t size,upb_Arena * arena)4663 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumOptions_resize_uninterpreted_option(google_protobuf_EnumOptions* msg, size_t size, upb_Arena* arena) {
4664   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)};
4665   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4666                                                    &field, size, arena);
4667 }
google_protobuf_EnumOptions_add_uninterpreted_option(google_protobuf_EnumOptions * msg,upb_Arena * arena)4668 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumOptions_add_uninterpreted_option(google_protobuf_EnumOptions* msg, upb_Arena* arena) {
4669   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)};
4670   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4671       UPB_UPCAST(msg), &field, arena);
4672   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4673                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4674     return NULL;
4675   }
4676   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
4677   if (!arr || !sub) return NULL;
4678   UPB_PRIVATE(_upb_Array_Set)
4679   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
4680   return sub;
4681 }
4682 
4683 /* google.protobuf.EnumValueOptions */
4684 
google_protobuf_EnumValueOptions_new(upb_Arena * arena)4685 UPB_INLINE google_protobuf_EnumValueOptions* google_protobuf_EnumValueOptions_new(upb_Arena* arena) {
4686   return (google_protobuf_EnumValueOptions*)_upb_Message_New(&google__protobuf__EnumValueOptions_msg_init, arena);
4687 }
google_protobuf_EnumValueOptions_parse(const char * buf,size_t size,upb_Arena * arena)4688 UPB_INLINE google_protobuf_EnumValueOptions* google_protobuf_EnumValueOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
4689   google_protobuf_EnumValueOptions* ret = google_protobuf_EnumValueOptions_new(arena);
4690   if (!ret) return NULL;
4691   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumValueOptions_msg_init, NULL, 0, arena) !=
4692       kUpb_DecodeStatus_Ok) {
4693     return NULL;
4694   }
4695   return ret;
4696 }
google_protobuf_EnumValueOptions_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)4697 UPB_INLINE google_protobuf_EnumValueOptions* google_protobuf_EnumValueOptions_parse_ex(const char* buf, size_t size,
4698                            const upb_ExtensionRegistry* extreg,
4699                            int options, upb_Arena* arena) {
4700   google_protobuf_EnumValueOptions* ret = google_protobuf_EnumValueOptions_new(arena);
4701   if (!ret) return NULL;
4702   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__EnumValueOptions_msg_init, extreg, options,
4703                  arena) != kUpb_DecodeStatus_Ok) {
4704     return NULL;
4705   }
4706   return ret;
4707 }
google_protobuf_EnumValueOptions_serialize(const google_protobuf_EnumValueOptions * msg,upb_Arena * arena,size_t * len)4708 UPB_INLINE char* google_protobuf_EnumValueOptions_serialize(const google_protobuf_EnumValueOptions* msg, upb_Arena* arena, size_t* len) {
4709   char* ptr;
4710   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumValueOptions_msg_init, 0, arena, &ptr, len);
4711   return ptr;
4712 }
google_protobuf_EnumValueOptions_serialize_ex(const google_protobuf_EnumValueOptions * msg,int options,upb_Arena * arena,size_t * len)4713 UPB_INLINE char* google_protobuf_EnumValueOptions_serialize_ex(const google_protobuf_EnumValueOptions* msg, int options,
4714                                  upb_Arena* arena, size_t* len) {
4715   char* ptr;
4716   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__EnumValueOptions_msg_init, options, arena, &ptr, len);
4717   return ptr;
4718 }
google_protobuf_EnumValueOptions_clear_deprecated(google_protobuf_EnumValueOptions * msg)4719 UPB_INLINE void google_protobuf_EnumValueOptions_clear_deprecated(google_protobuf_EnumValueOptions* msg) {
4720   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4721   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4722 }
google_protobuf_EnumValueOptions_deprecated(const google_protobuf_EnumValueOptions * msg)4723 UPB_INLINE bool google_protobuf_EnumValueOptions_deprecated(const google_protobuf_EnumValueOptions* msg) {
4724   bool default_val = false;
4725   bool ret;
4726   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4727   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4728                                     &default_val, &ret);
4729   return ret;
4730 }
google_protobuf_EnumValueOptions_has_deprecated(const google_protobuf_EnumValueOptions * msg)4731 UPB_INLINE bool google_protobuf_EnumValueOptions_has_deprecated(const google_protobuf_EnumValueOptions* msg) {
4732   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4733   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4734 }
google_protobuf_EnumValueOptions_clear_features(google_protobuf_EnumValueOptions * msg)4735 UPB_INLINE void google_protobuf_EnumValueOptions_clear_features(google_protobuf_EnumValueOptions* msg) {
4736   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)};
4737   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4738 }
google_protobuf_EnumValueOptions_features(const google_protobuf_EnumValueOptions * msg)4739 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_EnumValueOptions_features(const google_protobuf_EnumValueOptions* msg) {
4740   const google_protobuf_FeatureSet* default_val = NULL;
4741   const google_protobuf_FeatureSet* ret;
4742   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)};
4743   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4744                                     &default_val, &ret);
4745   return ret;
4746 }
google_protobuf_EnumValueOptions_has_features(const google_protobuf_EnumValueOptions * msg)4747 UPB_INLINE bool google_protobuf_EnumValueOptions_has_features(const google_protobuf_EnumValueOptions* msg) {
4748   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)};
4749   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4750 }
google_protobuf_EnumValueOptions_clear_debug_redact(google_protobuf_EnumValueOptions * msg)4751 UPB_INLINE void google_protobuf_EnumValueOptions_clear_debug_redact(google_protobuf_EnumValueOptions* msg) {
4752   const upb_MiniTableField field = {3, UPB_SIZE(16, 10), 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4753   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4754 }
google_protobuf_EnumValueOptions_debug_redact(const google_protobuf_EnumValueOptions * msg)4755 UPB_INLINE bool google_protobuf_EnumValueOptions_debug_redact(const google_protobuf_EnumValueOptions* msg) {
4756   bool default_val = false;
4757   bool ret;
4758   const upb_MiniTableField field = {3, UPB_SIZE(16, 10), 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4759   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4760                                     &default_val, &ret);
4761   return ret;
4762 }
google_protobuf_EnumValueOptions_has_debug_redact(const google_protobuf_EnumValueOptions * msg)4763 UPB_INLINE bool google_protobuf_EnumValueOptions_has_debug_redact(const google_protobuf_EnumValueOptions* msg) {
4764   const upb_MiniTableField field = {3, UPB_SIZE(16, 10), 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4765   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4766 }
google_protobuf_EnumValueOptions_clear_uninterpreted_option(google_protobuf_EnumValueOptions * msg)4767 UPB_INLINE void google_protobuf_EnumValueOptions_clear_uninterpreted_option(google_protobuf_EnumValueOptions* msg) {
4768   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)};
4769   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4770 }
google_protobuf_EnumValueOptions_uninterpreted_option(const google_protobuf_EnumValueOptions * msg,size_t * size)4771 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_EnumValueOptions_uninterpreted_option(const google_protobuf_EnumValueOptions* msg, size_t* size) {
4772   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)};
4773   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4774   if (arr) {
4775     if (size) *size = arr->UPB_PRIVATE(size);
4776     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
4777   } else {
4778     if (size) *size = 0;
4779     return NULL;
4780   }
4781 }
_google_protobuf_EnumValueOptions_uninterpreted_option_upb_array(const google_protobuf_EnumValueOptions * msg,size_t * size)4782 UPB_INLINE const upb_Array* _google_protobuf_EnumValueOptions_uninterpreted_option_upb_array(const google_protobuf_EnumValueOptions* msg, size_t* size) {
4783   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)};
4784   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4785   if (size) {
4786     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4787   }
4788   return arr;
4789 }
_google_protobuf_EnumValueOptions_uninterpreted_option_mutable_upb_array(google_protobuf_EnumValueOptions * msg,size_t * size,upb_Arena * arena)4790 UPB_INLINE upb_Array* _google_protobuf_EnumValueOptions_uninterpreted_option_mutable_upb_array(google_protobuf_EnumValueOptions* msg, size_t* size, upb_Arena* arena) {
4791   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)};
4792   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4793                                                        &field, arena);
4794   if (size) {
4795     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4796   }
4797   return arr;
4798 }
4799 
google_protobuf_EnumValueOptions_set_deprecated(google_protobuf_EnumValueOptions * msg,bool value)4800 UPB_INLINE void google_protobuf_EnumValueOptions_set_deprecated(google_protobuf_EnumValueOptions *msg, bool value) {
4801   const upb_MiniTableField field = {1, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4802   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4803 }
google_protobuf_EnumValueOptions_set_features(google_protobuf_EnumValueOptions * msg,google_protobuf_FeatureSet * value)4804 UPB_INLINE void google_protobuf_EnumValueOptions_set_features(google_protobuf_EnumValueOptions *msg, google_protobuf_FeatureSet* value) {
4805   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)};
4806   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4807 }
google_protobuf_EnumValueOptions_mutable_features(google_protobuf_EnumValueOptions * msg,upb_Arena * arena)4808 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_EnumValueOptions_mutable_features(google_protobuf_EnumValueOptions* msg, upb_Arena* arena) {
4809   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_EnumValueOptions_features(msg);
4810   if (sub == NULL) {
4811     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
4812     if (sub) google_protobuf_EnumValueOptions_set_features(msg, sub);
4813   }
4814   return sub;
4815 }
google_protobuf_EnumValueOptions_set_debug_redact(google_protobuf_EnumValueOptions * msg,bool value)4816 UPB_INLINE void google_protobuf_EnumValueOptions_set_debug_redact(google_protobuf_EnumValueOptions *msg, bool value) {
4817   const upb_MiniTableField field = {3, UPB_SIZE(16, 10), 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4818   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4819 }
google_protobuf_EnumValueOptions_mutable_uninterpreted_option(google_protobuf_EnumValueOptions * msg,size_t * size)4820 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumValueOptions_mutable_uninterpreted_option(google_protobuf_EnumValueOptions* msg, size_t* size) {
4821   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)};
4822   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4823   if (arr) {
4824     if (size) *size = arr->UPB_PRIVATE(size);
4825     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
4826   } else {
4827     if (size) *size = 0;
4828     return NULL;
4829   }
4830 }
google_protobuf_EnumValueOptions_resize_uninterpreted_option(google_protobuf_EnumValueOptions * msg,size_t size,upb_Arena * arena)4831 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumValueOptions_resize_uninterpreted_option(google_protobuf_EnumValueOptions* msg, size_t size, upb_Arena* arena) {
4832   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)};
4833   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4834                                                    &field, size, arena);
4835 }
google_protobuf_EnumValueOptions_add_uninterpreted_option(google_protobuf_EnumValueOptions * msg,upb_Arena * arena)4836 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumValueOptions_add_uninterpreted_option(google_protobuf_EnumValueOptions* msg, upb_Arena* arena) {
4837   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)};
4838   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4839       UPB_UPCAST(msg), &field, arena);
4840   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4841                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4842     return NULL;
4843   }
4844   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
4845   if (!arr || !sub) return NULL;
4846   UPB_PRIVATE(_upb_Array_Set)
4847   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
4848   return sub;
4849 }
4850 
4851 /* google.protobuf.ServiceOptions */
4852 
google_protobuf_ServiceOptions_new(upb_Arena * arena)4853 UPB_INLINE google_protobuf_ServiceOptions* google_protobuf_ServiceOptions_new(upb_Arena* arena) {
4854   return (google_protobuf_ServiceOptions*)_upb_Message_New(&google__protobuf__ServiceOptions_msg_init, arena);
4855 }
google_protobuf_ServiceOptions_parse(const char * buf,size_t size,upb_Arena * arena)4856 UPB_INLINE google_protobuf_ServiceOptions* google_protobuf_ServiceOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
4857   google_protobuf_ServiceOptions* ret = google_protobuf_ServiceOptions_new(arena);
4858   if (!ret) return NULL;
4859   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ServiceOptions_msg_init, NULL, 0, arena) !=
4860       kUpb_DecodeStatus_Ok) {
4861     return NULL;
4862   }
4863   return ret;
4864 }
google_protobuf_ServiceOptions_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)4865 UPB_INLINE google_protobuf_ServiceOptions* google_protobuf_ServiceOptions_parse_ex(const char* buf, size_t size,
4866                            const upb_ExtensionRegistry* extreg,
4867                            int options, upb_Arena* arena) {
4868   google_protobuf_ServiceOptions* ret = google_protobuf_ServiceOptions_new(arena);
4869   if (!ret) return NULL;
4870   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ServiceOptions_msg_init, extreg, options,
4871                  arena) != kUpb_DecodeStatus_Ok) {
4872     return NULL;
4873   }
4874   return ret;
4875 }
google_protobuf_ServiceOptions_serialize(const google_protobuf_ServiceOptions * msg,upb_Arena * arena,size_t * len)4876 UPB_INLINE char* google_protobuf_ServiceOptions_serialize(const google_protobuf_ServiceOptions* msg, upb_Arena* arena, size_t* len) {
4877   char* ptr;
4878   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ServiceOptions_msg_init, 0, arena, &ptr, len);
4879   return ptr;
4880 }
google_protobuf_ServiceOptions_serialize_ex(const google_protobuf_ServiceOptions * msg,int options,upb_Arena * arena,size_t * len)4881 UPB_INLINE char* google_protobuf_ServiceOptions_serialize_ex(const google_protobuf_ServiceOptions* msg, int options,
4882                                  upb_Arena* arena, size_t* len) {
4883   char* ptr;
4884   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ServiceOptions_msg_init, options, arena, &ptr, len);
4885   return ptr;
4886 }
google_protobuf_ServiceOptions_clear_deprecated(google_protobuf_ServiceOptions * msg)4887 UPB_INLINE void google_protobuf_ServiceOptions_clear_deprecated(google_protobuf_ServiceOptions* msg) {
4888   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4889   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4890 }
google_protobuf_ServiceOptions_deprecated(const google_protobuf_ServiceOptions * msg)4891 UPB_INLINE bool google_protobuf_ServiceOptions_deprecated(const google_protobuf_ServiceOptions* msg) {
4892   bool default_val = false;
4893   bool ret;
4894   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4895   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4896                                     &default_val, &ret);
4897   return ret;
4898 }
google_protobuf_ServiceOptions_has_deprecated(const google_protobuf_ServiceOptions * msg)4899 UPB_INLINE bool google_protobuf_ServiceOptions_has_deprecated(const google_protobuf_ServiceOptions* msg) {
4900   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4901   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4902 }
google_protobuf_ServiceOptions_clear_features(google_protobuf_ServiceOptions * msg)4903 UPB_INLINE void google_protobuf_ServiceOptions_clear_features(google_protobuf_ServiceOptions* msg) {
4904   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)};
4905   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4906 }
google_protobuf_ServiceOptions_features(const google_protobuf_ServiceOptions * msg)4907 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_ServiceOptions_features(const google_protobuf_ServiceOptions* msg) {
4908   const google_protobuf_FeatureSet* default_val = NULL;
4909   const google_protobuf_FeatureSet* ret;
4910   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)};
4911   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
4912                                     &default_val, &ret);
4913   return ret;
4914 }
google_protobuf_ServiceOptions_has_features(const google_protobuf_ServiceOptions * msg)4915 UPB_INLINE bool google_protobuf_ServiceOptions_has_features(const google_protobuf_ServiceOptions* msg) {
4916   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)};
4917   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
4918 }
google_protobuf_ServiceOptions_clear_uninterpreted_option(google_protobuf_ServiceOptions * msg)4919 UPB_INLINE void google_protobuf_ServiceOptions_clear_uninterpreted_option(google_protobuf_ServiceOptions* msg) {
4920   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)};
4921   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
4922 }
google_protobuf_ServiceOptions_uninterpreted_option(const google_protobuf_ServiceOptions * msg,size_t * size)4923 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_ServiceOptions_uninterpreted_option(const google_protobuf_ServiceOptions* msg, size_t* size) {
4924   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)};
4925   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4926   if (arr) {
4927     if (size) *size = arr->UPB_PRIVATE(size);
4928     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
4929   } else {
4930     if (size) *size = 0;
4931     return NULL;
4932   }
4933 }
_google_protobuf_ServiceOptions_uninterpreted_option_upb_array(const google_protobuf_ServiceOptions * msg,size_t * size)4934 UPB_INLINE const upb_Array* _google_protobuf_ServiceOptions_uninterpreted_option_upb_array(const google_protobuf_ServiceOptions* msg, size_t* size) {
4935   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)};
4936   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
4937   if (size) {
4938     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4939   }
4940   return arr;
4941 }
_google_protobuf_ServiceOptions_uninterpreted_option_mutable_upb_array(google_protobuf_ServiceOptions * msg,size_t * size,upb_Arena * arena)4942 UPB_INLINE upb_Array* _google_protobuf_ServiceOptions_uninterpreted_option_mutable_upb_array(google_protobuf_ServiceOptions* msg, size_t* size, upb_Arena* arena) {
4943   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)};
4944   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
4945                                                        &field, arena);
4946   if (size) {
4947     *size = arr ? arr->UPB_PRIVATE(size) : 0;
4948   }
4949   return arr;
4950 }
4951 
google_protobuf_ServiceOptions_set_deprecated(google_protobuf_ServiceOptions * msg,bool value)4952 UPB_INLINE void google_protobuf_ServiceOptions_set_deprecated(google_protobuf_ServiceOptions *msg, bool value) {
4953   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
4954   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4955 }
google_protobuf_ServiceOptions_set_features(google_protobuf_ServiceOptions * msg,google_protobuf_FeatureSet * value)4956 UPB_INLINE void google_protobuf_ServiceOptions_set_features(google_protobuf_ServiceOptions *msg, google_protobuf_FeatureSet* value) {
4957   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)};
4958   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
4959 }
google_protobuf_ServiceOptions_mutable_features(google_protobuf_ServiceOptions * msg,upb_Arena * arena)4960 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_ServiceOptions_mutable_features(google_protobuf_ServiceOptions* msg, upb_Arena* arena) {
4961   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_ServiceOptions_features(msg);
4962   if (sub == NULL) {
4963     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
4964     if (sub) google_protobuf_ServiceOptions_set_features(msg, sub);
4965   }
4966   return sub;
4967 }
google_protobuf_ServiceOptions_mutable_uninterpreted_option(google_protobuf_ServiceOptions * msg,size_t * size)4968 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ServiceOptions_mutable_uninterpreted_option(google_protobuf_ServiceOptions* msg, size_t* size) {
4969   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)};
4970   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
4971   if (arr) {
4972     if (size) *size = arr->UPB_PRIVATE(size);
4973     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
4974   } else {
4975     if (size) *size = 0;
4976     return NULL;
4977   }
4978 }
google_protobuf_ServiceOptions_resize_uninterpreted_option(google_protobuf_ServiceOptions * msg,size_t size,upb_Arena * arena)4979 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ServiceOptions_resize_uninterpreted_option(google_protobuf_ServiceOptions* msg, size_t size, upb_Arena* arena) {
4980   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)};
4981   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
4982                                                    &field, size, arena);
4983 }
google_protobuf_ServiceOptions_add_uninterpreted_option(google_protobuf_ServiceOptions * msg,upb_Arena * arena)4984 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_ServiceOptions_add_uninterpreted_option(google_protobuf_ServiceOptions* msg, upb_Arena* arena) {
4985   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)};
4986   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
4987       UPB_UPCAST(msg), &field, arena);
4988   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
4989                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
4990     return NULL;
4991   }
4992   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
4993   if (!arr || !sub) return NULL;
4994   UPB_PRIVATE(_upb_Array_Set)
4995   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
4996   return sub;
4997 }
4998 
4999 /* google.protobuf.MethodOptions */
5000 
google_protobuf_MethodOptions_new(upb_Arena * arena)5001 UPB_INLINE google_protobuf_MethodOptions* google_protobuf_MethodOptions_new(upb_Arena* arena) {
5002   return (google_protobuf_MethodOptions*)_upb_Message_New(&google__protobuf__MethodOptions_msg_init, arena);
5003 }
google_protobuf_MethodOptions_parse(const char * buf,size_t size,upb_Arena * arena)5004 UPB_INLINE google_protobuf_MethodOptions* google_protobuf_MethodOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
5005   google_protobuf_MethodOptions* ret = google_protobuf_MethodOptions_new(arena);
5006   if (!ret) return NULL;
5007   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MethodOptions_msg_init, NULL, 0, arena) !=
5008       kUpb_DecodeStatus_Ok) {
5009     return NULL;
5010   }
5011   return ret;
5012 }
google_protobuf_MethodOptions_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)5013 UPB_INLINE google_protobuf_MethodOptions* google_protobuf_MethodOptions_parse_ex(const char* buf, size_t size,
5014                            const upb_ExtensionRegistry* extreg,
5015                            int options, upb_Arena* arena) {
5016   google_protobuf_MethodOptions* ret = google_protobuf_MethodOptions_new(arena);
5017   if (!ret) return NULL;
5018   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__MethodOptions_msg_init, extreg, options,
5019                  arena) != kUpb_DecodeStatus_Ok) {
5020     return NULL;
5021   }
5022   return ret;
5023 }
google_protobuf_MethodOptions_serialize(const google_protobuf_MethodOptions * msg,upb_Arena * arena,size_t * len)5024 UPB_INLINE char* google_protobuf_MethodOptions_serialize(const google_protobuf_MethodOptions* msg, upb_Arena* arena, size_t* len) {
5025   char* ptr;
5026   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MethodOptions_msg_init, 0, arena, &ptr, len);
5027   return ptr;
5028 }
google_protobuf_MethodOptions_serialize_ex(const google_protobuf_MethodOptions * msg,int options,upb_Arena * arena,size_t * len)5029 UPB_INLINE char* google_protobuf_MethodOptions_serialize_ex(const google_protobuf_MethodOptions* msg, int options,
5030                                  upb_Arena* arena, size_t* len) {
5031   char* ptr;
5032   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__MethodOptions_msg_init, options, arena, &ptr, len);
5033   return ptr;
5034 }
google_protobuf_MethodOptions_clear_deprecated(google_protobuf_MethodOptions * msg)5035 UPB_INLINE void google_protobuf_MethodOptions_clear_deprecated(google_protobuf_MethodOptions* msg) {
5036   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5037   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5038 }
google_protobuf_MethodOptions_deprecated(const google_protobuf_MethodOptions * msg)5039 UPB_INLINE bool google_protobuf_MethodOptions_deprecated(const google_protobuf_MethodOptions* msg) {
5040   bool default_val = false;
5041   bool ret;
5042   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5043   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5044                                     &default_val, &ret);
5045   return ret;
5046 }
google_protobuf_MethodOptions_has_deprecated(const google_protobuf_MethodOptions * msg)5047 UPB_INLINE bool google_protobuf_MethodOptions_has_deprecated(const google_protobuf_MethodOptions* msg) {
5048   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5049   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5050 }
google_protobuf_MethodOptions_clear_idempotency_level(google_protobuf_MethodOptions * msg)5051 UPB_INLINE void google_protobuf_MethodOptions_clear_idempotency_level(google_protobuf_MethodOptions* msg) {
5052   const upb_MiniTableField field = {34, 12, 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5053   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5054 }
google_protobuf_MethodOptions_idempotency_level(const google_protobuf_MethodOptions * msg)5055 UPB_INLINE int32_t google_protobuf_MethodOptions_idempotency_level(const google_protobuf_MethodOptions* msg) {
5056   int32_t default_val = 0;
5057   int32_t ret;
5058   const upb_MiniTableField field = {34, 12, 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5059   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5060                                     &default_val, &ret);
5061   return ret;
5062 }
google_protobuf_MethodOptions_has_idempotency_level(const google_protobuf_MethodOptions * msg)5063 UPB_INLINE bool google_protobuf_MethodOptions_has_idempotency_level(const google_protobuf_MethodOptions* msg) {
5064   const upb_MiniTableField field = {34, 12, 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5065   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5066 }
google_protobuf_MethodOptions_clear_features(google_protobuf_MethodOptions * msg)5067 UPB_INLINE void google_protobuf_MethodOptions_clear_features(google_protobuf_MethodOptions* msg) {
5068   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)};
5069   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5070 }
google_protobuf_MethodOptions_features(const google_protobuf_MethodOptions * msg)5071 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_MethodOptions_features(const google_protobuf_MethodOptions* msg) {
5072   const google_protobuf_FeatureSet* default_val = NULL;
5073   const google_protobuf_FeatureSet* ret;
5074   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)};
5075   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5076                                     &default_val, &ret);
5077   return ret;
5078 }
google_protobuf_MethodOptions_has_features(const google_protobuf_MethodOptions * msg)5079 UPB_INLINE bool google_protobuf_MethodOptions_has_features(const google_protobuf_MethodOptions* msg) {
5080   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)};
5081   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5082 }
google_protobuf_MethodOptions_clear_uninterpreted_option(google_protobuf_MethodOptions * msg)5083 UPB_INLINE void google_protobuf_MethodOptions_clear_uninterpreted_option(google_protobuf_MethodOptions* msg) {
5084   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)};
5085   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5086 }
google_protobuf_MethodOptions_uninterpreted_option(const google_protobuf_MethodOptions * msg,size_t * size)5087 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_MethodOptions_uninterpreted_option(const google_protobuf_MethodOptions* msg, size_t* size) {
5088   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)};
5089   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5090   if (arr) {
5091     if (size) *size = arr->UPB_PRIVATE(size);
5092     return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
5093   } else {
5094     if (size) *size = 0;
5095     return NULL;
5096   }
5097 }
_google_protobuf_MethodOptions_uninterpreted_option_upb_array(const google_protobuf_MethodOptions * msg,size_t * size)5098 UPB_INLINE const upb_Array* _google_protobuf_MethodOptions_uninterpreted_option_upb_array(const google_protobuf_MethodOptions* msg, size_t* size) {
5099   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)};
5100   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5101   if (size) {
5102     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5103   }
5104   return arr;
5105 }
_google_protobuf_MethodOptions_uninterpreted_option_mutable_upb_array(google_protobuf_MethodOptions * msg,size_t * size,upb_Arena * arena)5106 UPB_INLINE upb_Array* _google_protobuf_MethodOptions_uninterpreted_option_mutable_upb_array(google_protobuf_MethodOptions* msg, size_t* size, upb_Arena* arena) {
5107   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)};
5108   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
5109                                                        &field, arena);
5110   if (size) {
5111     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5112   }
5113   return arr;
5114 }
5115 
google_protobuf_MethodOptions_set_deprecated(google_protobuf_MethodOptions * msg,bool value)5116 UPB_INLINE void google_protobuf_MethodOptions_set_deprecated(google_protobuf_MethodOptions *msg, bool value) {
5117   const upb_MiniTableField field = {33, 9, 64, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5118   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5119 }
google_protobuf_MethodOptions_set_idempotency_level(google_protobuf_MethodOptions * msg,int32_t value)5120 UPB_INLINE void google_protobuf_MethodOptions_set_idempotency_level(google_protobuf_MethodOptions *msg, int32_t value) {
5121   const upb_MiniTableField field = {34, 12, 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5122   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5123 }
google_protobuf_MethodOptions_set_features(google_protobuf_MethodOptions * msg,google_protobuf_FeatureSet * value)5124 UPB_INLINE void google_protobuf_MethodOptions_set_features(google_protobuf_MethodOptions *msg, google_protobuf_FeatureSet* value) {
5125   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)};
5126   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5127 }
google_protobuf_MethodOptions_mutable_features(google_protobuf_MethodOptions * msg,upb_Arena * arena)5128 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_MethodOptions_mutable_features(google_protobuf_MethodOptions* msg, upb_Arena* arena) {
5129   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_MethodOptions_features(msg);
5130   if (sub == NULL) {
5131     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
5132     if (sub) google_protobuf_MethodOptions_set_features(msg, sub);
5133   }
5134   return sub;
5135 }
google_protobuf_MethodOptions_mutable_uninterpreted_option(google_protobuf_MethodOptions * msg,size_t * size)5136 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MethodOptions_mutable_uninterpreted_option(google_protobuf_MethodOptions* msg, size_t* size) {
5137   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)};
5138   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
5139   if (arr) {
5140     if (size) *size = arr->UPB_PRIVATE(size);
5141     return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
5142   } else {
5143     if (size) *size = 0;
5144     return NULL;
5145   }
5146 }
google_protobuf_MethodOptions_resize_uninterpreted_option(google_protobuf_MethodOptions * msg,size_t size,upb_Arena * arena)5147 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MethodOptions_resize_uninterpreted_option(google_protobuf_MethodOptions* msg, size_t size, upb_Arena* arena) {
5148   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)};
5149   return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
5150                                                    &field, size, arena);
5151 }
google_protobuf_MethodOptions_add_uninterpreted_option(google_protobuf_MethodOptions * msg,upb_Arena * arena)5152 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MethodOptions_add_uninterpreted_option(google_protobuf_MethodOptions* msg, upb_Arena* arena) {
5153   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)};
5154   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
5155       UPB_UPCAST(msg), &field, arena);
5156   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
5157                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
5158     return NULL;
5159   }
5160   struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
5161   if (!arr || !sub) return NULL;
5162   UPB_PRIVATE(_upb_Array_Set)
5163   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
5164   return sub;
5165 }
5166 
5167 /* google.protobuf.UninterpretedOption */
5168 
google_protobuf_UninterpretedOption_new(upb_Arena * arena)5169 UPB_INLINE google_protobuf_UninterpretedOption* google_protobuf_UninterpretedOption_new(upb_Arena* arena) {
5170   return (google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
5171 }
google_protobuf_UninterpretedOption_parse(const char * buf,size_t size,upb_Arena * arena)5172 UPB_INLINE google_protobuf_UninterpretedOption* google_protobuf_UninterpretedOption_parse(const char* buf, size_t size, upb_Arena* arena) {
5173   google_protobuf_UninterpretedOption* ret = google_protobuf_UninterpretedOption_new(arena);
5174   if (!ret) return NULL;
5175   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__UninterpretedOption_msg_init, NULL, 0, arena) !=
5176       kUpb_DecodeStatus_Ok) {
5177     return NULL;
5178   }
5179   return ret;
5180 }
google_protobuf_UninterpretedOption_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)5181 UPB_INLINE google_protobuf_UninterpretedOption* google_protobuf_UninterpretedOption_parse_ex(const char* buf, size_t size,
5182                            const upb_ExtensionRegistry* extreg,
5183                            int options, upb_Arena* arena) {
5184   google_protobuf_UninterpretedOption* ret = google_protobuf_UninterpretedOption_new(arena);
5185   if (!ret) return NULL;
5186   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__UninterpretedOption_msg_init, extreg, options,
5187                  arena) != kUpb_DecodeStatus_Ok) {
5188     return NULL;
5189   }
5190   return ret;
5191 }
google_protobuf_UninterpretedOption_serialize(const google_protobuf_UninterpretedOption * msg,upb_Arena * arena,size_t * len)5192 UPB_INLINE char* google_protobuf_UninterpretedOption_serialize(const google_protobuf_UninterpretedOption* msg, upb_Arena* arena, size_t* len) {
5193   char* ptr;
5194   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__UninterpretedOption_msg_init, 0, arena, &ptr, len);
5195   return ptr;
5196 }
google_protobuf_UninterpretedOption_serialize_ex(const google_protobuf_UninterpretedOption * msg,int options,upb_Arena * arena,size_t * len)5197 UPB_INLINE char* google_protobuf_UninterpretedOption_serialize_ex(const google_protobuf_UninterpretedOption* msg, int options,
5198                                  upb_Arena* arena, size_t* len) {
5199   char* ptr;
5200   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__UninterpretedOption_msg_init, options, arena, &ptr, len);
5201   return ptr;
5202 }
google_protobuf_UninterpretedOption_clear_name(google_protobuf_UninterpretedOption * msg)5203 UPB_INLINE void google_protobuf_UninterpretedOption_clear_name(google_protobuf_UninterpretedOption* msg) {
5204   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)};
5205   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5206 }
google_protobuf_UninterpretedOption_name(const google_protobuf_UninterpretedOption * msg,size_t * size)5207 UPB_INLINE const google_protobuf_UninterpretedOption_NamePart* const* google_protobuf_UninterpretedOption_name(const google_protobuf_UninterpretedOption* msg, size_t* size) {
5208   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)};
5209   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5210   if (arr) {
5211     if (size) *size = arr->UPB_PRIVATE(size);
5212     return (const google_protobuf_UninterpretedOption_NamePart* const*)upb_Array_DataPtr(arr);
5213   } else {
5214     if (size) *size = 0;
5215     return NULL;
5216   }
5217 }
_google_protobuf_UninterpretedOption_name_upb_array(const google_protobuf_UninterpretedOption * msg,size_t * size)5218 UPB_INLINE const upb_Array* _google_protobuf_UninterpretedOption_name_upb_array(const google_protobuf_UninterpretedOption* msg, size_t* size) {
5219   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)};
5220   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5221   if (size) {
5222     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5223   }
5224   return arr;
5225 }
_google_protobuf_UninterpretedOption_name_mutable_upb_array(google_protobuf_UninterpretedOption * msg,size_t * size,upb_Arena * arena)5226 UPB_INLINE upb_Array* _google_protobuf_UninterpretedOption_name_mutable_upb_array(google_protobuf_UninterpretedOption* msg, size_t* size, upb_Arena* arena) {
5227   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)};
5228   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
5229                                                        &field, arena);
5230   if (size) {
5231     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5232   }
5233   return arr;
5234 }
google_protobuf_UninterpretedOption_clear_identifier_value(google_protobuf_UninterpretedOption * msg)5235 UPB_INLINE void google_protobuf_UninterpretedOption_clear_identifier_value(google_protobuf_UninterpretedOption* msg) {
5236   const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5237   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5238 }
google_protobuf_UninterpretedOption_identifier_value(const google_protobuf_UninterpretedOption * msg)5239 UPB_INLINE upb_StringView google_protobuf_UninterpretedOption_identifier_value(const google_protobuf_UninterpretedOption* msg) {
5240   upb_StringView default_val = upb_StringView_FromString("");
5241   upb_StringView ret;
5242   const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5243   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5244                                     &default_val, &ret);
5245   return ret;
5246 }
google_protobuf_UninterpretedOption_has_identifier_value(const google_protobuf_UninterpretedOption * msg)5247 UPB_INLINE bool google_protobuf_UninterpretedOption_has_identifier_value(const google_protobuf_UninterpretedOption* msg) {
5248   const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5249   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5250 }
google_protobuf_UninterpretedOption_clear_positive_int_value(google_protobuf_UninterpretedOption * msg)5251 UPB_INLINE void google_protobuf_UninterpretedOption_clear_positive_int_value(google_protobuf_UninterpretedOption* msg) {
5252   const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 65, kUpb_NoSub, 4, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5253   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5254 }
google_protobuf_UninterpretedOption_positive_int_value(const google_protobuf_UninterpretedOption * msg)5255 UPB_INLINE uint64_t google_protobuf_UninterpretedOption_positive_int_value(const google_protobuf_UninterpretedOption* msg) {
5256   uint64_t default_val = (uint64_t)0ull;
5257   uint64_t ret;
5258   const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 65, kUpb_NoSub, 4, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5259   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5260                                     &default_val, &ret);
5261   return ret;
5262 }
google_protobuf_UninterpretedOption_has_positive_int_value(const google_protobuf_UninterpretedOption * msg)5263 UPB_INLINE bool google_protobuf_UninterpretedOption_has_positive_int_value(const google_protobuf_UninterpretedOption* msg) {
5264   const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 65, kUpb_NoSub, 4, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5265   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5266 }
google_protobuf_UninterpretedOption_clear_negative_int_value(google_protobuf_UninterpretedOption * msg)5267 UPB_INLINE void google_protobuf_UninterpretedOption_clear_negative_int_value(google_protobuf_UninterpretedOption* msg) {
5268   const upb_MiniTableField field = {5, UPB_SIZE(32, 48), 66, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5269   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5270 }
google_protobuf_UninterpretedOption_negative_int_value(const google_protobuf_UninterpretedOption * msg)5271 UPB_INLINE int64_t google_protobuf_UninterpretedOption_negative_int_value(const google_protobuf_UninterpretedOption* msg) {
5272   int64_t default_val = (int64_t)0ll;
5273   int64_t ret;
5274   const upb_MiniTableField field = {5, UPB_SIZE(32, 48), 66, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5275   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5276                                     &default_val, &ret);
5277   return ret;
5278 }
google_protobuf_UninterpretedOption_has_negative_int_value(const google_protobuf_UninterpretedOption * msg)5279 UPB_INLINE bool google_protobuf_UninterpretedOption_has_negative_int_value(const google_protobuf_UninterpretedOption* msg) {
5280   const upb_MiniTableField field = {5, UPB_SIZE(32, 48), 66, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5281   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5282 }
google_protobuf_UninterpretedOption_clear_double_value(google_protobuf_UninterpretedOption * msg)5283 UPB_INLINE void google_protobuf_UninterpretedOption_clear_double_value(google_protobuf_UninterpretedOption* msg) {
5284   const upb_MiniTableField field = {6, UPB_SIZE(40, 56), 67, kUpb_NoSub, 1, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5285   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5286 }
google_protobuf_UninterpretedOption_double_value(const google_protobuf_UninterpretedOption * msg)5287 UPB_INLINE double google_protobuf_UninterpretedOption_double_value(const google_protobuf_UninterpretedOption* msg) {
5288   double default_val = 0;
5289   double ret;
5290   const upb_MiniTableField field = {6, UPB_SIZE(40, 56), 67, kUpb_NoSub, 1, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5291   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5292                                     &default_val, &ret);
5293   return ret;
5294 }
google_protobuf_UninterpretedOption_has_double_value(const google_protobuf_UninterpretedOption * msg)5295 UPB_INLINE bool google_protobuf_UninterpretedOption_has_double_value(const google_protobuf_UninterpretedOption* msg) {
5296   const upb_MiniTableField field = {6, UPB_SIZE(40, 56), 67, kUpb_NoSub, 1, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5297   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5298 }
google_protobuf_UninterpretedOption_clear_string_value(google_protobuf_UninterpretedOption * msg)5299 UPB_INLINE void google_protobuf_UninterpretedOption_clear_string_value(google_protobuf_UninterpretedOption* msg) {
5300   const upb_MiniTableField field = {7, UPB_SIZE(48, 64), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5301   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5302 }
google_protobuf_UninterpretedOption_string_value(const google_protobuf_UninterpretedOption * msg)5303 UPB_INLINE upb_StringView google_protobuf_UninterpretedOption_string_value(const google_protobuf_UninterpretedOption* msg) {
5304   upb_StringView default_val = upb_StringView_FromString("");
5305   upb_StringView ret;
5306   const upb_MiniTableField field = {7, UPB_SIZE(48, 64), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5307   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5308                                     &default_val, &ret);
5309   return ret;
5310 }
google_protobuf_UninterpretedOption_has_string_value(const google_protobuf_UninterpretedOption * msg)5311 UPB_INLINE bool google_protobuf_UninterpretedOption_has_string_value(const google_protobuf_UninterpretedOption* msg) {
5312   const upb_MiniTableField field = {7, UPB_SIZE(48, 64), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5313   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5314 }
google_protobuf_UninterpretedOption_clear_aggregate_value(google_protobuf_UninterpretedOption * msg)5315 UPB_INLINE void google_protobuf_UninterpretedOption_clear_aggregate_value(google_protobuf_UninterpretedOption* msg) {
5316   const upb_MiniTableField field = {8, UPB_SIZE(56, 80), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5317   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5318 }
google_protobuf_UninterpretedOption_aggregate_value(const google_protobuf_UninterpretedOption * msg)5319 UPB_INLINE upb_StringView google_protobuf_UninterpretedOption_aggregate_value(const google_protobuf_UninterpretedOption* msg) {
5320   upb_StringView default_val = upb_StringView_FromString("");
5321   upb_StringView ret;
5322   const upb_MiniTableField field = {8, UPB_SIZE(56, 80), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5323   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5324                                     &default_val, &ret);
5325   return ret;
5326 }
google_protobuf_UninterpretedOption_has_aggregate_value(const google_protobuf_UninterpretedOption * msg)5327 UPB_INLINE bool google_protobuf_UninterpretedOption_has_aggregate_value(const google_protobuf_UninterpretedOption* msg) {
5328   const upb_MiniTableField field = {8, UPB_SIZE(56, 80), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5329   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5330 }
5331 
google_protobuf_UninterpretedOption_mutable_name(google_protobuf_UninterpretedOption * msg,size_t * size)5332 UPB_INLINE google_protobuf_UninterpretedOption_NamePart** google_protobuf_UninterpretedOption_mutable_name(google_protobuf_UninterpretedOption* msg, size_t* size) {
5333   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)};
5334   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
5335   if (arr) {
5336     if (size) *size = arr->UPB_PRIVATE(size);
5337     return (google_protobuf_UninterpretedOption_NamePart**)upb_Array_MutableDataPtr(arr);
5338   } else {
5339     if (size) *size = 0;
5340     return NULL;
5341   }
5342 }
google_protobuf_UninterpretedOption_resize_name(google_protobuf_UninterpretedOption * msg,size_t size,upb_Arena * arena)5343 UPB_INLINE google_protobuf_UninterpretedOption_NamePart** google_protobuf_UninterpretedOption_resize_name(google_protobuf_UninterpretedOption* msg, size_t size, upb_Arena* arena) {
5344   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)};
5345   return (google_protobuf_UninterpretedOption_NamePart**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
5346                                                    &field, size, arena);
5347 }
google_protobuf_UninterpretedOption_add_name(google_protobuf_UninterpretedOption * msg,upb_Arena * arena)5348 UPB_INLINE struct google_protobuf_UninterpretedOption_NamePart* google_protobuf_UninterpretedOption_add_name(google_protobuf_UninterpretedOption* msg, upb_Arena* arena) {
5349   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)};
5350   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
5351       UPB_UPCAST(msg), &field, arena);
5352   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
5353                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
5354     return NULL;
5355   }
5356   struct google_protobuf_UninterpretedOption_NamePart* sub = (struct google_protobuf_UninterpretedOption_NamePart*)_upb_Message_New(&google__protobuf__UninterpretedOption__NamePart_msg_init, arena);
5357   if (!arr || !sub) return NULL;
5358   UPB_PRIVATE(_upb_Array_Set)
5359   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
5360   return sub;
5361 }
google_protobuf_UninterpretedOption_set_identifier_value(google_protobuf_UninterpretedOption * msg,upb_StringView value)5362 UPB_INLINE void google_protobuf_UninterpretedOption_set_identifier_value(google_protobuf_UninterpretedOption *msg, upb_StringView value) {
5363   const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5364   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5365 }
google_protobuf_UninterpretedOption_set_positive_int_value(google_protobuf_UninterpretedOption * msg,uint64_t value)5366 UPB_INLINE void google_protobuf_UninterpretedOption_set_positive_int_value(google_protobuf_UninterpretedOption *msg, uint64_t value) {
5367   const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 65, kUpb_NoSub, 4, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5368   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5369 }
google_protobuf_UninterpretedOption_set_negative_int_value(google_protobuf_UninterpretedOption * msg,int64_t value)5370 UPB_INLINE void google_protobuf_UninterpretedOption_set_negative_int_value(google_protobuf_UninterpretedOption *msg, int64_t value) {
5371   const upb_MiniTableField field = {5, UPB_SIZE(32, 48), 66, kUpb_NoSub, 3, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5372   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5373 }
google_protobuf_UninterpretedOption_set_double_value(google_protobuf_UninterpretedOption * msg,double value)5374 UPB_INLINE void google_protobuf_UninterpretedOption_set_double_value(google_protobuf_UninterpretedOption *msg, double value) {
5375   const upb_MiniTableField field = {6, UPB_SIZE(40, 56), 67, kUpb_NoSub, 1, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)};
5376   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5377 }
google_protobuf_UninterpretedOption_set_string_value(google_protobuf_UninterpretedOption * msg,upb_StringView value)5378 UPB_INLINE void google_protobuf_UninterpretedOption_set_string_value(google_protobuf_UninterpretedOption *msg, upb_StringView value) {
5379   const upb_MiniTableField field = {7, UPB_SIZE(48, 64), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5380   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5381 }
google_protobuf_UninterpretedOption_set_aggregate_value(google_protobuf_UninterpretedOption * msg,upb_StringView value)5382 UPB_INLINE void google_protobuf_UninterpretedOption_set_aggregate_value(google_protobuf_UninterpretedOption *msg, upb_StringView value) {
5383   const upb_MiniTableField field = {8, UPB_SIZE(56, 80), 69, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
5384   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5385 }
5386 
5387 /* google.protobuf.UninterpretedOption.NamePart */
5388 
google_protobuf_UninterpretedOption_NamePart_new(upb_Arena * arena)5389 UPB_INLINE google_protobuf_UninterpretedOption_NamePart* google_protobuf_UninterpretedOption_NamePart_new(upb_Arena* arena) {
5390   return (google_protobuf_UninterpretedOption_NamePart*)_upb_Message_New(&google__protobuf__UninterpretedOption__NamePart_msg_init, arena);
5391 }
google_protobuf_UninterpretedOption_NamePart_parse(const char * buf,size_t size,upb_Arena * arena)5392 UPB_INLINE google_protobuf_UninterpretedOption_NamePart* google_protobuf_UninterpretedOption_NamePart_parse(const char* buf, size_t size, upb_Arena* arena) {
5393   google_protobuf_UninterpretedOption_NamePart* ret = google_protobuf_UninterpretedOption_NamePart_new(arena);
5394   if (!ret) return NULL;
5395   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__UninterpretedOption__NamePart_msg_init, NULL, 0, arena) !=
5396       kUpb_DecodeStatus_Ok) {
5397     return NULL;
5398   }
5399   return ret;
5400 }
google_protobuf_UninterpretedOption_NamePart_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)5401 UPB_INLINE google_protobuf_UninterpretedOption_NamePart* google_protobuf_UninterpretedOption_NamePart_parse_ex(const char* buf, size_t size,
5402                            const upb_ExtensionRegistry* extreg,
5403                            int options, upb_Arena* arena) {
5404   google_protobuf_UninterpretedOption_NamePart* ret = google_protobuf_UninterpretedOption_NamePart_new(arena);
5405   if (!ret) return NULL;
5406   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__UninterpretedOption__NamePart_msg_init, extreg, options,
5407                  arena) != kUpb_DecodeStatus_Ok) {
5408     return NULL;
5409   }
5410   return ret;
5411 }
google_protobuf_UninterpretedOption_NamePart_serialize(const google_protobuf_UninterpretedOption_NamePart * msg,upb_Arena * arena,size_t * len)5412 UPB_INLINE char* google_protobuf_UninterpretedOption_NamePart_serialize(const google_protobuf_UninterpretedOption_NamePart* msg, upb_Arena* arena, size_t* len) {
5413   char* ptr;
5414   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__UninterpretedOption__NamePart_msg_init, 0, arena, &ptr, len);
5415   return ptr;
5416 }
google_protobuf_UninterpretedOption_NamePart_serialize_ex(const google_protobuf_UninterpretedOption_NamePart * msg,int options,upb_Arena * arena,size_t * len)5417 UPB_INLINE char* google_protobuf_UninterpretedOption_NamePart_serialize_ex(const google_protobuf_UninterpretedOption_NamePart* msg, int options,
5418                                  upb_Arena* arena, size_t* len) {
5419   char* ptr;
5420   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__UninterpretedOption__NamePart_msg_init, options, arena, &ptr, len);
5421   return ptr;
5422 }
google_protobuf_UninterpretedOption_NamePart_clear_name_part(google_protobuf_UninterpretedOption_NamePart * msg)5423 UPB_INLINE void google_protobuf_UninterpretedOption_NamePart_clear_name_part(google_protobuf_UninterpretedOption_NamePart* msg) {
5424   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)};
5425   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5426 }
google_protobuf_UninterpretedOption_NamePart_name_part(const google_protobuf_UninterpretedOption_NamePart * msg)5427 UPB_INLINE upb_StringView google_protobuf_UninterpretedOption_NamePart_name_part(const google_protobuf_UninterpretedOption_NamePart* msg) {
5428   upb_StringView default_val = upb_StringView_FromString("");
5429   upb_StringView ret;
5430   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)};
5431   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5432                                     &default_val, &ret);
5433   return ret;
5434 }
google_protobuf_UninterpretedOption_NamePart_has_name_part(const google_protobuf_UninterpretedOption_NamePart * msg)5435 UPB_INLINE bool google_protobuf_UninterpretedOption_NamePart_has_name_part(const google_protobuf_UninterpretedOption_NamePart* msg) {
5436   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)};
5437   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5438 }
google_protobuf_UninterpretedOption_NamePart_clear_is_extension(google_protobuf_UninterpretedOption_NamePart * msg)5439 UPB_INLINE void google_protobuf_UninterpretedOption_NamePart_clear_is_extension(google_protobuf_UninterpretedOption_NamePart* msg) {
5440   const upb_MiniTableField field = {2, 9, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5441   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5442 }
google_protobuf_UninterpretedOption_NamePart_is_extension(const google_protobuf_UninterpretedOption_NamePart * msg)5443 UPB_INLINE bool google_protobuf_UninterpretedOption_NamePart_is_extension(const google_protobuf_UninterpretedOption_NamePart* msg) {
5444   bool default_val = false;
5445   bool ret;
5446   const upb_MiniTableField field = {2, 9, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5447   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5448                                     &default_val, &ret);
5449   return ret;
5450 }
google_protobuf_UninterpretedOption_NamePart_has_is_extension(const google_protobuf_UninterpretedOption_NamePart * msg)5451 UPB_INLINE bool google_protobuf_UninterpretedOption_NamePart_has_is_extension(const google_protobuf_UninterpretedOption_NamePart* msg) {
5452   const upb_MiniTableField field = {2, 9, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5453   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5454 }
5455 
google_protobuf_UninterpretedOption_NamePart_set_name_part(google_protobuf_UninterpretedOption_NamePart * msg,upb_StringView value)5456 UPB_INLINE void google_protobuf_UninterpretedOption_NamePart_set_name_part(google_protobuf_UninterpretedOption_NamePart *msg, upb_StringView value) {
5457   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)};
5458   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5459 }
google_protobuf_UninterpretedOption_NamePart_set_is_extension(google_protobuf_UninterpretedOption_NamePart * msg,bool value)5460 UPB_INLINE void google_protobuf_UninterpretedOption_NamePart_set_is_extension(google_protobuf_UninterpretedOption_NamePart *msg, bool value) {
5461   const upb_MiniTableField field = {2, 9, 65, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
5462   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5463 }
5464 
5465 /* google.protobuf.FeatureSet */
5466 
google_protobuf_FeatureSet_new(upb_Arena * arena)5467 UPB_INLINE google_protobuf_FeatureSet* google_protobuf_FeatureSet_new(upb_Arena* arena) {
5468   return (google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
5469 }
google_protobuf_FeatureSet_parse(const char * buf,size_t size,upb_Arena * arena)5470 UPB_INLINE google_protobuf_FeatureSet* google_protobuf_FeatureSet_parse(const char* buf, size_t size, upb_Arena* arena) {
5471   google_protobuf_FeatureSet* ret = google_protobuf_FeatureSet_new(arena);
5472   if (!ret) return NULL;
5473   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSet_msg_init, NULL, 0, arena) !=
5474       kUpb_DecodeStatus_Ok) {
5475     return NULL;
5476   }
5477   return ret;
5478 }
google_protobuf_FeatureSet_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)5479 UPB_INLINE google_protobuf_FeatureSet* google_protobuf_FeatureSet_parse_ex(const char* buf, size_t size,
5480                            const upb_ExtensionRegistry* extreg,
5481                            int options, upb_Arena* arena) {
5482   google_protobuf_FeatureSet* ret = google_protobuf_FeatureSet_new(arena);
5483   if (!ret) return NULL;
5484   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSet_msg_init, extreg, options,
5485                  arena) != kUpb_DecodeStatus_Ok) {
5486     return NULL;
5487   }
5488   return ret;
5489 }
google_protobuf_FeatureSet_serialize(const google_protobuf_FeatureSet * msg,upb_Arena * arena,size_t * len)5490 UPB_INLINE char* google_protobuf_FeatureSet_serialize(const google_protobuf_FeatureSet* msg, upb_Arena* arena, size_t* len) {
5491   char* ptr;
5492   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSet_msg_init, 0, arena, &ptr, len);
5493   return ptr;
5494 }
google_protobuf_FeatureSet_serialize_ex(const google_protobuf_FeatureSet * msg,int options,upb_Arena * arena,size_t * len)5495 UPB_INLINE char* google_protobuf_FeatureSet_serialize_ex(const google_protobuf_FeatureSet* msg, int options,
5496                                  upb_Arena* arena, size_t* len) {
5497   char* ptr;
5498   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSet_msg_init, options, arena, &ptr, len);
5499   return ptr;
5500 }
google_protobuf_FeatureSet_clear_field_presence(google_protobuf_FeatureSet * msg)5501 UPB_INLINE void google_protobuf_FeatureSet_clear_field_presence(google_protobuf_FeatureSet* msg) {
5502   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5503   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5504 }
google_protobuf_FeatureSet_field_presence(const google_protobuf_FeatureSet * msg)5505 UPB_INLINE int32_t google_protobuf_FeatureSet_field_presence(const google_protobuf_FeatureSet* msg) {
5506   int32_t default_val = 0;
5507   int32_t ret;
5508   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5509   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5510                                     &default_val, &ret);
5511   return ret;
5512 }
google_protobuf_FeatureSet_has_field_presence(const google_protobuf_FeatureSet * msg)5513 UPB_INLINE bool google_protobuf_FeatureSet_has_field_presence(const google_protobuf_FeatureSet* msg) {
5514   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5515   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5516 }
google_protobuf_FeatureSet_clear_enum_type(google_protobuf_FeatureSet * msg)5517 UPB_INLINE void google_protobuf_FeatureSet_clear_enum_type(google_protobuf_FeatureSet* msg) {
5518   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5519   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5520 }
google_protobuf_FeatureSet_enum_type(const google_protobuf_FeatureSet * msg)5521 UPB_INLINE int32_t google_protobuf_FeatureSet_enum_type(const google_protobuf_FeatureSet* msg) {
5522   int32_t default_val = 0;
5523   int32_t ret;
5524   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5525   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5526                                     &default_val, &ret);
5527   return ret;
5528 }
google_protobuf_FeatureSet_has_enum_type(const google_protobuf_FeatureSet * msg)5529 UPB_INLINE bool google_protobuf_FeatureSet_has_enum_type(const google_protobuf_FeatureSet* msg) {
5530   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5531   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5532 }
google_protobuf_FeatureSet_clear_repeated_field_encoding(google_protobuf_FeatureSet * msg)5533 UPB_INLINE void google_protobuf_FeatureSet_clear_repeated_field_encoding(google_protobuf_FeatureSet* msg) {
5534   const upb_MiniTableField field = {3, 20, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5535   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5536 }
google_protobuf_FeatureSet_repeated_field_encoding(const google_protobuf_FeatureSet * msg)5537 UPB_INLINE int32_t google_protobuf_FeatureSet_repeated_field_encoding(const google_protobuf_FeatureSet* msg) {
5538   int32_t default_val = 0;
5539   int32_t ret;
5540   const upb_MiniTableField field = {3, 20, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5541   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5542                                     &default_val, &ret);
5543   return ret;
5544 }
google_protobuf_FeatureSet_has_repeated_field_encoding(const google_protobuf_FeatureSet * msg)5545 UPB_INLINE bool google_protobuf_FeatureSet_has_repeated_field_encoding(const google_protobuf_FeatureSet* msg) {
5546   const upb_MiniTableField field = {3, 20, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5547   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5548 }
google_protobuf_FeatureSet_clear_utf8_validation(google_protobuf_FeatureSet * msg)5549 UPB_INLINE void google_protobuf_FeatureSet_clear_utf8_validation(google_protobuf_FeatureSet* msg) {
5550   const upb_MiniTableField field = {4, 24, 67, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5551   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5552 }
google_protobuf_FeatureSet_utf8_validation(const google_protobuf_FeatureSet * msg)5553 UPB_INLINE int32_t google_protobuf_FeatureSet_utf8_validation(const google_protobuf_FeatureSet* msg) {
5554   int32_t default_val = 0;
5555   int32_t ret;
5556   const upb_MiniTableField field = {4, 24, 67, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5557   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5558                                     &default_val, &ret);
5559   return ret;
5560 }
google_protobuf_FeatureSet_has_utf8_validation(const google_protobuf_FeatureSet * msg)5561 UPB_INLINE bool google_protobuf_FeatureSet_has_utf8_validation(const google_protobuf_FeatureSet* msg) {
5562   const upb_MiniTableField field = {4, 24, 67, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5563   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5564 }
google_protobuf_FeatureSet_clear_message_encoding(google_protobuf_FeatureSet * msg)5565 UPB_INLINE void google_protobuf_FeatureSet_clear_message_encoding(google_protobuf_FeatureSet* msg) {
5566   const upb_MiniTableField field = {5, 28, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5567   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5568 }
google_protobuf_FeatureSet_message_encoding(const google_protobuf_FeatureSet * msg)5569 UPB_INLINE int32_t google_protobuf_FeatureSet_message_encoding(const google_protobuf_FeatureSet* msg) {
5570   int32_t default_val = 0;
5571   int32_t ret;
5572   const upb_MiniTableField field = {5, 28, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5573   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5574                                     &default_val, &ret);
5575   return ret;
5576 }
google_protobuf_FeatureSet_has_message_encoding(const google_protobuf_FeatureSet * msg)5577 UPB_INLINE bool google_protobuf_FeatureSet_has_message_encoding(const google_protobuf_FeatureSet* msg) {
5578   const upb_MiniTableField field = {5, 28, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5579   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5580 }
google_protobuf_FeatureSet_clear_json_format(google_protobuf_FeatureSet * msg)5581 UPB_INLINE void google_protobuf_FeatureSet_clear_json_format(google_protobuf_FeatureSet* msg) {
5582   const upb_MiniTableField field = {6, 32, 69, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5583   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5584 }
google_protobuf_FeatureSet_json_format(const google_protobuf_FeatureSet * msg)5585 UPB_INLINE int32_t google_protobuf_FeatureSet_json_format(const google_protobuf_FeatureSet* msg) {
5586   int32_t default_val = 0;
5587   int32_t ret;
5588   const upb_MiniTableField field = {6, 32, 69, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5589   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5590                                     &default_val, &ret);
5591   return ret;
5592 }
google_protobuf_FeatureSet_has_json_format(const google_protobuf_FeatureSet * msg)5593 UPB_INLINE bool google_protobuf_FeatureSet_has_json_format(const google_protobuf_FeatureSet* msg) {
5594   const upb_MiniTableField field = {6, 32, 69, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5595   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5596 }
5597 
google_protobuf_FeatureSet_set_field_presence(google_protobuf_FeatureSet * msg,int32_t value)5598 UPB_INLINE void google_protobuf_FeatureSet_set_field_presence(google_protobuf_FeatureSet *msg, int32_t value) {
5599   const upb_MiniTableField field = {1, 12, 64, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5600   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5601 }
google_protobuf_FeatureSet_set_enum_type(google_protobuf_FeatureSet * msg,int32_t value)5602 UPB_INLINE void google_protobuf_FeatureSet_set_enum_type(google_protobuf_FeatureSet *msg, int32_t value) {
5603   const upb_MiniTableField field = {2, 16, 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5604   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5605 }
google_protobuf_FeatureSet_set_repeated_field_encoding(google_protobuf_FeatureSet * msg,int32_t value)5606 UPB_INLINE void google_protobuf_FeatureSet_set_repeated_field_encoding(google_protobuf_FeatureSet *msg, int32_t value) {
5607   const upb_MiniTableField field = {3, 20, 66, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5608   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5609 }
google_protobuf_FeatureSet_set_utf8_validation(google_protobuf_FeatureSet * msg,int32_t value)5610 UPB_INLINE void google_protobuf_FeatureSet_set_utf8_validation(google_protobuf_FeatureSet *msg, int32_t value) {
5611   const upb_MiniTableField field = {4, 24, 67, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5612   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5613 }
google_protobuf_FeatureSet_set_message_encoding(google_protobuf_FeatureSet * msg,int32_t value)5614 UPB_INLINE void google_protobuf_FeatureSet_set_message_encoding(google_protobuf_FeatureSet *msg, int32_t value) {
5615   const upb_MiniTableField field = {5, 28, 68, 4, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5616   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5617 }
google_protobuf_FeatureSet_set_json_format(google_protobuf_FeatureSet * msg,int32_t value)5618 UPB_INLINE void google_protobuf_FeatureSet_set_json_format(google_protobuf_FeatureSet *msg, int32_t value) {
5619   const upb_MiniTableField field = {6, 32, 69, 5, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5620   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5621 }
5622 
5623 /* google.protobuf.FeatureSetDefaults */
5624 
google_protobuf_FeatureSetDefaults_new(upb_Arena * arena)5625 UPB_INLINE google_protobuf_FeatureSetDefaults* google_protobuf_FeatureSetDefaults_new(upb_Arena* arena) {
5626   return (google_protobuf_FeatureSetDefaults*)_upb_Message_New(&google__protobuf__FeatureSetDefaults_msg_init, arena);
5627 }
google_protobuf_FeatureSetDefaults_parse(const char * buf,size_t size,upb_Arena * arena)5628 UPB_INLINE google_protobuf_FeatureSetDefaults* google_protobuf_FeatureSetDefaults_parse(const char* buf, size_t size, upb_Arena* arena) {
5629   google_protobuf_FeatureSetDefaults* ret = google_protobuf_FeatureSetDefaults_new(arena);
5630   if (!ret) return NULL;
5631   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSetDefaults_msg_init, NULL, 0, arena) !=
5632       kUpb_DecodeStatus_Ok) {
5633     return NULL;
5634   }
5635   return ret;
5636 }
google_protobuf_FeatureSetDefaults_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)5637 UPB_INLINE google_protobuf_FeatureSetDefaults* google_protobuf_FeatureSetDefaults_parse_ex(const char* buf, size_t size,
5638                            const upb_ExtensionRegistry* extreg,
5639                            int options, upb_Arena* arena) {
5640   google_protobuf_FeatureSetDefaults* ret = google_protobuf_FeatureSetDefaults_new(arena);
5641   if (!ret) return NULL;
5642   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSetDefaults_msg_init, extreg, options,
5643                  arena) != kUpb_DecodeStatus_Ok) {
5644     return NULL;
5645   }
5646   return ret;
5647 }
google_protobuf_FeatureSetDefaults_serialize(const google_protobuf_FeatureSetDefaults * msg,upb_Arena * arena,size_t * len)5648 UPB_INLINE char* google_protobuf_FeatureSetDefaults_serialize(const google_protobuf_FeatureSetDefaults* msg, upb_Arena* arena, size_t* len) {
5649   char* ptr;
5650   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSetDefaults_msg_init, 0, arena, &ptr, len);
5651   return ptr;
5652 }
google_protobuf_FeatureSetDefaults_serialize_ex(const google_protobuf_FeatureSetDefaults * msg,int options,upb_Arena * arena,size_t * len)5653 UPB_INLINE char* google_protobuf_FeatureSetDefaults_serialize_ex(const google_protobuf_FeatureSetDefaults* msg, int options,
5654                                  upb_Arena* arena, size_t* len) {
5655   char* ptr;
5656   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSetDefaults_msg_init, options, arena, &ptr, len);
5657   return ptr;
5658 }
google_protobuf_FeatureSetDefaults_clear_defaults(google_protobuf_FeatureSetDefaults * msg)5659 UPB_INLINE void google_protobuf_FeatureSetDefaults_clear_defaults(google_protobuf_FeatureSetDefaults* msg) {
5660   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)};
5661   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5662 }
google_protobuf_FeatureSetDefaults_defaults(const google_protobuf_FeatureSetDefaults * msg,size_t * size)5663 UPB_INLINE const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* const* google_protobuf_FeatureSetDefaults_defaults(const google_protobuf_FeatureSetDefaults* msg, size_t* size) {
5664   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)};
5665   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5666   if (arr) {
5667     if (size) *size = arr->UPB_PRIVATE(size);
5668     return (const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* const*)upb_Array_DataPtr(arr);
5669   } else {
5670     if (size) *size = 0;
5671     return NULL;
5672   }
5673 }
_google_protobuf_FeatureSetDefaults_defaults_upb_array(const google_protobuf_FeatureSetDefaults * msg,size_t * size)5674 UPB_INLINE const upb_Array* _google_protobuf_FeatureSetDefaults_defaults_upb_array(const google_protobuf_FeatureSetDefaults* msg, size_t* size) {
5675   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)};
5676   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5677   if (size) {
5678     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5679   }
5680   return arr;
5681 }
_google_protobuf_FeatureSetDefaults_defaults_mutable_upb_array(google_protobuf_FeatureSetDefaults * msg,size_t * size,upb_Arena * arena)5682 UPB_INLINE upb_Array* _google_protobuf_FeatureSetDefaults_defaults_mutable_upb_array(google_protobuf_FeatureSetDefaults* msg, size_t* size, upb_Arena* arena) {
5683   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)};
5684   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
5685                                                        &field, arena);
5686   if (size) {
5687     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5688   }
5689   return arr;
5690 }
google_protobuf_FeatureSetDefaults_clear_minimum_edition(google_protobuf_FeatureSetDefaults * msg)5691 UPB_INLINE void google_protobuf_FeatureSetDefaults_clear_minimum_edition(google_protobuf_FeatureSetDefaults* msg) {
5692   const upb_MiniTableField field = {4, UPB_SIZE(16, 12), 64, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5693   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5694 }
google_protobuf_FeatureSetDefaults_minimum_edition(const google_protobuf_FeatureSetDefaults * msg)5695 UPB_INLINE int32_t google_protobuf_FeatureSetDefaults_minimum_edition(const google_protobuf_FeatureSetDefaults* msg) {
5696   int32_t default_val = 0;
5697   int32_t ret;
5698   const upb_MiniTableField field = {4, UPB_SIZE(16, 12), 64, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5699   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5700                                     &default_val, &ret);
5701   return ret;
5702 }
google_protobuf_FeatureSetDefaults_has_minimum_edition(const google_protobuf_FeatureSetDefaults * msg)5703 UPB_INLINE bool google_protobuf_FeatureSetDefaults_has_minimum_edition(const google_protobuf_FeatureSetDefaults* msg) {
5704   const upb_MiniTableField field = {4, UPB_SIZE(16, 12), 64, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5705   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5706 }
google_protobuf_FeatureSetDefaults_clear_maximum_edition(google_protobuf_FeatureSetDefaults * msg)5707 UPB_INLINE void google_protobuf_FeatureSetDefaults_clear_maximum_edition(google_protobuf_FeatureSetDefaults* msg) {
5708   const upb_MiniTableField field = {5, UPB_SIZE(20, 16), 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5709   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5710 }
google_protobuf_FeatureSetDefaults_maximum_edition(const google_protobuf_FeatureSetDefaults * msg)5711 UPB_INLINE int32_t google_protobuf_FeatureSetDefaults_maximum_edition(const google_protobuf_FeatureSetDefaults* msg) {
5712   int32_t default_val = 0;
5713   int32_t ret;
5714   const upb_MiniTableField field = {5, UPB_SIZE(20, 16), 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5715   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5716                                     &default_val, &ret);
5717   return ret;
5718 }
google_protobuf_FeatureSetDefaults_has_maximum_edition(const google_protobuf_FeatureSetDefaults * msg)5719 UPB_INLINE bool google_protobuf_FeatureSetDefaults_has_maximum_edition(const google_protobuf_FeatureSetDefaults* msg) {
5720   const upb_MiniTableField field = {5, UPB_SIZE(20, 16), 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5721   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5722 }
5723 
google_protobuf_FeatureSetDefaults_mutable_defaults(google_protobuf_FeatureSetDefaults * msg,size_t * size)5724 UPB_INLINE google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault** google_protobuf_FeatureSetDefaults_mutable_defaults(google_protobuf_FeatureSetDefaults* msg, size_t* size) {
5725   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)};
5726   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
5727   if (arr) {
5728     if (size) *size = arr->UPB_PRIVATE(size);
5729     return (google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault**)upb_Array_MutableDataPtr(arr);
5730   } else {
5731     if (size) *size = 0;
5732     return NULL;
5733   }
5734 }
google_protobuf_FeatureSetDefaults_resize_defaults(google_protobuf_FeatureSetDefaults * msg,size_t size,upb_Arena * arena)5735 UPB_INLINE google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault** google_protobuf_FeatureSetDefaults_resize_defaults(google_protobuf_FeatureSetDefaults* msg, size_t size, upb_Arena* arena) {
5736   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)};
5737   return (google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
5738                                                    &field, size, arena);
5739 }
google_protobuf_FeatureSetDefaults_add_defaults(google_protobuf_FeatureSetDefaults * msg,upb_Arena * arena)5740 UPB_INLINE struct google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* google_protobuf_FeatureSetDefaults_add_defaults(google_protobuf_FeatureSetDefaults* msg, upb_Arena* arena) {
5741   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)};
5742   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
5743       UPB_UPCAST(msg), &field, arena);
5744   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
5745                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
5746     return NULL;
5747   }
5748   struct google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* sub = (struct google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault*)_upb_Message_New(&google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, arena);
5749   if (!arr || !sub) return NULL;
5750   UPB_PRIVATE(_upb_Array_Set)
5751   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
5752   return sub;
5753 }
google_protobuf_FeatureSetDefaults_set_minimum_edition(google_protobuf_FeatureSetDefaults * msg,int32_t value)5754 UPB_INLINE void google_protobuf_FeatureSetDefaults_set_minimum_edition(google_protobuf_FeatureSetDefaults *msg, int32_t value) {
5755   const upb_MiniTableField field = {4, UPB_SIZE(16, 12), 64, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5756   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5757 }
google_protobuf_FeatureSetDefaults_set_maximum_edition(google_protobuf_FeatureSetDefaults * msg,int32_t value)5758 UPB_INLINE void google_protobuf_FeatureSetDefaults_set_maximum_edition(google_protobuf_FeatureSetDefaults *msg, int32_t value) {
5759   const upb_MiniTableField field = {5, UPB_SIZE(20, 16), 65, 2, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5760   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5761 }
5762 
5763 /* google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault */
5764 
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_new(upb_Arena * arena)5765 UPB_INLINE google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_new(upb_Arena* arena) {
5766   return (google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault*)_upb_Message_New(&google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, arena);
5767 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_parse(const char * buf,size_t size,upb_Arena * arena)5768 UPB_INLINE google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_parse(const char* buf, size_t size, upb_Arena* arena) {
5769   google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* ret = google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_new(arena);
5770   if (!ret) return NULL;
5771   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, NULL, 0, arena) !=
5772       kUpb_DecodeStatus_Ok) {
5773     return NULL;
5774   }
5775   return ret;
5776 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)5777 UPB_INLINE google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_parse_ex(const char* buf, size_t size,
5778                            const upb_ExtensionRegistry* extreg,
5779                            int options, upb_Arena* arena) {
5780   google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* ret = google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_new(arena);
5781   if (!ret) return NULL;
5782   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, extreg, options,
5783                  arena) != kUpb_DecodeStatus_Ok) {
5784     return NULL;
5785   }
5786   return ret;
5787 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_serialize(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault * msg,upb_Arena * arena,size_t * len)5788 UPB_INLINE char* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_serialize(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg, upb_Arena* arena, size_t* len) {
5789   char* ptr;
5790   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, 0, arena, &ptr, len);
5791   return ptr;
5792 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_serialize_ex(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault * msg,int options,upb_Arena * arena,size_t * len)5793 UPB_INLINE char* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_serialize_ex(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg, int options,
5794                                  upb_Arena* arena, size_t* len) {
5795   char* ptr;
5796   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init, options, arena, &ptr, len);
5797   return ptr;
5798 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_clear_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault * msg)5799 UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_clear_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
5800   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5801   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5802 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault * msg)5803 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
5804   const google_protobuf_FeatureSet* default_val = NULL;
5805   const google_protobuf_FeatureSet* ret;
5806   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5807   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5808                                     &default_val, &ret);
5809   return ret;
5810 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_has_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault * msg)5811 UPB_INLINE bool google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_has_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
5812   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5813   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5814 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_clear_edition(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault * msg)5815 UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_clear_edition(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
5816   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5817   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5818 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_edition(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault * msg)5819 UPB_INLINE int32_t google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_edition(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
5820   int32_t default_val = 0;
5821   int32_t ret;
5822   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5823   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
5824                                     &default_val, &ret);
5825   return ret;
5826 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_has_edition(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault * msg)5827 UPB_INLINE bool google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_has_edition(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) {
5828   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5829   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
5830 }
5831 
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault * msg,google_protobuf_FeatureSet * value)5832 UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault *msg, google_protobuf_FeatureSet* value) {
5833   const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5834   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5835 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_mutable_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault * msg,upb_Arena * arena)5836 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_mutable_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg, upb_Arena* arena) {
5837   struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_features(msg);
5838   if (sub == NULL) {
5839     sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
5840     if (sub) google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_features(msg, sub);
5841   }
5842   return sub;
5843 }
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_edition(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault * msg,int32_t value)5844 UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_edition(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault *msg, int32_t value) {
5845   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
5846   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
5847 }
5848 
5849 /* google.protobuf.SourceCodeInfo */
5850 
google_protobuf_SourceCodeInfo_new(upb_Arena * arena)5851 UPB_INLINE google_protobuf_SourceCodeInfo* google_protobuf_SourceCodeInfo_new(upb_Arena* arena) {
5852   return (google_protobuf_SourceCodeInfo*)_upb_Message_New(&google__protobuf__SourceCodeInfo_msg_init, arena);
5853 }
google_protobuf_SourceCodeInfo_parse(const char * buf,size_t size,upb_Arena * arena)5854 UPB_INLINE google_protobuf_SourceCodeInfo* google_protobuf_SourceCodeInfo_parse(const char* buf, size_t size, upb_Arena* arena) {
5855   google_protobuf_SourceCodeInfo* ret = google_protobuf_SourceCodeInfo_new(arena);
5856   if (!ret) return NULL;
5857   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__SourceCodeInfo_msg_init, NULL, 0, arena) !=
5858       kUpb_DecodeStatus_Ok) {
5859     return NULL;
5860   }
5861   return ret;
5862 }
google_protobuf_SourceCodeInfo_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)5863 UPB_INLINE google_protobuf_SourceCodeInfo* google_protobuf_SourceCodeInfo_parse_ex(const char* buf, size_t size,
5864                            const upb_ExtensionRegistry* extreg,
5865                            int options, upb_Arena* arena) {
5866   google_protobuf_SourceCodeInfo* ret = google_protobuf_SourceCodeInfo_new(arena);
5867   if (!ret) return NULL;
5868   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__SourceCodeInfo_msg_init, extreg, options,
5869                  arena) != kUpb_DecodeStatus_Ok) {
5870     return NULL;
5871   }
5872   return ret;
5873 }
google_protobuf_SourceCodeInfo_serialize(const google_protobuf_SourceCodeInfo * msg,upb_Arena * arena,size_t * len)5874 UPB_INLINE char* google_protobuf_SourceCodeInfo_serialize(const google_protobuf_SourceCodeInfo* msg, upb_Arena* arena, size_t* len) {
5875   char* ptr;
5876   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__SourceCodeInfo_msg_init, 0, arena, &ptr, len);
5877   return ptr;
5878 }
google_protobuf_SourceCodeInfo_serialize_ex(const google_protobuf_SourceCodeInfo * msg,int options,upb_Arena * arena,size_t * len)5879 UPB_INLINE char* google_protobuf_SourceCodeInfo_serialize_ex(const google_protobuf_SourceCodeInfo* msg, int options,
5880                                  upb_Arena* arena, size_t* len) {
5881   char* ptr;
5882   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__SourceCodeInfo_msg_init, options, arena, &ptr, len);
5883   return ptr;
5884 }
google_protobuf_SourceCodeInfo_clear_location(google_protobuf_SourceCodeInfo * msg)5885 UPB_INLINE void google_protobuf_SourceCodeInfo_clear_location(google_protobuf_SourceCodeInfo* msg) {
5886   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)};
5887   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5888 }
google_protobuf_SourceCodeInfo_location(const google_protobuf_SourceCodeInfo * msg,size_t * size)5889 UPB_INLINE const google_protobuf_SourceCodeInfo_Location* const* google_protobuf_SourceCodeInfo_location(const google_protobuf_SourceCodeInfo* msg, size_t* size) {
5890   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)};
5891   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5892   if (arr) {
5893     if (size) *size = arr->UPB_PRIVATE(size);
5894     return (const google_protobuf_SourceCodeInfo_Location* const*)upb_Array_DataPtr(arr);
5895   } else {
5896     if (size) *size = 0;
5897     return NULL;
5898   }
5899 }
_google_protobuf_SourceCodeInfo_location_upb_array(const google_protobuf_SourceCodeInfo * msg,size_t * size)5900 UPB_INLINE const upb_Array* _google_protobuf_SourceCodeInfo_location_upb_array(const google_protobuf_SourceCodeInfo* msg, size_t* size) {
5901   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)};
5902   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5903   if (size) {
5904     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5905   }
5906   return arr;
5907 }
_google_protobuf_SourceCodeInfo_location_mutable_upb_array(google_protobuf_SourceCodeInfo * msg,size_t * size,upb_Arena * arena)5908 UPB_INLINE upb_Array* _google_protobuf_SourceCodeInfo_location_mutable_upb_array(google_protobuf_SourceCodeInfo* msg, size_t* size, upb_Arena* arena) {
5909   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)};
5910   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
5911                                                        &field, arena);
5912   if (size) {
5913     *size = arr ? arr->UPB_PRIVATE(size) : 0;
5914   }
5915   return arr;
5916 }
5917 
google_protobuf_SourceCodeInfo_mutable_location(google_protobuf_SourceCodeInfo * msg,size_t * size)5918 UPB_INLINE google_protobuf_SourceCodeInfo_Location** google_protobuf_SourceCodeInfo_mutable_location(google_protobuf_SourceCodeInfo* msg, size_t* size) {
5919   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5920   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
5921   if (arr) {
5922     if (size) *size = arr->UPB_PRIVATE(size);
5923     return (google_protobuf_SourceCodeInfo_Location**)upb_Array_MutableDataPtr(arr);
5924   } else {
5925     if (size) *size = 0;
5926     return NULL;
5927   }
5928 }
google_protobuf_SourceCodeInfo_resize_location(google_protobuf_SourceCodeInfo * msg,size_t size,upb_Arena * arena)5929 UPB_INLINE google_protobuf_SourceCodeInfo_Location** google_protobuf_SourceCodeInfo_resize_location(google_protobuf_SourceCodeInfo* msg, size_t size, upb_Arena* arena) {
5930   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5931   return (google_protobuf_SourceCodeInfo_Location**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
5932                                                    &field, size, arena);
5933 }
google_protobuf_SourceCodeInfo_add_location(google_protobuf_SourceCodeInfo * msg,upb_Arena * arena)5934 UPB_INLINE struct google_protobuf_SourceCodeInfo_Location* google_protobuf_SourceCodeInfo_add_location(google_protobuf_SourceCodeInfo* msg, upb_Arena* arena) {
5935   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5936   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
5937       UPB_UPCAST(msg), &field, arena);
5938   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
5939                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
5940     return NULL;
5941   }
5942   struct google_protobuf_SourceCodeInfo_Location* sub = (struct google_protobuf_SourceCodeInfo_Location*)_upb_Message_New(&google__protobuf__SourceCodeInfo__Location_msg_init, arena);
5943   if (!arr || !sub) return NULL;
5944   UPB_PRIVATE(_upb_Array_Set)
5945   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
5946   return sub;
5947 }
5948 
5949 /* google.protobuf.SourceCodeInfo.Location */
5950 
google_protobuf_SourceCodeInfo_Location_new(upb_Arena * arena)5951 UPB_INLINE google_protobuf_SourceCodeInfo_Location* google_protobuf_SourceCodeInfo_Location_new(upb_Arena* arena) {
5952   return (google_protobuf_SourceCodeInfo_Location*)_upb_Message_New(&google__protobuf__SourceCodeInfo__Location_msg_init, arena);
5953 }
google_protobuf_SourceCodeInfo_Location_parse(const char * buf,size_t size,upb_Arena * arena)5954 UPB_INLINE google_protobuf_SourceCodeInfo_Location* google_protobuf_SourceCodeInfo_Location_parse(const char* buf, size_t size, upb_Arena* arena) {
5955   google_protobuf_SourceCodeInfo_Location* ret = google_protobuf_SourceCodeInfo_Location_new(arena);
5956   if (!ret) return NULL;
5957   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__SourceCodeInfo__Location_msg_init, NULL, 0, arena) !=
5958       kUpb_DecodeStatus_Ok) {
5959     return NULL;
5960   }
5961   return ret;
5962 }
google_protobuf_SourceCodeInfo_Location_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)5963 UPB_INLINE google_protobuf_SourceCodeInfo_Location* google_protobuf_SourceCodeInfo_Location_parse_ex(const char* buf, size_t size,
5964                            const upb_ExtensionRegistry* extreg,
5965                            int options, upb_Arena* arena) {
5966   google_protobuf_SourceCodeInfo_Location* ret = google_protobuf_SourceCodeInfo_Location_new(arena);
5967   if (!ret) return NULL;
5968   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__SourceCodeInfo__Location_msg_init, extreg, options,
5969                  arena) != kUpb_DecodeStatus_Ok) {
5970     return NULL;
5971   }
5972   return ret;
5973 }
google_protobuf_SourceCodeInfo_Location_serialize(const google_protobuf_SourceCodeInfo_Location * msg,upb_Arena * arena,size_t * len)5974 UPB_INLINE char* google_protobuf_SourceCodeInfo_Location_serialize(const google_protobuf_SourceCodeInfo_Location* msg, upb_Arena* arena, size_t* len) {
5975   char* ptr;
5976   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__SourceCodeInfo__Location_msg_init, 0, arena, &ptr, len);
5977   return ptr;
5978 }
google_protobuf_SourceCodeInfo_Location_serialize_ex(const google_protobuf_SourceCodeInfo_Location * msg,int options,upb_Arena * arena,size_t * len)5979 UPB_INLINE char* google_protobuf_SourceCodeInfo_Location_serialize_ex(const google_protobuf_SourceCodeInfo_Location* msg, int options,
5980                                  upb_Arena* arena, size_t* len) {
5981   char* ptr;
5982   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__SourceCodeInfo__Location_msg_init, options, arena, &ptr, len);
5983   return ptr;
5984 }
google_protobuf_SourceCodeInfo_Location_clear_path(google_protobuf_SourceCodeInfo_Location * msg)5985 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_clear_path(google_protobuf_SourceCodeInfo_Location* msg) {
5986   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5987   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
5988 }
google_protobuf_SourceCodeInfo_Location_path(const google_protobuf_SourceCodeInfo_Location * msg,size_t * size)5989 UPB_INLINE int32_t const* google_protobuf_SourceCodeInfo_Location_path(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
5990   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
5991   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
5992   if (arr) {
5993     if (size) *size = arr->UPB_PRIVATE(size);
5994     return (int32_t const*)upb_Array_DataPtr(arr);
5995   } else {
5996     if (size) *size = 0;
5997     return NULL;
5998   }
5999 }
_google_protobuf_SourceCodeInfo_Location_path_upb_array(const google_protobuf_SourceCodeInfo_Location * msg,size_t * size)6000 UPB_INLINE const upb_Array* _google_protobuf_SourceCodeInfo_Location_path_upb_array(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6001   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6002   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6003   if (size) {
6004     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6005   }
6006   return arr;
6007 }
_google_protobuf_SourceCodeInfo_Location_path_mutable_upb_array(google_protobuf_SourceCodeInfo_Location * msg,size_t * size,upb_Arena * arena)6008 UPB_INLINE upb_Array* _google_protobuf_SourceCodeInfo_Location_path_mutable_upb_array(google_protobuf_SourceCodeInfo_Location* msg, size_t* size, upb_Arena* arena) {
6009   const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6010   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6011                                                        &field, arena);
6012   if (size) {
6013     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6014   }
6015   return arr;
6016 }
google_protobuf_SourceCodeInfo_Location_clear_span(google_protobuf_SourceCodeInfo_Location * msg)6017 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_clear_span(google_protobuf_SourceCodeInfo_Location* msg) {
6018   const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6019   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6020 }
google_protobuf_SourceCodeInfo_Location_span(const google_protobuf_SourceCodeInfo_Location * msg,size_t * size)6021 UPB_INLINE int32_t const* google_protobuf_SourceCodeInfo_Location_span(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6022   const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6023   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6024   if (arr) {
6025     if (size) *size = arr->UPB_PRIVATE(size);
6026     return (int32_t const*)upb_Array_DataPtr(arr);
6027   } else {
6028     if (size) *size = 0;
6029     return NULL;
6030   }
6031 }
_google_protobuf_SourceCodeInfo_Location_span_upb_array(const google_protobuf_SourceCodeInfo_Location * msg,size_t * size)6032 UPB_INLINE const upb_Array* _google_protobuf_SourceCodeInfo_Location_span_upb_array(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6033   const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6034   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6035   if (size) {
6036     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6037   }
6038   return arr;
6039 }
_google_protobuf_SourceCodeInfo_Location_span_mutable_upb_array(google_protobuf_SourceCodeInfo_Location * msg,size_t * size,upb_Arena * arena)6040 UPB_INLINE upb_Array* _google_protobuf_SourceCodeInfo_Location_span_mutable_upb_array(google_protobuf_SourceCodeInfo_Location* msg, size_t* size, upb_Arena* arena) {
6041   const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6042   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6043                                                        &field, arena);
6044   if (size) {
6045     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6046   }
6047   return arr;
6048 }
google_protobuf_SourceCodeInfo_Location_clear_leading_comments(google_protobuf_SourceCodeInfo_Location * msg)6049 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_clear_leading_comments(google_protobuf_SourceCodeInfo_Location* msg) {
6050   const upb_MiniTableField field = {3, UPB_SIZE(24, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6051   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6052 }
google_protobuf_SourceCodeInfo_Location_leading_comments(const google_protobuf_SourceCodeInfo_Location * msg)6053 UPB_INLINE upb_StringView google_protobuf_SourceCodeInfo_Location_leading_comments(const google_protobuf_SourceCodeInfo_Location* msg) {
6054   upb_StringView default_val = upb_StringView_FromString("");
6055   upb_StringView ret;
6056   const upb_MiniTableField field = {3, UPB_SIZE(24, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6057   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6058                                     &default_val, &ret);
6059   return ret;
6060 }
google_protobuf_SourceCodeInfo_Location_has_leading_comments(const google_protobuf_SourceCodeInfo_Location * msg)6061 UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_has_leading_comments(const google_protobuf_SourceCodeInfo_Location* msg) {
6062   const upb_MiniTableField field = {3, UPB_SIZE(24, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6063   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6064 }
google_protobuf_SourceCodeInfo_Location_clear_trailing_comments(google_protobuf_SourceCodeInfo_Location * msg)6065 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_clear_trailing_comments(google_protobuf_SourceCodeInfo_Location* msg) {
6066   const upb_MiniTableField field = {4, UPB_SIZE(32, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6067   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6068 }
google_protobuf_SourceCodeInfo_Location_trailing_comments(const google_protobuf_SourceCodeInfo_Location * msg)6069 UPB_INLINE upb_StringView google_protobuf_SourceCodeInfo_Location_trailing_comments(const google_protobuf_SourceCodeInfo_Location* msg) {
6070   upb_StringView default_val = upb_StringView_FromString("");
6071   upb_StringView ret;
6072   const upb_MiniTableField field = {4, UPB_SIZE(32, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6073   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6074                                     &default_val, &ret);
6075   return ret;
6076 }
google_protobuf_SourceCodeInfo_Location_has_trailing_comments(const google_protobuf_SourceCodeInfo_Location * msg)6077 UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_has_trailing_comments(const google_protobuf_SourceCodeInfo_Location* msg) {
6078   const upb_MiniTableField field = {4, UPB_SIZE(32, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6079   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6080 }
google_protobuf_SourceCodeInfo_Location_clear_leading_detached_comments(google_protobuf_SourceCodeInfo_Location * msg)6081 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_clear_leading_detached_comments(google_protobuf_SourceCodeInfo_Location* msg) {
6082   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)};
6083   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6084 }
google_protobuf_SourceCodeInfo_Location_leading_detached_comments(const google_protobuf_SourceCodeInfo_Location * msg,size_t * size)6085 UPB_INLINE upb_StringView const* google_protobuf_SourceCodeInfo_Location_leading_detached_comments(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6086   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)};
6087   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6088   if (arr) {
6089     if (size) *size = arr->UPB_PRIVATE(size);
6090     return (upb_StringView const*)upb_Array_DataPtr(arr);
6091   } else {
6092     if (size) *size = 0;
6093     return NULL;
6094   }
6095 }
_google_protobuf_SourceCodeInfo_Location_leading_detached_comments_upb_array(const google_protobuf_SourceCodeInfo_Location * msg,size_t * size)6096 UPB_INLINE const upb_Array* _google_protobuf_SourceCodeInfo_Location_leading_detached_comments_upb_array(const google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6097   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)};
6098   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6099   if (size) {
6100     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6101   }
6102   return arr;
6103 }
_google_protobuf_SourceCodeInfo_Location_leading_detached_comments_mutable_upb_array(google_protobuf_SourceCodeInfo_Location * msg,size_t * size,upb_Arena * arena)6104 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) {
6105   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)};
6106   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6107                                                        &field, arena);
6108   if (size) {
6109     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6110   }
6111   return arr;
6112 }
6113 
google_protobuf_SourceCodeInfo_Location_mutable_path(google_protobuf_SourceCodeInfo_Location * msg,size_t * size)6114 UPB_INLINE int32_t* google_protobuf_SourceCodeInfo_Location_mutable_path(google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6115   upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6116   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6117   if (arr) {
6118     if (size) *size = arr->UPB_PRIVATE(size);
6119     return (int32_t*)upb_Array_MutableDataPtr(arr);
6120   } else {
6121     if (size) *size = 0;
6122     return NULL;
6123   }
6124 }
google_protobuf_SourceCodeInfo_Location_resize_path(google_protobuf_SourceCodeInfo_Location * msg,size_t size,upb_Arena * arena)6125 UPB_INLINE int32_t* google_protobuf_SourceCodeInfo_Location_resize_path(google_protobuf_SourceCodeInfo_Location* msg, size_t size, upb_Arena* arena) {
6126   upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6127   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6128                                                    &field, size, arena);
6129 }
google_protobuf_SourceCodeInfo_Location_add_path(google_protobuf_SourceCodeInfo_Location * msg,int32_t val,upb_Arena * arena)6130 UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_path(google_protobuf_SourceCodeInfo_Location* msg, int32_t val, upb_Arena* arena) {
6131   upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6132   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6133       UPB_UPCAST(msg), &field, arena);
6134   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6135                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6136     return false;
6137   }
6138   UPB_PRIVATE(_upb_Array_Set)
6139   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
6140   return true;
6141 }
google_protobuf_SourceCodeInfo_Location_mutable_span(google_protobuf_SourceCodeInfo_Location * msg,size_t * size)6142 UPB_INLINE int32_t* google_protobuf_SourceCodeInfo_Location_mutable_span(google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6143   upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6144   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6145   if (arr) {
6146     if (size) *size = arr->UPB_PRIVATE(size);
6147     return (int32_t*)upb_Array_MutableDataPtr(arr);
6148   } else {
6149     if (size) *size = 0;
6150     return NULL;
6151   }
6152 }
google_protobuf_SourceCodeInfo_Location_resize_span(google_protobuf_SourceCodeInfo_Location * msg,size_t size,upb_Arena * arena)6153 UPB_INLINE int32_t* google_protobuf_SourceCodeInfo_Location_resize_span(google_protobuf_SourceCodeInfo_Location* msg, size_t size, upb_Arena* arena) {
6154   upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6155   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6156                                                    &field, size, arena);
6157 }
google_protobuf_SourceCodeInfo_Location_add_span(google_protobuf_SourceCodeInfo_Location * msg,int32_t val,upb_Arena * arena)6158 UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_span(google_protobuf_SourceCodeInfo_Location* msg, int32_t val, upb_Arena* arena) {
6159   upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6160   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6161       UPB_UPCAST(msg), &field, arena);
6162   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6163                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6164     return false;
6165   }
6166   UPB_PRIVATE(_upb_Array_Set)
6167   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
6168   return true;
6169 }
google_protobuf_SourceCodeInfo_Location_set_leading_comments(google_protobuf_SourceCodeInfo_Location * msg,upb_StringView value)6170 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_set_leading_comments(google_protobuf_SourceCodeInfo_Location *msg, upb_StringView value) {
6171   const upb_MiniTableField field = {3, UPB_SIZE(24, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6172   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
6173 }
google_protobuf_SourceCodeInfo_Location_set_trailing_comments(google_protobuf_SourceCodeInfo_Location * msg,upb_StringView value)6174 UPB_INLINE void google_protobuf_SourceCodeInfo_Location_set_trailing_comments(google_protobuf_SourceCodeInfo_Location *msg, upb_StringView value) {
6175   const upb_MiniTableField field = {4, UPB_SIZE(32, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6176   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
6177 }
google_protobuf_SourceCodeInfo_Location_mutable_leading_detached_comments(google_protobuf_SourceCodeInfo_Location * msg,size_t * size)6178 UPB_INLINE upb_StringView* google_protobuf_SourceCodeInfo_Location_mutable_leading_detached_comments(google_protobuf_SourceCodeInfo_Location* msg, size_t* size) {
6179   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)};
6180   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6181   if (arr) {
6182     if (size) *size = arr->UPB_PRIVATE(size);
6183     return (upb_StringView*)upb_Array_MutableDataPtr(arr);
6184   } else {
6185     if (size) *size = 0;
6186     return NULL;
6187   }
6188 }
google_protobuf_SourceCodeInfo_Location_resize_leading_detached_comments(google_protobuf_SourceCodeInfo_Location * msg,size_t size,upb_Arena * arena)6189 UPB_INLINE upb_StringView* google_protobuf_SourceCodeInfo_Location_resize_leading_detached_comments(google_protobuf_SourceCodeInfo_Location* msg, size_t size, upb_Arena* arena) {
6190   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)};
6191   return (upb_StringView*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6192                                                    &field, size, arena);
6193 }
google_protobuf_SourceCodeInfo_Location_add_leading_detached_comments(google_protobuf_SourceCodeInfo_Location * msg,upb_StringView val,upb_Arena * arena)6194 UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_leading_detached_comments(google_protobuf_SourceCodeInfo_Location* msg, upb_StringView val, upb_Arena* arena) {
6195   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)};
6196   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6197       UPB_UPCAST(msg), &field, arena);
6198   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6199                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6200     return false;
6201   }
6202   UPB_PRIVATE(_upb_Array_Set)
6203   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
6204   return true;
6205 }
6206 
6207 /* google.protobuf.GeneratedCodeInfo */
6208 
google_protobuf_GeneratedCodeInfo_new(upb_Arena * arena)6209 UPB_INLINE google_protobuf_GeneratedCodeInfo* google_protobuf_GeneratedCodeInfo_new(upb_Arena* arena) {
6210   return (google_protobuf_GeneratedCodeInfo*)_upb_Message_New(&google__protobuf__GeneratedCodeInfo_msg_init, arena);
6211 }
google_protobuf_GeneratedCodeInfo_parse(const char * buf,size_t size,upb_Arena * arena)6212 UPB_INLINE google_protobuf_GeneratedCodeInfo* google_protobuf_GeneratedCodeInfo_parse(const char* buf, size_t size, upb_Arena* arena) {
6213   google_protobuf_GeneratedCodeInfo* ret = google_protobuf_GeneratedCodeInfo_new(arena);
6214   if (!ret) return NULL;
6215   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__GeneratedCodeInfo_msg_init, NULL, 0, arena) !=
6216       kUpb_DecodeStatus_Ok) {
6217     return NULL;
6218   }
6219   return ret;
6220 }
google_protobuf_GeneratedCodeInfo_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)6221 UPB_INLINE google_protobuf_GeneratedCodeInfo* google_protobuf_GeneratedCodeInfo_parse_ex(const char* buf, size_t size,
6222                            const upb_ExtensionRegistry* extreg,
6223                            int options, upb_Arena* arena) {
6224   google_protobuf_GeneratedCodeInfo* ret = google_protobuf_GeneratedCodeInfo_new(arena);
6225   if (!ret) return NULL;
6226   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__GeneratedCodeInfo_msg_init, extreg, options,
6227                  arena) != kUpb_DecodeStatus_Ok) {
6228     return NULL;
6229   }
6230   return ret;
6231 }
google_protobuf_GeneratedCodeInfo_serialize(const google_protobuf_GeneratedCodeInfo * msg,upb_Arena * arena,size_t * len)6232 UPB_INLINE char* google_protobuf_GeneratedCodeInfo_serialize(const google_protobuf_GeneratedCodeInfo* msg, upb_Arena* arena, size_t* len) {
6233   char* ptr;
6234   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__GeneratedCodeInfo_msg_init, 0, arena, &ptr, len);
6235   return ptr;
6236 }
google_protobuf_GeneratedCodeInfo_serialize_ex(const google_protobuf_GeneratedCodeInfo * msg,int options,upb_Arena * arena,size_t * len)6237 UPB_INLINE char* google_protobuf_GeneratedCodeInfo_serialize_ex(const google_protobuf_GeneratedCodeInfo* msg, int options,
6238                                  upb_Arena* arena, size_t* len) {
6239   char* ptr;
6240   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__GeneratedCodeInfo_msg_init, options, arena, &ptr, len);
6241   return ptr;
6242 }
google_protobuf_GeneratedCodeInfo_clear_annotation(google_protobuf_GeneratedCodeInfo * msg)6243 UPB_INLINE void google_protobuf_GeneratedCodeInfo_clear_annotation(google_protobuf_GeneratedCodeInfo* msg) {
6244   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)};
6245   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6246 }
google_protobuf_GeneratedCodeInfo_annotation(const google_protobuf_GeneratedCodeInfo * msg,size_t * size)6247 UPB_INLINE const google_protobuf_GeneratedCodeInfo_Annotation* const* google_protobuf_GeneratedCodeInfo_annotation(const google_protobuf_GeneratedCodeInfo* msg, size_t* size) {
6248   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)};
6249   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6250   if (arr) {
6251     if (size) *size = arr->UPB_PRIVATE(size);
6252     return (const google_protobuf_GeneratedCodeInfo_Annotation* const*)upb_Array_DataPtr(arr);
6253   } else {
6254     if (size) *size = 0;
6255     return NULL;
6256   }
6257 }
_google_protobuf_GeneratedCodeInfo_annotation_upb_array(const google_protobuf_GeneratedCodeInfo * msg,size_t * size)6258 UPB_INLINE const upb_Array* _google_protobuf_GeneratedCodeInfo_annotation_upb_array(const google_protobuf_GeneratedCodeInfo* msg, size_t* size) {
6259   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)};
6260   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6261   if (size) {
6262     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6263   }
6264   return arr;
6265 }
_google_protobuf_GeneratedCodeInfo_annotation_mutable_upb_array(google_protobuf_GeneratedCodeInfo * msg,size_t * size,upb_Arena * arena)6266 UPB_INLINE upb_Array* _google_protobuf_GeneratedCodeInfo_annotation_mutable_upb_array(google_protobuf_GeneratedCodeInfo* msg, size_t* size, upb_Arena* arena) {
6267   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)};
6268   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6269                                                        &field, arena);
6270   if (size) {
6271     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6272   }
6273   return arr;
6274 }
6275 
google_protobuf_GeneratedCodeInfo_mutable_annotation(google_protobuf_GeneratedCodeInfo * msg,size_t * size)6276 UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation** google_protobuf_GeneratedCodeInfo_mutable_annotation(google_protobuf_GeneratedCodeInfo* msg, size_t* size) {
6277   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6278   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6279   if (arr) {
6280     if (size) *size = arr->UPB_PRIVATE(size);
6281     return (google_protobuf_GeneratedCodeInfo_Annotation**)upb_Array_MutableDataPtr(arr);
6282   } else {
6283     if (size) *size = 0;
6284     return NULL;
6285   }
6286 }
google_protobuf_GeneratedCodeInfo_resize_annotation(google_protobuf_GeneratedCodeInfo * msg,size_t size,upb_Arena * arena)6287 UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation** google_protobuf_GeneratedCodeInfo_resize_annotation(google_protobuf_GeneratedCodeInfo* msg, size_t size, upb_Arena* arena) {
6288   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6289   return (google_protobuf_GeneratedCodeInfo_Annotation**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6290                                                    &field, size, arena);
6291 }
google_protobuf_GeneratedCodeInfo_add_annotation(google_protobuf_GeneratedCodeInfo * msg,upb_Arena * arena)6292 UPB_INLINE struct google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_GeneratedCodeInfo_add_annotation(google_protobuf_GeneratedCodeInfo* msg, upb_Arena* arena) {
6293   upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6294   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6295       UPB_UPCAST(msg), &field, arena);
6296   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6297                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6298     return NULL;
6299   }
6300   struct google_protobuf_GeneratedCodeInfo_Annotation* sub = (struct google_protobuf_GeneratedCodeInfo_Annotation*)_upb_Message_New(&google__protobuf__GeneratedCodeInfo__Annotation_msg_init, arena);
6301   if (!arr || !sub) return NULL;
6302   UPB_PRIVATE(_upb_Array_Set)
6303   (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
6304   return sub;
6305 }
6306 
6307 /* google.protobuf.GeneratedCodeInfo.Annotation */
6308 
google_protobuf_GeneratedCodeInfo_Annotation_new(upb_Arena * arena)6309 UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_GeneratedCodeInfo_Annotation_new(upb_Arena* arena) {
6310   return (google_protobuf_GeneratedCodeInfo_Annotation*)_upb_Message_New(&google__protobuf__GeneratedCodeInfo__Annotation_msg_init, arena);
6311 }
google_protobuf_GeneratedCodeInfo_Annotation_parse(const char * buf,size_t size,upb_Arena * arena)6312 UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_GeneratedCodeInfo_Annotation_parse(const char* buf, size_t size, upb_Arena* arena) {
6313   google_protobuf_GeneratedCodeInfo_Annotation* ret = google_protobuf_GeneratedCodeInfo_Annotation_new(arena);
6314   if (!ret) return NULL;
6315   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__GeneratedCodeInfo__Annotation_msg_init, NULL, 0, arena) !=
6316       kUpb_DecodeStatus_Ok) {
6317     return NULL;
6318   }
6319   return ret;
6320 }
google_protobuf_GeneratedCodeInfo_Annotation_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)6321 UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_GeneratedCodeInfo_Annotation_parse_ex(const char* buf, size_t size,
6322                            const upb_ExtensionRegistry* extreg,
6323                            int options, upb_Arena* arena) {
6324   google_protobuf_GeneratedCodeInfo_Annotation* ret = google_protobuf_GeneratedCodeInfo_Annotation_new(arena);
6325   if (!ret) return NULL;
6326   if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__GeneratedCodeInfo__Annotation_msg_init, extreg, options,
6327                  arena) != kUpb_DecodeStatus_Ok) {
6328     return NULL;
6329   }
6330   return ret;
6331 }
google_protobuf_GeneratedCodeInfo_Annotation_serialize(const google_protobuf_GeneratedCodeInfo_Annotation * msg,upb_Arena * arena,size_t * len)6332 UPB_INLINE char* google_protobuf_GeneratedCodeInfo_Annotation_serialize(const google_protobuf_GeneratedCodeInfo_Annotation* msg, upb_Arena* arena, size_t* len) {
6333   char* ptr;
6334   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__GeneratedCodeInfo__Annotation_msg_init, 0, arena, &ptr, len);
6335   return ptr;
6336 }
google_protobuf_GeneratedCodeInfo_Annotation_serialize_ex(const google_protobuf_GeneratedCodeInfo_Annotation * msg,int options,upb_Arena * arena,size_t * len)6337 UPB_INLINE char* google_protobuf_GeneratedCodeInfo_Annotation_serialize_ex(const google_protobuf_GeneratedCodeInfo_Annotation* msg, int options,
6338                                  upb_Arena* arena, size_t* len) {
6339   char* ptr;
6340   (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__GeneratedCodeInfo__Annotation_msg_init, options, arena, &ptr, len);
6341   return ptr;
6342 }
google_protobuf_GeneratedCodeInfo_Annotation_clear_path(google_protobuf_GeneratedCodeInfo_Annotation * msg)6343 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_clear_path(google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6344   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6345   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6346 }
google_protobuf_GeneratedCodeInfo_Annotation_path(const google_protobuf_GeneratedCodeInfo_Annotation * msg,size_t * size)6347 UPB_INLINE int32_t const* google_protobuf_GeneratedCodeInfo_Annotation_path(const google_protobuf_GeneratedCodeInfo_Annotation* msg, size_t* size) {
6348   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6349   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6350   if (arr) {
6351     if (size) *size = arr->UPB_PRIVATE(size);
6352     return (int32_t const*)upb_Array_DataPtr(arr);
6353   } else {
6354     if (size) *size = 0;
6355     return NULL;
6356   }
6357 }
_google_protobuf_GeneratedCodeInfo_Annotation_path_upb_array(const google_protobuf_GeneratedCodeInfo_Annotation * msg,size_t * size)6358 UPB_INLINE const upb_Array* _google_protobuf_GeneratedCodeInfo_Annotation_path_upb_array(const google_protobuf_GeneratedCodeInfo_Annotation* msg, size_t* size) {
6359   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6360   const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
6361   if (size) {
6362     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6363   }
6364   return arr;
6365 }
_google_protobuf_GeneratedCodeInfo_Annotation_path_mutable_upb_array(google_protobuf_GeneratedCodeInfo_Annotation * msg,size_t * size,upb_Arena * arena)6366 UPB_INLINE upb_Array* _google_protobuf_GeneratedCodeInfo_Annotation_path_mutable_upb_array(google_protobuf_GeneratedCodeInfo_Annotation* msg, size_t* size, upb_Arena* arena) {
6367   const upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6368   upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
6369                                                        &field, arena);
6370   if (size) {
6371     *size = arr ? arr->UPB_PRIVATE(size) : 0;
6372   }
6373   return arr;
6374 }
google_protobuf_GeneratedCodeInfo_Annotation_clear_source_file(google_protobuf_GeneratedCodeInfo_Annotation * msg)6375 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_clear_source_file(google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6376   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6377   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6378 }
google_protobuf_GeneratedCodeInfo_Annotation_source_file(const google_protobuf_GeneratedCodeInfo_Annotation * msg)6379 UPB_INLINE upb_StringView google_protobuf_GeneratedCodeInfo_Annotation_source_file(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6380   upb_StringView default_val = upb_StringView_FromString("");
6381   upb_StringView ret;
6382   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6383   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6384                                     &default_val, &ret);
6385   return ret;
6386 }
google_protobuf_GeneratedCodeInfo_Annotation_has_source_file(const google_protobuf_GeneratedCodeInfo_Annotation * msg)6387 UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_has_source_file(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6388   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6389   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6390 }
google_protobuf_GeneratedCodeInfo_Annotation_clear_begin(google_protobuf_GeneratedCodeInfo_Annotation * msg)6391 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_clear_begin(google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6392   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6393   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6394 }
google_protobuf_GeneratedCodeInfo_Annotation_begin(const google_protobuf_GeneratedCodeInfo_Annotation * msg)6395 UPB_INLINE int32_t google_protobuf_GeneratedCodeInfo_Annotation_begin(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6396   int32_t default_val = (int32_t)0;
6397   int32_t ret;
6398   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6399   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6400                                     &default_val, &ret);
6401   return ret;
6402 }
google_protobuf_GeneratedCodeInfo_Annotation_has_begin(const google_protobuf_GeneratedCodeInfo_Annotation * msg)6403 UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_has_begin(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6404   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6405   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6406 }
google_protobuf_GeneratedCodeInfo_Annotation_clear_end(google_protobuf_GeneratedCodeInfo_Annotation * msg)6407 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_clear_end(google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6408   const upb_MiniTableField field = {4, UPB_SIZE(20, 16), 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6409   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6410 }
google_protobuf_GeneratedCodeInfo_Annotation_end(const google_protobuf_GeneratedCodeInfo_Annotation * msg)6411 UPB_INLINE int32_t google_protobuf_GeneratedCodeInfo_Annotation_end(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6412   int32_t default_val = (int32_t)0;
6413   int32_t ret;
6414   const upb_MiniTableField field = {4, UPB_SIZE(20, 16), 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6415   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6416                                     &default_val, &ret);
6417   return ret;
6418 }
google_protobuf_GeneratedCodeInfo_Annotation_has_end(const google_protobuf_GeneratedCodeInfo_Annotation * msg)6419 UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_has_end(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6420   const upb_MiniTableField field = {4, UPB_SIZE(20, 16), 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6421   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6422 }
google_protobuf_GeneratedCodeInfo_Annotation_clear_semantic(google_protobuf_GeneratedCodeInfo_Annotation * msg)6423 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_clear_semantic(google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6424   const upb_MiniTableField field = {5, UPB_SIZE(24, 20), 67, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6425   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
6426 }
google_protobuf_GeneratedCodeInfo_Annotation_semantic(const google_protobuf_GeneratedCodeInfo_Annotation * msg)6427 UPB_INLINE int32_t google_protobuf_GeneratedCodeInfo_Annotation_semantic(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6428   int32_t default_val = 0;
6429   int32_t ret;
6430   const upb_MiniTableField field = {5, UPB_SIZE(24, 20), 67, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6431   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
6432                                     &default_val, &ret);
6433   return ret;
6434 }
google_protobuf_GeneratedCodeInfo_Annotation_has_semantic(const google_protobuf_GeneratedCodeInfo_Annotation * msg)6435 UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_has_semantic(const google_protobuf_GeneratedCodeInfo_Annotation* msg) {
6436   const upb_MiniTableField field = {5, UPB_SIZE(24, 20), 67, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6437   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
6438 }
6439 
google_protobuf_GeneratedCodeInfo_Annotation_mutable_path(google_protobuf_GeneratedCodeInfo_Annotation * msg,size_t * size)6440 UPB_INLINE int32_t* google_protobuf_GeneratedCodeInfo_Annotation_mutable_path(google_protobuf_GeneratedCodeInfo_Annotation* msg, size_t* size) {
6441   upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6442   upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
6443   if (arr) {
6444     if (size) *size = arr->UPB_PRIVATE(size);
6445     return (int32_t*)upb_Array_MutableDataPtr(arr);
6446   } else {
6447     if (size) *size = 0;
6448     return NULL;
6449   }
6450 }
google_protobuf_GeneratedCodeInfo_Annotation_resize_path(google_protobuf_GeneratedCodeInfo_Annotation * msg,size_t size,upb_Arena * arena)6451 UPB_INLINE int32_t* google_protobuf_GeneratedCodeInfo_Annotation_resize_path(google_protobuf_GeneratedCodeInfo_Annotation* msg, size_t size, upb_Arena* arena) {
6452   upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6453   return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
6454                                                    &field, size, arena);
6455 }
google_protobuf_GeneratedCodeInfo_Annotation_add_path(google_protobuf_GeneratedCodeInfo_Annotation * msg,int32_t val,upb_Arena * arena)6456 UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_add_path(google_protobuf_GeneratedCodeInfo_Annotation* msg, int32_t val, upb_Arena* arena) {
6457   upb_MiniTableField field = {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
6458   upb_Array* arr = upb_Message_GetOrCreateMutableArray(
6459       UPB_UPCAST(msg), &field, arena);
6460   if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
6461                   arr, arr->UPB_PRIVATE(size) + 1, arena)) {
6462     return false;
6463   }
6464   UPB_PRIVATE(_upb_Array_Set)
6465   (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
6466   return true;
6467 }
google_protobuf_GeneratedCodeInfo_Annotation_set_source_file(google_protobuf_GeneratedCodeInfo_Annotation * msg,upb_StringView value)6468 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_set_source_file(google_protobuf_GeneratedCodeInfo_Annotation *msg, upb_StringView value) {
6469   const upb_MiniTableField field = {2, UPB_SIZE(28, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
6470   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
6471 }
google_protobuf_GeneratedCodeInfo_Annotation_set_begin(google_protobuf_GeneratedCodeInfo_Annotation * msg,int32_t value)6472 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_set_begin(google_protobuf_GeneratedCodeInfo_Annotation *msg, int32_t value) {
6473   const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6474   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
6475 }
google_protobuf_GeneratedCodeInfo_Annotation_set_end(google_protobuf_GeneratedCodeInfo_Annotation * msg,int32_t value)6476 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_set_end(google_protobuf_GeneratedCodeInfo_Annotation *msg, int32_t value) {
6477   const upb_MiniTableField field = {4, UPB_SIZE(20, 16), 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6478   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
6479 }
google_protobuf_GeneratedCodeInfo_Annotation_set_semantic(google_protobuf_GeneratedCodeInfo_Annotation * msg,int32_t value)6480 UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_set_semantic(google_protobuf_GeneratedCodeInfo_Annotation *msg, int32_t value) {
6481   const upb_MiniTableField field = {5, UPB_SIZE(24, 20), 67, 0, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
6482   _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
6483 }
6484 
6485 /* Max size 32 is google.protobuf.FileOptions */
6486 /* Max size 64 is google.protobuf.FileOptions */
6487 #define _UPB_MAXOPT_SIZE UPB_SIZE(112, 200)
6488 
6489 #ifdef __cplusplus
6490 }  /* extern "C" */
6491 #endif
6492 
6493 #include "upb/port/undef.inc"
6494 
6495 #endif  /* GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_ */
6496