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