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