1 /* This file was generated by upb_generator from the input file:
2 *
3 * google/protobuf/descriptor.proto
4 *
5 * Do not edit -- your changes will be discarded when the file is
6 * regenerated. */
7
8 #ifndef GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
9 #define GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
10
11 #include "upb/generated_code_support.h"
12
13 #include "google/protobuf/descriptor.upb_minitable.h"
14
15 // Must be last.
16 #include "upb/port/def.inc"
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 typedef struct google_protobuf_FileDescriptorSet { upb_Message UPB_PRIVATE(base); } google_protobuf_FileDescriptorSet;
23 typedef struct google_protobuf_FileDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_FileDescriptorProto;
24 typedef struct google_protobuf_DescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_DescriptorProto;
25 typedef struct google_protobuf_DescriptorProto_ExtensionRange { upb_Message UPB_PRIVATE(base); } google_protobuf_DescriptorProto_ExtensionRange;
26 typedef struct google_protobuf_DescriptorProto_ReservedRange { upb_Message UPB_PRIVATE(base); } google_protobuf_DescriptorProto_ReservedRange;
27 typedef struct google_protobuf_ExtensionRangeOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_ExtensionRangeOptions;
28 typedef struct google_protobuf_ExtensionRangeOptions_Declaration { upb_Message UPB_PRIVATE(base); } google_protobuf_ExtensionRangeOptions_Declaration;
29 typedef struct google_protobuf_FieldDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldDescriptorProto;
30 typedef struct google_protobuf_OneofDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_OneofDescriptorProto;
31 typedef struct google_protobuf_EnumDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumDescriptorProto;
32 typedef struct google_protobuf_EnumDescriptorProto_EnumReservedRange { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumDescriptorProto_EnumReservedRange;
33 typedef struct google_protobuf_EnumValueDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumValueDescriptorProto;
34 typedef struct google_protobuf_ServiceDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_ServiceDescriptorProto;
35 typedef struct google_protobuf_MethodDescriptorProto { upb_Message UPB_PRIVATE(base); } google_protobuf_MethodDescriptorProto;
36 typedef struct google_protobuf_FileOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_FileOptions;
37 typedef struct google_protobuf_MessageOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_MessageOptions;
38 typedef struct google_protobuf_FieldOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldOptions;
39 typedef struct google_protobuf_FieldOptions_EditionDefault { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldOptions_EditionDefault;
40 typedef struct google_protobuf_OneofOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_OneofOptions;
41 typedef struct google_protobuf_EnumOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumOptions;
42 typedef struct google_protobuf_EnumValueOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumValueOptions;
43 typedef struct google_protobuf_ServiceOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_ServiceOptions;
44 typedef struct google_protobuf_MethodOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_MethodOptions;
45 typedef struct google_protobuf_UninterpretedOption { upb_Message UPB_PRIVATE(base); } google_protobuf_UninterpretedOption;
46 typedef struct google_protobuf_UninterpretedOption_NamePart { upb_Message UPB_PRIVATE(base); } google_protobuf_UninterpretedOption_NamePart;
47 typedef struct google_protobuf_FeatureSet { upb_Message UPB_PRIVATE(base); } google_protobuf_FeatureSet;
48 typedef struct google_protobuf_FeatureSetDefaults { upb_Message UPB_PRIVATE(base); } google_protobuf_FeatureSetDefaults;
49 typedef struct google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault { upb_Message UPB_PRIVATE(base); } google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault;
50 typedef struct google_protobuf_SourceCodeInfo { upb_Message UPB_PRIVATE(base); } google_protobuf_SourceCodeInfo;
51 typedef struct google_protobuf_SourceCodeInfo_Location { upb_Message UPB_PRIVATE(base); } google_protobuf_SourceCodeInfo_Location;
52 typedef struct google_protobuf_GeneratedCodeInfo { upb_Message UPB_PRIVATE(base); } google_protobuf_GeneratedCodeInfo;
53 typedef struct google_protobuf_GeneratedCodeInfo_Annotation { upb_Message UPB_PRIVATE(base); } google_protobuf_GeneratedCodeInfo_Annotation;
54
55 typedef enum {
56 google_protobuf_EDITION_UNKNOWN = 0,
57 google_protobuf_EDITION_1_TEST_ONLY = 1,
58 google_protobuf_EDITION_2_TEST_ONLY = 2,
59 google_protobuf_EDITION_PROTO2 = 998,
60 google_protobuf_EDITION_PROTO3 = 999,
61 google_protobuf_EDITION_2023 = 1000,
62 google_protobuf_EDITION_2024 = 1001,
63 google_protobuf_EDITION_99997_TEST_ONLY = 99997,
64 google_protobuf_EDITION_99998_TEST_ONLY = 99998,
65 google_protobuf_EDITION_99999_TEST_ONLY = 99999,
66 google_protobuf_EDITION_MAX = 2147483647
67 } google_protobuf_Edition;
68
69 typedef enum {
70 google_protobuf_ExtensionRangeOptions_DECLARATION = 0,
71 google_protobuf_ExtensionRangeOptions_UNVERIFIED = 1
72 } google_protobuf_ExtensionRangeOptions_VerificationState;
73
74 typedef enum {
75 google_protobuf_FeatureSet_ENUM_TYPE_UNKNOWN = 0,
76 google_protobuf_FeatureSet_OPEN = 1,
77 google_protobuf_FeatureSet_CLOSED = 2
78 } google_protobuf_FeatureSet_EnumType;
79
80 typedef enum {
81 google_protobuf_FeatureSet_FIELD_PRESENCE_UNKNOWN = 0,
82 google_protobuf_FeatureSet_EXPLICIT = 1,
83 google_protobuf_FeatureSet_IMPLICIT = 2,
84 google_protobuf_FeatureSet_LEGACY_REQUIRED = 3
85 } google_protobuf_FeatureSet_FieldPresence;
86
87 typedef enum {
88 google_protobuf_FeatureSet_JSON_FORMAT_UNKNOWN = 0,
89 google_protobuf_FeatureSet_ALLOW = 1,
90 google_protobuf_FeatureSet_LEGACY_BEST_EFFORT = 2
91 } google_protobuf_FeatureSet_JsonFormat;
92
93 typedef enum {
94 google_protobuf_FeatureSet_MESSAGE_ENCODING_UNKNOWN = 0,
95 google_protobuf_FeatureSet_LENGTH_PREFIXED = 1,
96 google_protobuf_FeatureSet_DELIMITED = 2
97 } google_protobuf_FeatureSet_MessageEncoding;
98
99 typedef enum {
100 google_protobuf_FeatureSet_REPEATED_FIELD_ENCODING_UNKNOWN = 0,
101 google_protobuf_FeatureSet_PACKED = 1,
102 google_protobuf_FeatureSet_EXPANDED = 2
103 } google_protobuf_FeatureSet_RepeatedFieldEncoding;
104
105 typedef enum {
106 google_protobuf_FeatureSet_UTF8_VALIDATION_UNKNOWN = 0,
107 google_protobuf_FeatureSet_VERIFY = 2,
108 google_protobuf_FeatureSet_NONE = 3
109 } google_protobuf_FeatureSet_Utf8Validation;
110
111 typedef enum {
112 google_protobuf_FieldDescriptorProto_LABEL_OPTIONAL = 1,
113 google_protobuf_FieldDescriptorProto_LABEL_REQUIRED = 2,
114 google_protobuf_FieldDescriptorProto_LABEL_REPEATED = 3
115 } google_protobuf_FieldDescriptorProto_Label;
116
117 typedef enum {
118 google_protobuf_FieldDescriptorProto_TYPE_DOUBLE = 1,
119 google_protobuf_FieldDescriptorProto_TYPE_FLOAT = 2,
120 google_protobuf_FieldDescriptorProto_TYPE_INT64 = 3,
121 google_protobuf_FieldDescriptorProto_TYPE_UINT64 = 4,
122 google_protobuf_FieldDescriptorProto_TYPE_INT32 = 5,
123 google_protobuf_FieldDescriptorProto_TYPE_FIXED64 = 6,
124 google_protobuf_FieldDescriptorProto_TYPE_FIXED32 = 7,
125 google_protobuf_FieldDescriptorProto_TYPE_BOOL = 8,
126 google_protobuf_FieldDescriptorProto_TYPE_STRING = 9,
127 google_protobuf_FieldDescriptorProto_TYPE_GROUP = 10,
128 google_protobuf_FieldDescriptorProto_TYPE_MESSAGE = 11,
129 google_protobuf_FieldDescriptorProto_TYPE_BYTES = 12,
130 google_protobuf_FieldDescriptorProto_TYPE_UINT32 = 13,
131 google_protobuf_FieldDescriptorProto_TYPE_ENUM = 14,
132 google_protobuf_FieldDescriptorProto_TYPE_SFIXED32 = 15,
133 google_protobuf_FieldDescriptorProto_TYPE_SFIXED64 = 16,
134 google_protobuf_FieldDescriptorProto_TYPE_SINT32 = 17,
135 google_protobuf_FieldDescriptorProto_TYPE_SINT64 = 18
136 } google_protobuf_FieldDescriptorProto_Type;
137
138 typedef enum {
139 google_protobuf_FieldOptions_STRING = 0,
140 google_protobuf_FieldOptions_CORD = 1,
141 google_protobuf_FieldOptions_STRING_PIECE = 2
142 } google_protobuf_FieldOptions_CType;
143
144 typedef enum {
145 google_protobuf_FieldOptions_JS_NORMAL = 0,
146 google_protobuf_FieldOptions_JS_STRING = 1,
147 google_protobuf_FieldOptions_JS_NUMBER = 2
148 } google_protobuf_FieldOptions_JSType;
149
150 typedef enum {
151 google_protobuf_FieldOptions_RETENTION_UNKNOWN = 0,
152 google_protobuf_FieldOptions_RETENTION_RUNTIME = 1,
153 google_protobuf_FieldOptions_RETENTION_SOURCE = 2
154 } google_protobuf_FieldOptions_OptionRetention;
155
156 typedef enum {
157 google_protobuf_FieldOptions_TARGET_TYPE_UNKNOWN = 0,
158 google_protobuf_FieldOptions_TARGET_TYPE_FILE = 1,
159 google_protobuf_FieldOptions_TARGET_TYPE_EXTENSION_RANGE = 2,
160 google_protobuf_FieldOptions_TARGET_TYPE_MESSAGE = 3,
161 google_protobuf_FieldOptions_TARGET_TYPE_FIELD = 4,
162 google_protobuf_FieldOptions_TARGET_TYPE_ONEOF = 5,
163 google_protobuf_FieldOptions_TARGET_TYPE_ENUM = 6,
164 google_protobuf_FieldOptions_TARGET_TYPE_ENUM_ENTRY = 7,
165 google_protobuf_FieldOptions_TARGET_TYPE_SERVICE = 8,
166 google_protobuf_FieldOptions_TARGET_TYPE_METHOD = 9
167 } google_protobuf_FieldOptions_OptionTargetType;
168
169 typedef enum {
170 google_protobuf_FileOptions_SPEED = 1,
171 google_protobuf_FileOptions_CODE_SIZE = 2,
172 google_protobuf_FileOptions_LITE_RUNTIME = 3
173 } google_protobuf_FileOptions_OptimizeMode;
174
175 typedef enum {
176 google_protobuf_GeneratedCodeInfo_Annotation_NONE = 0,
177 google_protobuf_GeneratedCodeInfo_Annotation_SET = 1,
178 google_protobuf_GeneratedCodeInfo_Annotation_ALIAS = 2
179 } google_protobuf_GeneratedCodeInfo_Annotation_Semantic;
180
181 typedef enum {
182 google_protobuf_MethodOptions_IDEMPOTENCY_UNKNOWN = 0,
183 google_protobuf_MethodOptions_NO_SIDE_EFFECTS = 1,
184 google_protobuf_MethodOptions_IDEMPOTENT = 2
185 } google_protobuf_MethodOptions_IdempotencyLevel;
186
187
188
189 /* google.protobuf.FileDescriptorSet */
190
google_protobuf_FileDescriptorSet_new(upb_Arena * arena)191 UPB_INLINE google_protobuf_FileDescriptorSet* google_protobuf_FileDescriptorSet_new(upb_Arena* arena) {
192 return (google_protobuf_FileDescriptorSet*)_upb_Message_New(&google__protobuf__FileDescriptorSet_msg_init, arena);
193 }
google_protobuf_FileDescriptorSet_parse(const char * buf,size_t size,upb_Arena * arena)194 UPB_INLINE google_protobuf_FileDescriptorSet* google_protobuf_FileDescriptorSet_parse(const char* buf, size_t size, upb_Arena* arena) {
195 google_protobuf_FileDescriptorSet* ret = google_protobuf_FileDescriptorSet_new(arena);
196 if (!ret) return NULL;
197 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorSet_msg_init, NULL, 0, arena) !=
198 kUpb_DecodeStatus_Ok) {
199 return NULL;
200 }
201 return ret;
202 }
google_protobuf_FileDescriptorSet_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)203 UPB_INLINE google_protobuf_FileDescriptorSet* google_protobuf_FileDescriptorSet_parse_ex(const char* buf, size_t size,
204 const upb_ExtensionRegistry* extreg,
205 int options, upb_Arena* arena) {
206 google_protobuf_FileDescriptorSet* ret = google_protobuf_FileDescriptorSet_new(arena);
207 if (!ret) return NULL;
208 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorSet_msg_init, extreg, options,
209 arena) != kUpb_DecodeStatus_Ok) {
210 return NULL;
211 }
212 return ret;
213 }
google_protobuf_FileDescriptorSet_serialize(const google_protobuf_FileDescriptorSet * msg,upb_Arena * arena,size_t * len)214 UPB_INLINE char* google_protobuf_FileDescriptorSet_serialize(const google_protobuf_FileDescriptorSet* msg, upb_Arena* arena, size_t* len) {
215 char* ptr;
216 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorSet_msg_init, 0, arena, &ptr, len);
217 return ptr;
218 }
google_protobuf_FileDescriptorSet_serialize_ex(const google_protobuf_FileDescriptorSet * msg,int options,upb_Arena * arena,size_t * len)219 UPB_INLINE char* google_protobuf_FileDescriptorSet_serialize_ex(const google_protobuf_FileDescriptorSet* msg, int options,
220 upb_Arena* arena, size_t* len) {
221 char* ptr;
222 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorSet_msg_init, options, arena, &ptr, len);
223 return ptr;
224 }
google_protobuf_FileDescriptorSet_clear_file(google_protobuf_FileDescriptorSet * msg)225 UPB_INLINE void google_protobuf_FileDescriptorSet_clear_file(google_protobuf_FileDescriptorSet* msg) {
226 const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
227 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
228 }
google_protobuf_FileDescriptorSet_file(const google_protobuf_FileDescriptorSet * msg,size_t * size)229 UPB_INLINE const google_protobuf_FileDescriptorProto* const* google_protobuf_FileDescriptorSet_file(const google_protobuf_FileDescriptorSet* msg, size_t* size) {
230 const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
231 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
232 if (arr) {
233 if (size) *size = arr->UPB_PRIVATE(size);
234 return (const google_protobuf_FileDescriptorProto* const*)upb_Array_DataPtr(arr);
235 } else {
236 if (size) *size = 0;
237 return NULL;
238 }
239 }
_google_protobuf_FileDescriptorSet_file_upb_array(const google_protobuf_FileDescriptorSet * msg,size_t * size)240 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorSet_file_upb_array(const google_protobuf_FileDescriptorSet* msg, size_t* size) {
241 const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
242 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
243 if (size) {
244 *size = arr ? arr->UPB_PRIVATE(size) : 0;
245 }
246 return arr;
247 }
_google_protobuf_FileDescriptorSet_file_mutable_upb_array(google_protobuf_FileDescriptorSet * msg,size_t * size,upb_Arena * arena)248 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorSet_file_mutable_upb_array(google_protobuf_FileDescriptorSet* msg, size_t* size, upb_Arena* arena) {
249 const upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
250 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
251 &field, arena);
252 if (size) {
253 *size = arr ? arr->UPB_PRIVATE(size) : 0;
254 }
255 return arr;
256 }
257
google_protobuf_FileDescriptorSet_mutable_file(google_protobuf_FileDescriptorSet * msg,size_t * size)258 UPB_INLINE google_protobuf_FileDescriptorProto** google_protobuf_FileDescriptorSet_mutable_file(google_protobuf_FileDescriptorSet* msg, size_t* size) {
259 upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
260 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
261 if (arr) {
262 if (size) *size = arr->UPB_PRIVATE(size);
263 return (google_protobuf_FileDescriptorProto**)upb_Array_MutableDataPtr(arr);
264 } else {
265 if (size) *size = 0;
266 return NULL;
267 }
268 }
google_protobuf_FileDescriptorSet_resize_file(google_protobuf_FileDescriptorSet * msg,size_t size,upb_Arena * arena)269 UPB_INLINE google_protobuf_FileDescriptorProto** google_protobuf_FileDescriptorSet_resize_file(google_protobuf_FileDescriptorSet* msg, size_t size, upb_Arena* arena) {
270 upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
271 return (google_protobuf_FileDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
272 &field, size, arena);
273 }
google_protobuf_FileDescriptorSet_add_file(google_protobuf_FileDescriptorSet * msg,upb_Arena * arena)274 UPB_INLINE struct google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorSet_add_file(google_protobuf_FileDescriptorSet* msg, upb_Arena* arena) {
275 upb_MiniTableField field = {1, 8, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
276 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
277 UPB_UPCAST(msg), &field, arena);
278 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
279 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
280 return NULL;
281 }
282 struct google_protobuf_FileDescriptorProto* sub = (struct google_protobuf_FileDescriptorProto*)_upb_Message_New(&google__protobuf__FileDescriptorProto_msg_init, arena);
283 if (!arr || !sub) return NULL;
284 UPB_PRIVATE(_upb_Array_Set)
285 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
286 return sub;
287 }
288
289 /* google.protobuf.FileDescriptorProto */
290
google_protobuf_FileDescriptorProto_new(upb_Arena * arena)291 UPB_INLINE google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorProto_new(upb_Arena* arena) {
292 return (google_protobuf_FileDescriptorProto*)_upb_Message_New(&google__protobuf__FileDescriptorProto_msg_init, arena);
293 }
google_protobuf_FileDescriptorProto_parse(const char * buf,size_t size,upb_Arena * arena)294 UPB_INLINE google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
295 google_protobuf_FileDescriptorProto* ret = google_protobuf_FileDescriptorProto_new(arena);
296 if (!ret) return NULL;
297 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorProto_msg_init, NULL, 0, arena) !=
298 kUpb_DecodeStatus_Ok) {
299 return NULL;
300 }
301 return ret;
302 }
google_protobuf_FileDescriptorProto_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)303 UPB_INLINE google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorProto_parse_ex(const char* buf, size_t size,
304 const upb_ExtensionRegistry* extreg,
305 int options, upb_Arena* arena) {
306 google_protobuf_FileDescriptorProto* ret = google_protobuf_FileDescriptorProto_new(arena);
307 if (!ret) return NULL;
308 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FileDescriptorProto_msg_init, extreg, options,
309 arena) != kUpb_DecodeStatus_Ok) {
310 return NULL;
311 }
312 return ret;
313 }
google_protobuf_FileDescriptorProto_serialize(const google_protobuf_FileDescriptorProto * msg,upb_Arena * arena,size_t * len)314 UPB_INLINE char* google_protobuf_FileDescriptorProto_serialize(const google_protobuf_FileDescriptorProto* msg, upb_Arena* arena, size_t* len) {
315 char* ptr;
316 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorProto_msg_init, 0, arena, &ptr, len);
317 return ptr;
318 }
google_protobuf_FileDescriptorProto_serialize_ex(const google_protobuf_FileDescriptorProto * msg,int options,upb_Arena * arena,size_t * len)319 UPB_INLINE char* google_protobuf_FileDescriptorProto_serialize_ex(const google_protobuf_FileDescriptorProto* msg, int options,
320 upb_Arena* arena, size_t* len) {
321 char* ptr;
322 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FileDescriptorProto_msg_init, options, arena, &ptr, len);
323 return ptr;
324 }
google_protobuf_FileDescriptorProto_clear_name(google_protobuf_FileDescriptorProto * msg)325 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_name(google_protobuf_FileDescriptorProto* msg) {
326 const upb_MiniTableField field = {1, UPB_SIZE(52, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
327 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
328 }
google_protobuf_FileDescriptorProto_name(const google_protobuf_FileDescriptorProto * msg)329 UPB_INLINE upb_StringView google_protobuf_FileDescriptorProto_name(const google_protobuf_FileDescriptorProto* msg) {
330 upb_StringView default_val = upb_StringView_FromString("");
331 upb_StringView ret;
332 const upb_MiniTableField field = {1, UPB_SIZE(52, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
333 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
334 &default_val, &ret);
335 return ret;
336 }
google_protobuf_FileDescriptorProto_has_name(const google_protobuf_FileDescriptorProto * msg)337 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_name(const google_protobuf_FileDescriptorProto* msg) {
338 const upb_MiniTableField field = {1, UPB_SIZE(52, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
339 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
340 }
google_protobuf_FileDescriptorProto_clear_package(google_protobuf_FileDescriptorProto * msg)341 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_package(google_protobuf_FileDescriptorProto* msg) {
342 const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
343 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
344 }
google_protobuf_FileDescriptorProto_package(const google_protobuf_FileDescriptorProto * msg)345 UPB_INLINE upb_StringView google_protobuf_FileDescriptorProto_package(const google_protobuf_FileDescriptorProto* msg) {
346 upb_StringView default_val = upb_StringView_FromString("");
347 upb_StringView ret;
348 const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
349 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
350 &default_val, &ret);
351 return ret;
352 }
google_protobuf_FileDescriptorProto_has_package(const google_protobuf_FileDescriptorProto * msg)353 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_package(const google_protobuf_FileDescriptorProto* msg) {
354 const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
355 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
356 }
google_protobuf_FileDescriptorProto_clear_dependency(google_protobuf_FileDescriptorProto * msg)357 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_dependency(google_protobuf_FileDescriptorProto* msg) {
358 const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
359 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
360 }
google_protobuf_FileDescriptorProto_dependency(const google_protobuf_FileDescriptorProto * msg,size_t * size)361 UPB_INLINE upb_StringView const* google_protobuf_FileDescriptorProto_dependency(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
362 const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
363 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
364 if (arr) {
365 if (size) *size = arr->UPB_PRIVATE(size);
366 return (upb_StringView const*)upb_Array_DataPtr(arr);
367 } else {
368 if (size) *size = 0;
369 return NULL;
370 }
371 }
_google_protobuf_FileDescriptorProto_dependency_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)372 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_dependency_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
373 const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
374 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
375 if (size) {
376 *size = arr ? arr->UPB_PRIVATE(size) : 0;
377 }
378 return arr;
379 }
_google_protobuf_FileDescriptorProto_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)380 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
381 const upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
382 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
383 &field, arena);
384 if (size) {
385 *size = arr ? arr->UPB_PRIVATE(size) : 0;
386 }
387 return arr;
388 }
google_protobuf_FileDescriptorProto_clear_message_type(google_protobuf_FileDescriptorProto * msg)389 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_message_type(google_protobuf_FileDescriptorProto* msg) {
390 const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
391 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
392 }
google_protobuf_FileDescriptorProto_message_type(const google_protobuf_FileDescriptorProto * msg,size_t * size)393 UPB_INLINE const google_protobuf_DescriptorProto* const* google_protobuf_FileDescriptorProto_message_type(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
394 const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
395 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
396 if (arr) {
397 if (size) *size = arr->UPB_PRIVATE(size);
398 return (const google_protobuf_DescriptorProto* const*)upb_Array_DataPtr(arr);
399 } else {
400 if (size) *size = 0;
401 return NULL;
402 }
403 }
_google_protobuf_FileDescriptorProto_message_type_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)404 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_message_type_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
405 const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
406 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
407 if (size) {
408 *size = arr ? arr->UPB_PRIVATE(size) : 0;
409 }
410 return arr;
411 }
_google_protobuf_FileDescriptorProto_message_type_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)412 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_message_type_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
413 const upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
414 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
415 &field, arena);
416 if (size) {
417 *size = arr ? arr->UPB_PRIVATE(size) : 0;
418 }
419 return arr;
420 }
google_protobuf_FileDescriptorProto_clear_enum_type(google_protobuf_FileDescriptorProto * msg)421 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_enum_type(google_protobuf_FileDescriptorProto* msg) {
422 const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
423 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
424 }
google_protobuf_FileDescriptorProto_enum_type(const google_protobuf_FileDescriptorProto * msg,size_t * size)425 UPB_INLINE const google_protobuf_EnumDescriptorProto* const* google_protobuf_FileDescriptorProto_enum_type(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
426 const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
427 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
428 if (arr) {
429 if (size) *size = arr->UPB_PRIVATE(size);
430 return (const google_protobuf_EnumDescriptorProto* const*)upb_Array_DataPtr(arr);
431 } else {
432 if (size) *size = 0;
433 return NULL;
434 }
435 }
_google_protobuf_FileDescriptorProto_enum_type_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)436 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_enum_type_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
437 const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
438 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
439 if (size) {
440 *size = arr ? arr->UPB_PRIVATE(size) : 0;
441 }
442 return arr;
443 }
_google_protobuf_FileDescriptorProto_enum_type_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)444 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_enum_type_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
445 const upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
446 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
447 &field, arena);
448 if (size) {
449 *size = arr ? arr->UPB_PRIVATE(size) : 0;
450 }
451 return arr;
452 }
google_protobuf_FileDescriptorProto_clear_service(google_protobuf_FileDescriptorProto * msg)453 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_service(google_protobuf_FileDescriptorProto* msg) {
454 const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
455 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
456 }
google_protobuf_FileDescriptorProto_service(const google_protobuf_FileDescriptorProto * msg,size_t * size)457 UPB_INLINE const google_protobuf_ServiceDescriptorProto* const* google_protobuf_FileDescriptorProto_service(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
458 const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
459 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
460 if (arr) {
461 if (size) *size = arr->UPB_PRIVATE(size);
462 return (const google_protobuf_ServiceDescriptorProto* const*)upb_Array_DataPtr(arr);
463 } else {
464 if (size) *size = 0;
465 return NULL;
466 }
467 }
_google_protobuf_FileDescriptorProto_service_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)468 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_service_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
469 const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
470 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
471 if (size) {
472 *size = arr ? arr->UPB_PRIVATE(size) : 0;
473 }
474 return arr;
475 }
_google_protobuf_FileDescriptorProto_service_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)476 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_service_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
477 const upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
478 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
479 &field, arena);
480 if (size) {
481 *size = arr ? arr->UPB_PRIVATE(size) : 0;
482 }
483 return arr;
484 }
google_protobuf_FileDescriptorProto_clear_extension(google_protobuf_FileDescriptorProto * msg)485 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_extension(google_protobuf_FileDescriptorProto* msg) {
486 const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
487 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
488 }
google_protobuf_FileDescriptorProto_extension(const google_protobuf_FileDescriptorProto * msg,size_t * size)489 UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_FileDescriptorProto_extension(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
490 const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
491 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
492 if (arr) {
493 if (size) *size = arr->UPB_PRIVATE(size);
494 return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr);
495 } else {
496 if (size) *size = 0;
497 return NULL;
498 }
499 }
_google_protobuf_FileDescriptorProto_extension_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)500 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_extension_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
501 const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
502 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
503 if (size) {
504 *size = arr ? arr->UPB_PRIVATE(size) : 0;
505 }
506 return arr;
507 }
_google_protobuf_FileDescriptorProto_extension_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)508 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_extension_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
509 const upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
510 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
511 &field, arena);
512 if (size) {
513 *size = arr ? arr->UPB_PRIVATE(size) : 0;
514 }
515 return arr;
516 }
google_protobuf_FileDescriptorProto_clear_options(google_protobuf_FileDescriptorProto * msg)517 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_options(google_protobuf_FileDescriptorProto* msg) {
518 const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
519 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
520 }
google_protobuf_FileDescriptorProto_options(const google_protobuf_FileDescriptorProto * msg)521 UPB_INLINE const google_protobuf_FileOptions* google_protobuf_FileDescriptorProto_options(const google_protobuf_FileDescriptorProto* msg) {
522 const google_protobuf_FileOptions* default_val = NULL;
523 const google_protobuf_FileOptions* ret;
524 const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
525 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
526 &default_val, &ret);
527 return ret;
528 }
google_protobuf_FileDescriptorProto_has_options(const google_protobuf_FileDescriptorProto * msg)529 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_options(const google_protobuf_FileDescriptorProto* msg) {
530 const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
531 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
532 }
google_protobuf_FileDescriptorProto_clear_source_code_info(google_protobuf_FileDescriptorProto * msg)533 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_source_code_info(google_protobuf_FileDescriptorProto* msg) {
534 const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
535 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
536 }
google_protobuf_FileDescriptorProto_source_code_info(const google_protobuf_FileDescriptorProto * msg)537 UPB_INLINE const google_protobuf_SourceCodeInfo* google_protobuf_FileDescriptorProto_source_code_info(const google_protobuf_FileDescriptorProto* msg) {
538 const google_protobuf_SourceCodeInfo* default_val = NULL;
539 const google_protobuf_SourceCodeInfo* ret;
540 const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
541 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
542 &default_val, &ret);
543 return ret;
544 }
google_protobuf_FileDescriptorProto_has_source_code_info(const google_protobuf_FileDescriptorProto * msg)545 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_source_code_info(const google_protobuf_FileDescriptorProto* msg) {
546 const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
547 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
548 }
google_protobuf_FileDescriptorProto_clear_public_dependency(google_protobuf_FileDescriptorProto * msg)549 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_public_dependency(google_protobuf_FileDescriptorProto* msg) {
550 const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
551 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
552 }
google_protobuf_FileDescriptorProto_public_dependency(const google_protobuf_FileDescriptorProto * msg,size_t * size)553 UPB_INLINE int32_t const* google_protobuf_FileDescriptorProto_public_dependency(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
554 const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
555 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
556 if (arr) {
557 if (size) *size = arr->UPB_PRIVATE(size);
558 return (int32_t const*)upb_Array_DataPtr(arr);
559 } else {
560 if (size) *size = 0;
561 return NULL;
562 }
563 }
_google_protobuf_FileDescriptorProto_public_dependency_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)564 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_public_dependency_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
565 const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
566 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
567 if (size) {
568 *size = arr ? arr->UPB_PRIVATE(size) : 0;
569 }
570 return arr;
571 }
_google_protobuf_FileDescriptorProto_public_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)572 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_public_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
573 const upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
574 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
575 &field, arena);
576 if (size) {
577 *size = arr ? arr->UPB_PRIVATE(size) : 0;
578 }
579 return arr;
580 }
google_protobuf_FileDescriptorProto_clear_weak_dependency(google_protobuf_FileDescriptorProto * msg)581 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_weak_dependency(google_protobuf_FileDescriptorProto* msg) {
582 const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
583 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
584 }
google_protobuf_FileDescriptorProto_weak_dependency(const google_protobuf_FileDescriptorProto * msg,size_t * size)585 UPB_INLINE int32_t const* google_protobuf_FileDescriptorProto_weak_dependency(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
586 const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
587 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
588 if (arr) {
589 if (size) *size = arr->UPB_PRIVATE(size);
590 return (int32_t const*)upb_Array_DataPtr(arr);
591 } else {
592 if (size) *size = 0;
593 return NULL;
594 }
595 }
_google_protobuf_FileDescriptorProto_weak_dependency_upb_array(const google_protobuf_FileDescriptorProto * msg,size_t * size)596 UPB_INLINE const upb_Array* _google_protobuf_FileDescriptorProto_weak_dependency_upb_array(const google_protobuf_FileDescriptorProto* msg, size_t* size) {
597 const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
598 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
599 if (size) {
600 *size = arr ? arr->UPB_PRIVATE(size) : 0;
601 }
602 return arr;
603 }
_google_protobuf_FileDescriptorProto_weak_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto * msg,size_t * size,upb_Arena * arena)604 UPB_INLINE upb_Array* _google_protobuf_FileDescriptorProto_weak_dependency_mutable_upb_array(google_protobuf_FileDescriptorProto* msg, size_t* size, upb_Arena* arena) {
605 const upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
606 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
607 &field, arena);
608 if (size) {
609 *size = arr ? arr->UPB_PRIVATE(size) : 0;
610 }
611 return arr;
612 }
google_protobuf_FileDescriptorProto_clear_syntax(google_protobuf_FileDescriptorProto * msg)613 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_syntax(google_protobuf_FileDescriptorProto* msg) {
614 const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
615 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
616 }
google_protobuf_FileDescriptorProto_syntax(const google_protobuf_FileDescriptorProto * msg)617 UPB_INLINE upb_StringView google_protobuf_FileDescriptorProto_syntax(const google_protobuf_FileDescriptorProto* msg) {
618 upb_StringView default_val = upb_StringView_FromString("");
619 upb_StringView ret;
620 const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
621 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
622 &default_val, &ret);
623 return ret;
624 }
google_protobuf_FileDescriptorProto_has_syntax(const google_protobuf_FileDescriptorProto * msg)625 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_syntax(const google_protobuf_FileDescriptorProto* msg) {
626 const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
627 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
628 }
google_protobuf_FileDescriptorProto_clear_edition(google_protobuf_FileDescriptorProto * msg)629 UPB_INLINE void google_protobuf_FileDescriptorProto_clear_edition(google_protobuf_FileDescriptorProto* msg) {
630 const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
631 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
632 }
google_protobuf_FileDescriptorProto_edition(const google_protobuf_FileDescriptorProto * msg)633 UPB_INLINE int32_t google_protobuf_FileDescriptorProto_edition(const google_protobuf_FileDescriptorProto* msg) {
634 int32_t default_val = 0;
635 int32_t ret;
636 const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
637 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
638 &default_val, &ret);
639 return ret;
640 }
google_protobuf_FileDescriptorProto_has_edition(const google_protobuf_FileDescriptorProto * msg)641 UPB_INLINE bool google_protobuf_FileDescriptorProto_has_edition(const google_protobuf_FileDescriptorProto* msg) {
642 const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
643 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
644 }
645
google_protobuf_FileDescriptorProto_set_name(google_protobuf_FileDescriptorProto * msg,upb_StringView value)646 UPB_INLINE void google_protobuf_FileDescriptorProto_set_name(google_protobuf_FileDescriptorProto *msg, upb_StringView value) {
647 const upb_MiniTableField field = {1, UPB_SIZE(52, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
648 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
649 }
google_protobuf_FileDescriptorProto_set_package(google_protobuf_FileDescriptorProto * msg,upb_StringView value)650 UPB_INLINE void google_protobuf_FileDescriptorProto_set_package(google_protobuf_FileDescriptorProto *msg, upb_StringView value) {
651 const upb_MiniTableField field = {2, UPB_SIZE(60, 32), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
652 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
653 }
google_protobuf_FileDescriptorProto_mutable_dependency(google_protobuf_FileDescriptorProto * msg,size_t * size)654 UPB_INLINE upb_StringView* google_protobuf_FileDescriptorProto_mutable_dependency(google_protobuf_FileDescriptorProto* msg, size_t* size) {
655 upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
656 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
657 if (arr) {
658 if (size) *size = arr->UPB_PRIVATE(size);
659 return (upb_StringView*)upb_Array_MutableDataPtr(arr);
660 } else {
661 if (size) *size = 0;
662 return NULL;
663 }
664 }
google_protobuf_FileDescriptorProto_resize_dependency(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)665 UPB_INLINE upb_StringView* google_protobuf_FileDescriptorProto_resize_dependency(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
666 upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
667 return (upb_StringView*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
668 &field, size, arena);
669 }
google_protobuf_FileDescriptorProto_add_dependency(google_protobuf_FileDescriptorProto * msg,upb_StringView val,upb_Arena * arena)670 UPB_INLINE bool google_protobuf_FileDescriptorProto_add_dependency(google_protobuf_FileDescriptorProto* msg, upb_StringView val, upb_Arena* arena) {
671 upb_MiniTableField field = {3, UPB_SIZE(12, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
672 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
673 UPB_UPCAST(msg), &field, arena);
674 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
675 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
676 return false;
677 }
678 UPB_PRIVATE(_upb_Array_Set)
679 (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
680 return true;
681 }
google_protobuf_FileDescriptorProto_mutable_message_type(google_protobuf_FileDescriptorProto * msg,size_t * size)682 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_FileDescriptorProto_mutable_message_type(google_protobuf_FileDescriptorProto* msg, size_t* size) {
683 upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
684 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
685 if (arr) {
686 if (size) *size = arr->UPB_PRIVATE(size);
687 return (google_protobuf_DescriptorProto**)upb_Array_MutableDataPtr(arr);
688 } else {
689 if (size) *size = 0;
690 return NULL;
691 }
692 }
google_protobuf_FileDescriptorProto_resize_message_type(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)693 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_FileDescriptorProto_resize_message_type(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
694 upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
695 return (google_protobuf_DescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
696 &field, size, arena);
697 }
google_protobuf_FileDescriptorProto_add_message_type(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)698 UPB_INLINE struct google_protobuf_DescriptorProto* google_protobuf_FileDescriptorProto_add_message_type(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
699 upb_MiniTableField field = {4, UPB_SIZE(16, 56), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
700 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
701 UPB_UPCAST(msg), &field, arena);
702 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
703 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
704 return NULL;
705 }
706 struct google_protobuf_DescriptorProto* sub = (struct google_protobuf_DescriptorProto*)_upb_Message_New(&google__protobuf__DescriptorProto_msg_init, arena);
707 if (!arr || !sub) return NULL;
708 UPB_PRIVATE(_upb_Array_Set)
709 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
710 return sub;
711 }
google_protobuf_FileDescriptorProto_mutable_enum_type(google_protobuf_FileDescriptorProto * msg,size_t * size)712 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_FileDescriptorProto_mutable_enum_type(google_protobuf_FileDescriptorProto* msg, size_t* size) {
713 upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
714 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
715 if (arr) {
716 if (size) *size = arr->UPB_PRIVATE(size);
717 return (google_protobuf_EnumDescriptorProto**)upb_Array_MutableDataPtr(arr);
718 } else {
719 if (size) *size = 0;
720 return NULL;
721 }
722 }
google_protobuf_FileDescriptorProto_resize_enum_type(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)723 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_FileDescriptorProto_resize_enum_type(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
724 upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
725 return (google_protobuf_EnumDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
726 &field, size, arena);
727 }
google_protobuf_FileDescriptorProto_add_enum_type(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)728 UPB_INLINE struct google_protobuf_EnumDescriptorProto* google_protobuf_FileDescriptorProto_add_enum_type(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
729 upb_MiniTableField field = {5, UPB_SIZE(20, 64), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
730 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
731 UPB_UPCAST(msg), &field, arena);
732 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
733 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
734 return NULL;
735 }
736 struct google_protobuf_EnumDescriptorProto* sub = (struct google_protobuf_EnumDescriptorProto*)_upb_Message_New(&google__protobuf__EnumDescriptorProto_msg_init, arena);
737 if (!arr || !sub) return NULL;
738 UPB_PRIVATE(_upb_Array_Set)
739 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
740 return sub;
741 }
google_protobuf_FileDescriptorProto_mutable_service(google_protobuf_FileDescriptorProto * msg,size_t * size)742 UPB_INLINE google_protobuf_ServiceDescriptorProto** google_protobuf_FileDescriptorProto_mutable_service(google_protobuf_FileDescriptorProto* msg, size_t* size) {
743 upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
744 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
745 if (arr) {
746 if (size) *size = arr->UPB_PRIVATE(size);
747 return (google_protobuf_ServiceDescriptorProto**)upb_Array_MutableDataPtr(arr);
748 } else {
749 if (size) *size = 0;
750 return NULL;
751 }
752 }
google_protobuf_FileDescriptorProto_resize_service(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)753 UPB_INLINE google_protobuf_ServiceDescriptorProto** google_protobuf_FileDescriptorProto_resize_service(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
754 upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
755 return (google_protobuf_ServiceDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
756 &field, size, arena);
757 }
google_protobuf_FileDescriptorProto_add_service(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)758 UPB_INLINE struct google_protobuf_ServiceDescriptorProto* google_protobuf_FileDescriptorProto_add_service(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
759 upb_MiniTableField field = {6, UPB_SIZE(24, 72), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
760 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
761 UPB_UPCAST(msg), &field, arena);
762 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
763 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
764 return NULL;
765 }
766 struct google_protobuf_ServiceDescriptorProto* sub = (struct google_protobuf_ServiceDescriptorProto*)_upb_Message_New(&google__protobuf__ServiceDescriptorProto_msg_init, arena);
767 if (!arr || !sub) return NULL;
768 UPB_PRIVATE(_upb_Array_Set)
769 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
770 return sub;
771 }
google_protobuf_FileDescriptorProto_mutable_extension(google_protobuf_FileDescriptorProto * msg,size_t * size)772 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_FileDescriptorProto_mutable_extension(google_protobuf_FileDescriptorProto* msg, size_t* size) {
773 upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
774 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
775 if (arr) {
776 if (size) *size = arr->UPB_PRIVATE(size);
777 return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr);
778 } else {
779 if (size) *size = 0;
780 return NULL;
781 }
782 }
google_protobuf_FileDescriptorProto_resize_extension(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)783 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_FileDescriptorProto_resize_extension(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
784 upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
785 return (google_protobuf_FieldDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
786 &field, size, arena);
787 }
google_protobuf_FileDescriptorProto_add_extension(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)788 UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_FileDescriptorProto_add_extension(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
789 upb_MiniTableField field = {7, UPB_SIZE(28, 80), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
790 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
791 UPB_UPCAST(msg), &field, arena);
792 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
793 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
794 return NULL;
795 }
796 struct google_protobuf_FieldDescriptorProto* sub = (struct google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
797 if (!arr || !sub) return NULL;
798 UPB_PRIVATE(_upb_Array_Set)
799 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
800 return sub;
801 }
google_protobuf_FileDescriptorProto_set_options(google_protobuf_FileDescriptorProto * msg,google_protobuf_FileOptions * value)802 UPB_INLINE void google_protobuf_FileDescriptorProto_set_options(google_protobuf_FileDescriptorProto *msg, google_protobuf_FileOptions* value) {
803 const upb_MiniTableField field = {8, UPB_SIZE(32, 88), 66, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
804 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
805 }
google_protobuf_FileDescriptorProto_mutable_options(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)806 UPB_INLINE struct google_protobuf_FileOptions* google_protobuf_FileDescriptorProto_mutable_options(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
807 struct google_protobuf_FileOptions* sub = (struct google_protobuf_FileOptions*)google_protobuf_FileDescriptorProto_options(msg);
808 if (sub == NULL) {
809 sub = (struct google_protobuf_FileOptions*)_upb_Message_New(&google__protobuf__FileOptions_msg_init, arena);
810 if (sub) google_protobuf_FileDescriptorProto_set_options(msg, sub);
811 }
812 return sub;
813 }
google_protobuf_FileDescriptorProto_set_source_code_info(google_protobuf_FileDescriptorProto * msg,google_protobuf_SourceCodeInfo * value)814 UPB_INLINE void google_protobuf_FileDescriptorProto_set_source_code_info(google_protobuf_FileDescriptorProto *msg, google_protobuf_SourceCodeInfo* value) {
815 const upb_MiniTableField field = {9, UPB_SIZE(36, 96), 67, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
816 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
817 }
google_protobuf_FileDescriptorProto_mutable_source_code_info(google_protobuf_FileDescriptorProto * msg,upb_Arena * arena)818 UPB_INLINE struct google_protobuf_SourceCodeInfo* google_protobuf_FileDescriptorProto_mutable_source_code_info(google_protobuf_FileDescriptorProto* msg, upb_Arena* arena) {
819 struct google_protobuf_SourceCodeInfo* sub = (struct google_protobuf_SourceCodeInfo*)google_protobuf_FileDescriptorProto_source_code_info(msg);
820 if (sub == NULL) {
821 sub = (struct google_protobuf_SourceCodeInfo*)_upb_Message_New(&google__protobuf__SourceCodeInfo_msg_init, arena);
822 if (sub) google_protobuf_FileDescriptorProto_set_source_code_info(msg, sub);
823 }
824 return sub;
825 }
google_protobuf_FileDescriptorProto_mutable_public_dependency(google_protobuf_FileDescriptorProto * msg,size_t * size)826 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_mutable_public_dependency(google_protobuf_FileDescriptorProto* msg, size_t* size) {
827 upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
828 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
829 if (arr) {
830 if (size) *size = arr->UPB_PRIVATE(size);
831 return (int32_t*)upb_Array_MutableDataPtr(arr);
832 } else {
833 if (size) *size = 0;
834 return NULL;
835 }
836 }
google_protobuf_FileDescriptorProto_resize_public_dependency(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)837 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_resize_public_dependency(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
838 upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
839 return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
840 &field, size, arena);
841 }
google_protobuf_FileDescriptorProto_add_public_dependency(google_protobuf_FileDescriptorProto * msg,int32_t val,upb_Arena * arena)842 UPB_INLINE bool google_protobuf_FileDescriptorProto_add_public_dependency(google_protobuf_FileDescriptorProto* msg, int32_t val, upb_Arena* arena) {
843 upb_MiniTableField field = {10, UPB_SIZE(40, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
844 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
845 UPB_UPCAST(msg), &field, arena);
846 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
847 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
848 return false;
849 }
850 UPB_PRIVATE(_upb_Array_Set)
851 (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
852 return true;
853 }
google_protobuf_FileDescriptorProto_mutable_weak_dependency(google_protobuf_FileDescriptorProto * msg,size_t * size)854 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_mutable_weak_dependency(google_protobuf_FileDescriptorProto* msg, size_t* size) {
855 upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
856 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
857 if (arr) {
858 if (size) *size = arr->UPB_PRIVATE(size);
859 return (int32_t*)upb_Array_MutableDataPtr(arr);
860 } else {
861 if (size) *size = 0;
862 return NULL;
863 }
864 }
google_protobuf_FileDescriptorProto_resize_weak_dependency(google_protobuf_FileDescriptorProto * msg,size_t size,upb_Arena * arena)865 UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_resize_weak_dependency(google_protobuf_FileDescriptorProto* msg, size_t size, upb_Arena* arena) {
866 upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
867 return (int32_t*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
868 &field, size, arena);
869 }
google_protobuf_FileDescriptorProto_add_weak_dependency(google_protobuf_FileDescriptorProto * msg,int32_t val,upb_Arena * arena)870 UPB_INLINE bool google_protobuf_FileDescriptorProto_add_weak_dependency(google_protobuf_FileDescriptorProto* msg, int32_t val, upb_Arena* arena) {
871 upb_MiniTableField field = {11, UPB_SIZE(44, 112), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
872 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
873 UPB_UPCAST(msg), &field, arena);
874 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
875 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
876 return false;
877 }
878 UPB_PRIVATE(_upb_Array_Set)
879 (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
880 return true;
881 }
google_protobuf_FileDescriptorProto_set_syntax(google_protobuf_FileDescriptorProto * msg,upb_StringView value)882 UPB_INLINE void google_protobuf_FileDescriptorProto_set_syntax(google_protobuf_FileDescriptorProto *msg, upb_StringView value) {
883 const upb_MiniTableField field = {12, UPB_SIZE(68, 120), 68, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
884 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
885 }
google_protobuf_FileDescriptorProto_set_edition(google_protobuf_FileDescriptorProto * msg,int32_t value)886 UPB_INLINE void google_protobuf_FileDescriptorProto_set_edition(google_protobuf_FileDescriptorProto *msg, int32_t value) {
887 const upb_MiniTableField field = {14, UPB_SIZE(48, 12), 69, 6, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
888 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
889 }
890
891 /* google.protobuf.DescriptorProto */
892
google_protobuf_DescriptorProto_new(upb_Arena * arena)893 UPB_INLINE google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_new(upb_Arena* arena) {
894 return (google_protobuf_DescriptorProto*)_upb_Message_New(&google__protobuf__DescriptorProto_msg_init, arena);
895 }
google_protobuf_DescriptorProto_parse(const char * buf,size_t size,upb_Arena * arena)896 UPB_INLINE google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
897 google_protobuf_DescriptorProto* ret = google_protobuf_DescriptorProto_new(arena);
898 if (!ret) return NULL;
899 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto_msg_init, NULL, 0, arena) !=
900 kUpb_DecodeStatus_Ok) {
901 return NULL;
902 }
903 return ret;
904 }
google_protobuf_DescriptorProto_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)905 UPB_INLINE google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_parse_ex(const char* buf, size_t size,
906 const upb_ExtensionRegistry* extreg,
907 int options, upb_Arena* arena) {
908 google_protobuf_DescriptorProto* ret = google_protobuf_DescriptorProto_new(arena);
909 if (!ret) return NULL;
910 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto_msg_init, extreg, options,
911 arena) != kUpb_DecodeStatus_Ok) {
912 return NULL;
913 }
914 return ret;
915 }
google_protobuf_DescriptorProto_serialize(const google_protobuf_DescriptorProto * msg,upb_Arena * arena,size_t * len)916 UPB_INLINE char* google_protobuf_DescriptorProto_serialize(const google_protobuf_DescriptorProto* msg, upb_Arena* arena, size_t* len) {
917 char* ptr;
918 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto_msg_init, 0, arena, &ptr, len);
919 return ptr;
920 }
google_protobuf_DescriptorProto_serialize_ex(const google_protobuf_DescriptorProto * msg,int options,upb_Arena * arena,size_t * len)921 UPB_INLINE char* google_protobuf_DescriptorProto_serialize_ex(const google_protobuf_DescriptorProto* msg, int options,
922 upb_Arena* arena, size_t* len) {
923 char* ptr;
924 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto_msg_init, options, arena, &ptr, len);
925 return ptr;
926 }
google_protobuf_DescriptorProto_clear_name(google_protobuf_DescriptorProto * msg)927 UPB_INLINE void google_protobuf_DescriptorProto_clear_name(google_protobuf_DescriptorProto* msg) {
928 const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
929 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
930 }
google_protobuf_DescriptorProto_name(const google_protobuf_DescriptorProto * msg)931 UPB_INLINE upb_StringView google_protobuf_DescriptorProto_name(const google_protobuf_DescriptorProto* msg) {
932 upb_StringView default_val = upb_StringView_FromString("");
933 upb_StringView ret;
934 const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
935 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
936 &default_val, &ret);
937 return ret;
938 }
google_protobuf_DescriptorProto_has_name(const google_protobuf_DescriptorProto * msg)939 UPB_INLINE bool google_protobuf_DescriptorProto_has_name(const google_protobuf_DescriptorProto* msg) {
940 const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
941 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
942 }
google_protobuf_DescriptorProto_clear_field(google_protobuf_DescriptorProto * msg)943 UPB_INLINE void google_protobuf_DescriptorProto_clear_field(google_protobuf_DescriptorProto* msg) {
944 const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
945 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
946 }
google_protobuf_DescriptorProto_field(const google_protobuf_DescriptorProto * msg,size_t * size)947 UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_DescriptorProto_field(const google_protobuf_DescriptorProto* msg, size_t* size) {
948 const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
949 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
950 if (arr) {
951 if (size) *size = arr->UPB_PRIVATE(size);
952 return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr);
953 } else {
954 if (size) *size = 0;
955 return NULL;
956 }
957 }
_google_protobuf_DescriptorProto_field_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)958 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_field_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
959 const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
960 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
961 if (size) {
962 *size = arr ? arr->UPB_PRIVATE(size) : 0;
963 }
964 return arr;
965 }
_google_protobuf_DescriptorProto_field_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)966 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_field_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
967 const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
968 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
969 &field, arena);
970 if (size) {
971 *size = arr ? arr->UPB_PRIVATE(size) : 0;
972 }
973 return arr;
974 }
google_protobuf_DescriptorProto_clear_nested_type(google_protobuf_DescriptorProto * msg)975 UPB_INLINE void google_protobuf_DescriptorProto_clear_nested_type(google_protobuf_DescriptorProto* msg) {
976 const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
977 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
978 }
google_protobuf_DescriptorProto_nested_type(const google_protobuf_DescriptorProto * msg,size_t * size)979 UPB_INLINE const google_protobuf_DescriptorProto* const* google_protobuf_DescriptorProto_nested_type(const google_protobuf_DescriptorProto* msg, size_t* size) {
980 const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
981 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
982 if (arr) {
983 if (size) *size = arr->UPB_PRIVATE(size);
984 return (const google_protobuf_DescriptorProto* const*)upb_Array_DataPtr(arr);
985 } else {
986 if (size) *size = 0;
987 return NULL;
988 }
989 }
_google_protobuf_DescriptorProto_nested_type_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)990 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_nested_type_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
991 const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
992 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
993 if (size) {
994 *size = arr ? arr->UPB_PRIVATE(size) : 0;
995 }
996 return arr;
997 }
_google_protobuf_DescriptorProto_nested_type_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)998 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_nested_type_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
999 const upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1000 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1001 &field, arena);
1002 if (size) {
1003 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1004 }
1005 return arr;
1006 }
google_protobuf_DescriptorProto_clear_enum_type(google_protobuf_DescriptorProto * msg)1007 UPB_INLINE void google_protobuf_DescriptorProto_clear_enum_type(google_protobuf_DescriptorProto* msg) {
1008 const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1009 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1010 }
google_protobuf_DescriptorProto_enum_type(const google_protobuf_DescriptorProto * msg,size_t * size)1011 UPB_INLINE const google_protobuf_EnumDescriptorProto* const* google_protobuf_DescriptorProto_enum_type(const google_protobuf_DescriptorProto* msg, size_t* size) {
1012 const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1013 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1014 if (arr) {
1015 if (size) *size = arr->UPB_PRIVATE(size);
1016 return (const google_protobuf_EnumDescriptorProto* const*)upb_Array_DataPtr(arr);
1017 } else {
1018 if (size) *size = 0;
1019 return NULL;
1020 }
1021 }
_google_protobuf_DescriptorProto_enum_type_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1022 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_enum_type_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1023 const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1024 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1025 if (size) {
1026 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1027 }
1028 return arr;
1029 }
_google_protobuf_DescriptorProto_enum_type_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1030 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_enum_type_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1031 const upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1032 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1033 &field, arena);
1034 if (size) {
1035 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1036 }
1037 return arr;
1038 }
google_protobuf_DescriptorProto_clear_extension_range(google_protobuf_DescriptorProto * msg)1039 UPB_INLINE void google_protobuf_DescriptorProto_clear_extension_range(google_protobuf_DescriptorProto* msg) {
1040 const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1041 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1042 }
google_protobuf_DescriptorProto_extension_range(const google_protobuf_DescriptorProto * msg,size_t * size)1043 UPB_INLINE const google_protobuf_DescriptorProto_ExtensionRange* const* google_protobuf_DescriptorProto_extension_range(const google_protobuf_DescriptorProto* msg, size_t* size) {
1044 const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1045 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1046 if (arr) {
1047 if (size) *size = arr->UPB_PRIVATE(size);
1048 return (const google_protobuf_DescriptorProto_ExtensionRange* const*)upb_Array_DataPtr(arr);
1049 } else {
1050 if (size) *size = 0;
1051 return NULL;
1052 }
1053 }
_google_protobuf_DescriptorProto_extension_range_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1054 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_extension_range_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1055 const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1056 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1057 if (size) {
1058 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1059 }
1060 return arr;
1061 }
_google_protobuf_DescriptorProto_extension_range_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1062 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_extension_range_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1063 const upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1064 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1065 &field, arena);
1066 if (size) {
1067 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1068 }
1069 return arr;
1070 }
google_protobuf_DescriptorProto_clear_extension(google_protobuf_DescriptorProto * msg)1071 UPB_INLINE void google_protobuf_DescriptorProto_clear_extension(google_protobuf_DescriptorProto* msg) {
1072 const upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1073 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1074 }
google_protobuf_DescriptorProto_extension(const google_protobuf_DescriptorProto * msg,size_t * size)1075 UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_DescriptorProto_extension(const google_protobuf_DescriptorProto* msg, size_t* size) {
1076 const upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1077 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1078 if (arr) {
1079 if (size) *size = arr->UPB_PRIVATE(size);
1080 return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr);
1081 } else {
1082 if (size) *size = 0;
1083 return NULL;
1084 }
1085 }
_google_protobuf_DescriptorProto_extension_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1086 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_extension_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1087 const upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1088 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1089 if (size) {
1090 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1091 }
1092 return arr;
1093 }
_google_protobuf_DescriptorProto_extension_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1094 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_extension_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1095 const upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1096 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1097 &field, arena);
1098 if (size) {
1099 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1100 }
1101 return arr;
1102 }
google_protobuf_DescriptorProto_clear_options(google_protobuf_DescriptorProto * msg)1103 UPB_INLINE void google_protobuf_DescriptorProto_clear_options(google_protobuf_DescriptorProto* msg) {
1104 const upb_MiniTableField field = {7, UPB_SIZE(32, 72), 65, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1105 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1106 }
google_protobuf_DescriptorProto_options(const google_protobuf_DescriptorProto * msg)1107 UPB_INLINE const google_protobuf_MessageOptions* google_protobuf_DescriptorProto_options(const google_protobuf_DescriptorProto* msg) {
1108 const google_protobuf_MessageOptions* default_val = NULL;
1109 const google_protobuf_MessageOptions* ret;
1110 const upb_MiniTableField field = {7, UPB_SIZE(32, 72), 65, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1111 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1112 &default_val, &ret);
1113 return ret;
1114 }
google_protobuf_DescriptorProto_has_options(const google_protobuf_DescriptorProto * msg)1115 UPB_INLINE bool google_protobuf_DescriptorProto_has_options(const google_protobuf_DescriptorProto* msg) {
1116 const upb_MiniTableField field = {7, UPB_SIZE(32, 72), 65, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1117 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1118 }
google_protobuf_DescriptorProto_clear_oneof_decl(google_protobuf_DescriptorProto * msg)1119 UPB_INLINE void google_protobuf_DescriptorProto_clear_oneof_decl(google_protobuf_DescriptorProto* msg) {
1120 const upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1121 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1122 }
google_protobuf_DescriptorProto_oneof_decl(const google_protobuf_DescriptorProto * msg,size_t * size)1123 UPB_INLINE const google_protobuf_OneofDescriptorProto* const* google_protobuf_DescriptorProto_oneof_decl(const google_protobuf_DescriptorProto* msg, size_t* size) {
1124 const upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1125 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1126 if (arr) {
1127 if (size) *size = arr->UPB_PRIVATE(size);
1128 return (const google_protobuf_OneofDescriptorProto* const*)upb_Array_DataPtr(arr);
1129 } else {
1130 if (size) *size = 0;
1131 return NULL;
1132 }
1133 }
_google_protobuf_DescriptorProto_oneof_decl_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1134 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_oneof_decl_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1135 const upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1136 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1137 if (size) {
1138 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1139 }
1140 return arr;
1141 }
_google_protobuf_DescriptorProto_oneof_decl_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1142 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_oneof_decl_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1143 const upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1144 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1145 &field, arena);
1146 if (size) {
1147 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1148 }
1149 return arr;
1150 }
google_protobuf_DescriptorProto_clear_reserved_range(google_protobuf_DescriptorProto * msg)1151 UPB_INLINE void google_protobuf_DescriptorProto_clear_reserved_range(google_protobuf_DescriptorProto* msg) {
1152 const upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1153 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1154 }
google_protobuf_DescriptorProto_reserved_range(const google_protobuf_DescriptorProto * msg,size_t * size)1155 UPB_INLINE const google_protobuf_DescriptorProto_ReservedRange* const* google_protobuf_DescriptorProto_reserved_range(const google_protobuf_DescriptorProto* msg, size_t* size) {
1156 const upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1157 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1158 if (arr) {
1159 if (size) *size = arr->UPB_PRIVATE(size);
1160 return (const google_protobuf_DescriptorProto_ReservedRange* const*)upb_Array_DataPtr(arr);
1161 } else {
1162 if (size) *size = 0;
1163 return NULL;
1164 }
1165 }
_google_protobuf_DescriptorProto_reserved_range_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1166 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_reserved_range_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1167 const upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1168 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1169 if (size) {
1170 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1171 }
1172 return arr;
1173 }
_google_protobuf_DescriptorProto_reserved_range_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1174 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_reserved_range_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1175 const upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1176 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1177 &field, arena);
1178 if (size) {
1179 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1180 }
1181 return arr;
1182 }
google_protobuf_DescriptorProto_clear_reserved_name(google_protobuf_DescriptorProto * msg)1183 UPB_INLINE void google_protobuf_DescriptorProto_clear_reserved_name(google_protobuf_DescriptorProto* msg) {
1184 const upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1185 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1186 }
google_protobuf_DescriptorProto_reserved_name(const google_protobuf_DescriptorProto * msg,size_t * size)1187 UPB_INLINE upb_StringView const* google_protobuf_DescriptorProto_reserved_name(const google_protobuf_DescriptorProto* msg, size_t* size) {
1188 const upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1189 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1190 if (arr) {
1191 if (size) *size = arr->UPB_PRIVATE(size);
1192 return (upb_StringView const*)upb_Array_DataPtr(arr);
1193 } else {
1194 if (size) *size = 0;
1195 return NULL;
1196 }
1197 }
_google_protobuf_DescriptorProto_reserved_name_upb_array(const google_protobuf_DescriptorProto * msg,size_t * size)1198 UPB_INLINE const upb_Array* _google_protobuf_DescriptorProto_reserved_name_upb_array(const google_protobuf_DescriptorProto* msg, size_t* size) {
1199 const upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1200 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1201 if (size) {
1202 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1203 }
1204 return arr;
1205 }
_google_protobuf_DescriptorProto_reserved_name_mutable_upb_array(google_protobuf_DescriptorProto * msg,size_t * size,upb_Arena * arena)1206 UPB_INLINE upb_Array* _google_protobuf_DescriptorProto_reserved_name_mutable_upb_array(google_protobuf_DescriptorProto* msg, size_t* size, upb_Arena* arena) {
1207 const upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1208 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1209 &field, arena);
1210 if (size) {
1211 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1212 }
1213 return arr;
1214 }
1215
google_protobuf_DescriptorProto_set_name(google_protobuf_DescriptorProto * msg,upb_StringView value)1216 UPB_INLINE void google_protobuf_DescriptorProto_set_name(google_protobuf_DescriptorProto *msg, upb_StringView value) {
1217 const upb_MiniTableField field = {1, UPB_SIZE(48, 16), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1218 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1219 }
google_protobuf_DescriptorProto_mutable_field(google_protobuf_DescriptorProto * msg,size_t * size)1220 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_mutable_field(google_protobuf_DescriptorProto* msg, size_t* size) {
1221 upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1222 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1223 if (arr) {
1224 if (size) *size = arr->UPB_PRIVATE(size);
1225 return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr);
1226 } else {
1227 if (size) *size = 0;
1228 return NULL;
1229 }
1230 }
google_protobuf_DescriptorProto_resize_field(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1231 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_resize_field(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1232 upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1233 return (google_protobuf_FieldDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1234 &field, size, arena);
1235 }
google_protobuf_DescriptorProto_add_field(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1236 UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_DescriptorProto_add_field(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1237 upb_MiniTableField field = {2, UPB_SIZE(12, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1238 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1239 UPB_UPCAST(msg), &field, arena);
1240 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1241 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1242 return NULL;
1243 }
1244 struct google_protobuf_FieldDescriptorProto* sub = (struct google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
1245 if (!arr || !sub) return NULL;
1246 UPB_PRIVATE(_upb_Array_Set)
1247 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1248 return sub;
1249 }
google_protobuf_DescriptorProto_mutable_nested_type(google_protobuf_DescriptorProto * msg,size_t * size)1250 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_DescriptorProto_mutable_nested_type(google_protobuf_DescriptorProto* msg, size_t* size) {
1251 upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1252 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1253 if (arr) {
1254 if (size) *size = arr->UPB_PRIVATE(size);
1255 return (google_protobuf_DescriptorProto**)upb_Array_MutableDataPtr(arr);
1256 } else {
1257 if (size) *size = 0;
1258 return NULL;
1259 }
1260 }
google_protobuf_DescriptorProto_resize_nested_type(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1261 UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_DescriptorProto_resize_nested_type(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1262 upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1263 return (google_protobuf_DescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1264 &field, size, arena);
1265 }
google_protobuf_DescriptorProto_add_nested_type(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1266 UPB_INLINE struct google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_add_nested_type(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1267 upb_MiniTableField field = {3, UPB_SIZE(16, 40), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1268 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1269 UPB_UPCAST(msg), &field, arena);
1270 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1271 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1272 return NULL;
1273 }
1274 struct google_protobuf_DescriptorProto* sub = (struct google_protobuf_DescriptorProto*)_upb_Message_New(&google__protobuf__DescriptorProto_msg_init, arena);
1275 if (!arr || !sub) return NULL;
1276 UPB_PRIVATE(_upb_Array_Set)
1277 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1278 return sub;
1279 }
google_protobuf_DescriptorProto_mutable_enum_type(google_protobuf_DescriptorProto * msg,size_t * size)1280 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_DescriptorProto_mutable_enum_type(google_protobuf_DescriptorProto* msg, size_t* size) {
1281 upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1282 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1283 if (arr) {
1284 if (size) *size = arr->UPB_PRIVATE(size);
1285 return (google_protobuf_EnumDescriptorProto**)upb_Array_MutableDataPtr(arr);
1286 } else {
1287 if (size) *size = 0;
1288 return NULL;
1289 }
1290 }
google_protobuf_DescriptorProto_resize_enum_type(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1291 UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_DescriptorProto_resize_enum_type(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1292 upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1293 return (google_protobuf_EnumDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1294 &field, size, arena);
1295 }
google_protobuf_DescriptorProto_add_enum_type(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1296 UPB_INLINE struct google_protobuf_EnumDescriptorProto* google_protobuf_DescriptorProto_add_enum_type(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1297 upb_MiniTableField field = {4, UPB_SIZE(20, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1298 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1299 UPB_UPCAST(msg), &field, arena);
1300 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1301 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1302 return NULL;
1303 }
1304 struct google_protobuf_EnumDescriptorProto* sub = (struct google_protobuf_EnumDescriptorProto*)_upb_Message_New(&google__protobuf__EnumDescriptorProto_msg_init, arena);
1305 if (!arr || !sub) return NULL;
1306 UPB_PRIVATE(_upb_Array_Set)
1307 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1308 return sub;
1309 }
google_protobuf_DescriptorProto_mutable_extension_range(google_protobuf_DescriptorProto * msg,size_t * size)1310 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange** google_protobuf_DescriptorProto_mutable_extension_range(google_protobuf_DescriptorProto* msg, size_t* size) {
1311 upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1312 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1313 if (arr) {
1314 if (size) *size = arr->UPB_PRIVATE(size);
1315 return (google_protobuf_DescriptorProto_ExtensionRange**)upb_Array_MutableDataPtr(arr);
1316 } else {
1317 if (size) *size = 0;
1318 return NULL;
1319 }
1320 }
google_protobuf_DescriptorProto_resize_extension_range(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1321 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange** google_protobuf_DescriptorProto_resize_extension_range(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1322 upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1323 return (google_protobuf_DescriptorProto_ExtensionRange**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1324 &field, size, arena);
1325 }
google_protobuf_DescriptorProto_add_extension_range(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1326 UPB_INLINE struct google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_add_extension_range(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1327 upb_MiniTableField field = {5, UPB_SIZE(24, 56), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1328 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1329 UPB_UPCAST(msg), &field, arena);
1330 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1331 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1332 return NULL;
1333 }
1334 struct google_protobuf_DescriptorProto_ExtensionRange* sub = (struct google_protobuf_DescriptorProto_ExtensionRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ExtensionRange_msg_init, arena);
1335 if (!arr || !sub) return NULL;
1336 UPB_PRIVATE(_upb_Array_Set)
1337 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1338 return sub;
1339 }
google_protobuf_DescriptorProto_mutable_extension(google_protobuf_DescriptorProto * msg,size_t * size)1340 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_mutable_extension(google_protobuf_DescriptorProto* msg, size_t* size) {
1341 upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1342 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1343 if (arr) {
1344 if (size) *size = arr->UPB_PRIVATE(size);
1345 return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr);
1346 } else {
1347 if (size) *size = 0;
1348 return NULL;
1349 }
1350 }
google_protobuf_DescriptorProto_resize_extension(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1351 UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProto_resize_extension(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1352 upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1353 return (google_protobuf_FieldDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1354 &field, size, arena);
1355 }
google_protobuf_DescriptorProto_add_extension(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1356 UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_DescriptorProto_add_extension(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1357 upb_MiniTableField field = {6, UPB_SIZE(28, 64), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1358 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1359 UPB_UPCAST(msg), &field, arena);
1360 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1361 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1362 return NULL;
1363 }
1364 struct google_protobuf_FieldDescriptorProto* sub = (struct google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
1365 if (!arr || !sub) return NULL;
1366 UPB_PRIVATE(_upb_Array_Set)
1367 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1368 return sub;
1369 }
google_protobuf_DescriptorProto_set_options(google_protobuf_DescriptorProto * msg,google_protobuf_MessageOptions * value)1370 UPB_INLINE void google_protobuf_DescriptorProto_set_options(google_protobuf_DescriptorProto *msg, google_protobuf_MessageOptions* value) {
1371 const upb_MiniTableField field = {7, UPB_SIZE(32, 72), 65, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1372 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1373 }
google_protobuf_DescriptorProto_mutable_options(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1374 UPB_INLINE struct google_protobuf_MessageOptions* google_protobuf_DescriptorProto_mutable_options(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1375 struct google_protobuf_MessageOptions* sub = (struct google_protobuf_MessageOptions*)google_protobuf_DescriptorProto_options(msg);
1376 if (sub == NULL) {
1377 sub = (struct google_protobuf_MessageOptions*)_upb_Message_New(&google__protobuf__MessageOptions_msg_init, arena);
1378 if (sub) google_protobuf_DescriptorProto_set_options(msg, sub);
1379 }
1380 return sub;
1381 }
google_protobuf_DescriptorProto_mutable_oneof_decl(google_protobuf_DescriptorProto * msg,size_t * size)1382 UPB_INLINE google_protobuf_OneofDescriptorProto** google_protobuf_DescriptorProto_mutable_oneof_decl(google_protobuf_DescriptorProto* msg, size_t* size) {
1383 upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1384 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1385 if (arr) {
1386 if (size) *size = arr->UPB_PRIVATE(size);
1387 return (google_protobuf_OneofDescriptorProto**)upb_Array_MutableDataPtr(arr);
1388 } else {
1389 if (size) *size = 0;
1390 return NULL;
1391 }
1392 }
google_protobuf_DescriptorProto_resize_oneof_decl(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1393 UPB_INLINE google_protobuf_OneofDescriptorProto** google_protobuf_DescriptorProto_resize_oneof_decl(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1394 upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1395 return (google_protobuf_OneofDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1396 &field, size, arena);
1397 }
google_protobuf_DescriptorProto_add_oneof_decl(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1398 UPB_INLINE struct google_protobuf_OneofDescriptorProto* google_protobuf_DescriptorProto_add_oneof_decl(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1399 upb_MiniTableField field = {8, UPB_SIZE(36, 80), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1400 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1401 UPB_UPCAST(msg), &field, arena);
1402 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1403 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1404 return NULL;
1405 }
1406 struct google_protobuf_OneofDescriptorProto* sub = (struct google_protobuf_OneofDescriptorProto*)_upb_Message_New(&google__protobuf__OneofDescriptorProto_msg_init, arena);
1407 if (!arr || !sub) return NULL;
1408 UPB_PRIVATE(_upb_Array_Set)
1409 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1410 return sub;
1411 }
google_protobuf_DescriptorProto_mutable_reserved_range(google_protobuf_DescriptorProto * msg,size_t * size)1412 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange** google_protobuf_DescriptorProto_mutable_reserved_range(google_protobuf_DescriptorProto* msg, size_t* size) {
1413 upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1414 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1415 if (arr) {
1416 if (size) *size = arr->UPB_PRIVATE(size);
1417 return (google_protobuf_DescriptorProto_ReservedRange**)upb_Array_MutableDataPtr(arr);
1418 } else {
1419 if (size) *size = 0;
1420 return NULL;
1421 }
1422 }
google_protobuf_DescriptorProto_resize_reserved_range(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1423 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange** google_protobuf_DescriptorProto_resize_reserved_range(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1424 upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1425 return (google_protobuf_DescriptorProto_ReservedRange**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1426 &field, size, arena);
1427 }
google_protobuf_DescriptorProto_add_reserved_range(google_protobuf_DescriptorProto * msg,upb_Arena * arena)1428 UPB_INLINE struct google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_add_reserved_range(google_protobuf_DescriptorProto* msg, upb_Arena* arena) {
1429 upb_MiniTableField field = {9, UPB_SIZE(40, 88), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1430 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1431 UPB_UPCAST(msg), &field, arena);
1432 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1433 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1434 return NULL;
1435 }
1436 struct google_protobuf_DescriptorProto_ReservedRange* sub = (struct google_protobuf_DescriptorProto_ReservedRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ReservedRange_msg_init, arena);
1437 if (!arr || !sub) return NULL;
1438 UPB_PRIVATE(_upb_Array_Set)
1439 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1440 return sub;
1441 }
google_protobuf_DescriptorProto_mutable_reserved_name(google_protobuf_DescriptorProto * msg,size_t * size)1442 UPB_INLINE upb_StringView* google_protobuf_DescriptorProto_mutable_reserved_name(google_protobuf_DescriptorProto* msg, size_t* size) {
1443 upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1444 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1445 if (arr) {
1446 if (size) *size = arr->UPB_PRIVATE(size);
1447 return (upb_StringView*)upb_Array_MutableDataPtr(arr);
1448 } else {
1449 if (size) *size = 0;
1450 return NULL;
1451 }
1452 }
google_protobuf_DescriptorProto_resize_reserved_name(google_protobuf_DescriptorProto * msg,size_t size,upb_Arena * arena)1453 UPB_INLINE upb_StringView* google_protobuf_DescriptorProto_resize_reserved_name(google_protobuf_DescriptorProto* msg, size_t size, upb_Arena* arena) {
1454 upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1455 return (upb_StringView*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1456 &field, size, arena);
1457 }
google_protobuf_DescriptorProto_add_reserved_name(google_protobuf_DescriptorProto * msg,upb_StringView val,upb_Arena * arena)1458 UPB_INLINE bool google_protobuf_DescriptorProto_add_reserved_name(google_protobuf_DescriptorProto* msg, upb_StringView val, upb_Arena* arena) {
1459 upb_MiniTableField field = {10, UPB_SIZE(44, 96), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1460 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1461 UPB_UPCAST(msg), &field, arena);
1462 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1463 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1464 return false;
1465 }
1466 UPB_PRIVATE(_upb_Array_Set)
1467 (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
1468 return true;
1469 }
1470
1471 /* google.protobuf.DescriptorProto.ExtensionRange */
1472
google_protobuf_DescriptorProto_ExtensionRange_new(upb_Arena * arena)1473 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_ExtensionRange_new(upb_Arena* arena) {
1474 return (google_protobuf_DescriptorProto_ExtensionRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ExtensionRange_msg_init, arena);
1475 }
google_protobuf_DescriptorProto_ExtensionRange_parse(const char * buf,size_t size,upb_Arena * arena)1476 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_ExtensionRange_parse(const char* buf, size_t size, upb_Arena* arena) {
1477 google_protobuf_DescriptorProto_ExtensionRange* ret = google_protobuf_DescriptorProto_ExtensionRange_new(arena);
1478 if (!ret) return NULL;
1479 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, NULL, 0, arena) !=
1480 kUpb_DecodeStatus_Ok) {
1481 return NULL;
1482 }
1483 return ret;
1484 }
google_protobuf_DescriptorProto_ExtensionRange_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)1485 UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_ExtensionRange_parse_ex(const char* buf, size_t size,
1486 const upb_ExtensionRegistry* extreg,
1487 int options, upb_Arena* arena) {
1488 google_protobuf_DescriptorProto_ExtensionRange* ret = google_protobuf_DescriptorProto_ExtensionRange_new(arena);
1489 if (!ret) return NULL;
1490 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, extreg, options,
1491 arena) != kUpb_DecodeStatus_Ok) {
1492 return NULL;
1493 }
1494 return ret;
1495 }
google_protobuf_DescriptorProto_ExtensionRange_serialize(const google_protobuf_DescriptorProto_ExtensionRange * msg,upb_Arena * arena,size_t * len)1496 UPB_INLINE char* google_protobuf_DescriptorProto_ExtensionRange_serialize(const google_protobuf_DescriptorProto_ExtensionRange* msg, upb_Arena* arena, size_t* len) {
1497 char* ptr;
1498 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, 0, arena, &ptr, len);
1499 return ptr;
1500 }
google_protobuf_DescriptorProto_ExtensionRange_serialize_ex(const google_protobuf_DescriptorProto_ExtensionRange * msg,int options,upb_Arena * arena,size_t * len)1501 UPB_INLINE char* google_protobuf_DescriptorProto_ExtensionRange_serialize_ex(const google_protobuf_DescriptorProto_ExtensionRange* msg, int options,
1502 upb_Arena* arena, size_t* len) {
1503 char* ptr;
1504 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ExtensionRange_msg_init, options, arena, &ptr, len);
1505 return ptr;
1506 }
google_protobuf_DescriptorProto_ExtensionRange_clear_start(google_protobuf_DescriptorProto_ExtensionRange * msg)1507 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_clear_start(google_protobuf_DescriptorProto_ExtensionRange* msg) {
1508 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1509 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1510 }
google_protobuf_DescriptorProto_ExtensionRange_start(const google_protobuf_DescriptorProto_ExtensionRange * msg)1511 UPB_INLINE int32_t google_protobuf_DescriptorProto_ExtensionRange_start(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1512 int32_t default_val = (int32_t)0;
1513 int32_t ret;
1514 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1515 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1516 &default_val, &ret);
1517 return ret;
1518 }
google_protobuf_DescriptorProto_ExtensionRange_has_start(const google_protobuf_DescriptorProto_ExtensionRange * msg)1519 UPB_INLINE bool google_protobuf_DescriptorProto_ExtensionRange_has_start(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1520 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1521 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1522 }
google_protobuf_DescriptorProto_ExtensionRange_clear_end(google_protobuf_DescriptorProto_ExtensionRange * msg)1523 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_clear_end(google_protobuf_DescriptorProto_ExtensionRange* msg) {
1524 const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1525 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1526 }
google_protobuf_DescriptorProto_ExtensionRange_end(const google_protobuf_DescriptorProto_ExtensionRange * msg)1527 UPB_INLINE int32_t google_protobuf_DescriptorProto_ExtensionRange_end(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1528 int32_t default_val = (int32_t)0;
1529 int32_t ret;
1530 const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1531 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1532 &default_val, &ret);
1533 return ret;
1534 }
google_protobuf_DescriptorProto_ExtensionRange_has_end(const google_protobuf_DescriptorProto_ExtensionRange * msg)1535 UPB_INLINE bool google_protobuf_DescriptorProto_ExtensionRange_has_end(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1536 const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1537 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1538 }
google_protobuf_DescriptorProto_ExtensionRange_clear_options(google_protobuf_DescriptorProto_ExtensionRange * msg)1539 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_clear_options(google_protobuf_DescriptorProto_ExtensionRange* msg) {
1540 const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1541 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1542 }
google_protobuf_DescriptorProto_ExtensionRange_options(const google_protobuf_DescriptorProto_ExtensionRange * msg)1543 UPB_INLINE const google_protobuf_ExtensionRangeOptions* google_protobuf_DescriptorProto_ExtensionRange_options(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1544 const google_protobuf_ExtensionRangeOptions* default_val = NULL;
1545 const google_protobuf_ExtensionRangeOptions* ret;
1546 const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1547 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1548 &default_val, &ret);
1549 return ret;
1550 }
google_protobuf_DescriptorProto_ExtensionRange_has_options(const google_protobuf_DescriptorProto_ExtensionRange * msg)1551 UPB_INLINE bool google_protobuf_DescriptorProto_ExtensionRange_has_options(const google_protobuf_DescriptorProto_ExtensionRange* msg) {
1552 const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1553 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1554 }
1555
google_protobuf_DescriptorProto_ExtensionRange_set_start(google_protobuf_DescriptorProto_ExtensionRange * msg,int32_t value)1556 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_set_start(google_protobuf_DescriptorProto_ExtensionRange *msg, int32_t value) {
1557 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1558 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1559 }
google_protobuf_DescriptorProto_ExtensionRange_set_end(google_protobuf_DescriptorProto_ExtensionRange * msg,int32_t value)1560 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_set_end(google_protobuf_DescriptorProto_ExtensionRange *msg, int32_t value) {
1561 const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1562 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1563 }
google_protobuf_DescriptorProto_ExtensionRange_set_options(google_protobuf_DescriptorProto_ExtensionRange * msg,google_protobuf_ExtensionRangeOptions * value)1564 UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_set_options(google_protobuf_DescriptorProto_ExtensionRange *msg, google_protobuf_ExtensionRangeOptions* value) {
1565 const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 66, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1566 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1567 }
google_protobuf_DescriptorProto_ExtensionRange_mutable_options(google_protobuf_DescriptorProto_ExtensionRange * msg,upb_Arena * arena)1568 UPB_INLINE struct google_protobuf_ExtensionRangeOptions* google_protobuf_DescriptorProto_ExtensionRange_mutable_options(google_protobuf_DescriptorProto_ExtensionRange* msg, upb_Arena* arena) {
1569 struct google_protobuf_ExtensionRangeOptions* sub = (struct google_protobuf_ExtensionRangeOptions*)google_protobuf_DescriptorProto_ExtensionRange_options(msg);
1570 if (sub == NULL) {
1571 sub = (struct google_protobuf_ExtensionRangeOptions*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions_msg_init, arena);
1572 if (sub) google_protobuf_DescriptorProto_ExtensionRange_set_options(msg, sub);
1573 }
1574 return sub;
1575 }
1576
1577 /* google.protobuf.DescriptorProto.ReservedRange */
1578
google_protobuf_DescriptorProto_ReservedRange_new(upb_Arena * arena)1579 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_ReservedRange_new(upb_Arena* arena) {
1580 return (google_protobuf_DescriptorProto_ReservedRange*)_upb_Message_New(&google__protobuf__DescriptorProto__ReservedRange_msg_init, arena);
1581 }
google_protobuf_DescriptorProto_ReservedRange_parse(const char * buf,size_t size,upb_Arena * arena)1582 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_ReservedRange_parse(const char* buf, size_t size, upb_Arena* arena) {
1583 google_protobuf_DescriptorProto_ReservedRange* ret = google_protobuf_DescriptorProto_ReservedRange_new(arena);
1584 if (!ret) return NULL;
1585 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ReservedRange_msg_init, NULL, 0, arena) !=
1586 kUpb_DecodeStatus_Ok) {
1587 return NULL;
1588 }
1589 return ret;
1590 }
google_protobuf_DescriptorProto_ReservedRange_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)1591 UPB_INLINE google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_ReservedRange_parse_ex(const char* buf, size_t size,
1592 const upb_ExtensionRegistry* extreg,
1593 int options, upb_Arena* arena) {
1594 google_protobuf_DescriptorProto_ReservedRange* ret = google_protobuf_DescriptorProto_ReservedRange_new(arena);
1595 if (!ret) return NULL;
1596 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__DescriptorProto__ReservedRange_msg_init, extreg, options,
1597 arena) != kUpb_DecodeStatus_Ok) {
1598 return NULL;
1599 }
1600 return ret;
1601 }
google_protobuf_DescriptorProto_ReservedRange_serialize(const google_protobuf_DescriptorProto_ReservedRange * msg,upb_Arena * arena,size_t * len)1602 UPB_INLINE char* google_protobuf_DescriptorProto_ReservedRange_serialize(const google_protobuf_DescriptorProto_ReservedRange* msg, upb_Arena* arena, size_t* len) {
1603 char* ptr;
1604 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ReservedRange_msg_init, 0, arena, &ptr, len);
1605 return ptr;
1606 }
google_protobuf_DescriptorProto_ReservedRange_serialize_ex(const google_protobuf_DescriptorProto_ReservedRange * msg,int options,upb_Arena * arena,size_t * len)1607 UPB_INLINE char* google_protobuf_DescriptorProto_ReservedRange_serialize_ex(const google_protobuf_DescriptorProto_ReservedRange* msg, int options,
1608 upb_Arena* arena, size_t* len) {
1609 char* ptr;
1610 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__DescriptorProto__ReservedRange_msg_init, options, arena, &ptr, len);
1611 return ptr;
1612 }
google_protobuf_DescriptorProto_ReservedRange_clear_start(google_protobuf_DescriptorProto_ReservedRange * msg)1613 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_clear_start(google_protobuf_DescriptorProto_ReservedRange* msg) {
1614 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1615 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1616 }
google_protobuf_DescriptorProto_ReservedRange_start(const google_protobuf_DescriptorProto_ReservedRange * msg)1617 UPB_INLINE int32_t google_protobuf_DescriptorProto_ReservedRange_start(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1618 int32_t default_val = (int32_t)0;
1619 int32_t ret;
1620 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1621 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1622 &default_val, &ret);
1623 return ret;
1624 }
google_protobuf_DescriptorProto_ReservedRange_has_start(const google_protobuf_DescriptorProto_ReservedRange * msg)1625 UPB_INLINE bool google_protobuf_DescriptorProto_ReservedRange_has_start(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1626 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1627 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1628 }
google_protobuf_DescriptorProto_ReservedRange_clear_end(google_protobuf_DescriptorProto_ReservedRange * msg)1629 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_clear_end(google_protobuf_DescriptorProto_ReservedRange* msg) {
1630 const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1631 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1632 }
google_protobuf_DescriptorProto_ReservedRange_end(const google_protobuf_DescriptorProto_ReservedRange * msg)1633 UPB_INLINE int32_t google_protobuf_DescriptorProto_ReservedRange_end(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1634 int32_t default_val = (int32_t)0;
1635 int32_t ret;
1636 const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1637 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1638 &default_val, &ret);
1639 return ret;
1640 }
google_protobuf_DescriptorProto_ReservedRange_has_end(const google_protobuf_DescriptorProto_ReservedRange * msg)1641 UPB_INLINE bool google_protobuf_DescriptorProto_ReservedRange_has_end(const google_protobuf_DescriptorProto_ReservedRange* msg) {
1642 const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1643 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1644 }
1645
google_protobuf_DescriptorProto_ReservedRange_set_start(google_protobuf_DescriptorProto_ReservedRange * msg,int32_t value)1646 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_set_start(google_protobuf_DescriptorProto_ReservedRange *msg, int32_t value) {
1647 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1648 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1649 }
google_protobuf_DescriptorProto_ReservedRange_set_end(google_protobuf_DescriptorProto_ReservedRange * msg,int32_t value)1650 UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_set_end(google_protobuf_DescriptorProto_ReservedRange *msg, int32_t value) {
1651 const upb_MiniTableField field = {2, 16, 65, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1652 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1653 }
1654
1655 /* google.protobuf.ExtensionRangeOptions */
1656
google_protobuf_ExtensionRangeOptions_new(upb_Arena * arena)1657 UPB_INLINE google_protobuf_ExtensionRangeOptions* google_protobuf_ExtensionRangeOptions_new(upb_Arena* arena) {
1658 return (google_protobuf_ExtensionRangeOptions*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions_msg_init, arena);
1659 }
google_protobuf_ExtensionRangeOptions_parse(const char * buf,size_t size,upb_Arena * arena)1660 UPB_INLINE google_protobuf_ExtensionRangeOptions* google_protobuf_ExtensionRangeOptions_parse(const char* buf, size_t size, upb_Arena* arena) {
1661 google_protobuf_ExtensionRangeOptions* ret = google_protobuf_ExtensionRangeOptions_new(arena);
1662 if (!ret) return NULL;
1663 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions_msg_init, NULL, 0, arena) !=
1664 kUpb_DecodeStatus_Ok) {
1665 return NULL;
1666 }
1667 return ret;
1668 }
google_protobuf_ExtensionRangeOptions_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)1669 UPB_INLINE google_protobuf_ExtensionRangeOptions* google_protobuf_ExtensionRangeOptions_parse_ex(const char* buf, size_t size,
1670 const upb_ExtensionRegistry* extreg,
1671 int options, upb_Arena* arena) {
1672 google_protobuf_ExtensionRangeOptions* ret = google_protobuf_ExtensionRangeOptions_new(arena);
1673 if (!ret) return NULL;
1674 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions_msg_init, extreg, options,
1675 arena) != kUpb_DecodeStatus_Ok) {
1676 return NULL;
1677 }
1678 return ret;
1679 }
google_protobuf_ExtensionRangeOptions_serialize(const google_protobuf_ExtensionRangeOptions * msg,upb_Arena * arena,size_t * len)1680 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_serialize(const google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena, size_t* len) {
1681 char* ptr;
1682 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions_msg_init, 0, arena, &ptr, len);
1683 return ptr;
1684 }
google_protobuf_ExtensionRangeOptions_serialize_ex(const google_protobuf_ExtensionRangeOptions * msg,int options,upb_Arena * arena,size_t * len)1685 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_serialize_ex(const google_protobuf_ExtensionRangeOptions* msg, int options,
1686 upb_Arena* arena, size_t* len) {
1687 char* ptr;
1688 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions_msg_init, options, arena, &ptr, len);
1689 return ptr;
1690 }
google_protobuf_ExtensionRangeOptions_clear_declaration(google_protobuf_ExtensionRangeOptions * msg)1691 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_declaration(google_protobuf_ExtensionRangeOptions* msg) {
1692 const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1693 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1694 }
google_protobuf_ExtensionRangeOptions_declaration(const google_protobuf_ExtensionRangeOptions * msg,size_t * size)1695 UPB_INLINE const google_protobuf_ExtensionRangeOptions_Declaration* const* google_protobuf_ExtensionRangeOptions_declaration(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1696 const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1697 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1698 if (arr) {
1699 if (size) *size = arr->UPB_PRIVATE(size);
1700 return (const google_protobuf_ExtensionRangeOptions_Declaration* const*)upb_Array_DataPtr(arr);
1701 } else {
1702 if (size) *size = 0;
1703 return NULL;
1704 }
1705 }
_google_protobuf_ExtensionRangeOptions_declaration_upb_array(const google_protobuf_ExtensionRangeOptions * msg,size_t * size)1706 UPB_INLINE const upb_Array* _google_protobuf_ExtensionRangeOptions_declaration_upb_array(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1707 const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1708 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1709 if (size) {
1710 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1711 }
1712 return arr;
1713 }
_google_protobuf_ExtensionRangeOptions_declaration_mutable_upb_array(google_protobuf_ExtensionRangeOptions * msg,size_t * size,upb_Arena * arena)1714 UPB_INLINE upb_Array* _google_protobuf_ExtensionRangeOptions_declaration_mutable_upb_array(google_protobuf_ExtensionRangeOptions* msg, size_t* size, upb_Arena* arena) {
1715 const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1716 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1717 &field, arena);
1718 if (size) {
1719 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1720 }
1721 return arr;
1722 }
google_protobuf_ExtensionRangeOptions_clear_verification(google_protobuf_ExtensionRangeOptions * msg)1723 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_verification(google_protobuf_ExtensionRangeOptions* msg) {
1724 const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1725 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1726 }
google_protobuf_ExtensionRangeOptions_verification(const google_protobuf_ExtensionRangeOptions * msg)1727 UPB_INLINE int32_t google_protobuf_ExtensionRangeOptions_verification(const google_protobuf_ExtensionRangeOptions* msg) {
1728 int32_t default_val = 1;
1729 int32_t ret;
1730 const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1731 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1732 &default_val, &ret);
1733 return ret;
1734 }
google_protobuf_ExtensionRangeOptions_has_verification(const google_protobuf_ExtensionRangeOptions * msg)1735 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_has_verification(const google_protobuf_ExtensionRangeOptions* msg) {
1736 const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1737 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1738 }
google_protobuf_ExtensionRangeOptions_clear_features(google_protobuf_ExtensionRangeOptions * msg)1739 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_features(google_protobuf_ExtensionRangeOptions* msg) {
1740 const upb_MiniTableField field = {50, UPB_SIZE(20, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1741 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1742 }
google_protobuf_ExtensionRangeOptions_features(const google_protobuf_ExtensionRangeOptions * msg)1743 UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_ExtensionRangeOptions_features(const google_protobuf_ExtensionRangeOptions* msg) {
1744 const google_protobuf_FeatureSet* default_val = NULL;
1745 const google_protobuf_FeatureSet* ret;
1746 const upb_MiniTableField field = {50, UPB_SIZE(20, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1747 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1748 &default_val, &ret);
1749 return ret;
1750 }
google_protobuf_ExtensionRangeOptions_has_features(const google_protobuf_ExtensionRangeOptions * msg)1751 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_has_features(const google_protobuf_ExtensionRangeOptions* msg) {
1752 const upb_MiniTableField field = {50, UPB_SIZE(20, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1753 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1754 }
google_protobuf_ExtensionRangeOptions_clear_uninterpreted_option(google_protobuf_ExtensionRangeOptions * msg)1755 UPB_INLINE void google_protobuf_ExtensionRangeOptions_clear_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg) {
1756 const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1757 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1758 }
google_protobuf_ExtensionRangeOptions_uninterpreted_option(const google_protobuf_ExtensionRangeOptions * msg,size_t * size)1759 UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_ExtensionRangeOptions_uninterpreted_option(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1760 const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1761 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1762 if (arr) {
1763 if (size) *size = arr->UPB_PRIVATE(size);
1764 return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr);
1765 } else {
1766 if (size) *size = 0;
1767 return NULL;
1768 }
1769 }
_google_protobuf_ExtensionRangeOptions_uninterpreted_option_upb_array(const google_protobuf_ExtensionRangeOptions * msg,size_t * size)1770 UPB_INLINE const upb_Array* _google_protobuf_ExtensionRangeOptions_uninterpreted_option_upb_array(const google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1771 const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1772 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1773 if (size) {
1774 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1775 }
1776 return arr;
1777 }
_google_protobuf_ExtensionRangeOptions_uninterpreted_option_mutable_upb_array(google_protobuf_ExtensionRangeOptions * msg,size_t * size,upb_Arena * arena)1778 UPB_INLINE upb_Array* _google_protobuf_ExtensionRangeOptions_uninterpreted_option_mutable_upb_array(google_protobuf_ExtensionRangeOptions* msg, size_t* size, upb_Arena* arena) {
1779 const upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1780 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
1781 &field, arena);
1782 if (size) {
1783 *size = arr ? arr->UPB_PRIVATE(size) : 0;
1784 }
1785 return arr;
1786 }
1787
google_protobuf_ExtensionRangeOptions_mutable_declaration(google_protobuf_ExtensionRangeOptions * msg,size_t * size)1788 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration** google_protobuf_ExtensionRangeOptions_mutable_declaration(google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1789 upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1790 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1791 if (arr) {
1792 if (size) *size = arr->UPB_PRIVATE(size);
1793 return (google_protobuf_ExtensionRangeOptions_Declaration**)upb_Array_MutableDataPtr(arr);
1794 } else {
1795 if (size) *size = 0;
1796 return NULL;
1797 }
1798 }
google_protobuf_ExtensionRangeOptions_resize_declaration(google_protobuf_ExtensionRangeOptions * msg,size_t size,upb_Arena * arena)1799 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration** google_protobuf_ExtensionRangeOptions_resize_declaration(google_protobuf_ExtensionRangeOptions* msg, size_t size, upb_Arena* arena) {
1800 upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1801 return (google_protobuf_ExtensionRangeOptions_Declaration**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1802 &field, size, arena);
1803 }
google_protobuf_ExtensionRangeOptions_add_declaration(google_protobuf_ExtensionRangeOptions * msg,upb_Arena * arena)1804 UPB_INLINE struct google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_add_declaration(google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena) {
1805 upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1806 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1807 UPB_UPCAST(msg), &field, arena);
1808 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1809 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1810 return NULL;
1811 }
1812 struct google_protobuf_ExtensionRangeOptions_Declaration* sub = (struct google_protobuf_ExtensionRangeOptions_Declaration*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions__Declaration_msg_init, arena);
1813 if (!arr || !sub) return NULL;
1814 UPB_PRIVATE(_upb_Array_Set)
1815 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1816 return sub;
1817 }
google_protobuf_ExtensionRangeOptions_set_verification(google_protobuf_ExtensionRangeOptions * msg,int32_t value)1818 UPB_INLINE void google_protobuf_ExtensionRangeOptions_set_verification(google_protobuf_ExtensionRangeOptions *msg, int32_t value) {
1819 const upb_MiniTableField field = {3, UPB_SIZE(16, 12), 64, 3, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1820 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1821 }
google_protobuf_ExtensionRangeOptions_set_features(google_protobuf_ExtensionRangeOptions * msg,google_protobuf_FeatureSet * value)1822 UPB_INLINE void google_protobuf_ExtensionRangeOptions_set_features(google_protobuf_ExtensionRangeOptions *msg, google_protobuf_FeatureSet* value) {
1823 const upb_MiniTableField field = {50, UPB_SIZE(20, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1824 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1825 }
google_protobuf_ExtensionRangeOptions_mutable_features(google_protobuf_ExtensionRangeOptions * msg,upb_Arena * arena)1826 UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_ExtensionRangeOptions_mutable_features(google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena) {
1827 struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_ExtensionRangeOptions_features(msg);
1828 if (sub == NULL) {
1829 sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(&google__protobuf__FeatureSet_msg_init, arena);
1830 if (sub) google_protobuf_ExtensionRangeOptions_set_features(msg, sub);
1831 }
1832 return sub;
1833 }
google_protobuf_ExtensionRangeOptions_mutable_uninterpreted_option(google_protobuf_ExtensionRangeOptions * msg,size_t * size)1834 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ExtensionRangeOptions_mutable_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg, size_t* size) {
1835 upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1836 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
1837 if (arr) {
1838 if (size) *size = arr->UPB_PRIVATE(size);
1839 return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr);
1840 } else {
1841 if (size) *size = 0;
1842 return NULL;
1843 }
1844 }
google_protobuf_ExtensionRangeOptions_resize_uninterpreted_option(google_protobuf_ExtensionRangeOptions * msg,size_t size,upb_Arena * arena)1845 UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ExtensionRangeOptions_resize_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg, size_t size, upb_Arena* arena) {
1846 upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1847 return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
1848 &field, size, arena);
1849 }
google_protobuf_ExtensionRangeOptions_add_uninterpreted_option(google_protobuf_ExtensionRangeOptions * msg,upb_Arena * arena)1850 UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_ExtensionRangeOptions_add_uninterpreted_option(google_protobuf_ExtensionRangeOptions* msg, upb_Arena* arena) {
1851 upb_MiniTableField field = {999, UPB_SIZE(24, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1852 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
1853 UPB_UPCAST(msg), &field, arena);
1854 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
1855 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
1856 return NULL;
1857 }
1858 struct google_protobuf_UninterpretedOption* sub = (struct google_protobuf_UninterpretedOption*)_upb_Message_New(&google__protobuf__UninterpretedOption_msg_init, arena);
1859 if (!arr || !sub) return NULL;
1860 UPB_PRIVATE(_upb_Array_Set)
1861 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
1862 return sub;
1863 }
1864
1865 /* google.protobuf.ExtensionRangeOptions.Declaration */
1866
google_protobuf_ExtensionRangeOptions_Declaration_new(upb_Arena * arena)1867 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_Declaration_new(upb_Arena* arena) {
1868 return (google_protobuf_ExtensionRangeOptions_Declaration*)_upb_Message_New(&google__protobuf__ExtensionRangeOptions__Declaration_msg_init, arena);
1869 }
google_protobuf_ExtensionRangeOptions_Declaration_parse(const char * buf,size_t size,upb_Arena * arena)1870 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_Declaration_parse(const char* buf, size_t size, upb_Arena* arena) {
1871 google_protobuf_ExtensionRangeOptions_Declaration* ret = google_protobuf_ExtensionRangeOptions_Declaration_new(arena);
1872 if (!ret) return NULL;
1873 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, NULL, 0, arena) !=
1874 kUpb_DecodeStatus_Ok) {
1875 return NULL;
1876 }
1877 return ret;
1878 }
google_protobuf_ExtensionRangeOptions_Declaration_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)1879 UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration* google_protobuf_ExtensionRangeOptions_Declaration_parse_ex(const char* buf, size_t size,
1880 const upb_ExtensionRegistry* extreg,
1881 int options, upb_Arena* arena) {
1882 google_protobuf_ExtensionRangeOptions_Declaration* ret = google_protobuf_ExtensionRangeOptions_Declaration_new(arena);
1883 if (!ret) return NULL;
1884 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, extreg, options,
1885 arena) != kUpb_DecodeStatus_Ok) {
1886 return NULL;
1887 }
1888 return ret;
1889 }
google_protobuf_ExtensionRangeOptions_Declaration_serialize(const google_protobuf_ExtensionRangeOptions_Declaration * msg,upb_Arena * arena,size_t * len)1890 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_Declaration_serialize(const google_protobuf_ExtensionRangeOptions_Declaration* msg, upb_Arena* arena, size_t* len) {
1891 char* ptr;
1892 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, 0, arena, &ptr, len);
1893 return ptr;
1894 }
google_protobuf_ExtensionRangeOptions_Declaration_serialize_ex(const google_protobuf_ExtensionRangeOptions_Declaration * msg,int options,upb_Arena * arena,size_t * len)1895 UPB_INLINE char* google_protobuf_ExtensionRangeOptions_Declaration_serialize_ex(const google_protobuf_ExtensionRangeOptions_Declaration* msg, int options,
1896 upb_Arena* arena, size_t* len) {
1897 char* ptr;
1898 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__ExtensionRangeOptions__Declaration_msg_init, options, arena, &ptr, len);
1899 return ptr;
1900 }
google_protobuf_ExtensionRangeOptions_Declaration_clear_number(google_protobuf_ExtensionRangeOptions_Declaration * msg)1901 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_number(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1902 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1903 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1904 }
google_protobuf_ExtensionRangeOptions_Declaration_number(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1905 UPB_INLINE int32_t google_protobuf_ExtensionRangeOptions_Declaration_number(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1906 int32_t default_val = (int32_t)0;
1907 int32_t ret;
1908 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1909 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1910 &default_val, &ret);
1911 return ret;
1912 }
google_protobuf_ExtensionRangeOptions_Declaration_has_number(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1913 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_number(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1914 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1915 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1916 }
google_protobuf_ExtensionRangeOptions_Declaration_clear_full_name(google_protobuf_ExtensionRangeOptions_Declaration * msg)1917 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_full_name(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1918 const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1919 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1920 }
google_protobuf_ExtensionRangeOptions_Declaration_full_name(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1921 UPB_INLINE upb_StringView google_protobuf_ExtensionRangeOptions_Declaration_full_name(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1922 upb_StringView default_val = upb_StringView_FromString("");
1923 upb_StringView ret;
1924 const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1925 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1926 &default_val, &ret);
1927 return ret;
1928 }
google_protobuf_ExtensionRangeOptions_Declaration_has_full_name(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1929 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_full_name(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1930 const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1931 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1932 }
google_protobuf_ExtensionRangeOptions_Declaration_clear_type(google_protobuf_ExtensionRangeOptions_Declaration * msg)1933 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_type(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1934 const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1935 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1936 }
google_protobuf_ExtensionRangeOptions_Declaration_type(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1937 UPB_INLINE upb_StringView google_protobuf_ExtensionRangeOptions_Declaration_type(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1938 upb_StringView default_val = upb_StringView_FromString("");
1939 upb_StringView ret;
1940 const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1941 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1942 &default_val, &ret);
1943 return ret;
1944 }
google_protobuf_ExtensionRangeOptions_Declaration_has_type(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1945 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_type(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1946 const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1947 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1948 }
google_protobuf_ExtensionRangeOptions_Declaration_clear_reserved(google_protobuf_ExtensionRangeOptions_Declaration * msg)1949 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_reserved(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1950 const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1951 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1952 }
google_protobuf_ExtensionRangeOptions_Declaration_reserved(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1953 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_reserved(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1954 bool default_val = false;
1955 bool ret;
1956 const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1957 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1958 &default_val, &ret);
1959 return ret;
1960 }
google_protobuf_ExtensionRangeOptions_Declaration_has_reserved(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1961 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_reserved(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1962 const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1963 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1964 }
google_protobuf_ExtensionRangeOptions_Declaration_clear_repeated(google_protobuf_ExtensionRangeOptions_Declaration * msg)1965 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_clear_repeated(google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1966 const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1967 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1968 }
google_protobuf_ExtensionRangeOptions_Declaration_repeated(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1969 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_repeated(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1970 bool default_val = false;
1971 bool ret;
1972 const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1973 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1974 &default_val, &ret);
1975 return ret;
1976 }
google_protobuf_ExtensionRangeOptions_Declaration_has_repeated(const google_protobuf_ExtensionRangeOptions_Declaration * msg)1977 UPB_INLINE bool google_protobuf_ExtensionRangeOptions_Declaration_has_repeated(const google_protobuf_ExtensionRangeOptions_Declaration* msg) {
1978 const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1979 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1980 }
1981
google_protobuf_ExtensionRangeOptions_Declaration_set_number(google_protobuf_ExtensionRangeOptions_Declaration * msg,int32_t value)1982 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_number(google_protobuf_ExtensionRangeOptions_Declaration *msg, int32_t value) {
1983 const upb_MiniTableField field = {1, 12, 64, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1984 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1985 }
google_protobuf_ExtensionRangeOptions_Declaration_set_full_name(google_protobuf_ExtensionRangeOptions_Declaration * msg,upb_StringView value)1986 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_full_name(google_protobuf_ExtensionRangeOptions_Declaration *msg, upb_StringView value) {
1987 const upb_MiniTableField field = {2, UPB_SIZE(20, 24), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1988 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1989 }
google_protobuf_ExtensionRangeOptions_Declaration_set_type(google_protobuf_ExtensionRangeOptions_Declaration * msg,upb_StringView value)1990 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_type(google_protobuf_ExtensionRangeOptions_Declaration *msg, upb_StringView value) {
1991 const upb_MiniTableField field = {3, UPB_SIZE(28, 40), 66, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1992 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1993 }
google_protobuf_ExtensionRangeOptions_Declaration_set_reserved(google_protobuf_ExtensionRangeOptions_Declaration * msg,bool value)1994 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_reserved(google_protobuf_ExtensionRangeOptions_Declaration *msg, bool value) {
1995 const upb_MiniTableField field = {5, 16, 67, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1996 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1997 }
google_protobuf_ExtensionRangeOptions_Declaration_set_repeated(google_protobuf_ExtensionRangeOptions_Declaration * msg,bool value)1998 UPB_INLINE void google_protobuf_ExtensionRangeOptions_Declaration_set_repeated(google_protobuf_ExtensionRangeOptions_Declaration *msg, bool value) {
1999 const upb_MiniTableField field = {6, 17, 68, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2000 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
2001 }
2002
2003 /* google.protobuf.FieldDescriptorProto */
2004
google_protobuf_FieldDescriptorProto_new(upb_Arena * arena)2005 UPB_INLINE google_protobuf_FieldDescriptorProto* google_protobuf_FieldDescriptorProto_new(upb_Arena* arena) {
2006 return (google_protobuf_FieldDescriptorProto*)_upb_Message_New(&google__protobuf__FieldDescriptorProto_msg_init, arena);
2007 }
google_protobuf_FieldDescriptorProto_parse(const char * buf,size_t size,upb_Arena * arena)2008 UPB_INLINE google_protobuf_FieldDescriptorProto* google_protobuf_FieldDescriptorProto_parse(const char* buf, size_t size, upb_Arena* arena) {
2009 google_protobuf_FieldDescriptorProto* ret = google_protobuf_FieldDescriptorProto_new(arena);
2010 if (!ret) return NULL;
2011 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldDescriptorProto_msg_init, NULL, 0, arena) !=
2012 kUpb_DecodeStatus_Ok) {
2013 return NULL;
2014 }
2015 return ret;
2016 }
google_protobuf_FieldDescriptorProto_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)2017 UPB_INLINE google_protobuf_FieldDescriptorProto* google_protobuf_FieldDescriptorProto_parse_ex(const char* buf, size_t size,
2018 const upb_ExtensionRegistry* extreg,
2019 int options, upb_Arena* arena) {
2020 google_protobuf_FieldDescriptorProto* ret = google_protobuf_FieldDescriptorProto_new(arena);
2021 if (!ret) return NULL;
2022 if (upb_Decode(buf, size, UPB_UPCAST(ret), &google__protobuf__FieldDescriptorProto_msg_init, extreg, options,
2023 arena) != kUpb_DecodeStatus_Ok) {
2024 return NULL;
2025 }
2026 return ret;
2027 }
google_protobuf_FieldDescriptorProto_serialize(const google_protobuf_FieldDescriptorProto * msg,upb_Arena * arena,size_t * len)2028 UPB_INLINE char* google_protobuf_FieldDescriptorProto_serialize(const google_protobuf_FieldDescriptorProto* msg, upb_Arena* arena, size_t* len) {
2029 char* ptr;
2030 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldDescriptorProto_msg_init, 0, arena, &ptr, len);
2031 return ptr;
2032 }
google_protobuf_FieldDescriptorProto_serialize_ex(const google_protobuf_FieldDescriptorProto * msg,int options,upb_Arena * arena,size_t * len)2033 UPB_INLINE char* google_protobuf_FieldDescriptorProto_serialize_ex(const google_protobuf_FieldDescriptorProto* msg, int options,
2034 upb_Arena* arena, size_t* len) {
2035 char* ptr;
2036 (void)upb_Encode(UPB_UPCAST(msg), &google__protobuf__FieldDescriptorProto_msg_init, options, arena, &ptr, len);
2037 return ptr;
2038 }
google_protobuf_FieldDescriptorProto_clear_name(google_protobuf_FieldDescriptorProto * msg)2039 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_name(google_protobuf_FieldDescriptorProto* msg) {
2040 const upb_MiniTableField field = {1, UPB_SIZE(36, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2041 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2042 }
google_protobuf_FieldDescriptorProto_name(const google_protobuf_FieldDescriptorProto * msg)2043 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_name(const google_protobuf_FieldDescriptorProto* msg) {
2044 upb_StringView default_val = upb_StringView_FromString("");
2045 upb_StringView ret;
2046 const upb_MiniTableField field = {1, UPB_SIZE(36, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2047 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2048 &default_val, &ret);
2049 return ret;
2050 }
google_protobuf_FieldDescriptorProto_has_name(const google_protobuf_FieldDescriptorProto * msg)2051 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_name(const google_protobuf_FieldDescriptorProto* msg) {
2052 const upb_MiniTableField field = {1, UPB_SIZE(36, 32), 64, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2053 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2054 }
google_protobuf_FieldDescriptorProto_clear_extendee(google_protobuf_FieldDescriptorProto * msg)2055 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_extendee(google_protobuf_FieldDescriptorProto* msg) {
2056 const upb_MiniTableField field = {2, UPB_SIZE(44, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2057 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2058 }
google_protobuf_FieldDescriptorProto_extendee(const google_protobuf_FieldDescriptorProto * msg)2059 UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_extendee(const google_protobuf_FieldDescriptorProto* msg) {
2060 upb_StringView default_val = upb_StringView_FromString("");
2061 upb_StringView ret;
2062 const upb_MiniTableField field = {2, UPB_SIZE(44, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2063 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2064 &default_val, &ret);
2065 return ret;
2066 }
google_protobuf_FieldDescriptorProto_has_extendee(const google_protobuf_FieldDescriptorProto * msg)2067 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_extendee(const google_protobuf_FieldDescriptorProto* msg) {
2068 const upb_MiniTableField field = {2, UPB_SIZE(44, 48), 65, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2069 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2070 }
google_protobuf_FieldDescriptorProto_clear_number(google_protobuf_FieldDescriptorProto * msg)2071 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_number(google_protobuf_FieldDescriptorProto* msg) {
2072 const upb_MiniTableField field = {3, 12, 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2073 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2074 }
google_protobuf_FieldDescriptorProto_number(const google_protobuf_FieldDescriptorProto * msg)2075 UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_number(const google_protobuf_FieldDescriptorProto* msg) {
2076 int32_t default_val = (int32_t)0;
2077 int32_t ret;
2078 const upb_MiniTableField field = {3, 12, 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2079 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2080 &default_val, &ret);
2081 return ret;
2082 }
google_protobuf_FieldDescriptorProto_has_number(const google_protobuf_FieldDescriptorProto * msg)2083 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_number(const google_protobuf_FieldDescriptorProto* msg) {
2084 const upb_MiniTableField field = {3, 12, 66, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2085 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2086 }
google_protobuf_FieldDescriptorProto_clear_label(google_protobuf_FieldDescriptorProto * msg)2087 UPB_INLINE void google_protobuf_FieldDescriptorProto_clear_label(google_protobuf_FieldDescriptorProto* msg) {
2088 const upb_MiniTableField field = {4, 16, 67, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2089 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2090 }
google_protobuf_FieldDescriptorProto_label(const google_protobuf_FieldDescriptorProto * msg)2091 UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_label(const google_protobuf_FieldDescriptorProto* msg) {
2092 int32_t default_val = 1;
2093 int32_t ret;
2094 const upb_MiniTableField field = {4, 16, 67, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2095 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2096 &default_val, &ret);
2097 return ret;
2098 }
google_protobuf_FieldDescriptorProto_has_label(const google_protobuf_FieldDescriptorProto * msg)2099 UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_label(const google_protobuf_FieldDescriptorProto* msg) {
2100 const upb_MiniTableField field = {4, 16, 67, 1, 14, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
2101 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2102 }
google_protobuf_FieldDescriptorProto_clear_type(google_protobuf_FieldDescriptorProto * msg)2103