1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     google/protobuf/compiler/plugin.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef GOOGLE_PROTOBUF_COMPILER_PLUGIN_PROTO_UPB_H_
10 #define GOOGLE_PROTOBUF_COMPILER_PLUGIN_PROTO_UPB_H_
11 
12 #include "upb/collections/array_internal.h"
13 #include "upb/collections/map_gencode_util.h"
14 #include "upb/message/accessors.h"
15 #include "upb/message/internal.h"
16 #include "upb/mini_table/enum_internal.h"
17 #include "upb/wire/decode.h"
18 #include "upb/wire/decode_fast.h"
19 #include "upb/wire/encode.h"
20 
21 // Must be last.
22 #include "upb/port/def.inc"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 typedef struct google_protobuf_compiler_Version google_protobuf_compiler_Version;
29 typedef struct google_protobuf_compiler_CodeGeneratorRequest google_protobuf_compiler_CodeGeneratorRequest;
30 typedef struct google_protobuf_compiler_CodeGeneratorResponse google_protobuf_compiler_CodeGeneratorResponse;
31 typedef struct google_protobuf_compiler_CodeGeneratorResponse_File google_protobuf_compiler_CodeGeneratorResponse_File;
32 extern const upb_MiniTable* google_protobuf_compiler_Version_msg_init();
33 extern const upb_MiniTable* google_protobuf_compiler_CodeGeneratorRequest_msg_init();
34 extern const upb_MiniTable* google_protobuf_compiler_CodeGeneratorResponse_msg_init();
35 extern const upb_MiniTable* google_protobuf_compiler_CodeGeneratorResponse_File_msg_init();
36 struct google_protobuf_FileDescriptorProto;
37 struct google_protobuf_GeneratedCodeInfo;
38 extern const upb_MiniTable* google_protobuf_FileDescriptorProto_msg_init();
39 extern const upb_MiniTable* google_protobuf_GeneratedCodeInfo_msg_init();
40 
41 typedef enum {
42   google_protobuf_compiler_CodeGeneratorResponse_FEATURE_NONE = 0,
43   google_protobuf_compiler_CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL = 1
44 } google_protobuf_compiler_CodeGeneratorResponse_Feature;
45 
46 
47 extern const upb_MiniTableEnum* google_protobuf_compiler_CodeGeneratorResponse_Feature_enum_init();
48 
49 /* google.protobuf.compiler.Version */
50 
google_protobuf_compiler_Version_new(upb_Arena * arena)51 UPB_INLINE google_protobuf_compiler_Version* google_protobuf_compiler_Version_new(upb_Arena* arena) {
52   return (google_protobuf_compiler_Version*)_upb_Message_New(google_protobuf_compiler_Version_msg_init(), arena);
53 }
google_protobuf_compiler_Version_parse(const char * buf,size_t size,upb_Arena * arena)54 UPB_INLINE google_protobuf_compiler_Version* google_protobuf_compiler_Version_parse(const char* buf, size_t size, upb_Arena* arena) {
55   google_protobuf_compiler_Version* ret = google_protobuf_compiler_Version_new(arena);
56   if (!ret) return NULL;
57   if (upb_Decode(buf, size, ret, google_protobuf_compiler_Version_msg_init(), NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
58     return NULL;
59   }
60   return ret;
61 }
google_protobuf_compiler_Version_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)62 UPB_INLINE google_protobuf_compiler_Version* google_protobuf_compiler_Version_parse_ex(const char* buf, size_t size,
63                            const upb_ExtensionRegistry* extreg,
64                            int options, upb_Arena* arena) {
65   google_protobuf_compiler_Version* ret = google_protobuf_compiler_Version_new(arena);
66   if (!ret) return NULL;
67   if (upb_Decode(buf, size, ret, google_protobuf_compiler_Version_msg_init(), extreg, options, arena) !=
68       kUpb_DecodeStatus_Ok) {
69     return NULL;
70   }
71   return ret;
72 }
google_protobuf_compiler_Version_serialize(const google_protobuf_compiler_Version * msg,upb_Arena * arena,size_t * len)73 UPB_INLINE char* google_protobuf_compiler_Version_serialize(const google_protobuf_compiler_Version* msg, upb_Arena* arena, size_t* len) {
74   char* ptr;
75   (void)upb_Encode(msg, google_protobuf_compiler_Version_msg_init(), 0, arena, &ptr, len);
76   return ptr;
77 }
google_protobuf_compiler_Version_serialize_ex(const google_protobuf_compiler_Version * msg,int options,upb_Arena * arena,size_t * len)78 UPB_INLINE char* google_protobuf_compiler_Version_serialize_ex(const google_protobuf_compiler_Version* msg, int options,
79                                  upb_Arena* arena, size_t* len) {
80   char* ptr;
81   (void)upb_Encode(msg, google_protobuf_compiler_Version_msg_init(), options, arena, &ptr, len);
82   return ptr;
83 }
google_protobuf_compiler_Version_clear_major(google_protobuf_compiler_Version * msg)84 UPB_INLINE void google_protobuf_compiler_Version_clear_major(google_protobuf_compiler_Version* msg) {
85   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 1);
86   _upb_Message_ClearNonExtensionField(msg, &field);
87 }
google_protobuf_compiler_Version_major(const google_protobuf_compiler_Version * msg)88 UPB_INLINE int32_t google_protobuf_compiler_Version_major(const google_protobuf_compiler_Version* msg) {
89   int32_t default_val = (int32_t)0;
90   int32_t ret;
91   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 1);
92   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
93   return ret;
94 }
google_protobuf_compiler_Version_has_major(const google_protobuf_compiler_Version * msg)95 UPB_INLINE bool google_protobuf_compiler_Version_has_major(const google_protobuf_compiler_Version* msg) {
96   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 1);
97   return _upb_Message_HasNonExtensionField(msg, &field);
98 }
google_protobuf_compiler_Version_clear_minor(google_protobuf_compiler_Version * msg)99 UPB_INLINE void google_protobuf_compiler_Version_clear_minor(google_protobuf_compiler_Version* msg) {
100   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 2);
101   _upb_Message_ClearNonExtensionField(msg, &field);
102 }
google_protobuf_compiler_Version_minor(const google_protobuf_compiler_Version * msg)103 UPB_INLINE int32_t google_protobuf_compiler_Version_minor(const google_protobuf_compiler_Version* msg) {
104   int32_t default_val = (int32_t)0;
105   int32_t ret;
106   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 2);
107   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
108   return ret;
109 }
google_protobuf_compiler_Version_has_minor(const google_protobuf_compiler_Version * msg)110 UPB_INLINE bool google_protobuf_compiler_Version_has_minor(const google_protobuf_compiler_Version* msg) {
111   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 2);
112   return _upb_Message_HasNonExtensionField(msg, &field);
113 }
google_protobuf_compiler_Version_clear_patch(google_protobuf_compiler_Version * msg)114 UPB_INLINE void google_protobuf_compiler_Version_clear_patch(google_protobuf_compiler_Version* msg) {
115   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 3);
116   _upb_Message_ClearNonExtensionField(msg, &field);
117 }
google_protobuf_compiler_Version_patch(const google_protobuf_compiler_Version * msg)118 UPB_INLINE int32_t google_protobuf_compiler_Version_patch(const google_protobuf_compiler_Version* msg) {
119   int32_t default_val = (int32_t)0;
120   int32_t ret;
121   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 3);
122   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
123   return ret;
124 }
google_protobuf_compiler_Version_has_patch(const google_protobuf_compiler_Version * msg)125 UPB_INLINE bool google_protobuf_compiler_Version_has_patch(const google_protobuf_compiler_Version* msg) {
126   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 3);
127   return _upb_Message_HasNonExtensionField(msg, &field);
128 }
google_protobuf_compiler_Version_clear_suffix(google_protobuf_compiler_Version * msg)129 UPB_INLINE void google_protobuf_compiler_Version_clear_suffix(google_protobuf_compiler_Version* msg) {
130   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 4);
131   _upb_Message_ClearNonExtensionField(msg, &field);
132 }
google_protobuf_compiler_Version_suffix(const google_protobuf_compiler_Version * msg)133 UPB_INLINE upb_StringView google_protobuf_compiler_Version_suffix(const google_protobuf_compiler_Version* msg) {
134   upb_StringView default_val = upb_StringView_FromString("");
135   upb_StringView ret;
136   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 4);
137   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
138   return ret;
139 }
google_protobuf_compiler_Version_has_suffix(const google_protobuf_compiler_Version * msg)140 UPB_INLINE bool google_protobuf_compiler_Version_has_suffix(const google_protobuf_compiler_Version* msg) {
141   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 4);
142   return _upb_Message_HasNonExtensionField(msg, &field);
143 }
144 
google_protobuf_compiler_Version_set_major(google_protobuf_compiler_Version * msg,int32_t value)145 UPB_INLINE void google_protobuf_compiler_Version_set_major(google_protobuf_compiler_Version *msg, int32_t value) {
146   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 1);
147   _upb_Message_SetNonExtensionField(msg, &field, &value);
148 }
google_protobuf_compiler_Version_set_minor(google_protobuf_compiler_Version * msg,int32_t value)149 UPB_INLINE void google_protobuf_compiler_Version_set_minor(google_protobuf_compiler_Version *msg, int32_t value) {
150   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 2);
151   _upb_Message_SetNonExtensionField(msg, &field, &value);
152 }
google_protobuf_compiler_Version_set_patch(google_protobuf_compiler_Version * msg,int32_t value)153 UPB_INLINE void google_protobuf_compiler_Version_set_patch(google_protobuf_compiler_Version *msg, int32_t value) {
154   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 3);
155   _upb_Message_SetNonExtensionField(msg, &field, &value);
156 }
google_protobuf_compiler_Version_set_suffix(google_protobuf_compiler_Version * msg,upb_StringView value)157 UPB_INLINE void google_protobuf_compiler_Version_set_suffix(google_protobuf_compiler_Version *msg, upb_StringView value) {
158   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_Version_msg_init(), 4);
159   _upb_Message_SetNonExtensionField(msg, &field, &value);
160 }
161 
162 /* google.protobuf.compiler.CodeGeneratorRequest */
163 
google_protobuf_compiler_CodeGeneratorRequest_new(upb_Arena * arena)164 UPB_INLINE google_protobuf_compiler_CodeGeneratorRequest* google_protobuf_compiler_CodeGeneratorRequest_new(upb_Arena* arena) {
165   return (google_protobuf_compiler_CodeGeneratorRequest*)_upb_Message_New(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), arena);
166 }
google_protobuf_compiler_CodeGeneratorRequest_parse(const char * buf,size_t size,upb_Arena * arena)167 UPB_INLINE google_protobuf_compiler_CodeGeneratorRequest* google_protobuf_compiler_CodeGeneratorRequest_parse(const char* buf, size_t size, upb_Arena* arena) {
168   google_protobuf_compiler_CodeGeneratorRequest* ret = google_protobuf_compiler_CodeGeneratorRequest_new(arena);
169   if (!ret) return NULL;
170   if (upb_Decode(buf, size, ret, google_protobuf_compiler_CodeGeneratorRequest_msg_init(), NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
171     return NULL;
172   }
173   return ret;
174 }
google_protobuf_compiler_CodeGeneratorRequest_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)175 UPB_INLINE google_protobuf_compiler_CodeGeneratorRequest* google_protobuf_compiler_CodeGeneratorRequest_parse_ex(const char* buf, size_t size,
176                            const upb_ExtensionRegistry* extreg,
177                            int options, upb_Arena* arena) {
178   google_protobuf_compiler_CodeGeneratorRequest* ret = google_protobuf_compiler_CodeGeneratorRequest_new(arena);
179   if (!ret) return NULL;
180   if (upb_Decode(buf, size, ret, google_protobuf_compiler_CodeGeneratorRequest_msg_init(), extreg, options, arena) !=
181       kUpb_DecodeStatus_Ok) {
182     return NULL;
183   }
184   return ret;
185 }
google_protobuf_compiler_CodeGeneratorRequest_serialize(const google_protobuf_compiler_CodeGeneratorRequest * msg,upb_Arena * arena,size_t * len)186 UPB_INLINE char* google_protobuf_compiler_CodeGeneratorRequest_serialize(const google_protobuf_compiler_CodeGeneratorRequest* msg, upb_Arena* arena, size_t* len) {
187   char* ptr;
188   (void)upb_Encode(msg, google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 0, arena, &ptr, len);
189   return ptr;
190 }
google_protobuf_compiler_CodeGeneratorRequest_serialize_ex(const google_protobuf_compiler_CodeGeneratorRequest * msg,int options,upb_Arena * arena,size_t * len)191 UPB_INLINE char* google_protobuf_compiler_CodeGeneratorRequest_serialize_ex(const google_protobuf_compiler_CodeGeneratorRequest* msg, int options,
192                                  upb_Arena* arena, size_t* len) {
193   char* ptr;
194   (void)upb_Encode(msg, google_protobuf_compiler_CodeGeneratorRequest_msg_init(), options, arena, &ptr, len);
195   return ptr;
196 }
google_protobuf_compiler_CodeGeneratorRequest_clear_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest * msg)197 UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_clear_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest* msg) {
198   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 1);
199   _upb_Message_ClearNonExtensionField(msg, &field);
200 }
google_protobuf_compiler_CodeGeneratorRequest_file_to_generate(const google_protobuf_compiler_CodeGeneratorRequest * msg,size_t * size)201 UPB_INLINE upb_StringView const* google_protobuf_compiler_CodeGeneratorRequest_file_to_generate(const google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) {
202   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 1);
203   const upb_Array* arr = upb_Message_GetArray(msg, &field);
204   if (arr) {
205     if (size) *size = arr->size;
206     return (upb_StringView const*)_upb_array_constptr(arr);
207   } else {
208     if (size) *size = 0;
209     return NULL;
210   }
211 }
google_protobuf_compiler_CodeGeneratorRequest_has_file_to_generate(const google_protobuf_compiler_CodeGeneratorRequest * msg)212 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorRequest_has_file_to_generate(const google_protobuf_compiler_CodeGeneratorRequest* msg) {
213   size_t size;
214   google_protobuf_compiler_CodeGeneratorRequest_file_to_generate(msg, &size);
215   return size != 0;
216 }
google_protobuf_compiler_CodeGeneratorRequest_clear_parameter(google_protobuf_compiler_CodeGeneratorRequest * msg)217 UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_clear_parameter(google_protobuf_compiler_CodeGeneratorRequest* msg) {
218   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 2);
219   _upb_Message_ClearNonExtensionField(msg, &field);
220 }
google_protobuf_compiler_CodeGeneratorRequest_parameter(const google_protobuf_compiler_CodeGeneratorRequest * msg)221 UPB_INLINE upb_StringView google_protobuf_compiler_CodeGeneratorRequest_parameter(const google_protobuf_compiler_CodeGeneratorRequest* msg) {
222   upb_StringView default_val = upb_StringView_FromString("");
223   upb_StringView ret;
224   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 2);
225   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
226   return ret;
227 }
google_protobuf_compiler_CodeGeneratorRequest_has_parameter(const google_protobuf_compiler_CodeGeneratorRequest * msg)228 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorRequest_has_parameter(const google_protobuf_compiler_CodeGeneratorRequest* msg) {
229   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 2);
230   return _upb_Message_HasNonExtensionField(msg, &field);
231 }
google_protobuf_compiler_CodeGeneratorRequest_clear_compiler_version(google_protobuf_compiler_CodeGeneratorRequest * msg)232 UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_clear_compiler_version(google_protobuf_compiler_CodeGeneratorRequest* msg) {
233   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 3);
234   _upb_Message_ClearNonExtensionField(msg, &field);
235 }
google_protobuf_compiler_CodeGeneratorRequest_compiler_version(const google_protobuf_compiler_CodeGeneratorRequest * msg)236 UPB_INLINE const google_protobuf_compiler_Version* google_protobuf_compiler_CodeGeneratorRequest_compiler_version(const google_protobuf_compiler_CodeGeneratorRequest* msg) {
237   const google_protobuf_compiler_Version* default_val = NULL;
238   const google_protobuf_compiler_Version* ret;
239   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 3);
240   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
241   return ret;
242 }
google_protobuf_compiler_CodeGeneratorRequest_has_compiler_version(const google_protobuf_compiler_CodeGeneratorRequest * msg)243 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorRequest_has_compiler_version(const google_protobuf_compiler_CodeGeneratorRequest* msg) {
244   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 3);
245   return _upb_Message_HasNonExtensionField(msg, &field);
246 }
google_protobuf_compiler_CodeGeneratorRequest_clear_proto_file(google_protobuf_compiler_CodeGeneratorRequest * msg)247 UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_clear_proto_file(google_protobuf_compiler_CodeGeneratorRequest* msg) {
248   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 15);
249   _upb_Message_ClearNonExtensionField(msg, &field);
250 }
google_protobuf_compiler_CodeGeneratorRequest_proto_file(const google_protobuf_compiler_CodeGeneratorRequest * msg,size_t * size)251 UPB_INLINE const struct google_protobuf_FileDescriptorProto* const* google_protobuf_compiler_CodeGeneratorRequest_proto_file(const google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) {
252   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 15);
253   const upb_Array* arr = upb_Message_GetArray(msg, &field);
254   if (arr) {
255     if (size) *size = arr->size;
256     return (const struct google_protobuf_FileDescriptorProto* const*)_upb_array_constptr(arr);
257   } else {
258     if (size) *size = 0;
259     return NULL;
260   }
261 }
google_protobuf_compiler_CodeGeneratorRequest_has_proto_file(const google_protobuf_compiler_CodeGeneratorRequest * msg)262 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorRequest_has_proto_file(const google_protobuf_compiler_CodeGeneratorRequest* msg) {
263   size_t size;
264   google_protobuf_compiler_CodeGeneratorRequest_proto_file(msg, &size);
265   return size != 0;
266 }
267 
google_protobuf_compiler_CodeGeneratorRequest_mutable_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest * msg,size_t * size)268 UPB_INLINE upb_StringView* google_protobuf_compiler_CodeGeneratorRequest_mutable_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) {
269   upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 1);
270   upb_Array* arr = upb_Message_GetMutableArray(msg, &field);
271   if (arr) {
272     if (size) *size = arr->size;
273     return (upb_StringView*)_upb_array_ptr(arr);
274   } else {
275     if (size) *size = 0;
276     return NULL;
277   }
278 }
google_protobuf_compiler_CodeGeneratorRequest_resize_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest * msg,size_t size,upb_Arena * arena)279 UPB_INLINE upb_StringView* google_protobuf_compiler_CodeGeneratorRequest_resize_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t size, upb_Arena* arena) {
280   upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 1);
281   return (upb_StringView*)upb_Message_ResizeArray(msg, &field, size, arena);
282 }
google_protobuf_compiler_CodeGeneratorRequest_add_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest * msg,upb_StringView val,upb_Arena * arena)283 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorRequest_add_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest* msg, upb_StringView val, upb_Arena* arena) {
284   upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 1);
285   upb_Array* arr = upb_Message_GetOrCreateMutableArray(msg, &field, arena);
286   if (!arr || !_upb_Array_ResizeUninitialized(arr, arr->size + 1, arena)) {
287     return false;
288   }
289   _upb_Array_Set(arr, arr->size - 1, &val, sizeof(val));
290   return true;
291 }
google_protobuf_compiler_CodeGeneratorRequest_set_parameter(google_protobuf_compiler_CodeGeneratorRequest * msg,upb_StringView value)292 UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_set_parameter(google_protobuf_compiler_CodeGeneratorRequest *msg, upb_StringView value) {
293   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 2);
294   _upb_Message_SetNonExtensionField(msg, &field, &value);
295 }
google_protobuf_compiler_CodeGeneratorRequest_set_compiler_version(google_protobuf_compiler_CodeGeneratorRequest * msg,google_protobuf_compiler_Version * value)296 UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_set_compiler_version(google_protobuf_compiler_CodeGeneratorRequest *msg, google_protobuf_compiler_Version* value) {
297   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 3);
298   _upb_Message_SetNonExtensionField(msg, &field, &value);
299 }
google_protobuf_compiler_CodeGeneratorRequest_mutable_compiler_version(google_protobuf_compiler_CodeGeneratorRequest * msg,upb_Arena * arena)300 UPB_INLINE struct google_protobuf_compiler_Version* google_protobuf_compiler_CodeGeneratorRequest_mutable_compiler_version(google_protobuf_compiler_CodeGeneratorRequest* msg, upb_Arena* arena) {
301   struct google_protobuf_compiler_Version* sub = (struct google_protobuf_compiler_Version*)google_protobuf_compiler_CodeGeneratorRequest_compiler_version(msg);
302   if (sub == NULL) {
303     sub = (struct google_protobuf_compiler_Version*)_upb_Message_New(google_protobuf_compiler_Version_msg_init(), arena);
304     if (sub) google_protobuf_compiler_CodeGeneratorRequest_set_compiler_version(msg, sub);
305   }
306   return sub;
307 }
google_protobuf_compiler_CodeGeneratorRequest_mutable_proto_file(google_protobuf_compiler_CodeGeneratorRequest * msg,size_t * size)308 UPB_INLINE struct google_protobuf_FileDescriptorProto** google_protobuf_compiler_CodeGeneratorRequest_mutable_proto_file(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) {
309   upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 15);
310   upb_Array* arr = upb_Message_GetMutableArray(msg, &field);
311   if (arr) {
312     if (size) *size = arr->size;
313     return (struct google_protobuf_FileDescriptorProto**)_upb_array_ptr(arr);
314   } else {
315     if (size) *size = 0;
316     return NULL;
317   }
318 }
google_protobuf_compiler_CodeGeneratorRequest_resize_proto_file(google_protobuf_compiler_CodeGeneratorRequest * msg,size_t size,upb_Arena * arena)319 UPB_INLINE struct google_protobuf_FileDescriptorProto** google_protobuf_compiler_CodeGeneratorRequest_resize_proto_file(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t size, upb_Arena* arena) {
320   upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 15);
321   return (struct google_protobuf_FileDescriptorProto**)upb_Message_ResizeArray(msg, &field, size, arena);
322 }
google_protobuf_compiler_CodeGeneratorRequest_add_proto_file(google_protobuf_compiler_CodeGeneratorRequest * msg,upb_Arena * arena)323 UPB_INLINE struct google_protobuf_FileDescriptorProto* google_protobuf_compiler_CodeGeneratorRequest_add_proto_file(google_protobuf_compiler_CodeGeneratorRequest* msg, upb_Arena* arena) {
324   upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorRequest_msg_init(), 15);
325   upb_Array* arr = upb_Message_GetOrCreateMutableArray(msg, &field, arena);
326   if (!arr || !_upb_Array_ResizeUninitialized(arr, arr->size + 1, arena)) {
327     return NULL;
328   }
329   struct google_protobuf_FileDescriptorProto* sub = (struct google_protobuf_FileDescriptorProto*)_upb_Message_New(google_protobuf_FileDescriptorProto_msg_init(), arena);
330   if (!arr || !sub) return NULL;
331   _upb_Array_Set(arr, arr->size - 1, &sub, sizeof(sub));
332   return sub;
333 }
334 
335 /* google.protobuf.compiler.CodeGeneratorResponse */
336 
google_protobuf_compiler_CodeGeneratorResponse_new(upb_Arena * arena)337 UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse* google_protobuf_compiler_CodeGeneratorResponse_new(upb_Arena* arena) {
338   return (google_protobuf_compiler_CodeGeneratorResponse*)_upb_Message_New(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), arena);
339 }
google_protobuf_compiler_CodeGeneratorResponse_parse(const char * buf,size_t size,upb_Arena * arena)340 UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse* google_protobuf_compiler_CodeGeneratorResponse_parse(const char* buf, size_t size, upb_Arena* arena) {
341   google_protobuf_compiler_CodeGeneratorResponse* ret = google_protobuf_compiler_CodeGeneratorResponse_new(arena);
342   if (!ret) return NULL;
343   if (upb_Decode(buf, size, ret, google_protobuf_compiler_CodeGeneratorResponse_msg_init(), NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
344     return NULL;
345   }
346   return ret;
347 }
google_protobuf_compiler_CodeGeneratorResponse_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)348 UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse* google_protobuf_compiler_CodeGeneratorResponse_parse_ex(const char* buf, size_t size,
349                            const upb_ExtensionRegistry* extreg,
350                            int options, upb_Arena* arena) {
351   google_protobuf_compiler_CodeGeneratorResponse* ret = google_protobuf_compiler_CodeGeneratorResponse_new(arena);
352   if (!ret) return NULL;
353   if (upb_Decode(buf, size, ret, google_protobuf_compiler_CodeGeneratorResponse_msg_init(), extreg, options, arena) !=
354       kUpb_DecodeStatus_Ok) {
355     return NULL;
356   }
357   return ret;
358 }
google_protobuf_compiler_CodeGeneratorResponse_serialize(const google_protobuf_compiler_CodeGeneratorResponse * msg,upb_Arena * arena,size_t * len)359 UPB_INLINE char* google_protobuf_compiler_CodeGeneratorResponse_serialize(const google_protobuf_compiler_CodeGeneratorResponse* msg, upb_Arena* arena, size_t* len) {
360   char* ptr;
361   (void)upb_Encode(msg, google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 0, arena, &ptr, len);
362   return ptr;
363 }
google_protobuf_compiler_CodeGeneratorResponse_serialize_ex(const google_protobuf_compiler_CodeGeneratorResponse * msg,int options,upb_Arena * arena,size_t * len)364 UPB_INLINE char* google_protobuf_compiler_CodeGeneratorResponse_serialize_ex(const google_protobuf_compiler_CodeGeneratorResponse* msg, int options,
365                                  upb_Arena* arena, size_t* len) {
366   char* ptr;
367   (void)upb_Encode(msg, google_protobuf_compiler_CodeGeneratorResponse_msg_init(), options, arena, &ptr, len);
368   return ptr;
369 }
google_protobuf_compiler_CodeGeneratorResponse_clear_error(google_protobuf_compiler_CodeGeneratorResponse * msg)370 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_clear_error(google_protobuf_compiler_CodeGeneratorResponse* msg) {
371   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 1);
372   _upb_Message_ClearNonExtensionField(msg, &field);
373 }
google_protobuf_compiler_CodeGeneratorResponse_error(const google_protobuf_compiler_CodeGeneratorResponse * msg)374 UPB_INLINE upb_StringView google_protobuf_compiler_CodeGeneratorResponse_error(const google_protobuf_compiler_CodeGeneratorResponse* msg) {
375   upb_StringView default_val = upb_StringView_FromString("");
376   upb_StringView ret;
377   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 1);
378   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
379   return ret;
380 }
google_protobuf_compiler_CodeGeneratorResponse_has_error(const google_protobuf_compiler_CodeGeneratorResponse * msg)381 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_has_error(const google_protobuf_compiler_CodeGeneratorResponse* msg) {
382   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 1);
383   return _upb_Message_HasNonExtensionField(msg, &field);
384 }
google_protobuf_compiler_CodeGeneratorResponse_clear_supported_features(google_protobuf_compiler_CodeGeneratorResponse * msg)385 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_clear_supported_features(google_protobuf_compiler_CodeGeneratorResponse* msg) {
386   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 2);
387   _upb_Message_ClearNonExtensionField(msg, &field);
388 }
google_protobuf_compiler_CodeGeneratorResponse_supported_features(const google_protobuf_compiler_CodeGeneratorResponse * msg)389 UPB_INLINE uint64_t google_protobuf_compiler_CodeGeneratorResponse_supported_features(const google_protobuf_compiler_CodeGeneratorResponse* msg) {
390   uint64_t default_val = (uint64_t)0ull;
391   uint64_t ret;
392   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 2);
393   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
394   return ret;
395 }
google_protobuf_compiler_CodeGeneratorResponse_has_supported_features(const google_protobuf_compiler_CodeGeneratorResponse * msg)396 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_has_supported_features(const google_protobuf_compiler_CodeGeneratorResponse* msg) {
397   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 2);
398   return _upb_Message_HasNonExtensionField(msg, &field);
399 }
google_protobuf_compiler_CodeGeneratorResponse_clear_file(google_protobuf_compiler_CodeGeneratorResponse * msg)400 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_clear_file(google_protobuf_compiler_CodeGeneratorResponse* msg) {
401   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 15);
402   _upb_Message_ClearNonExtensionField(msg, &field);
403 }
google_protobuf_compiler_CodeGeneratorResponse_file(const google_protobuf_compiler_CodeGeneratorResponse * msg,size_t * size)404 UPB_INLINE const google_protobuf_compiler_CodeGeneratorResponse_File* const* google_protobuf_compiler_CodeGeneratorResponse_file(const google_protobuf_compiler_CodeGeneratorResponse* msg, size_t* size) {
405   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 15);
406   const upb_Array* arr = upb_Message_GetArray(msg, &field);
407   if (arr) {
408     if (size) *size = arr->size;
409     return (const google_protobuf_compiler_CodeGeneratorResponse_File* const*)_upb_array_constptr(arr);
410   } else {
411     if (size) *size = 0;
412     return NULL;
413   }
414 }
google_protobuf_compiler_CodeGeneratorResponse_has_file(const google_protobuf_compiler_CodeGeneratorResponse * msg)415 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_has_file(const google_protobuf_compiler_CodeGeneratorResponse* msg) {
416   size_t size;
417   google_protobuf_compiler_CodeGeneratorResponse_file(msg, &size);
418   return size != 0;
419 }
420 
google_protobuf_compiler_CodeGeneratorResponse_set_error(google_protobuf_compiler_CodeGeneratorResponse * msg,upb_StringView value)421 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_set_error(google_protobuf_compiler_CodeGeneratorResponse *msg, upb_StringView value) {
422   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 1);
423   _upb_Message_SetNonExtensionField(msg, &field, &value);
424 }
google_protobuf_compiler_CodeGeneratorResponse_set_supported_features(google_protobuf_compiler_CodeGeneratorResponse * msg,uint64_t value)425 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_set_supported_features(google_protobuf_compiler_CodeGeneratorResponse *msg, uint64_t value) {
426   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 2);
427   _upb_Message_SetNonExtensionField(msg, &field, &value);
428 }
google_protobuf_compiler_CodeGeneratorResponse_mutable_file(google_protobuf_compiler_CodeGeneratorResponse * msg,size_t * size)429 UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse_File** google_protobuf_compiler_CodeGeneratorResponse_mutable_file(google_protobuf_compiler_CodeGeneratorResponse* msg, size_t* size) {
430   upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 15);
431   upb_Array* arr = upb_Message_GetMutableArray(msg, &field);
432   if (arr) {
433     if (size) *size = arr->size;
434     return (google_protobuf_compiler_CodeGeneratorResponse_File**)_upb_array_ptr(arr);
435   } else {
436     if (size) *size = 0;
437     return NULL;
438   }
439 }
google_protobuf_compiler_CodeGeneratorResponse_resize_file(google_protobuf_compiler_CodeGeneratorResponse * msg,size_t size,upb_Arena * arena)440 UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse_File** google_protobuf_compiler_CodeGeneratorResponse_resize_file(google_protobuf_compiler_CodeGeneratorResponse* msg, size_t size, upb_Arena* arena) {
441   upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 15);
442   return (google_protobuf_compiler_CodeGeneratorResponse_File**)upb_Message_ResizeArray(msg, &field, size, arena);
443 }
google_protobuf_compiler_CodeGeneratorResponse_add_file(google_protobuf_compiler_CodeGeneratorResponse * msg,upb_Arena * arena)444 UPB_INLINE struct google_protobuf_compiler_CodeGeneratorResponse_File* google_protobuf_compiler_CodeGeneratorResponse_add_file(google_protobuf_compiler_CodeGeneratorResponse* msg, upb_Arena* arena) {
445   upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_msg_init(), 15);
446   upb_Array* arr = upb_Message_GetOrCreateMutableArray(msg, &field, arena);
447   if (!arr || !_upb_Array_ResizeUninitialized(arr, arr->size + 1, arena)) {
448     return NULL;
449   }
450   struct google_protobuf_compiler_CodeGeneratorResponse_File* sub = (struct google_protobuf_compiler_CodeGeneratorResponse_File*)_upb_Message_New(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), arena);
451   if (!arr || !sub) return NULL;
452   _upb_Array_Set(arr, arr->size - 1, &sub, sizeof(sub));
453   return sub;
454 }
455 
456 /* google.protobuf.compiler.CodeGeneratorResponse.File */
457 
google_protobuf_compiler_CodeGeneratorResponse_File_new(upb_Arena * arena)458 UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse_File* google_protobuf_compiler_CodeGeneratorResponse_File_new(upb_Arena* arena) {
459   return (google_protobuf_compiler_CodeGeneratorResponse_File*)_upb_Message_New(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), arena);
460 }
google_protobuf_compiler_CodeGeneratorResponse_File_parse(const char * buf,size_t size,upb_Arena * arena)461 UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse_File* google_protobuf_compiler_CodeGeneratorResponse_File_parse(const char* buf, size_t size, upb_Arena* arena) {
462   google_protobuf_compiler_CodeGeneratorResponse_File* ret = google_protobuf_compiler_CodeGeneratorResponse_File_new(arena);
463   if (!ret) return NULL;
464   if (upb_Decode(buf, size, ret, google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
465     return NULL;
466   }
467   return ret;
468 }
google_protobuf_compiler_CodeGeneratorResponse_File_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)469 UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse_File* google_protobuf_compiler_CodeGeneratorResponse_File_parse_ex(const char* buf, size_t size,
470                            const upb_ExtensionRegistry* extreg,
471                            int options, upb_Arena* arena) {
472   google_protobuf_compiler_CodeGeneratorResponse_File* ret = google_protobuf_compiler_CodeGeneratorResponse_File_new(arena);
473   if (!ret) return NULL;
474   if (upb_Decode(buf, size, ret, google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), extreg, options, arena) !=
475       kUpb_DecodeStatus_Ok) {
476     return NULL;
477   }
478   return ret;
479 }
google_protobuf_compiler_CodeGeneratorResponse_File_serialize(const google_protobuf_compiler_CodeGeneratorResponse_File * msg,upb_Arena * arena,size_t * len)480 UPB_INLINE char* google_protobuf_compiler_CodeGeneratorResponse_File_serialize(const google_protobuf_compiler_CodeGeneratorResponse_File* msg, upb_Arena* arena, size_t* len) {
481   char* ptr;
482   (void)upb_Encode(msg, google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 0, arena, &ptr, len);
483   return ptr;
484 }
google_protobuf_compiler_CodeGeneratorResponse_File_serialize_ex(const google_protobuf_compiler_CodeGeneratorResponse_File * msg,int options,upb_Arena * arena,size_t * len)485 UPB_INLINE char* google_protobuf_compiler_CodeGeneratorResponse_File_serialize_ex(const google_protobuf_compiler_CodeGeneratorResponse_File* msg, int options,
486                                  upb_Arena* arena, size_t* len) {
487   char* ptr;
488   (void)upb_Encode(msg, google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), options, arena, &ptr, len);
489   return ptr;
490 }
google_protobuf_compiler_CodeGeneratorResponse_File_clear_name(google_protobuf_compiler_CodeGeneratorResponse_File * msg)491 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_clear_name(google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
492   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 1);
493   _upb_Message_ClearNonExtensionField(msg, &field);
494 }
google_protobuf_compiler_CodeGeneratorResponse_File_name(const google_protobuf_compiler_CodeGeneratorResponse_File * msg)495 UPB_INLINE upb_StringView google_protobuf_compiler_CodeGeneratorResponse_File_name(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
496   upb_StringView default_val = upb_StringView_FromString("");
497   upb_StringView ret;
498   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 1);
499   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
500   return ret;
501 }
google_protobuf_compiler_CodeGeneratorResponse_File_has_name(const google_protobuf_compiler_CodeGeneratorResponse_File * msg)502 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_File_has_name(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
503   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 1);
504   return _upb_Message_HasNonExtensionField(msg, &field);
505 }
google_protobuf_compiler_CodeGeneratorResponse_File_clear_insertion_point(google_protobuf_compiler_CodeGeneratorResponse_File * msg)506 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_clear_insertion_point(google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
507   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 2);
508   _upb_Message_ClearNonExtensionField(msg, &field);
509 }
google_protobuf_compiler_CodeGeneratorResponse_File_insertion_point(const google_protobuf_compiler_CodeGeneratorResponse_File * msg)510 UPB_INLINE upb_StringView google_protobuf_compiler_CodeGeneratorResponse_File_insertion_point(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
511   upb_StringView default_val = upb_StringView_FromString("");
512   upb_StringView ret;
513   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 2);
514   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
515   return ret;
516 }
google_protobuf_compiler_CodeGeneratorResponse_File_has_insertion_point(const google_protobuf_compiler_CodeGeneratorResponse_File * msg)517 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_File_has_insertion_point(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
518   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 2);
519   return _upb_Message_HasNonExtensionField(msg, &field);
520 }
google_protobuf_compiler_CodeGeneratorResponse_File_clear_content(google_protobuf_compiler_CodeGeneratorResponse_File * msg)521 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_clear_content(google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
522   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 15);
523   _upb_Message_ClearNonExtensionField(msg, &field);
524 }
google_protobuf_compiler_CodeGeneratorResponse_File_content(const google_protobuf_compiler_CodeGeneratorResponse_File * msg)525 UPB_INLINE upb_StringView google_protobuf_compiler_CodeGeneratorResponse_File_content(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
526   upb_StringView default_val = upb_StringView_FromString("");
527   upb_StringView ret;
528   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 15);
529   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
530   return ret;
531 }
google_protobuf_compiler_CodeGeneratorResponse_File_has_content(const google_protobuf_compiler_CodeGeneratorResponse_File * msg)532 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_File_has_content(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
533   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 15);
534   return _upb_Message_HasNonExtensionField(msg, &field);
535 }
google_protobuf_compiler_CodeGeneratorResponse_File_clear_generated_code_info(google_protobuf_compiler_CodeGeneratorResponse_File * msg)536 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_clear_generated_code_info(google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
537   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 16);
538   _upb_Message_ClearNonExtensionField(msg, &field);
539 }
google_protobuf_compiler_CodeGeneratorResponse_File_generated_code_info(const google_protobuf_compiler_CodeGeneratorResponse_File * msg)540 UPB_INLINE const struct google_protobuf_GeneratedCodeInfo* google_protobuf_compiler_CodeGeneratorResponse_File_generated_code_info(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
541   const struct google_protobuf_GeneratedCodeInfo* default_val = NULL;
542   const struct google_protobuf_GeneratedCodeInfo* ret;
543   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 16);
544   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
545   return ret;
546 }
google_protobuf_compiler_CodeGeneratorResponse_File_has_generated_code_info(const google_protobuf_compiler_CodeGeneratorResponse_File * msg)547 UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_File_has_generated_code_info(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) {
548   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 16);
549   return _upb_Message_HasNonExtensionField(msg, &field);
550 }
551 
google_protobuf_compiler_CodeGeneratorResponse_File_set_name(google_protobuf_compiler_CodeGeneratorResponse_File * msg,upb_StringView value)552 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_set_name(google_protobuf_compiler_CodeGeneratorResponse_File *msg, upb_StringView value) {
553   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 1);
554   _upb_Message_SetNonExtensionField(msg, &field, &value);
555 }
google_protobuf_compiler_CodeGeneratorResponse_File_set_insertion_point(google_protobuf_compiler_CodeGeneratorResponse_File * msg,upb_StringView value)556 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_set_insertion_point(google_protobuf_compiler_CodeGeneratorResponse_File *msg, upb_StringView value) {
557   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 2);
558   _upb_Message_SetNonExtensionField(msg, &field, &value);
559 }
google_protobuf_compiler_CodeGeneratorResponse_File_set_content(google_protobuf_compiler_CodeGeneratorResponse_File * msg,upb_StringView value)560 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_set_content(google_protobuf_compiler_CodeGeneratorResponse_File *msg, upb_StringView value) {
561   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 15);
562   _upb_Message_SetNonExtensionField(msg, &field, &value);
563 }
google_protobuf_compiler_CodeGeneratorResponse_File_set_generated_code_info(google_protobuf_compiler_CodeGeneratorResponse_File * msg,struct google_protobuf_GeneratedCodeInfo * value)564 UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_set_generated_code_info(google_protobuf_compiler_CodeGeneratorResponse_File *msg, struct google_protobuf_GeneratedCodeInfo* value) {
565   const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google_protobuf_compiler_CodeGeneratorResponse_File_msg_init(), 16);
566   _upb_Message_SetNonExtensionField(msg, &field, &value);
567 }
google_protobuf_compiler_CodeGeneratorResponse_File_mutable_generated_code_info(google_protobuf_compiler_CodeGeneratorResponse_File * msg,upb_Arena * arena)568 UPB_INLINE struct google_protobuf_GeneratedCodeInfo* google_protobuf_compiler_CodeGeneratorResponse_File_mutable_generated_code_info(google_protobuf_compiler_CodeGeneratorResponse_File* msg, upb_Arena* arena) {
569   struct google_protobuf_GeneratedCodeInfo* sub = (struct google_protobuf_GeneratedCodeInfo*)google_protobuf_compiler_CodeGeneratorResponse_File_generated_code_info(msg);
570   if (sub == NULL) {
571     sub = (struct google_protobuf_GeneratedCodeInfo*)_upb_Message_New(google_protobuf_GeneratedCodeInfo_msg_init(), arena);
572     if (sub) google_protobuf_compiler_CodeGeneratorResponse_File_set_generated_code_info(msg, sub);
573   }
574   return sub;
575 }
576 
577 extern const upb_MiniTableFile google_protobuf_compiler_plugin_proto_upb_file_layout;
578 
579 #ifdef __cplusplus
580 }  /* extern "C" */
581 #endif
582 
583 #include "upb/port/undef.inc"
584 
585 #endif  /* GOOGLE_PROTOBUF_COMPILER_PLUGIN_PROTO_UPB_H_ */
586