1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     xds/annotations/v3/status.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef XDS_ANNOTATIONS_V3_STATUS_PROTO_UPB_H_
10 #define XDS_ANNOTATIONS_V3_STATUS_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 xds_annotations_v3_FileStatusAnnotation xds_annotations_v3_FileStatusAnnotation;
29 typedef struct xds_annotations_v3_MessageStatusAnnotation xds_annotations_v3_MessageStatusAnnotation;
30 typedef struct xds_annotations_v3_FieldStatusAnnotation xds_annotations_v3_FieldStatusAnnotation;
31 typedef struct xds_annotations_v3_StatusAnnotation xds_annotations_v3_StatusAnnotation;
32 extern const upb_MiniTable xds_annotations_v3_FileStatusAnnotation_msg_init;
33 extern const upb_MiniTable xds_annotations_v3_MessageStatusAnnotation_msg_init;
34 extern const upb_MiniTable xds_annotations_v3_FieldStatusAnnotation_msg_init;
35 extern const upb_MiniTable xds_annotations_v3_StatusAnnotation_msg_init;
36 extern const upb_MiniTableExtension xds_annotations_v3_file_status_ext;
37 extern const upb_MiniTableExtension xds_annotations_v3_message_status_ext;
38 extern const upb_MiniTableExtension xds_annotations_v3_field_status_ext;
39 struct google_protobuf_FieldOptions;
40 struct google_protobuf_FileOptions;
41 struct google_protobuf_MessageOptions;
42 extern const upb_MiniTable google_protobuf_FieldOptions_msg_init;
43 extern const upb_MiniTable google_protobuf_FileOptions_msg_init;
44 extern const upb_MiniTable google_protobuf_MessageOptions_msg_init;
45 
46 typedef enum {
47   xds_annotations_v3_UNKNOWN = 0,
48   xds_annotations_v3_FROZEN = 1,
49   xds_annotations_v3_ACTIVE = 2,
50   xds_annotations_v3_NEXT_MAJOR_VERSION_CANDIDATE = 3
51 } xds_annotations_v3_PackageVersionStatus;
52 
53 
54 
55 /* xds.annotations.v3.FileStatusAnnotation */
56 
xds_annotations_v3_FileStatusAnnotation_new(upb_Arena * arena)57 UPB_INLINE xds_annotations_v3_FileStatusAnnotation* xds_annotations_v3_FileStatusAnnotation_new(upb_Arena* arena) {
58   return (xds_annotations_v3_FileStatusAnnotation*)_upb_Message_New(&xds_annotations_v3_FileStatusAnnotation_msg_init, arena);
59 }
xds_annotations_v3_FileStatusAnnotation_parse(const char * buf,size_t size,upb_Arena * arena)60 UPB_INLINE xds_annotations_v3_FileStatusAnnotation* xds_annotations_v3_FileStatusAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) {
61   xds_annotations_v3_FileStatusAnnotation* ret = xds_annotations_v3_FileStatusAnnotation_new(arena);
62   if (!ret) return NULL;
63   if (upb_Decode(buf, size, ret, &xds_annotations_v3_FileStatusAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
64     return NULL;
65   }
66   return ret;
67 }
xds_annotations_v3_FileStatusAnnotation_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)68 UPB_INLINE xds_annotations_v3_FileStatusAnnotation* xds_annotations_v3_FileStatusAnnotation_parse_ex(const char* buf, size_t size,
69                            const upb_ExtensionRegistry* extreg,
70                            int options, upb_Arena* arena) {
71   xds_annotations_v3_FileStatusAnnotation* ret = xds_annotations_v3_FileStatusAnnotation_new(arena);
72   if (!ret) return NULL;
73   if (upb_Decode(buf, size, ret, &xds_annotations_v3_FileStatusAnnotation_msg_init, extreg, options, arena) !=
74       kUpb_DecodeStatus_Ok) {
75     return NULL;
76   }
77   return ret;
78 }
xds_annotations_v3_FileStatusAnnotation_serialize(const xds_annotations_v3_FileStatusAnnotation * msg,upb_Arena * arena,size_t * len)79 UPB_INLINE char* xds_annotations_v3_FileStatusAnnotation_serialize(const xds_annotations_v3_FileStatusAnnotation* msg, upb_Arena* arena, size_t* len) {
80   char* ptr;
81   (void)upb_Encode(msg, &xds_annotations_v3_FileStatusAnnotation_msg_init, 0, arena, &ptr, len);
82   return ptr;
83 }
xds_annotations_v3_FileStatusAnnotation_serialize_ex(const xds_annotations_v3_FileStatusAnnotation * msg,int options,upb_Arena * arena,size_t * len)84 UPB_INLINE char* xds_annotations_v3_FileStatusAnnotation_serialize_ex(const xds_annotations_v3_FileStatusAnnotation* msg, int options,
85                                  upb_Arena* arena, size_t* len) {
86   char* ptr;
87   (void)upb_Encode(msg, &xds_annotations_v3_FileStatusAnnotation_msg_init, options, arena, &ptr, len);
88   return ptr;
89 }
xds_annotations_v3_FileStatusAnnotation_clear_work_in_progress(xds_annotations_v3_FileStatusAnnotation * msg)90 UPB_INLINE void xds_annotations_v3_FileStatusAnnotation_clear_work_in_progress(xds_annotations_v3_FileStatusAnnotation* msg) {
91   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
92   _upb_Message_ClearNonExtensionField(msg, &field);
93 }
xds_annotations_v3_FileStatusAnnotation_work_in_progress(const xds_annotations_v3_FileStatusAnnotation * msg)94 UPB_INLINE bool xds_annotations_v3_FileStatusAnnotation_work_in_progress(const xds_annotations_v3_FileStatusAnnotation* msg) {
95   bool default_val = false;
96   bool ret;
97   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
98   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
99   return ret;
100 }
101 
xds_annotations_v3_FileStatusAnnotation_set_work_in_progress(xds_annotations_v3_FileStatusAnnotation * msg,bool value)102 UPB_INLINE void xds_annotations_v3_FileStatusAnnotation_set_work_in_progress(xds_annotations_v3_FileStatusAnnotation *msg, bool value) {
103   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
104   _upb_Message_SetNonExtensionField(msg, &field, &value);
105 }
106 
107 /* xds.annotations.v3.MessageStatusAnnotation */
108 
xds_annotations_v3_MessageStatusAnnotation_new(upb_Arena * arena)109 UPB_INLINE xds_annotations_v3_MessageStatusAnnotation* xds_annotations_v3_MessageStatusAnnotation_new(upb_Arena* arena) {
110   return (xds_annotations_v3_MessageStatusAnnotation*)_upb_Message_New(&xds_annotations_v3_MessageStatusAnnotation_msg_init, arena);
111 }
xds_annotations_v3_MessageStatusAnnotation_parse(const char * buf,size_t size,upb_Arena * arena)112 UPB_INLINE xds_annotations_v3_MessageStatusAnnotation* xds_annotations_v3_MessageStatusAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) {
113   xds_annotations_v3_MessageStatusAnnotation* ret = xds_annotations_v3_MessageStatusAnnotation_new(arena);
114   if (!ret) return NULL;
115   if (upb_Decode(buf, size, ret, &xds_annotations_v3_MessageStatusAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
116     return NULL;
117   }
118   return ret;
119 }
xds_annotations_v3_MessageStatusAnnotation_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)120 UPB_INLINE xds_annotations_v3_MessageStatusAnnotation* xds_annotations_v3_MessageStatusAnnotation_parse_ex(const char* buf, size_t size,
121                            const upb_ExtensionRegistry* extreg,
122                            int options, upb_Arena* arena) {
123   xds_annotations_v3_MessageStatusAnnotation* ret = xds_annotations_v3_MessageStatusAnnotation_new(arena);
124   if (!ret) return NULL;
125   if (upb_Decode(buf, size, ret, &xds_annotations_v3_MessageStatusAnnotation_msg_init, extreg, options, arena) !=
126       kUpb_DecodeStatus_Ok) {
127     return NULL;
128   }
129   return ret;
130 }
xds_annotations_v3_MessageStatusAnnotation_serialize(const xds_annotations_v3_MessageStatusAnnotation * msg,upb_Arena * arena,size_t * len)131 UPB_INLINE char* xds_annotations_v3_MessageStatusAnnotation_serialize(const xds_annotations_v3_MessageStatusAnnotation* msg, upb_Arena* arena, size_t* len) {
132   char* ptr;
133   (void)upb_Encode(msg, &xds_annotations_v3_MessageStatusAnnotation_msg_init, 0, arena, &ptr, len);
134   return ptr;
135 }
xds_annotations_v3_MessageStatusAnnotation_serialize_ex(const xds_annotations_v3_MessageStatusAnnotation * msg,int options,upb_Arena * arena,size_t * len)136 UPB_INLINE char* xds_annotations_v3_MessageStatusAnnotation_serialize_ex(const xds_annotations_v3_MessageStatusAnnotation* msg, int options,
137                                  upb_Arena* arena, size_t* len) {
138   char* ptr;
139   (void)upb_Encode(msg, &xds_annotations_v3_MessageStatusAnnotation_msg_init, options, arena, &ptr, len);
140   return ptr;
141 }
xds_annotations_v3_MessageStatusAnnotation_clear_work_in_progress(xds_annotations_v3_MessageStatusAnnotation * msg)142 UPB_INLINE void xds_annotations_v3_MessageStatusAnnotation_clear_work_in_progress(xds_annotations_v3_MessageStatusAnnotation* msg) {
143   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
144   _upb_Message_ClearNonExtensionField(msg, &field);
145 }
xds_annotations_v3_MessageStatusAnnotation_work_in_progress(const xds_annotations_v3_MessageStatusAnnotation * msg)146 UPB_INLINE bool xds_annotations_v3_MessageStatusAnnotation_work_in_progress(const xds_annotations_v3_MessageStatusAnnotation* msg) {
147   bool default_val = false;
148   bool ret;
149   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
150   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
151   return ret;
152 }
153 
xds_annotations_v3_MessageStatusAnnotation_set_work_in_progress(xds_annotations_v3_MessageStatusAnnotation * msg,bool value)154 UPB_INLINE void xds_annotations_v3_MessageStatusAnnotation_set_work_in_progress(xds_annotations_v3_MessageStatusAnnotation *msg, bool value) {
155   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
156   _upb_Message_SetNonExtensionField(msg, &field, &value);
157 }
158 
159 /* xds.annotations.v3.FieldStatusAnnotation */
160 
xds_annotations_v3_FieldStatusAnnotation_new(upb_Arena * arena)161 UPB_INLINE xds_annotations_v3_FieldStatusAnnotation* xds_annotations_v3_FieldStatusAnnotation_new(upb_Arena* arena) {
162   return (xds_annotations_v3_FieldStatusAnnotation*)_upb_Message_New(&xds_annotations_v3_FieldStatusAnnotation_msg_init, arena);
163 }
xds_annotations_v3_FieldStatusAnnotation_parse(const char * buf,size_t size,upb_Arena * arena)164 UPB_INLINE xds_annotations_v3_FieldStatusAnnotation* xds_annotations_v3_FieldStatusAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) {
165   xds_annotations_v3_FieldStatusAnnotation* ret = xds_annotations_v3_FieldStatusAnnotation_new(arena);
166   if (!ret) return NULL;
167   if (upb_Decode(buf, size, ret, &xds_annotations_v3_FieldStatusAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
168     return NULL;
169   }
170   return ret;
171 }
xds_annotations_v3_FieldStatusAnnotation_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)172 UPB_INLINE xds_annotations_v3_FieldStatusAnnotation* xds_annotations_v3_FieldStatusAnnotation_parse_ex(const char* buf, size_t size,
173                            const upb_ExtensionRegistry* extreg,
174                            int options, upb_Arena* arena) {
175   xds_annotations_v3_FieldStatusAnnotation* ret = xds_annotations_v3_FieldStatusAnnotation_new(arena);
176   if (!ret) return NULL;
177   if (upb_Decode(buf, size, ret, &xds_annotations_v3_FieldStatusAnnotation_msg_init, extreg, options, arena) !=
178       kUpb_DecodeStatus_Ok) {
179     return NULL;
180   }
181   return ret;
182 }
xds_annotations_v3_FieldStatusAnnotation_serialize(const xds_annotations_v3_FieldStatusAnnotation * msg,upb_Arena * arena,size_t * len)183 UPB_INLINE char* xds_annotations_v3_FieldStatusAnnotation_serialize(const xds_annotations_v3_FieldStatusAnnotation* msg, upb_Arena* arena, size_t* len) {
184   char* ptr;
185   (void)upb_Encode(msg, &xds_annotations_v3_FieldStatusAnnotation_msg_init, 0, arena, &ptr, len);
186   return ptr;
187 }
xds_annotations_v3_FieldStatusAnnotation_serialize_ex(const xds_annotations_v3_FieldStatusAnnotation * msg,int options,upb_Arena * arena,size_t * len)188 UPB_INLINE char* xds_annotations_v3_FieldStatusAnnotation_serialize_ex(const xds_annotations_v3_FieldStatusAnnotation* msg, int options,
189                                  upb_Arena* arena, size_t* len) {
190   char* ptr;
191   (void)upb_Encode(msg, &xds_annotations_v3_FieldStatusAnnotation_msg_init, options, arena, &ptr, len);
192   return ptr;
193 }
xds_annotations_v3_FieldStatusAnnotation_clear_work_in_progress(xds_annotations_v3_FieldStatusAnnotation * msg)194 UPB_INLINE void xds_annotations_v3_FieldStatusAnnotation_clear_work_in_progress(xds_annotations_v3_FieldStatusAnnotation* msg) {
195   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
196   _upb_Message_ClearNonExtensionField(msg, &field);
197 }
xds_annotations_v3_FieldStatusAnnotation_work_in_progress(const xds_annotations_v3_FieldStatusAnnotation * msg)198 UPB_INLINE bool xds_annotations_v3_FieldStatusAnnotation_work_in_progress(const xds_annotations_v3_FieldStatusAnnotation* msg) {
199   bool default_val = false;
200   bool ret;
201   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
202   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
203   return ret;
204 }
205 
xds_annotations_v3_FieldStatusAnnotation_set_work_in_progress(xds_annotations_v3_FieldStatusAnnotation * msg,bool value)206 UPB_INLINE void xds_annotations_v3_FieldStatusAnnotation_set_work_in_progress(xds_annotations_v3_FieldStatusAnnotation *msg, bool value) {
207   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
208   _upb_Message_SetNonExtensionField(msg, &field, &value);
209 }
210 
211 /* xds.annotations.v3.StatusAnnotation */
212 
xds_annotations_v3_StatusAnnotation_new(upb_Arena * arena)213 UPB_INLINE xds_annotations_v3_StatusAnnotation* xds_annotations_v3_StatusAnnotation_new(upb_Arena* arena) {
214   return (xds_annotations_v3_StatusAnnotation*)_upb_Message_New(&xds_annotations_v3_StatusAnnotation_msg_init, arena);
215 }
xds_annotations_v3_StatusAnnotation_parse(const char * buf,size_t size,upb_Arena * arena)216 UPB_INLINE xds_annotations_v3_StatusAnnotation* xds_annotations_v3_StatusAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) {
217   xds_annotations_v3_StatusAnnotation* ret = xds_annotations_v3_StatusAnnotation_new(arena);
218   if (!ret) return NULL;
219   if (upb_Decode(buf, size, ret, &xds_annotations_v3_StatusAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
220     return NULL;
221   }
222   return ret;
223 }
xds_annotations_v3_StatusAnnotation_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)224 UPB_INLINE xds_annotations_v3_StatusAnnotation* xds_annotations_v3_StatusAnnotation_parse_ex(const char* buf, size_t size,
225                            const upb_ExtensionRegistry* extreg,
226                            int options, upb_Arena* arena) {
227   xds_annotations_v3_StatusAnnotation* ret = xds_annotations_v3_StatusAnnotation_new(arena);
228   if (!ret) return NULL;
229   if (upb_Decode(buf, size, ret, &xds_annotations_v3_StatusAnnotation_msg_init, extreg, options, arena) !=
230       kUpb_DecodeStatus_Ok) {
231     return NULL;
232   }
233   return ret;
234 }
xds_annotations_v3_StatusAnnotation_serialize(const xds_annotations_v3_StatusAnnotation * msg,upb_Arena * arena,size_t * len)235 UPB_INLINE char* xds_annotations_v3_StatusAnnotation_serialize(const xds_annotations_v3_StatusAnnotation* msg, upb_Arena* arena, size_t* len) {
236   char* ptr;
237   (void)upb_Encode(msg, &xds_annotations_v3_StatusAnnotation_msg_init, 0, arena, &ptr, len);
238   return ptr;
239 }
xds_annotations_v3_StatusAnnotation_serialize_ex(const xds_annotations_v3_StatusAnnotation * msg,int options,upb_Arena * arena,size_t * len)240 UPB_INLINE char* xds_annotations_v3_StatusAnnotation_serialize_ex(const xds_annotations_v3_StatusAnnotation* msg, int options,
241                                  upb_Arena* arena, size_t* len) {
242   char* ptr;
243   (void)upb_Encode(msg, &xds_annotations_v3_StatusAnnotation_msg_init, options, arena, &ptr, len);
244   return ptr;
245 }
xds_annotations_v3_StatusAnnotation_clear_work_in_progress(xds_annotations_v3_StatusAnnotation * msg)246 UPB_INLINE void xds_annotations_v3_StatusAnnotation_clear_work_in_progress(xds_annotations_v3_StatusAnnotation* msg) {
247   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
248   _upb_Message_ClearNonExtensionField(msg, &field);
249 }
xds_annotations_v3_StatusAnnotation_work_in_progress(const xds_annotations_v3_StatusAnnotation * msg)250 UPB_INLINE bool xds_annotations_v3_StatusAnnotation_work_in_progress(const xds_annotations_v3_StatusAnnotation* msg) {
251   bool default_val = false;
252   bool ret;
253   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
254   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
255   return ret;
256 }
xds_annotations_v3_StatusAnnotation_clear_package_version_status(xds_annotations_v3_StatusAnnotation * msg)257 UPB_INLINE void xds_annotations_v3_StatusAnnotation_clear_package_version_status(xds_annotations_v3_StatusAnnotation* msg) {
258   const upb_MiniTableField field = {2, 4, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
259   _upb_Message_ClearNonExtensionField(msg, &field);
260 }
xds_annotations_v3_StatusAnnotation_package_version_status(const xds_annotations_v3_StatusAnnotation * msg)261 UPB_INLINE int32_t xds_annotations_v3_StatusAnnotation_package_version_status(const xds_annotations_v3_StatusAnnotation* msg) {
262   int32_t default_val = 0;
263   int32_t ret;
264   const upb_MiniTableField field = {2, 4, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
265   _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret);
266   return ret;
267 }
268 
xds_annotations_v3_StatusAnnotation_set_work_in_progress(xds_annotations_v3_StatusAnnotation * msg,bool value)269 UPB_INLINE void xds_annotations_v3_StatusAnnotation_set_work_in_progress(xds_annotations_v3_StatusAnnotation *msg, bool value) {
270   const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
271   _upb_Message_SetNonExtensionField(msg, &field, &value);
272 }
xds_annotations_v3_StatusAnnotation_set_package_version_status(xds_annotations_v3_StatusAnnotation * msg,int32_t value)273 UPB_INLINE void xds_annotations_v3_StatusAnnotation_set_package_version_status(xds_annotations_v3_StatusAnnotation *msg, int32_t value) {
274   const upb_MiniTableField field = {2, 4, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
275   _upb_Message_SetNonExtensionField(msg, &field, &value);
276 }
277 
xds_annotations_v3_has_file_status(const struct google_protobuf_FileOptions * msg)278 UPB_INLINE bool xds_annotations_v3_has_file_status(const struct google_protobuf_FileOptions* msg) {
279   return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_file_status_ext);
280 }
xds_annotations_v3_clear_file_status(struct google_protobuf_FileOptions * msg)281 UPB_INLINE void xds_annotations_v3_clear_file_status(struct google_protobuf_FileOptions* msg) {
282   _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_file_status_ext);
283 }
xds_annotations_v3_file_status(const struct google_protobuf_FileOptions * msg)284 UPB_INLINE const xds_annotations_v3_FileStatusAnnotation* xds_annotations_v3_file_status(const struct google_protobuf_FileOptions* msg) {
285   const upb_MiniTableExtension* ext = &xds_annotations_v3_file_status_ext;
286   UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field));
287   UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte);
288   const xds_annotations_v3_FileStatusAnnotation* default_val = NULL;
289   const xds_annotations_v3_FileStatusAnnotation* ret;
290   _upb_Message_GetExtensionField(msg, ext, &default_val, &ret);
291   return ret;
292 }
xds_annotations_v3_set_file_status(struct google_protobuf_FileOptions * msg,const xds_annotations_v3_FileStatusAnnotation * val,upb_Arena * arena)293 UPB_INLINE void xds_annotations_v3_set_file_status(struct google_protobuf_FileOptions* msg, const xds_annotations_v3_FileStatusAnnotation* val, upb_Arena* arena) {
294   const upb_MiniTableExtension* ext = &xds_annotations_v3_file_status_ext;
295   UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field));
296   UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte);
297   bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena);
298   UPB_ASSERT(ok);
299 }
xds_annotations_v3_has_message_status(const struct google_protobuf_MessageOptions * msg)300 UPB_INLINE bool xds_annotations_v3_has_message_status(const struct google_protobuf_MessageOptions* msg) {
301   return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_message_status_ext);
302 }
xds_annotations_v3_clear_message_status(struct google_protobuf_MessageOptions * msg)303 UPB_INLINE void xds_annotations_v3_clear_message_status(struct google_protobuf_MessageOptions* msg) {
304   _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_message_status_ext);
305 }
xds_annotations_v3_message_status(const struct google_protobuf_MessageOptions * msg)306 UPB_INLINE const xds_annotations_v3_MessageStatusAnnotation* xds_annotations_v3_message_status(const struct google_protobuf_MessageOptions* msg) {
307   const upb_MiniTableExtension* ext = &xds_annotations_v3_message_status_ext;
308   UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field));
309   UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte);
310   const xds_annotations_v3_MessageStatusAnnotation* default_val = NULL;
311   const xds_annotations_v3_MessageStatusAnnotation* ret;
312   _upb_Message_GetExtensionField(msg, ext, &default_val, &ret);
313   return ret;
314 }
xds_annotations_v3_set_message_status(struct google_protobuf_MessageOptions * msg,const xds_annotations_v3_MessageStatusAnnotation * val,upb_Arena * arena)315 UPB_INLINE void xds_annotations_v3_set_message_status(struct google_protobuf_MessageOptions* msg, const xds_annotations_v3_MessageStatusAnnotation* val, upb_Arena* arena) {
316   const upb_MiniTableExtension* ext = &xds_annotations_v3_message_status_ext;
317   UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field));
318   UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte);
319   bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena);
320   UPB_ASSERT(ok);
321 }
xds_annotations_v3_has_field_status(const struct google_protobuf_FieldOptions * msg)322 UPB_INLINE bool xds_annotations_v3_has_field_status(const struct google_protobuf_FieldOptions* msg) {
323   return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_field_status_ext);
324 }
xds_annotations_v3_clear_field_status(struct google_protobuf_FieldOptions * msg)325 UPB_INLINE void xds_annotations_v3_clear_field_status(struct google_protobuf_FieldOptions* msg) {
326   _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_field_status_ext);
327 }
xds_annotations_v3_field_status(const struct google_protobuf_FieldOptions * msg)328 UPB_INLINE const xds_annotations_v3_FieldStatusAnnotation* xds_annotations_v3_field_status(const struct google_protobuf_FieldOptions* msg) {
329   const upb_MiniTableExtension* ext = &xds_annotations_v3_field_status_ext;
330   UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field));
331   UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte);
332   const xds_annotations_v3_FieldStatusAnnotation* default_val = NULL;
333   const xds_annotations_v3_FieldStatusAnnotation* ret;
334   _upb_Message_GetExtensionField(msg, ext, &default_val, &ret);
335   return ret;
336 }
xds_annotations_v3_set_field_status(struct google_protobuf_FieldOptions * msg,const xds_annotations_v3_FieldStatusAnnotation * val,upb_Arena * arena)337 UPB_INLINE void xds_annotations_v3_set_field_status(struct google_protobuf_FieldOptions* msg, const xds_annotations_v3_FieldStatusAnnotation* val, upb_Arena* arena) {
338   const upb_MiniTableExtension* ext = &xds_annotations_v3_field_status_ext;
339   UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field));
340   UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte);
341   bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena);
342   UPB_ASSERT(ok);
343 }
344 extern const upb_MiniTableFile xds_annotations_v3_status_proto_upb_file_layout;
345 
346 #ifdef __cplusplus
347 }  /* extern "C" */
348 #endif
349 
350 #include "upb/port/undef.inc"
351 
352 #endif  /* XDS_ANNOTATIONS_V3_STATUS_PROTO_UPB_H_ */
353