1 /* This file was generated by upbc (the upb compiler) from the input
2 * file:
3 *
4 * envoy/config/core/v3/base.proto
5 *
6 * Do not edit -- your changes will be discarded when the file is
7 * regenerated. */
8
9 #ifndef ENVOY_CONFIG_CORE_V3_BASE_PROTO_UPB_H_
10 #define ENVOY_CONFIG_CORE_V3_BASE_PROTO_UPB_H_
11
12 #include "upb/msg.h"
13 #include "upb/decode.h"
14 #include "upb/decode_fast.h"
15 #include "upb/encode.h"
16
17 #include "upb/port_def.inc"
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 struct envoy_config_core_v3_Locality;
24 struct envoy_config_core_v3_BuildVersion;
25 struct envoy_config_core_v3_Extension;
26 struct envoy_config_core_v3_Node;
27 struct envoy_config_core_v3_Metadata;
28 struct envoy_config_core_v3_Metadata_FilterMetadataEntry;
29 struct envoy_config_core_v3_RuntimeUInt32;
30 struct envoy_config_core_v3_RuntimePercent;
31 struct envoy_config_core_v3_RuntimeDouble;
32 struct envoy_config_core_v3_RuntimeFeatureFlag;
33 struct envoy_config_core_v3_HeaderValue;
34 struct envoy_config_core_v3_HeaderValueOption;
35 struct envoy_config_core_v3_HeaderMap;
36 struct envoy_config_core_v3_WatchedDirectory;
37 struct envoy_config_core_v3_DataSource;
38 struct envoy_config_core_v3_RetryPolicy;
39 struct envoy_config_core_v3_RemoteDataSource;
40 struct envoy_config_core_v3_AsyncDataSource;
41 struct envoy_config_core_v3_TransportSocket;
42 struct envoy_config_core_v3_RuntimeFractionalPercent;
43 struct envoy_config_core_v3_ControlPlane;
44 typedef struct envoy_config_core_v3_Locality envoy_config_core_v3_Locality;
45 typedef struct envoy_config_core_v3_BuildVersion envoy_config_core_v3_BuildVersion;
46 typedef struct envoy_config_core_v3_Extension envoy_config_core_v3_Extension;
47 typedef struct envoy_config_core_v3_Node envoy_config_core_v3_Node;
48 typedef struct envoy_config_core_v3_Metadata envoy_config_core_v3_Metadata;
49 typedef struct envoy_config_core_v3_Metadata_FilterMetadataEntry envoy_config_core_v3_Metadata_FilterMetadataEntry;
50 typedef struct envoy_config_core_v3_RuntimeUInt32 envoy_config_core_v3_RuntimeUInt32;
51 typedef struct envoy_config_core_v3_RuntimePercent envoy_config_core_v3_RuntimePercent;
52 typedef struct envoy_config_core_v3_RuntimeDouble envoy_config_core_v3_RuntimeDouble;
53 typedef struct envoy_config_core_v3_RuntimeFeatureFlag envoy_config_core_v3_RuntimeFeatureFlag;
54 typedef struct envoy_config_core_v3_HeaderValue envoy_config_core_v3_HeaderValue;
55 typedef struct envoy_config_core_v3_HeaderValueOption envoy_config_core_v3_HeaderValueOption;
56 typedef struct envoy_config_core_v3_HeaderMap envoy_config_core_v3_HeaderMap;
57 typedef struct envoy_config_core_v3_WatchedDirectory envoy_config_core_v3_WatchedDirectory;
58 typedef struct envoy_config_core_v3_DataSource envoy_config_core_v3_DataSource;
59 typedef struct envoy_config_core_v3_RetryPolicy envoy_config_core_v3_RetryPolicy;
60 typedef struct envoy_config_core_v3_RemoteDataSource envoy_config_core_v3_RemoteDataSource;
61 typedef struct envoy_config_core_v3_AsyncDataSource envoy_config_core_v3_AsyncDataSource;
62 typedef struct envoy_config_core_v3_TransportSocket envoy_config_core_v3_TransportSocket;
63 typedef struct envoy_config_core_v3_RuntimeFractionalPercent envoy_config_core_v3_RuntimeFractionalPercent;
64 typedef struct envoy_config_core_v3_ControlPlane envoy_config_core_v3_ControlPlane;
65 extern const upb_msglayout envoy_config_core_v3_Locality_msginit;
66 extern const upb_msglayout envoy_config_core_v3_BuildVersion_msginit;
67 extern const upb_msglayout envoy_config_core_v3_Extension_msginit;
68 extern const upb_msglayout envoy_config_core_v3_Node_msginit;
69 extern const upb_msglayout envoy_config_core_v3_Metadata_msginit;
70 extern const upb_msglayout envoy_config_core_v3_Metadata_FilterMetadataEntry_msginit;
71 extern const upb_msglayout envoy_config_core_v3_RuntimeUInt32_msginit;
72 extern const upb_msglayout envoy_config_core_v3_RuntimePercent_msginit;
73 extern const upb_msglayout envoy_config_core_v3_RuntimeDouble_msginit;
74 extern const upb_msglayout envoy_config_core_v3_RuntimeFeatureFlag_msginit;
75 extern const upb_msglayout envoy_config_core_v3_HeaderValue_msginit;
76 extern const upb_msglayout envoy_config_core_v3_HeaderValueOption_msginit;
77 extern const upb_msglayout envoy_config_core_v3_HeaderMap_msginit;
78 extern const upb_msglayout envoy_config_core_v3_WatchedDirectory_msginit;
79 extern const upb_msglayout envoy_config_core_v3_DataSource_msginit;
80 extern const upb_msglayout envoy_config_core_v3_RetryPolicy_msginit;
81 extern const upb_msglayout envoy_config_core_v3_RemoteDataSource_msginit;
82 extern const upb_msglayout envoy_config_core_v3_AsyncDataSource_msginit;
83 extern const upb_msglayout envoy_config_core_v3_TransportSocket_msginit;
84 extern const upb_msglayout envoy_config_core_v3_RuntimeFractionalPercent_msginit;
85 extern const upb_msglayout envoy_config_core_v3_ControlPlane_msginit;
86 struct envoy_config_core_v3_Address;
87 struct envoy_config_core_v3_BackoffStrategy;
88 struct envoy_config_core_v3_HttpUri;
89 struct envoy_type_v3_FractionalPercent;
90 struct envoy_type_v3_Percent;
91 struct envoy_type_v3_SemanticVersion;
92 struct google_protobuf_Any;
93 struct google_protobuf_BoolValue;
94 struct google_protobuf_Struct;
95 struct google_protobuf_UInt32Value;
96 extern const upb_msglayout envoy_config_core_v3_Address_msginit;
97 extern const upb_msglayout envoy_config_core_v3_BackoffStrategy_msginit;
98 extern const upb_msglayout envoy_config_core_v3_HttpUri_msginit;
99 extern const upb_msglayout envoy_type_v3_FractionalPercent_msginit;
100 extern const upb_msglayout envoy_type_v3_Percent_msginit;
101 extern const upb_msglayout envoy_type_v3_SemanticVersion_msginit;
102 extern const upb_msglayout google_protobuf_Any_msginit;
103 extern const upb_msglayout google_protobuf_BoolValue_msginit;
104 extern const upb_msglayout google_protobuf_Struct_msginit;
105 extern const upb_msglayout google_protobuf_UInt32Value_msginit;
106
107 typedef enum {
108 envoy_config_core_v3_METHOD_UNSPECIFIED = 0,
109 envoy_config_core_v3_GET = 1,
110 envoy_config_core_v3_HEAD = 2,
111 envoy_config_core_v3_POST = 3,
112 envoy_config_core_v3_PUT = 4,
113 envoy_config_core_v3_DELETE = 5,
114 envoy_config_core_v3_CONNECT = 6,
115 envoy_config_core_v3_OPTIONS = 7,
116 envoy_config_core_v3_TRACE = 8,
117 envoy_config_core_v3_PATCH = 9
118 } envoy_config_core_v3_RequestMethod;
119
120 typedef enum {
121 envoy_config_core_v3_DEFAULT = 0,
122 envoy_config_core_v3_HIGH = 1
123 } envoy_config_core_v3_RoutingPriority;
124
125 typedef enum {
126 envoy_config_core_v3_UNSPECIFIED = 0,
127 envoy_config_core_v3_INBOUND = 1,
128 envoy_config_core_v3_OUTBOUND = 2
129 } envoy_config_core_v3_TrafficDirection;
130
131
132 /* envoy.config.core.v3.Locality */
133
envoy_config_core_v3_Locality_new(upb_arena * arena)134 UPB_INLINE envoy_config_core_v3_Locality *envoy_config_core_v3_Locality_new(upb_arena *arena) {
135 return (envoy_config_core_v3_Locality *)_upb_msg_new(&envoy_config_core_v3_Locality_msginit, arena);
136 }
envoy_config_core_v3_Locality_parse(const char * buf,size_t size,upb_arena * arena)137 UPB_INLINE envoy_config_core_v3_Locality *envoy_config_core_v3_Locality_parse(const char *buf, size_t size,
138 upb_arena *arena) {
139 envoy_config_core_v3_Locality *ret = envoy_config_core_v3_Locality_new(arena);
140 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_Locality_msginit, arena)) ? ret : NULL;
141 }
envoy_config_core_v3_Locality_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)142 UPB_INLINE envoy_config_core_v3_Locality *envoy_config_core_v3_Locality_parse_ex(const char *buf, size_t size,
143 upb_arena *arena, int options) {
144 envoy_config_core_v3_Locality *ret = envoy_config_core_v3_Locality_new(arena);
145 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_Locality_msginit, arena, options))
146 ? ret : NULL;
147 }
envoy_config_core_v3_Locality_serialize(const envoy_config_core_v3_Locality * msg,upb_arena * arena,size_t * len)148 UPB_INLINE char *envoy_config_core_v3_Locality_serialize(const envoy_config_core_v3_Locality *msg, upb_arena *arena, size_t *len) {
149 return upb_encode(msg, &envoy_config_core_v3_Locality_msginit, arena, len);
150 }
151
envoy_config_core_v3_Locality_region(const envoy_config_core_v3_Locality * msg)152 UPB_INLINE upb_strview envoy_config_core_v3_Locality_region(const envoy_config_core_v3_Locality *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
envoy_config_core_v3_Locality_zone(const envoy_config_core_v3_Locality * msg)153 UPB_INLINE upb_strview envoy_config_core_v3_Locality_zone(const envoy_config_core_v3_Locality *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview); }
envoy_config_core_v3_Locality_sub_zone(const envoy_config_core_v3_Locality * msg)154 UPB_INLINE upb_strview envoy_config_core_v3_Locality_sub_zone(const envoy_config_core_v3_Locality *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_strview); }
155
envoy_config_core_v3_Locality_set_region(envoy_config_core_v3_Locality * msg,upb_strview value)156 UPB_INLINE void envoy_config_core_v3_Locality_set_region(envoy_config_core_v3_Locality *msg, upb_strview value) {
157 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
158 }
envoy_config_core_v3_Locality_set_zone(envoy_config_core_v3_Locality * msg,upb_strview value)159 UPB_INLINE void envoy_config_core_v3_Locality_set_zone(envoy_config_core_v3_Locality *msg, upb_strview value) {
160 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview) = value;
161 }
envoy_config_core_v3_Locality_set_sub_zone(envoy_config_core_v3_Locality * msg,upb_strview value)162 UPB_INLINE void envoy_config_core_v3_Locality_set_sub_zone(envoy_config_core_v3_Locality *msg, upb_strview value) {
163 *UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_strview) = value;
164 }
165
166 /* envoy.config.core.v3.BuildVersion */
167
envoy_config_core_v3_BuildVersion_new(upb_arena * arena)168 UPB_INLINE envoy_config_core_v3_BuildVersion *envoy_config_core_v3_BuildVersion_new(upb_arena *arena) {
169 return (envoy_config_core_v3_BuildVersion *)_upb_msg_new(&envoy_config_core_v3_BuildVersion_msginit, arena);
170 }
envoy_config_core_v3_BuildVersion_parse(const char * buf,size_t size,upb_arena * arena)171 UPB_INLINE envoy_config_core_v3_BuildVersion *envoy_config_core_v3_BuildVersion_parse(const char *buf, size_t size,
172 upb_arena *arena) {
173 envoy_config_core_v3_BuildVersion *ret = envoy_config_core_v3_BuildVersion_new(arena);
174 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_BuildVersion_msginit, arena)) ? ret : NULL;
175 }
envoy_config_core_v3_BuildVersion_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)176 UPB_INLINE envoy_config_core_v3_BuildVersion *envoy_config_core_v3_BuildVersion_parse_ex(const char *buf, size_t size,
177 upb_arena *arena, int options) {
178 envoy_config_core_v3_BuildVersion *ret = envoy_config_core_v3_BuildVersion_new(arena);
179 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_BuildVersion_msginit, arena, options))
180 ? ret : NULL;
181 }
envoy_config_core_v3_BuildVersion_serialize(const envoy_config_core_v3_BuildVersion * msg,upb_arena * arena,size_t * len)182 UPB_INLINE char *envoy_config_core_v3_BuildVersion_serialize(const envoy_config_core_v3_BuildVersion *msg, upb_arena *arena, size_t *len) {
183 return upb_encode(msg, &envoy_config_core_v3_BuildVersion_msginit, arena, len);
184 }
185
envoy_config_core_v3_BuildVersion_has_version(const envoy_config_core_v3_BuildVersion * msg)186 UPB_INLINE bool envoy_config_core_v3_BuildVersion_has_version(const envoy_config_core_v3_BuildVersion *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_BuildVersion_version(const envoy_config_core_v3_BuildVersion * msg)187 UPB_INLINE const struct envoy_type_v3_SemanticVersion* envoy_config_core_v3_BuildVersion_version(const envoy_config_core_v3_BuildVersion *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_type_v3_SemanticVersion*); }
envoy_config_core_v3_BuildVersion_has_metadata(const envoy_config_core_v3_BuildVersion * msg)188 UPB_INLINE bool envoy_config_core_v3_BuildVersion_has_metadata(const envoy_config_core_v3_BuildVersion *msg) { return _upb_hasbit(msg, 2); }
envoy_config_core_v3_BuildVersion_metadata(const envoy_config_core_v3_BuildVersion * msg)189 UPB_INLINE const struct google_protobuf_Struct* envoy_config_core_v3_BuildVersion_metadata(const envoy_config_core_v3_BuildVersion *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_Struct*); }
190
envoy_config_core_v3_BuildVersion_set_version(envoy_config_core_v3_BuildVersion * msg,struct envoy_type_v3_SemanticVersion * value)191 UPB_INLINE void envoy_config_core_v3_BuildVersion_set_version(envoy_config_core_v3_BuildVersion *msg, struct envoy_type_v3_SemanticVersion* value) {
192 _upb_sethas(msg, 1);
193 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_type_v3_SemanticVersion*) = value;
194 }
envoy_config_core_v3_BuildVersion_mutable_version(envoy_config_core_v3_BuildVersion * msg,upb_arena * arena)195 UPB_INLINE struct envoy_type_v3_SemanticVersion* envoy_config_core_v3_BuildVersion_mutable_version(envoy_config_core_v3_BuildVersion *msg, upb_arena *arena) {
196 struct envoy_type_v3_SemanticVersion* sub = (struct envoy_type_v3_SemanticVersion*)envoy_config_core_v3_BuildVersion_version(msg);
197 if (sub == NULL) {
198 sub = (struct envoy_type_v3_SemanticVersion*)_upb_msg_new(&envoy_type_v3_SemanticVersion_msginit, arena);
199 if (!sub) return NULL;
200 envoy_config_core_v3_BuildVersion_set_version(msg, sub);
201 }
202 return sub;
203 }
envoy_config_core_v3_BuildVersion_set_metadata(envoy_config_core_v3_BuildVersion * msg,struct google_protobuf_Struct * value)204 UPB_INLINE void envoy_config_core_v3_BuildVersion_set_metadata(envoy_config_core_v3_BuildVersion *msg, struct google_protobuf_Struct* value) {
205 _upb_sethas(msg, 2);
206 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_Struct*) = value;
207 }
envoy_config_core_v3_BuildVersion_mutable_metadata(envoy_config_core_v3_BuildVersion * msg,upb_arena * arena)208 UPB_INLINE struct google_protobuf_Struct* envoy_config_core_v3_BuildVersion_mutable_metadata(envoy_config_core_v3_BuildVersion *msg, upb_arena *arena) {
209 struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_config_core_v3_BuildVersion_metadata(msg);
210 if (sub == NULL) {
211 sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena);
212 if (!sub) return NULL;
213 envoy_config_core_v3_BuildVersion_set_metadata(msg, sub);
214 }
215 return sub;
216 }
217
218 /* envoy.config.core.v3.Extension */
219
envoy_config_core_v3_Extension_new(upb_arena * arena)220 UPB_INLINE envoy_config_core_v3_Extension *envoy_config_core_v3_Extension_new(upb_arena *arena) {
221 return (envoy_config_core_v3_Extension *)_upb_msg_new(&envoy_config_core_v3_Extension_msginit, arena);
222 }
envoy_config_core_v3_Extension_parse(const char * buf,size_t size,upb_arena * arena)223 UPB_INLINE envoy_config_core_v3_Extension *envoy_config_core_v3_Extension_parse(const char *buf, size_t size,
224 upb_arena *arena) {
225 envoy_config_core_v3_Extension *ret = envoy_config_core_v3_Extension_new(arena);
226 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_Extension_msginit, arena)) ? ret : NULL;
227 }
envoy_config_core_v3_Extension_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)228 UPB_INLINE envoy_config_core_v3_Extension *envoy_config_core_v3_Extension_parse_ex(const char *buf, size_t size,
229 upb_arena *arena, int options) {
230 envoy_config_core_v3_Extension *ret = envoy_config_core_v3_Extension_new(arena);
231 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_Extension_msginit, arena, options))
232 ? ret : NULL;
233 }
envoy_config_core_v3_Extension_serialize(const envoy_config_core_v3_Extension * msg,upb_arena * arena,size_t * len)234 UPB_INLINE char *envoy_config_core_v3_Extension_serialize(const envoy_config_core_v3_Extension *msg, upb_arena *arena, size_t *len) {
235 return upb_encode(msg, &envoy_config_core_v3_Extension_msginit, arena, len);
236 }
237
envoy_config_core_v3_Extension_name(const envoy_config_core_v3_Extension * msg)238 UPB_INLINE upb_strview envoy_config_core_v3_Extension_name(const envoy_config_core_v3_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
envoy_config_core_v3_Extension_category(const envoy_config_core_v3_Extension * msg)239 UPB_INLINE upb_strview envoy_config_core_v3_Extension_category(const envoy_config_core_v3_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview); }
envoy_config_core_v3_Extension_type_descriptor(const envoy_config_core_v3_Extension * msg)240 UPB_INLINE upb_strview envoy_config_core_v3_Extension_type_descriptor(const envoy_config_core_v3_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_strview); }
envoy_config_core_v3_Extension_has_version(const envoy_config_core_v3_Extension * msg)241 UPB_INLINE bool envoy_config_core_v3_Extension_has_version(const envoy_config_core_v3_Extension *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_Extension_version(const envoy_config_core_v3_Extension * msg)242 UPB_INLINE const envoy_config_core_v3_BuildVersion* envoy_config_core_v3_Extension_version(const envoy_config_core_v3_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 56), const envoy_config_core_v3_BuildVersion*); }
envoy_config_core_v3_Extension_disabled(const envoy_config_core_v3_Extension * msg)243 UPB_INLINE bool envoy_config_core_v3_Extension_disabled(const envoy_config_core_v3_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
244
envoy_config_core_v3_Extension_set_name(envoy_config_core_v3_Extension * msg,upb_strview value)245 UPB_INLINE void envoy_config_core_v3_Extension_set_name(envoy_config_core_v3_Extension *msg, upb_strview value) {
246 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
247 }
envoy_config_core_v3_Extension_set_category(envoy_config_core_v3_Extension * msg,upb_strview value)248 UPB_INLINE void envoy_config_core_v3_Extension_set_category(envoy_config_core_v3_Extension *msg, upb_strview value) {
249 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview) = value;
250 }
envoy_config_core_v3_Extension_set_type_descriptor(envoy_config_core_v3_Extension * msg,upb_strview value)251 UPB_INLINE void envoy_config_core_v3_Extension_set_type_descriptor(envoy_config_core_v3_Extension *msg, upb_strview value) {
252 *UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_strview) = value;
253 }
envoy_config_core_v3_Extension_set_version(envoy_config_core_v3_Extension * msg,envoy_config_core_v3_BuildVersion * value)254 UPB_INLINE void envoy_config_core_v3_Extension_set_version(envoy_config_core_v3_Extension *msg, envoy_config_core_v3_BuildVersion* value) {
255 _upb_sethas(msg, 1);
256 *UPB_PTR_AT(msg, UPB_SIZE(28, 56), envoy_config_core_v3_BuildVersion*) = value;
257 }
envoy_config_core_v3_Extension_mutable_version(envoy_config_core_v3_Extension * msg,upb_arena * arena)258 UPB_INLINE struct envoy_config_core_v3_BuildVersion* envoy_config_core_v3_Extension_mutable_version(envoy_config_core_v3_Extension *msg, upb_arena *arena) {
259 struct envoy_config_core_v3_BuildVersion* sub = (struct envoy_config_core_v3_BuildVersion*)envoy_config_core_v3_Extension_version(msg);
260 if (sub == NULL) {
261 sub = (struct envoy_config_core_v3_BuildVersion*)_upb_msg_new(&envoy_config_core_v3_BuildVersion_msginit, arena);
262 if (!sub) return NULL;
263 envoy_config_core_v3_Extension_set_version(msg, sub);
264 }
265 return sub;
266 }
envoy_config_core_v3_Extension_set_disabled(envoy_config_core_v3_Extension * msg,bool value)267 UPB_INLINE void envoy_config_core_v3_Extension_set_disabled(envoy_config_core_v3_Extension *msg, bool value) {
268 *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
269 }
270
271 /* envoy.config.core.v3.Node */
272
envoy_config_core_v3_Node_new(upb_arena * arena)273 UPB_INLINE envoy_config_core_v3_Node *envoy_config_core_v3_Node_new(upb_arena *arena) {
274 return (envoy_config_core_v3_Node *)_upb_msg_new(&envoy_config_core_v3_Node_msginit, arena);
275 }
envoy_config_core_v3_Node_parse(const char * buf,size_t size,upb_arena * arena)276 UPB_INLINE envoy_config_core_v3_Node *envoy_config_core_v3_Node_parse(const char *buf, size_t size,
277 upb_arena *arena) {
278 envoy_config_core_v3_Node *ret = envoy_config_core_v3_Node_new(arena);
279 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_Node_msginit, arena)) ? ret : NULL;
280 }
envoy_config_core_v3_Node_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)281 UPB_INLINE envoy_config_core_v3_Node *envoy_config_core_v3_Node_parse_ex(const char *buf, size_t size,
282 upb_arena *arena, int options) {
283 envoy_config_core_v3_Node *ret = envoy_config_core_v3_Node_new(arena);
284 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_Node_msginit, arena, options))
285 ? ret : NULL;
286 }
envoy_config_core_v3_Node_serialize(const envoy_config_core_v3_Node * msg,upb_arena * arena,size_t * len)287 UPB_INLINE char *envoy_config_core_v3_Node_serialize(const envoy_config_core_v3_Node *msg, upb_arena *arena, size_t *len) {
288 return upb_encode(msg, &envoy_config_core_v3_Node_msginit, arena, len);
289 }
290
291 typedef enum {
292 envoy_config_core_v3_Node_user_agent_version_type_user_agent_version = 7,
293 envoy_config_core_v3_Node_user_agent_version_type_user_agent_build_version = 8,
294 envoy_config_core_v3_Node_user_agent_version_type_NOT_SET = 0
295 } envoy_config_core_v3_Node_user_agent_version_type_oneofcases;
envoy_config_core_v3_Node_user_agent_version_type_case(const envoy_config_core_v3_Node * msg)296 UPB_INLINE envoy_config_core_v3_Node_user_agent_version_type_oneofcases envoy_config_core_v3_Node_user_agent_version_type_case(const envoy_config_core_v3_Node* msg) { return (envoy_config_core_v3_Node_user_agent_version_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(56, 112), int32_t); }
297
envoy_config_core_v3_Node_id(const envoy_config_core_v3_Node * msg)298 UPB_INLINE upb_strview envoy_config_core_v3_Node_id(const envoy_config_core_v3_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
envoy_config_core_v3_Node_cluster(const envoy_config_core_v3_Node * msg)299 UPB_INLINE upb_strview envoy_config_core_v3_Node_cluster(const envoy_config_core_v3_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview); }
envoy_config_core_v3_Node_has_metadata(const envoy_config_core_v3_Node * msg)300 UPB_INLINE bool envoy_config_core_v3_Node_has_metadata(const envoy_config_core_v3_Node *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_Node_metadata(const envoy_config_core_v3_Node * msg)301 UPB_INLINE const struct google_protobuf_Struct* envoy_config_core_v3_Node_metadata(const envoy_config_core_v3_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 56), const struct google_protobuf_Struct*); }
envoy_config_core_v3_Node_has_locality(const envoy_config_core_v3_Node * msg)302 UPB_INLINE bool envoy_config_core_v3_Node_has_locality(const envoy_config_core_v3_Node *msg) { return _upb_hasbit(msg, 2); }
envoy_config_core_v3_Node_locality(const envoy_config_core_v3_Node * msg)303 UPB_INLINE const envoy_config_core_v3_Locality* envoy_config_core_v3_Node_locality(const envoy_config_core_v3_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 64), const envoy_config_core_v3_Locality*); }
envoy_config_core_v3_Node_user_agent_name(const envoy_config_core_v3_Node * msg)304 UPB_INLINE upb_strview envoy_config_core_v3_Node_user_agent_name(const envoy_config_core_v3_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_strview); }
envoy_config_core_v3_Node_has_user_agent_version(const envoy_config_core_v3_Node * msg)305 UPB_INLINE bool envoy_config_core_v3_Node_has_user_agent_version(const envoy_config_core_v3_Node *msg) { return _upb_getoneofcase(msg, UPB_SIZE(56, 112)) == 7; }
envoy_config_core_v3_Node_user_agent_version(const envoy_config_core_v3_Node * msg)306 UPB_INLINE upb_strview envoy_config_core_v3_Node_user_agent_version(const envoy_config_core_v3_Node *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(48, 96), UPB_SIZE(56, 112), 7, upb_strview_make("", strlen(""))); }
envoy_config_core_v3_Node_has_user_agent_build_version(const envoy_config_core_v3_Node * msg)307 UPB_INLINE bool envoy_config_core_v3_Node_has_user_agent_build_version(const envoy_config_core_v3_Node *msg) { return _upb_getoneofcase(msg, UPB_SIZE(56, 112)) == 8; }
envoy_config_core_v3_Node_user_agent_build_version(const envoy_config_core_v3_Node * msg)308 UPB_INLINE const envoy_config_core_v3_BuildVersion* envoy_config_core_v3_Node_user_agent_build_version(const envoy_config_core_v3_Node *msg) { return UPB_READ_ONEOF(msg, const envoy_config_core_v3_BuildVersion*, UPB_SIZE(48, 96), UPB_SIZE(56, 112), 8, NULL); }
envoy_config_core_v3_Node_has_extensions(const envoy_config_core_v3_Node * msg)309 UPB_INLINE bool envoy_config_core_v3_Node_has_extensions(const envoy_config_core_v3_Node *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(36, 72)); }
envoy_config_core_v3_Node_extensions(const envoy_config_core_v3_Node * msg,size_t * len)310 UPB_INLINE const envoy_config_core_v3_Extension* const* envoy_config_core_v3_Node_extensions(const envoy_config_core_v3_Node *msg, size_t *len) { return (const envoy_config_core_v3_Extension* const*)_upb_array_accessor(msg, UPB_SIZE(36, 72), len); }
envoy_config_core_v3_Node_client_features(const envoy_config_core_v3_Node * msg,size_t * len)311 UPB_INLINE upb_strview const* envoy_config_core_v3_Node_client_features(const envoy_config_core_v3_Node *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(40, 80), len); }
envoy_config_core_v3_Node_has_listening_addresses(const envoy_config_core_v3_Node * msg)312 UPB_INLINE bool envoy_config_core_v3_Node_has_listening_addresses(const envoy_config_core_v3_Node *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(44, 88)); }
envoy_config_core_v3_Node_listening_addresses(const envoy_config_core_v3_Node * msg,size_t * len)313 UPB_INLINE const struct envoy_config_core_v3_Address* const* envoy_config_core_v3_Node_listening_addresses(const envoy_config_core_v3_Node *msg, size_t *len) { return (const struct envoy_config_core_v3_Address* const*)_upb_array_accessor(msg, UPB_SIZE(44, 88), len); }
314
envoy_config_core_v3_Node_set_id(envoy_config_core_v3_Node * msg,upb_strview value)315 UPB_INLINE void envoy_config_core_v3_Node_set_id(envoy_config_core_v3_Node *msg, upb_strview value) {
316 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
317 }
envoy_config_core_v3_Node_set_cluster(envoy_config_core_v3_Node * msg,upb_strview value)318 UPB_INLINE void envoy_config_core_v3_Node_set_cluster(envoy_config_core_v3_Node *msg, upb_strview value) {
319 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview) = value;
320 }
envoy_config_core_v3_Node_set_metadata(envoy_config_core_v3_Node * msg,struct google_protobuf_Struct * value)321 UPB_INLINE void envoy_config_core_v3_Node_set_metadata(envoy_config_core_v3_Node *msg, struct google_protobuf_Struct* value) {
322 _upb_sethas(msg, 1);
323 *UPB_PTR_AT(msg, UPB_SIZE(28, 56), struct google_protobuf_Struct*) = value;
324 }
envoy_config_core_v3_Node_mutable_metadata(envoy_config_core_v3_Node * msg,upb_arena * arena)325 UPB_INLINE struct google_protobuf_Struct* envoy_config_core_v3_Node_mutable_metadata(envoy_config_core_v3_Node *msg, upb_arena *arena) {
326 struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_config_core_v3_Node_metadata(msg);
327 if (sub == NULL) {
328 sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena);
329 if (!sub) return NULL;
330 envoy_config_core_v3_Node_set_metadata(msg, sub);
331 }
332 return sub;
333 }
envoy_config_core_v3_Node_set_locality(envoy_config_core_v3_Node * msg,envoy_config_core_v3_Locality * value)334 UPB_INLINE void envoy_config_core_v3_Node_set_locality(envoy_config_core_v3_Node *msg, envoy_config_core_v3_Locality* value) {
335 _upb_sethas(msg, 2);
336 *UPB_PTR_AT(msg, UPB_SIZE(32, 64), envoy_config_core_v3_Locality*) = value;
337 }
envoy_config_core_v3_Node_mutable_locality(envoy_config_core_v3_Node * msg,upb_arena * arena)338 UPB_INLINE struct envoy_config_core_v3_Locality* envoy_config_core_v3_Node_mutable_locality(envoy_config_core_v3_Node *msg, upb_arena *arena) {
339 struct envoy_config_core_v3_Locality* sub = (struct envoy_config_core_v3_Locality*)envoy_config_core_v3_Node_locality(msg);
340 if (sub == NULL) {
341 sub = (struct envoy_config_core_v3_Locality*)_upb_msg_new(&envoy_config_core_v3_Locality_msginit, arena);
342 if (!sub) return NULL;
343 envoy_config_core_v3_Node_set_locality(msg, sub);
344 }
345 return sub;
346 }
envoy_config_core_v3_Node_set_user_agent_name(envoy_config_core_v3_Node * msg,upb_strview value)347 UPB_INLINE void envoy_config_core_v3_Node_set_user_agent_name(envoy_config_core_v3_Node *msg, upb_strview value) {
348 *UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_strview) = value;
349 }
envoy_config_core_v3_Node_set_user_agent_version(envoy_config_core_v3_Node * msg,upb_strview value)350 UPB_INLINE void envoy_config_core_v3_Node_set_user_agent_version(envoy_config_core_v3_Node *msg, upb_strview value) {
351 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(48, 96), value, UPB_SIZE(56, 112), 7);
352 }
envoy_config_core_v3_Node_set_user_agent_build_version(envoy_config_core_v3_Node * msg,envoy_config_core_v3_BuildVersion * value)353 UPB_INLINE void envoy_config_core_v3_Node_set_user_agent_build_version(envoy_config_core_v3_Node *msg, envoy_config_core_v3_BuildVersion* value) {
354 UPB_WRITE_ONEOF(msg, envoy_config_core_v3_BuildVersion*, UPB_SIZE(48, 96), value, UPB_SIZE(56, 112), 8);
355 }
envoy_config_core_v3_Node_mutable_user_agent_build_version(envoy_config_core_v3_Node * msg,upb_arena * arena)356 UPB_INLINE struct envoy_config_core_v3_BuildVersion* envoy_config_core_v3_Node_mutable_user_agent_build_version(envoy_config_core_v3_Node *msg, upb_arena *arena) {
357 struct envoy_config_core_v3_BuildVersion* sub = (struct envoy_config_core_v3_BuildVersion*)envoy_config_core_v3_Node_user_agent_build_version(msg);
358 if (sub == NULL) {
359 sub = (struct envoy_config_core_v3_BuildVersion*)_upb_msg_new(&envoy_config_core_v3_BuildVersion_msginit, arena);
360 if (!sub) return NULL;
361 envoy_config_core_v3_Node_set_user_agent_build_version(msg, sub);
362 }
363 return sub;
364 }
envoy_config_core_v3_Node_mutable_extensions(envoy_config_core_v3_Node * msg,size_t * len)365 UPB_INLINE envoy_config_core_v3_Extension** envoy_config_core_v3_Node_mutable_extensions(envoy_config_core_v3_Node *msg, size_t *len) {
366 return (envoy_config_core_v3_Extension**)_upb_array_mutable_accessor(msg, UPB_SIZE(36, 72), len);
367 }
envoy_config_core_v3_Node_resize_extensions(envoy_config_core_v3_Node * msg,size_t len,upb_arena * arena)368 UPB_INLINE envoy_config_core_v3_Extension** envoy_config_core_v3_Node_resize_extensions(envoy_config_core_v3_Node *msg, size_t len, upb_arena *arena) {
369 return (envoy_config_core_v3_Extension**)_upb_array_resize_accessor2(msg, UPB_SIZE(36, 72), len, UPB_SIZE(2, 3), arena);
370 }
envoy_config_core_v3_Node_add_extensions(envoy_config_core_v3_Node * msg,upb_arena * arena)371 UPB_INLINE struct envoy_config_core_v3_Extension* envoy_config_core_v3_Node_add_extensions(envoy_config_core_v3_Node *msg, upb_arena *arena) {
372 struct envoy_config_core_v3_Extension* sub = (struct envoy_config_core_v3_Extension*)_upb_msg_new(&envoy_config_core_v3_Extension_msginit, arena);
373 bool ok = _upb_array_append_accessor2(
374 msg, UPB_SIZE(36, 72), UPB_SIZE(2, 3), &sub, arena);
375 if (!ok) return NULL;
376 return sub;
377 }
envoy_config_core_v3_Node_mutable_client_features(envoy_config_core_v3_Node * msg,size_t * len)378 UPB_INLINE upb_strview* envoy_config_core_v3_Node_mutable_client_features(envoy_config_core_v3_Node *msg, size_t *len) {
379 return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(40, 80), len);
380 }
envoy_config_core_v3_Node_resize_client_features(envoy_config_core_v3_Node * msg,size_t len,upb_arena * arena)381 UPB_INLINE upb_strview* envoy_config_core_v3_Node_resize_client_features(envoy_config_core_v3_Node *msg, size_t len, upb_arena *arena) {
382 return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(40, 80), len, UPB_SIZE(3, 4), arena);
383 }
envoy_config_core_v3_Node_add_client_features(envoy_config_core_v3_Node * msg,upb_strview val,upb_arena * arena)384 UPB_INLINE bool envoy_config_core_v3_Node_add_client_features(envoy_config_core_v3_Node *msg, upb_strview val, upb_arena *arena) {
385 return _upb_array_append_accessor2(msg, UPB_SIZE(40, 80), UPB_SIZE(3, 4), &val,
386 arena);
387 }
envoy_config_core_v3_Node_mutable_listening_addresses(envoy_config_core_v3_Node * msg,size_t * len)388 UPB_INLINE struct envoy_config_core_v3_Address** envoy_config_core_v3_Node_mutable_listening_addresses(envoy_config_core_v3_Node *msg, size_t *len) {
389 return (struct envoy_config_core_v3_Address**)_upb_array_mutable_accessor(msg, UPB_SIZE(44, 88), len);
390 }
envoy_config_core_v3_Node_resize_listening_addresses(envoy_config_core_v3_Node * msg,size_t len,upb_arena * arena)391 UPB_INLINE struct envoy_config_core_v3_Address** envoy_config_core_v3_Node_resize_listening_addresses(envoy_config_core_v3_Node *msg, size_t len, upb_arena *arena) {
392 return (struct envoy_config_core_v3_Address**)_upb_array_resize_accessor2(msg, UPB_SIZE(44, 88), len, UPB_SIZE(2, 3), arena);
393 }
envoy_config_core_v3_Node_add_listening_addresses(envoy_config_core_v3_Node * msg,upb_arena * arena)394 UPB_INLINE struct envoy_config_core_v3_Address* envoy_config_core_v3_Node_add_listening_addresses(envoy_config_core_v3_Node *msg, upb_arena *arena) {
395 struct envoy_config_core_v3_Address* sub = (struct envoy_config_core_v3_Address*)_upb_msg_new(&envoy_config_core_v3_Address_msginit, arena);
396 bool ok = _upb_array_append_accessor2(
397 msg, UPB_SIZE(44, 88), UPB_SIZE(2, 3), &sub, arena);
398 if (!ok) return NULL;
399 return sub;
400 }
401
402 /* envoy.config.core.v3.Metadata */
403
envoy_config_core_v3_Metadata_new(upb_arena * arena)404 UPB_INLINE envoy_config_core_v3_Metadata *envoy_config_core_v3_Metadata_new(upb_arena *arena) {
405 return (envoy_config_core_v3_Metadata *)_upb_msg_new(&envoy_config_core_v3_Metadata_msginit, arena);
406 }
envoy_config_core_v3_Metadata_parse(const char * buf,size_t size,upb_arena * arena)407 UPB_INLINE envoy_config_core_v3_Metadata *envoy_config_core_v3_Metadata_parse(const char *buf, size_t size,
408 upb_arena *arena) {
409 envoy_config_core_v3_Metadata *ret = envoy_config_core_v3_Metadata_new(arena);
410 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_Metadata_msginit, arena)) ? ret : NULL;
411 }
envoy_config_core_v3_Metadata_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)412 UPB_INLINE envoy_config_core_v3_Metadata *envoy_config_core_v3_Metadata_parse_ex(const char *buf, size_t size,
413 upb_arena *arena, int options) {
414 envoy_config_core_v3_Metadata *ret = envoy_config_core_v3_Metadata_new(arena);
415 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_Metadata_msginit, arena, options))
416 ? ret : NULL;
417 }
envoy_config_core_v3_Metadata_serialize(const envoy_config_core_v3_Metadata * msg,upb_arena * arena,size_t * len)418 UPB_INLINE char *envoy_config_core_v3_Metadata_serialize(const envoy_config_core_v3_Metadata *msg, upb_arena *arena, size_t *len) {
419 return upb_encode(msg, &envoy_config_core_v3_Metadata_msginit, arena, len);
420 }
421
envoy_config_core_v3_Metadata_has_filter_metadata(const envoy_config_core_v3_Metadata * msg)422 UPB_INLINE bool envoy_config_core_v3_Metadata_has_filter_metadata(const envoy_config_core_v3_Metadata *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
envoy_config_core_v3_Metadata_filter_metadata_size(const envoy_config_core_v3_Metadata * msg)423 UPB_INLINE size_t envoy_config_core_v3_Metadata_filter_metadata_size(const envoy_config_core_v3_Metadata *msg) {return _upb_msg_map_size(msg, UPB_SIZE(0, 0)); }
envoy_config_core_v3_Metadata_filter_metadata_get(const envoy_config_core_v3_Metadata * msg,upb_strview key,struct google_protobuf_Struct ** val)424 UPB_INLINE bool envoy_config_core_v3_Metadata_filter_metadata_get(const envoy_config_core_v3_Metadata *msg, upb_strview key, struct google_protobuf_Struct* *val) { return _upb_msg_map_get(msg, UPB_SIZE(0, 0), &key, 0, val, sizeof(*val)); }
envoy_config_core_v3_Metadata_filter_metadata_next(const envoy_config_core_v3_Metadata * msg,size_t * iter)425 UPB_INLINE const envoy_config_core_v3_Metadata_FilterMetadataEntry* envoy_config_core_v3_Metadata_filter_metadata_next(const envoy_config_core_v3_Metadata *msg, size_t* iter) { return (const envoy_config_core_v3_Metadata_FilterMetadataEntry*)_upb_msg_map_next(msg, UPB_SIZE(0, 0), iter); }
426
envoy_config_core_v3_Metadata_filter_metadata_clear(envoy_config_core_v3_Metadata * msg)427 UPB_INLINE void envoy_config_core_v3_Metadata_filter_metadata_clear(envoy_config_core_v3_Metadata *msg) { _upb_msg_map_clear(msg, UPB_SIZE(0, 0)); }
envoy_config_core_v3_Metadata_filter_metadata_set(envoy_config_core_v3_Metadata * msg,upb_strview key,struct google_protobuf_Struct * val,upb_arena * a)428 UPB_INLINE bool envoy_config_core_v3_Metadata_filter_metadata_set(envoy_config_core_v3_Metadata *msg, upb_strview key, struct google_protobuf_Struct* val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(0, 0), &key, 0, &val, sizeof(val), a); }
envoy_config_core_v3_Metadata_filter_metadata_delete(envoy_config_core_v3_Metadata * msg,upb_strview key)429 UPB_INLINE bool envoy_config_core_v3_Metadata_filter_metadata_delete(envoy_config_core_v3_Metadata *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(0, 0), &key, 0); }
envoy_config_core_v3_Metadata_filter_metadata_nextmutable(envoy_config_core_v3_Metadata * msg,size_t * iter)430 UPB_INLINE envoy_config_core_v3_Metadata_FilterMetadataEntry* envoy_config_core_v3_Metadata_filter_metadata_nextmutable(envoy_config_core_v3_Metadata *msg, size_t* iter) { return (envoy_config_core_v3_Metadata_FilterMetadataEntry*)_upb_msg_map_next(msg, UPB_SIZE(0, 0), iter); }
431
432 /* envoy.config.core.v3.Metadata.FilterMetadataEntry */
433
envoy_config_core_v3_Metadata_FilterMetadataEntry_key(const envoy_config_core_v3_Metadata_FilterMetadataEntry * msg)434 UPB_INLINE upb_strview envoy_config_core_v3_Metadata_FilterMetadataEntry_key(const envoy_config_core_v3_Metadata_FilterMetadataEntry *msg) {
435 upb_strview ret;
436 _upb_msg_map_key(msg, &ret, 0);
437 return ret;
438 }
envoy_config_core_v3_Metadata_FilterMetadataEntry_has_value(const envoy_config_core_v3_Metadata_FilterMetadataEntry * msg)439 UPB_INLINE bool envoy_config_core_v3_Metadata_FilterMetadataEntry_has_value(const envoy_config_core_v3_Metadata_FilterMetadataEntry *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
envoy_config_core_v3_Metadata_FilterMetadataEntry_value(const envoy_config_core_v3_Metadata_FilterMetadataEntry * msg)440 UPB_INLINE const struct google_protobuf_Struct* envoy_config_core_v3_Metadata_FilterMetadataEntry_value(const envoy_config_core_v3_Metadata_FilterMetadataEntry *msg) {
441 struct google_protobuf_Struct* ret;
442 _upb_msg_map_value(msg, &ret, sizeof(ret));
443 return ret;
444 }
445
envoy_config_core_v3_Metadata_FilterMetadataEntry_set_value(envoy_config_core_v3_Metadata_FilterMetadataEntry * msg,struct google_protobuf_Struct * value)446 UPB_INLINE void envoy_config_core_v3_Metadata_FilterMetadataEntry_set_value(envoy_config_core_v3_Metadata_FilterMetadataEntry *msg, struct google_protobuf_Struct* value) {
447 _upb_msg_map_set_value(msg, &value, sizeof(struct google_protobuf_Struct*));
448 }
449
450 /* envoy.config.core.v3.RuntimeUInt32 */
451
envoy_config_core_v3_RuntimeUInt32_new(upb_arena * arena)452 UPB_INLINE envoy_config_core_v3_RuntimeUInt32 *envoy_config_core_v3_RuntimeUInt32_new(upb_arena *arena) {
453 return (envoy_config_core_v3_RuntimeUInt32 *)_upb_msg_new(&envoy_config_core_v3_RuntimeUInt32_msginit, arena);
454 }
envoy_config_core_v3_RuntimeUInt32_parse(const char * buf,size_t size,upb_arena * arena)455 UPB_INLINE envoy_config_core_v3_RuntimeUInt32 *envoy_config_core_v3_RuntimeUInt32_parse(const char *buf, size_t size,
456 upb_arena *arena) {
457 envoy_config_core_v3_RuntimeUInt32 *ret = envoy_config_core_v3_RuntimeUInt32_new(arena);
458 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_RuntimeUInt32_msginit, arena)) ? ret : NULL;
459 }
envoy_config_core_v3_RuntimeUInt32_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)460 UPB_INLINE envoy_config_core_v3_RuntimeUInt32 *envoy_config_core_v3_RuntimeUInt32_parse_ex(const char *buf, size_t size,
461 upb_arena *arena, int options) {
462 envoy_config_core_v3_RuntimeUInt32 *ret = envoy_config_core_v3_RuntimeUInt32_new(arena);
463 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_RuntimeUInt32_msginit, arena, options))
464 ? ret : NULL;
465 }
envoy_config_core_v3_RuntimeUInt32_serialize(const envoy_config_core_v3_RuntimeUInt32 * msg,upb_arena * arena,size_t * len)466 UPB_INLINE char *envoy_config_core_v3_RuntimeUInt32_serialize(const envoy_config_core_v3_RuntimeUInt32 *msg, upb_arena *arena, size_t *len) {
467 return upb_encode(msg, &envoy_config_core_v3_RuntimeUInt32_msginit, arena, len);
468 }
469
envoy_config_core_v3_RuntimeUInt32_default_value(const envoy_config_core_v3_RuntimeUInt32 * msg)470 UPB_INLINE uint32_t envoy_config_core_v3_RuntimeUInt32_default_value(const envoy_config_core_v3_RuntimeUInt32 *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t); }
envoy_config_core_v3_RuntimeUInt32_runtime_key(const envoy_config_core_v3_RuntimeUInt32 * msg)471 UPB_INLINE upb_strview envoy_config_core_v3_RuntimeUInt32_runtime_key(const envoy_config_core_v3_RuntimeUInt32 *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
472
envoy_config_core_v3_RuntimeUInt32_set_default_value(envoy_config_core_v3_RuntimeUInt32 * msg,uint32_t value)473 UPB_INLINE void envoy_config_core_v3_RuntimeUInt32_set_default_value(envoy_config_core_v3_RuntimeUInt32 *msg, uint32_t value) {
474 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t) = value;
475 }
envoy_config_core_v3_RuntimeUInt32_set_runtime_key(envoy_config_core_v3_RuntimeUInt32 * msg,upb_strview value)476 UPB_INLINE void envoy_config_core_v3_RuntimeUInt32_set_runtime_key(envoy_config_core_v3_RuntimeUInt32 *msg, upb_strview value) {
477 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
478 }
479
480 /* envoy.config.core.v3.RuntimePercent */
481
envoy_config_core_v3_RuntimePercent_new(upb_arena * arena)482 UPB_INLINE envoy_config_core_v3_RuntimePercent *envoy_config_core_v3_RuntimePercent_new(upb_arena *arena) {
483 return (envoy_config_core_v3_RuntimePercent *)_upb_msg_new(&envoy_config_core_v3_RuntimePercent_msginit, arena);
484 }
envoy_config_core_v3_RuntimePercent_parse(const char * buf,size_t size,upb_arena * arena)485 UPB_INLINE envoy_config_core_v3_RuntimePercent *envoy_config_core_v3_RuntimePercent_parse(const char *buf, size_t size,
486 upb_arena *arena) {
487 envoy_config_core_v3_RuntimePercent *ret = envoy_config_core_v3_RuntimePercent_new(arena);
488 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_RuntimePercent_msginit, arena)) ? ret : NULL;
489 }
envoy_config_core_v3_RuntimePercent_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)490 UPB_INLINE envoy_config_core_v3_RuntimePercent *envoy_config_core_v3_RuntimePercent_parse_ex(const char *buf, size_t size,
491 upb_arena *arena, int options) {
492 envoy_config_core_v3_RuntimePercent *ret = envoy_config_core_v3_RuntimePercent_new(arena);
493 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_RuntimePercent_msginit, arena, options))
494 ? ret : NULL;
495 }
envoy_config_core_v3_RuntimePercent_serialize(const envoy_config_core_v3_RuntimePercent * msg,upb_arena * arena,size_t * len)496 UPB_INLINE char *envoy_config_core_v3_RuntimePercent_serialize(const envoy_config_core_v3_RuntimePercent *msg, upb_arena *arena, size_t *len) {
497 return upb_encode(msg, &envoy_config_core_v3_RuntimePercent_msginit, arena, len);
498 }
499
envoy_config_core_v3_RuntimePercent_has_default_value(const envoy_config_core_v3_RuntimePercent * msg)500 UPB_INLINE bool envoy_config_core_v3_RuntimePercent_has_default_value(const envoy_config_core_v3_RuntimePercent *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_RuntimePercent_default_value(const envoy_config_core_v3_RuntimePercent * msg)501 UPB_INLINE const struct envoy_type_v3_Percent* envoy_config_core_v3_RuntimePercent_default_value(const envoy_config_core_v3_RuntimePercent *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_type_v3_Percent*); }
envoy_config_core_v3_RuntimePercent_runtime_key(const envoy_config_core_v3_RuntimePercent * msg)502 UPB_INLINE upb_strview envoy_config_core_v3_RuntimePercent_runtime_key(const envoy_config_core_v3_RuntimePercent *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
503
envoy_config_core_v3_RuntimePercent_set_default_value(envoy_config_core_v3_RuntimePercent * msg,struct envoy_type_v3_Percent * value)504 UPB_INLINE void envoy_config_core_v3_RuntimePercent_set_default_value(envoy_config_core_v3_RuntimePercent *msg, struct envoy_type_v3_Percent* value) {
505 _upb_sethas(msg, 1);
506 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_type_v3_Percent*) = value;
507 }
envoy_config_core_v3_RuntimePercent_mutable_default_value(envoy_config_core_v3_RuntimePercent * msg,upb_arena * arena)508 UPB_INLINE struct envoy_type_v3_Percent* envoy_config_core_v3_RuntimePercent_mutable_default_value(envoy_config_core_v3_RuntimePercent *msg, upb_arena *arena) {
509 struct envoy_type_v3_Percent* sub = (struct envoy_type_v3_Percent*)envoy_config_core_v3_RuntimePercent_default_value(msg);
510 if (sub == NULL) {
511 sub = (struct envoy_type_v3_Percent*)_upb_msg_new(&envoy_type_v3_Percent_msginit, arena);
512 if (!sub) return NULL;
513 envoy_config_core_v3_RuntimePercent_set_default_value(msg, sub);
514 }
515 return sub;
516 }
envoy_config_core_v3_RuntimePercent_set_runtime_key(envoy_config_core_v3_RuntimePercent * msg,upb_strview value)517 UPB_INLINE void envoy_config_core_v3_RuntimePercent_set_runtime_key(envoy_config_core_v3_RuntimePercent *msg, upb_strview value) {
518 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
519 }
520
521 /* envoy.config.core.v3.RuntimeDouble */
522
envoy_config_core_v3_RuntimeDouble_new(upb_arena * arena)523 UPB_INLINE envoy_config_core_v3_RuntimeDouble *envoy_config_core_v3_RuntimeDouble_new(upb_arena *arena) {
524 return (envoy_config_core_v3_RuntimeDouble *)_upb_msg_new(&envoy_config_core_v3_RuntimeDouble_msginit, arena);
525 }
envoy_config_core_v3_RuntimeDouble_parse(const char * buf,size_t size,upb_arena * arena)526 UPB_INLINE envoy_config_core_v3_RuntimeDouble *envoy_config_core_v3_RuntimeDouble_parse(const char *buf, size_t size,
527 upb_arena *arena) {
528 envoy_config_core_v3_RuntimeDouble *ret = envoy_config_core_v3_RuntimeDouble_new(arena);
529 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_RuntimeDouble_msginit, arena)) ? ret : NULL;
530 }
envoy_config_core_v3_RuntimeDouble_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)531 UPB_INLINE envoy_config_core_v3_RuntimeDouble *envoy_config_core_v3_RuntimeDouble_parse_ex(const char *buf, size_t size,
532 upb_arena *arena, int options) {
533 envoy_config_core_v3_RuntimeDouble *ret = envoy_config_core_v3_RuntimeDouble_new(arena);
534 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_RuntimeDouble_msginit, arena, options))
535 ? ret : NULL;
536 }
envoy_config_core_v3_RuntimeDouble_serialize(const envoy_config_core_v3_RuntimeDouble * msg,upb_arena * arena,size_t * len)537 UPB_INLINE char *envoy_config_core_v3_RuntimeDouble_serialize(const envoy_config_core_v3_RuntimeDouble *msg, upb_arena *arena, size_t *len) {
538 return upb_encode(msg, &envoy_config_core_v3_RuntimeDouble_msginit, arena, len);
539 }
540
envoy_config_core_v3_RuntimeDouble_default_value(const envoy_config_core_v3_RuntimeDouble * msg)541 UPB_INLINE double envoy_config_core_v3_RuntimeDouble_default_value(const envoy_config_core_v3_RuntimeDouble *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), double); }
envoy_config_core_v3_RuntimeDouble_runtime_key(const envoy_config_core_v3_RuntimeDouble * msg)542 UPB_INLINE upb_strview envoy_config_core_v3_RuntimeDouble_runtime_key(const envoy_config_core_v3_RuntimeDouble *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview); }
543
envoy_config_core_v3_RuntimeDouble_set_default_value(envoy_config_core_v3_RuntimeDouble * msg,double value)544 UPB_INLINE void envoy_config_core_v3_RuntimeDouble_set_default_value(envoy_config_core_v3_RuntimeDouble *msg, double value) {
545 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), double) = value;
546 }
envoy_config_core_v3_RuntimeDouble_set_runtime_key(envoy_config_core_v3_RuntimeDouble * msg,upb_strview value)547 UPB_INLINE void envoy_config_core_v3_RuntimeDouble_set_runtime_key(envoy_config_core_v3_RuntimeDouble *msg, upb_strview value) {
548 *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview) = value;
549 }
550
551 /* envoy.config.core.v3.RuntimeFeatureFlag */
552
envoy_config_core_v3_RuntimeFeatureFlag_new(upb_arena * arena)553 UPB_INLINE envoy_config_core_v3_RuntimeFeatureFlag *envoy_config_core_v3_RuntimeFeatureFlag_new(upb_arena *arena) {
554 return (envoy_config_core_v3_RuntimeFeatureFlag *)_upb_msg_new(&envoy_config_core_v3_RuntimeFeatureFlag_msginit, arena);
555 }
envoy_config_core_v3_RuntimeFeatureFlag_parse(const char * buf,size_t size,upb_arena * arena)556 UPB_INLINE envoy_config_core_v3_RuntimeFeatureFlag *envoy_config_core_v3_RuntimeFeatureFlag_parse(const char *buf, size_t size,
557 upb_arena *arena) {
558 envoy_config_core_v3_RuntimeFeatureFlag *ret = envoy_config_core_v3_RuntimeFeatureFlag_new(arena);
559 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_RuntimeFeatureFlag_msginit, arena)) ? ret : NULL;
560 }
envoy_config_core_v3_RuntimeFeatureFlag_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)561 UPB_INLINE envoy_config_core_v3_RuntimeFeatureFlag *envoy_config_core_v3_RuntimeFeatureFlag_parse_ex(const char *buf, size_t size,
562 upb_arena *arena, int options) {
563 envoy_config_core_v3_RuntimeFeatureFlag *ret = envoy_config_core_v3_RuntimeFeatureFlag_new(arena);
564 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_RuntimeFeatureFlag_msginit, arena, options))
565 ? ret : NULL;
566 }
envoy_config_core_v3_RuntimeFeatureFlag_serialize(const envoy_config_core_v3_RuntimeFeatureFlag * msg,upb_arena * arena,size_t * len)567 UPB_INLINE char *envoy_config_core_v3_RuntimeFeatureFlag_serialize(const envoy_config_core_v3_RuntimeFeatureFlag *msg, upb_arena *arena, size_t *len) {
568 return upb_encode(msg, &envoy_config_core_v3_RuntimeFeatureFlag_msginit, arena, len);
569 }
570
envoy_config_core_v3_RuntimeFeatureFlag_has_default_value(const envoy_config_core_v3_RuntimeFeatureFlag * msg)571 UPB_INLINE bool envoy_config_core_v3_RuntimeFeatureFlag_has_default_value(const envoy_config_core_v3_RuntimeFeatureFlag *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_RuntimeFeatureFlag_default_value(const envoy_config_core_v3_RuntimeFeatureFlag * msg)572 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_core_v3_RuntimeFeatureFlag_default_value(const envoy_config_core_v3_RuntimeFeatureFlag *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_BoolValue*); }
envoy_config_core_v3_RuntimeFeatureFlag_runtime_key(const envoy_config_core_v3_RuntimeFeatureFlag * msg)573 UPB_INLINE upb_strview envoy_config_core_v3_RuntimeFeatureFlag_runtime_key(const envoy_config_core_v3_RuntimeFeatureFlag *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
574
envoy_config_core_v3_RuntimeFeatureFlag_set_default_value(envoy_config_core_v3_RuntimeFeatureFlag * msg,struct google_protobuf_BoolValue * value)575 UPB_INLINE void envoy_config_core_v3_RuntimeFeatureFlag_set_default_value(envoy_config_core_v3_RuntimeFeatureFlag *msg, struct google_protobuf_BoolValue* value) {
576 _upb_sethas(msg, 1);
577 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_BoolValue*) = value;
578 }
envoy_config_core_v3_RuntimeFeatureFlag_mutable_default_value(envoy_config_core_v3_RuntimeFeatureFlag * msg,upb_arena * arena)579 UPB_INLINE struct google_protobuf_BoolValue* envoy_config_core_v3_RuntimeFeatureFlag_mutable_default_value(envoy_config_core_v3_RuntimeFeatureFlag *msg, upb_arena *arena) {
580 struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_core_v3_RuntimeFeatureFlag_default_value(msg);
581 if (sub == NULL) {
582 sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
583 if (!sub) return NULL;
584 envoy_config_core_v3_RuntimeFeatureFlag_set_default_value(msg, sub);
585 }
586 return sub;
587 }
envoy_config_core_v3_RuntimeFeatureFlag_set_runtime_key(envoy_config_core_v3_RuntimeFeatureFlag * msg,upb_strview value)588 UPB_INLINE void envoy_config_core_v3_RuntimeFeatureFlag_set_runtime_key(envoy_config_core_v3_RuntimeFeatureFlag *msg, upb_strview value) {
589 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
590 }
591
592 /* envoy.config.core.v3.HeaderValue */
593
envoy_config_core_v3_HeaderValue_new(upb_arena * arena)594 UPB_INLINE envoy_config_core_v3_HeaderValue *envoy_config_core_v3_HeaderValue_new(upb_arena *arena) {
595 return (envoy_config_core_v3_HeaderValue *)_upb_msg_new(&envoy_config_core_v3_HeaderValue_msginit, arena);
596 }
envoy_config_core_v3_HeaderValue_parse(const char * buf,size_t size,upb_arena * arena)597 UPB_INLINE envoy_config_core_v3_HeaderValue *envoy_config_core_v3_HeaderValue_parse(const char *buf, size_t size,
598 upb_arena *arena) {
599 envoy_config_core_v3_HeaderValue *ret = envoy_config_core_v3_HeaderValue_new(arena);
600 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_HeaderValue_msginit, arena)) ? ret : NULL;
601 }
envoy_config_core_v3_HeaderValue_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)602 UPB_INLINE envoy_config_core_v3_HeaderValue *envoy_config_core_v3_HeaderValue_parse_ex(const char *buf, size_t size,
603 upb_arena *arena, int options) {
604 envoy_config_core_v3_HeaderValue *ret = envoy_config_core_v3_HeaderValue_new(arena);
605 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_HeaderValue_msginit, arena, options))
606 ? ret : NULL;
607 }
envoy_config_core_v3_HeaderValue_serialize(const envoy_config_core_v3_HeaderValue * msg,upb_arena * arena,size_t * len)608 UPB_INLINE char *envoy_config_core_v3_HeaderValue_serialize(const envoy_config_core_v3_HeaderValue *msg, upb_arena *arena, size_t *len) {
609 return upb_encode(msg, &envoy_config_core_v3_HeaderValue_msginit, arena, len);
610 }
611
envoy_config_core_v3_HeaderValue_key(const envoy_config_core_v3_HeaderValue * msg)612 UPB_INLINE upb_strview envoy_config_core_v3_HeaderValue_key(const envoy_config_core_v3_HeaderValue *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
envoy_config_core_v3_HeaderValue_value(const envoy_config_core_v3_HeaderValue * msg)613 UPB_INLINE upb_strview envoy_config_core_v3_HeaderValue_value(const envoy_config_core_v3_HeaderValue *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview); }
614
envoy_config_core_v3_HeaderValue_set_key(envoy_config_core_v3_HeaderValue * msg,upb_strview value)615 UPB_INLINE void envoy_config_core_v3_HeaderValue_set_key(envoy_config_core_v3_HeaderValue *msg, upb_strview value) {
616 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
617 }
envoy_config_core_v3_HeaderValue_set_value(envoy_config_core_v3_HeaderValue * msg,upb_strview value)618 UPB_INLINE void envoy_config_core_v3_HeaderValue_set_value(envoy_config_core_v3_HeaderValue *msg, upb_strview value) {
619 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview) = value;
620 }
621
622 /* envoy.config.core.v3.HeaderValueOption */
623
envoy_config_core_v3_HeaderValueOption_new(upb_arena * arena)624 UPB_INLINE envoy_config_core_v3_HeaderValueOption *envoy_config_core_v3_HeaderValueOption_new(upb_arena *arena) {
625 return (envoy_config_core_v3_HeaderValueOption *)_upb_msg_new(&envoy_config_core_v3_HeaderValueOption_msginit, arena);
626 }
envoy_config_core_v3_HeaderValueOption_parse(const char * buf,size_t size,upb_arena * arena)627 UPB_INLINE envoy_config_core_v3_HeaderValueOption *envoy_config_core_v3_HeaderValueOption_parse(const char *buf, size_t size,
628 upb_arena *arena) {
629 envoy_config_core_v3_HeaderValueOption *ret = envoy_config_core_v3_HeaderValueOption_new(arena);
630 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_HeaderValueOption_msginit, arena)) ? ret : NULL;
631 }
envoy_config_core_v3_HeaderValueOption_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)632 UPB_INLINE envoy_config_core_v3_HeaderValueOption *envoy_config_core_v3_HeaderValueOption_parse_ex(const char *buf, size_t size,
633 upb_arena *arena, int options) {
634 envoy_config_core_v3_HeaderValueOption *ret = envoy_config_core_v3_HeaderValueOption_new(arena);
635 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_HeaderValueOption_msginit, arena, options))
636 ? ret : NULL;
637 }
envoy_config_core_v3_HeaderValueOption_serialize(const envoy_config_core_v3_HeaderValueOption * msg,upb_arena * arena,size_t * len)638 UPB_INLINE char *envoy_config_core_v3_HeaderValueOption_serialize(const envoy_config_core_v3_HeaderValueOption *msg, upb_arena *arena, size_t *len) {
639 return upb_encode(msg, &envoy_config_core_v3_HeaderValueOption_msginit, arena, len);
640 }
641
envoy_config_core_v3_HeaderValueOption_has_header(const envoy_config_core_v3_HeaderValueOption * msg)642 UPB_INLINE bool envoy_config_core_v3_HeaderValueOption_has_header(const envoy_config_core_v3_HeaderValueOption *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_HeaderValueOption_header(const envoy_config_core_v3_HeaderValueOption * msg)643 UPB_INLINE const envoy_config_core_v3_HeaderValue* envoy_config_core_v3_HeaderValueOption_header(const envoy_config_core_v3_HeaderValueOption *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const envoy_config_core_v3_HeaderValue*); }
envoy_config_core_v3_HeaderValueOption_has_append(const envoy_config_core_v3_HeaderValueOption * msg)644 UPB_INLINE bool envoy_config_core_v3_HeaderValueOption_has_append(const envoy_config_core_v3_HeaderValueOption *msg) { return _upb_hasbit(msg, 2); }
envoy_config_core_v3_HeaderValueOption_append(const envoy_config_core_v3_HeaderValueOption * msg)645 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_core_v3_HeaderValueOption_append(const envoy_config_core_v3_HeaderValueOption *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_BoolValue*); }
646
envoy_config_core_v3_HeaderValueOption_set_header(envoy_config_core_v3_HeaderValueOption * msg,envoy_config_core_v3_HeaderValue * value)647 UPB_INLINE void envoy_config_core_v3_HeaderValueOption_set_header(envoy_config_core_v3_HeaderValueOption *msg, envoy_config_core_v3_HeaderValue* value) {
648 _upb_sethas(msg, 1);
649 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), envoy_config_core_v3_HeaderValue*) = value;
650 }
envoy_config_core_v3_HeaderValueOption_mutable_header(envoy_config_core_v3_HeaderValueOption * msg,upb_arena * arena)651 UPB_INLINE struct envoy_config_core_v3_HeaderValue* envoy_config_core_v3_HeaderValueOption_mutable_header(envoy_config_core_v3_HeaderValueOption *msg, upb_arena *arena) {
652 struct envoy_config_core_v3_HeaderValue* sub = (struct envoy_config_core_v3_HeaderValue*)envoy_config_core_v3_HeaderValueOption_header(msg);
653 if (sub == NULL) {
654 sub = (struct envoy_config_core_v3_HeaderValue*)_upb_msg_new(&envoy_config_core_v3_HeaderValue_msginit, arena);
655 if (!sub) return NULL;
656 envoy_config_core_v3_HeaderValueOption_set_header(msg, sub);
657 }
658 return sub;
659 }
envoy_config_core_v3_HeaderValueOption_set_append(envoy_config_core_v3_HeaderValueOption * msg,struct google_protobuf_BoolValue * value)660 UPB_INLINE void envoy_config_core_v3_HeaderValueOption_set_append(envoy_config_core_v3_HeaderValueOption *msg, struct google_protobuf_BoolValue* value) {
661 _upb_sethas(msg, 2);
662 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_BoolValue*) = value;
663 }
envoy_config_core_v3_HeaderValueOption_mutable_append(envoy_config_core_v3_HeaderValueOption * msg,upb_arena * arena)664 UPB_INLINE struct google_protobuf_BoolValue* envoy_config_core_v3_HeaderValueOption_mutable_append(envoy_config_core_v3_HeaderValueOption *msg, upb_arena *arena) {
665 struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_core_v3_HeaderValueOption_append(msg);
666 if (sub == NULL) {
667 sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
668 if (!sub) return NULL;
669 envoy_config_core_v3_HeaderValueOption_set_append(msg, sub);
670 }
671 return sub;
672 }
673
674 /* envoy.config.core.v3.HeaderMap */
675
envoy_config_core_v3_HeaderMap_new(upb_arena * arena)676 UPB_INLINE envoy_config_core_v3_HeaderMap *envoy_config_core_v3_HeaderMap_new(upb_arena *arena) {
677 return (envoy_config_core_v3_HeaderMap *)_upb_msg_new(&envoy_config_core_v3_HeaderMap_msginit, arena);
678 }
envoy_config_core_v3_HeaderMap_parse(const char * buf,size_t size,upb_arena * arena)679 UPB_INLINE envoy_config_core_v3_HeaderMap *envoy_config_core_v3_HeaderMap_parse(const char *buf, size_t size,
680 upb_arena *arena) {
681 envoy_config_core_v3_HeaderMap *ret = envoy_config_core_v3_HeaderMap_new(arena);
682 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_HeaderMap_msginit, arena)) ? ret : NULL;
683 }
envoy_config_core_v3_HeaderMap_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)684 UPB_INLINE envoy_config_core_v3_HeaderMap *envoy_config_core_v3_HeaderMap_parse_ex(const char *buf, size_t size,
685 upb_arena *arena, int options) {
686 envoy_config_core_v3_HeaderMap *ret = envoy_config_core_v3_HeaderMap_new(arena);
687 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_HeaderMap_msginit, arena, options))
688 ? ret : NULL;
689 }
envoy_config_core_v3_HeaderMap_serialize(const envoy_config_core_v3_HeaderMap * msg,upb_arena * arena,size_t * len)690 UPB_INLINE char *envoy_config_core_v3_HeaderMap_serialize(const envoy_config_core_v3_HeaderMap *msg, upb_arena *arena, size_t *len) {
691 return upb_encode(msg, &envoy_config_core_v3_HeaderMap_msginit, arena, len);
692 }
693
envoy_config_core_v3_HeaderMap_has_headers(const envoy_config_core_v3_HeaderMap * msg)694 UPB_INLINE bool envoy_config_core_v3_HeaderMap_has_headers(const envoy_config_core_v3_HeaderMap *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
envoy_config_core_v3_HeaderMap_headers(const envoy_config_core_v3_HeaderMap * msg,size_t * len)695 UPB_INLINE const envoy_config_core_v3_HeaderValue* const* envoy_config_core_v3_HeaderMap_headers(const envoy_config_core_v3_HeaderMap *msg, size_t *len) { return (const envoy_config_core_v3_HeaderValue* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); }
696
envoy_config_core_v3_HeaderMap_mutable_headers(envoy_config_core_v3_HeaderMap * msg,size_t * len)697 UPB_INLINE envoy_config_core_v3_HeaderValue** envoy_config_core_v3_HeaderMap_mutable_headers(envoy_config_core_v3_HeaderMap *msg, size_t *len) {
698 return (envoy_config_core_v3_HeaderValue**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len);
699 }
envoy_config_core_v3_HeaderMap_resize_headers(envoy_config_core_v3_HeaderMap * msg,size_t len,upb_arena * arena)700 UPB_INLINE envoy_config_core_v3_HeaderValue** envoy_config_core_v3_HeaderMap_resize_headers(envoy_config_core_v3_HeaderMap *msg, size_t len, upb_arena *arena) {
701 return (envoy_config_core_v3_HeaderValue**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena);
702 }
envoy_config_core_v3_HeaderMap_add_headers(envoy_config_core_v3_HeaderMap * msg,upb_arena * arena)703 UPB_INLINE struct envoy_config_core_v3_HeaderValue* envoy_config_core_v3_HeaderMap_add_headers(envoy_config_core_v3_HeaderMap *msg, upb_arena *arena) {
704 struct envoy_config_core_v3_HeaderValue* sub = (struct envoy_config_core_v3_HeaderValue*)_upb_msg_new(&envoy_config_core_v3_HeaderValue_msginit, arena);
705 bool ok = _upb_array_append_accessor2(
706 msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena);
707 if (!ok) return NULL;
708 return sub;
709 }
710
711 /* envoy.config.core.v3.WatchedDirectory */
712
envoy_config_core_v3_WatchedDirectory_new(upb_arena * arena)713 UPB_INLINE envoy_config_core_v3_WatchedDirectory *envoy_config_core_v3_WatchedDirectory_new(upb_arena *arena) {
714 return (envoy_config_core_v3_WatchedDirectory *)_upb_msg_new(&envoy_config_core_v3_WatchedDirectory_msginit, arena);
715 }
envoy_config_core_v3_WatchedDirectory_parse(const char * buf,size_t size,upb_arena * arena)716 UPB_INLINE envoy_config_core_v3_WatchedDirectory *envoy_config_core_v3_WatchedDirectory_parse(const char *buf, size_t size,
717 upb_arena *arena) {
718 envoy_config_core_v3_WatchedDirectory *ret = envoy_config_core_v3_WatchedDirectory_new(arena);
719 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_WatchedDirectory_msginit, arena)) ? ret : NULL;
720 }
envoy_config_core_v3_WatchedDirectory_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)721 UPB_INLINE envoy_config_core_v3_WatchedDirectory *envoy_config_core_v3_WatchedDirectory_parse_ex(const char *buf, size_t size,
722 upb_arena *arena, int options) {
723 envoy_config_core_v3_WatchedDirectory *ret = envoy_config_core_v3_WatchedDirectory_new(arena);
724 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_WatchedDirectory_msginit, arena, options))
725 ? ret : NULL;
726 }
envoy_config_core_v3_WatchedDirectory_serialize(const envoy_config_core_v3_WatchedDirectory * msg,upb_arena * arena,size_t * len)727 UPB_INLINE char *envoy_config_core_v3_WatchedDirectory_serialize(const envoy_config_core_v3_WatchedDirectory *msg, upb_arena *arena, size_t *len) {
728 return upb_encode(msg, &envoy_config_core_v3_WatchedDirectory_msginit, arena, len);
729 }
730
envoy_config_core_v3_WatchedDirectory_path(const envoy_config_core_v3_WatchedDirectory * msg)731 UPB_INLINE upb_strview envoy_config_core_v3_WatchedDirectory_path(const envoy_config_core_v3_WatchedDirectory *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
732
envoy_config_core_v3_WatchedDirectory_set_path(envoy_config_core_v3_WatchedDirectory * msg,upb_strview value)733 UPB_INLINE void envoy_config_core_v3_WatchedDirectory_set_path(envoy_config_core_v3_WatchedDirectory *msg, upb_strview value) {
734 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
735 }
736
737 /* envoy.config.core.v3.DataSource */
738
envoy_config_core_v3_DataSource_new(upb_arena * arena)739 UPB_INLINE envoy_config_core_v3_DataSource *envoy_config_core_v3_DataSource_new(upb_arena *arena) {
740 return (envoy_config_core_v3_DataSource *)_upb_msg_new(&envoy_config_core_v3_DataSource_msginit, arena);
741 }
envoy_config_core_v3_DataSource_parse(const char * buf,size_t size,upb_arena * arena)742 UPB_INLINE envoy_config_core_v3_DataSource *envoy_config_core_v3_DataSource_parse(const char *buf, size_t size,
743 upb_arena *arena) {
744 envoy_config_core_v3_DataSource *ret = envoy_config_core_v3_DataSource_new(arena);
745 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_DataSource_msginit, arena)) ? ret : NULL;
746 }
envoy_config_core_v3_DataSource_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)747 UPB_INLINE envoy_config_core_v3_DataSource *envoy_config_core_v3_DataSource_parse_ex(const char *buf, size_t size,
748 upb_arena *arena, int options) {
749 envoy_config_core_v3_DataSource *ret = envoy_config_core_v3_DataSource_new(arena);
750 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_DataSource_msginit, arena, options))
751 ? ret : NULL;
752 }
envoy_config_core_v3_DataSource_serialize(const envoy_config_core_v3_DataSource * msg,upb_arena * arena,size_t * len)753 UPB_INLINE char *envoy_config_core_v3_DataSource_serialize(const envoy_config_core_v3_DataSource *msg, upb_arena *arena, size_t *len) {
754 return upb_encode(msg, &envoy_config_core_v3_DataSource_msginit, arena, len);
755 }
756
757 typedef enum {
758 envoy_config_core_v3_DataSource_specifier_filename = 1,
759 envoy_config_core_v3_DataSource_specifier_inline_bytes = 2,
760 envoy_config_core_v3_DataSource_specifier_inline_string = 3,
761 envoy_config_core_v3_DataSource_specifier_NOT_SET = 0
762 } envoy_config_core_v3_DataSource_specifier_oneofcases;
envoy_config_core_v3_DataSource_specifier_case(const envoy_config_core_v3_DataSource * msg)763 UPB_INLINE envoy_config_core_v3_DataSource_specifier_oneofcases envoy_config_core_v3_DataSource_specifier_case(const envoy_config_core_v3_DataSource* msg) { return (envoy_config_core_v3_DataSource_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(8, 16), int32_t); }
764
envoy_config_core_v3_DataSource_has_filename(const envoy_config_core_v3_DataSource * msg)765 UPB_INLINE bool envoy_config_core_v3_DataSource_has_filename(const envoy_config_core_v3_DataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 1; }
envoy_config_core_v3_DataSource_filename(const envoy_config_core_v3_DataSource * msg)766 UPB_INLINE upb_strview envoy_config_core_v3_DataSource_filename(const envoy_config_core_v3_DataSource *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 1, upb_strview_make("", strlen(""))); }
envoy_config_core_v3_DataSource_has_inline_bytes(const envoy_config_core_v3_DataSource * msg)767 UPB_INLINE bool envoy_config_core_v3_DataSource_has_inline_bytes(const envoy_config_core_v3_DataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 2; }
envoy_config_core_v3_DataSource_inline_bytes(const envoy_config_core_v3_DataSource * msg)768 UPB_INLINE upb_strview envoy_config_core_v3_DataSource_inline_bytes(const envoy_config_core_v3_DataSource *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 2, upb_strview_make("", strlen(""))); }
envoy_config_core_v3_DataSource_has_inline_string(const envoy_config_core_v3_DataSource * msg)769 UPB_INLINE bool envoy_config_core_v3_DataSource_has_inline_string(const envoy_config_core_v3_DataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 3; }
envoy_config_core_v3_DataSource_inline_string(const envoy_config_core_v3_DataSource * msg)770 UPB_INLINE upb_strview envoy_config_core_v3_DataSource_inline_string(const envoy_config_core_v3_DataSource *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 3, upb_strview_make("", strlen(""))); }
771
envoy_config_core_v3_DataSource_set_filename(envoy_config_core_v3_DataSource * msg,upb_strview value)772 UPB_INLINE void envoy_config_core_v3_DataSource_set_filename(envoy_config_core_v3_DataSource *msg, upb_strview value) {
773 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 1);
774 }
envoy_config_core_v3_DataSource_set_inline_bytes(envoy_config_core_v3_DataSource * msg,upb_strview value)775 UPB_INLINE void envoy_config_core_v3_DataSource_set_inline_bytes(envoy_config_core_v3_DataSource *msg, upb_strview value) {
776 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 2);
777 }
envoy_config_core_v3_DataSource_set_inline_string(envoy_config_core_v3_DataSource * msg,upb_strview value)778 UPB_INLINE void envoy_config_core_v3_DataSource_set_inline_string(envoy_config_core_v3_DataSource *msg, upb_strview value) {
779 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 3);
780 }
781
782 /* envoy.config.core.v3.RetryPolicy */
783
envoy_config_core_v3_RetryPolicy_new(upb_arena * arena)784 UPB_INLINE envoy_config_core_v3_RetryPolicy *envoy_config_core_v3_RetryPolicy_new(upb_arena *arena) {
785 return (envoy_config_core_v3_RetryPolicy *)_upb_msg_new(&envoy_config_core_v3_RetryPolicy_msginit, arena);
786 }
envoy_config_core_v3_RetryPolicy_parse(const char * buf,size_t size,upb_arena * arena)787 UPB_INLINE envoy_config_core_v3_RetryPolicy *envoy_config_core_v3_RetryPolicy_parse(const char *buf, size_t size,
788 upb_arena *arena) {
789 envoy_config_core_v3_RetryPolicy *ret = envoy_config_core_v3_RetryPolicy_new(arena);
790 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_RetryPolicy_msginit, arena)) ? ret : NULL;
791 }
envoy_config_core_v3_RetryPolicy_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)792 UPB_INLINE envoy_config_core_v3_RetryPolicy *envoy_config_core_v3_RetryPolicy_parse_ex(const char *buf, size_t size,
793 upb_arena *arena, int options) {
794 envoy_config_core_v3_RetryPolicy *ret = envoy_config_core_v3_RetryPolicy_new(arena);
795 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_RetryPolicy_msginit, arena, options))
796 ? ret : NULL;
797 }
envoy_config_core_v3_RetryPolicy_serialize(const envoy_config_core_v3_RetryPolicy * msg,upb_arena * arena,size_t * len)798 UPB_INLINE char *envoy_config_core_v3_RetryPolicy_serialize(const envoy_config_core_v3_RetryPolicy *msg, upb_arena *arena, size_t *len) {
799 return upb_encode(msg, &envoy_config_core_v3_RetryPolicy_msginit, arena, len);
800 }
801
envoy_config_core_v3_RetryPolicy_has_retry_back_off(const envoy_config_core_v3_RetryPolicy * msg)802 UPB_INLINE bool envoy_config_core_v3_RetryPolicy_has_retry_back_off(const envoy_config_core_v3_RetryPolicy *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_RetryPolicy_retry_back_off(const envoy_config_core_v3_RetryPolicy * msg)803 UPB_INLINE const struct envoy_config_core_v3_BackoffStrategy* envoy_config_core_v3_RetryPolicy_retry_back_off(const envoy_config_core_v3_RetryPolicy *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_config_core_v3_BackoffStrategy*); }
envoy_config_core_v3_RetryPolicy_has_num_retries(const envoy_config_core_v3_RetryPolicy * msg)804 UPB_INLINE bool envoy_config_core_v3_RetryPolicy_has_num_retries(const envoy_config_core_v3_RetryPolicy *msg) { return _upb_hasbit(msg, 2); }
envoy_config_core_v3_RetryPolicy_num_retries(const envoy_config_core_v3_RetryPolicy * msg)805 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_core_v3_RetryPolicy_num_retries(const envoy_config_core_v3_RetryPolicy *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_UInt32Value*); }
806
envoy_config_core_v3_RetryPolicy_set_retry_back_off(envoy_config_core_v3_RetryPolicy * msg,struct envoy_config_core_v3_BackoffStrategy * value)807 UPB_INLINE void envoy_config_core_v3_RetryPolicy_set_retry_back_off(envoy_config_core_v3_RetryPolicy *msg, struct envoy_config_core_v3_BackoffStrategy* value) {
808 _upb_sethas(msg, 1);
809 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_config_core_v3_BackoffStrategy*) = value;
810 }
envoy_config_core_v3_RetryPolicy_mutable_retry_back_off(envoy_config_core_v3_RetryPolicy * msg,upb_arena * arena)811 UPB_INLINE struct envoy_config_core_v3_BackoffStrategy* envoy_config_core_v3_RetryPolicy_mutable_retry_back_off(envoy_config_core_v3_RetryPolicy *msg, upb_arena *arena) {
812 struct envoy_config_core_v3_BackoffStrategy* sub = (struct envoy_config_core_v3_BackoffStrategy*)envoy_config_core_v3_RetryPolicy_retry_back_off(msg);
813 if (sub == NULL) {
814 sub = (struct envoy_config_core_v3_BackoffStrategy*)_upb_msg_new(&envoy_config_core_v3_BackoffStrategy_msginit, arena);
815 if (!sub) return NULL;
816 envoy_config_core_v3_RetryPolicy_set_retry_back_off(msg, sub);
817 }
818 return sub;
819 }
envoy_config_core_v3_RetryPolicy_set_num_retries(envoy_config_core_v3_RetryPolicy * msg,struct google_protobuf_UInt32Value * value)820 UPB_INLINE void envoy_config_core_v3_RetryPolicy_set_num_retries(envoy_config_core_v3_RetryPolicy *msg, struct google_protobuf_UInt32Value* value) {
821 _upb_sethas(msg, 2);
822 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_UInt32Value*) = value;
823 }
envoy_config_core_v3_RetryPolicy_mutable_num_retries(envoy_config_core_v3_RetryPolicy * msg,upb_arena * arena)824 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_core_v3_RetryPolicy_mutable_num_retries(envoy_config_core_v3_RetryPolicy *msg, upb_arena *arena) {
825 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_core_v3_RetryPolicy_num_retries(msg);
826 if (sub == NULL) {
827 sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
828 if (!sub) return NULL;
829 envoy_config_core_v3_RetryPolicy_set_num_retries(msg, sub);
830 }
831 return sub;
832 }
833
834 /* envoy.config.core.v3.RemoteDataSource */
835
envoy_config_core_v3_RemoteDataSource_new(upb_arena * arena)836 UPB_INLINE envoy_config_core_v3_RemoteDataSource *envoy_config_core_v3_RemoteDataSource_new(upb_arena *arena) {
837 return (envoy_config_core_v3_RemoteDataSource *)_upb_msg_new(&envoy_config_core_v3_RemoteDataSource_msginit, arena);
838 }
envoy_config_core_v3_RemoteDataSource_parse(const char * buf,size_t size,upb_arena * arena)839 UPB_INLINE envoy_config_core_v3_RemoteDataSource *envoy_config_core_v3_RemoteDataSource_parse(const char *buf, size_t size,
840 upb_arena *arena) {
841 envoy_config_core_v3_RemoteDataSource *ret = envoy_config_core_v3_RemoteDataSource_new(arena);
842 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_RemoteDataSource_msginit, arena)) ? ret : NULL;
843 }
envoy_config_core_v3_RemoteDataSource_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)844 UPB_INLINE envoy_config_core_v3_RemoteDataSource *envoy_config_core_v3_RemoteDataSource_parse_ex(const char *buf, size_t size,
845 upb_arena *arena, int options) {
846 envoy_config_core_v3_RemoteDataSource *ret = envoy_config_core_v3_RemoteDataSource_new(arena);
847 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_RemoteDataSource_msginit, arena, options))
848 ? ret : NULL;
849 }
envoy_config_core_v3_RemoteDataSource_serialize(const envoy_config_core_v3_RemoteDataSource * msg,upb_arena * arena,size_t * len)850 UPB_INLINE char *envoy_config_core_v3_RemoteDataSource_serialize(const envoy_config_core_v3_RemoteDataSource *msg, upb_arena *arena, size_t *len) {
851 return upb_encode(msg, &envoy_config_core_v3_RemoteDataSource_msginit, arena, len);
852 }
853
envoy_config_core_v3_RemoteDataSource_has_http_uri(const envoy_config_core_v3_RemoteDataSource * msg)854 UPB_INLINE bool envoy_config_core_v3_RemoteDataSource_has_http_uri(const envoy_config_core_v3_RemoteDataSource *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_RemoteDataSource_http_uri(const envoy_config_core_v3_RemoteDataSource * msg)855 UPB_INLINE const struct envoy_config_core_v3_HttpUri* envoy_config_core_v3_RemoteDataSource_http_uri(const envoy_config_core_v3_RemoteDataSource *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_HttpUri*); }
envoy_config_core_v3_RemoteDataSource_sha256(const envoy_config_core_v3_RemoteDataSource * msg)856 UPB_INLINE upb_strview envoy_config_core_v3_RemoteDataSource_sha256(const envoy_config_core_v3_RemoteDataSource *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
envoy_config_core_v3_RemoteDataSource_has_retry_policy(const envoy_config_core_v3_RemoteDataSource * msg)857 UPB_INLINE bool envoy_config_core_v3_RemoteDataSource_has_retry_policy(const envoy_config_core_v3_RemoteDataSource *msg) { return _upb_hasbit(msg, 2); }
envoy_config_core_v3_RemoteDataSource_retry_policy(const envoy_config_core_v3_RemoteDataSource * msg)858 UPB_INLINE const envoy_config_core_v3_RetryPolicy* envoy_config_core_v3_RemoteDataSource_retry_policy(const envoy_config_core_v3_RemoteDataSource *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const envoy_config_core_v3_RetryPolicy*); }
859
envoy_config_core_v3_RemoteDataSource_set_http_uri(envoy_config_core_v3_RemoteDataSource * msg,struct envoy_config_core_v3_HttpUri * value)860 UPB_INLINE void envoy_config_core_v3_RemoteDataSource_set_http_uri(envoy_config_core_v3_RemoteDataSource *msg, struct envoy_config_core_v3_HttpUri* value) {
861 _upb_sethas(msg, 1);
862 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_HttpUri*) = value;
863 }
envoy_config_core_v3_RemoteDataSource_mutable_http_uri(envoy_config_core_v3_RemoteDataSource * msg,upb_arena * arena)864 UPB_INLINE struct envoy_config_core_v3_HttpUri* envoy_config_core_v3_RemoteDataSource_mutable_http_uri(envoy_config_core_v3_RemoteDataSource *msg, upb_arena *arena) {
865 struct envoy_config_core_v3_HttpUri* sub = (struct envoy_config_core_v3_HttpUri*)envoy_config_core_v3_RemoteDataSource_http_uri(msg);
866 if (sub == NULL) {
867 sub = (struct envoy_config_core_v3_HttpUri*)_upb_msg_new(&envoy_config_core_v3_HttpUri_msginit, arena);
868 if (!sub) return NULL;
869 envoy_config_core_v3_RemoteDataSource_set_http_uri(msg, sub);
870 }
871 return sub;
872 }
envoy_config_core_v3_RemoteDataSource_set_sha256(envoy_config_core_v3_RemoteDataSource * msg,upb_strview value)873 UPB_INLINE void envoy_config_core_v3_RemoteDataSource_set_sha256(envoy_config_core_v3_RemoteDataSource *msg, upb_strview value) {
874 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
875 }
envoy_config_core_v3_RemoteDataSource_set_retry_policy(envoy_config_core_v3_RemoteDataSource * msg,envoy_config_core_v3_RetryPolicy * value)876 UPB_INLINE void envoy_config_core_v3_RemoteDataSource_set_retry_policy(envoy_config_core_v3_RemoteDataSource *msg, envoy_config_core_v3_RetryPolicy* value) {
877 _upb_sethas(msg, 2);
878 *UPB_PTR_AT(msg, UPB_SIZE(16, 32), envoy_config_core_v3_RetryPolicy*) = value;
879 }
envoy_config_core_v3_RemoteDataSource_mutable_retry_policy(envoy_config_core_v3_RemoteDataSource * msg,upb_arena * arena)880 UPB_INLINE struct envoy_config_core_v3_RetryPolicy* envoy_config_core_v3_RemoteDataSource_mutable_retry_policy(envoy_config_core_v3_RemoteDataSource *msg, upb_arena *arena) {
881 struct envoy_config_core_v3_RetryPolicy* sub = (struct envoy_config_core_v3_RetryPolicy*)envoy_config_core_v3_RemoteDataSource_retry_policy(msg);
882 if (sub == NULL) {
883 sub = (struct envoy_config_core_v3_RetryPolicy*)_upb_msg_new(&envoy_config_core_v3_RetryPolicy_msginit, arena);
884 if (!sub) return NULL;
885 envoy_config_core_v3_RemoteDataSource_set_retry_policy(msg, sub);
886 }
887 return sub;
888 }
889
890 /* envoy.config.core.v3.AsyncDataSource */
891
envoy_config_core_v3_AsyncDataSource_new(upb_arena * arena)892 UPB_INLINE envoy_config_core_v3_AsyncDataSource *envoy_config_core_v3_AsyncDataSource_new(upb_arena *arena) {
893 return (envoy_config_core_v3_AsyncDataSource *)_upb_msg_new(&envoy_config_core_v3_AsyncDataSource_msginit, arena);
894 }
envoy_config_core_v3_AsyncDataSource_parse(const char * buf,size_t size,upb_arena * arena)895 UPB_INLINE envoy_config_core_v3_AsyncDataSource *envoy_config_core_v3_AsyncDataSource_parse(const char *buf, size_t size,
896 upb_arena *arena) {
897 envoy_config_core_v3_AsyncDataSource *ret = envoy_config_core_v3_AsyncDataSource_new(arena);
898 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_AsyncDataSource_msginit, arena)) ? ret : NULL;
899 }
envoy_config_core_v3_AsyncDataSource_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)900 UPB_INLINE envoy_config_core_v3_AsyncDataSource *envoy_config_core_v3_AsyncDataSource_parse_ex(const char *buf, size_t size,
901 upb_arena *arena, int options) {
902 envoy_config_core_v3_AsyncDataSource *ret = envoy_config_core_v3_AsyncDataSource_new(arena);
903 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_AsyncDataSource_msginit, arena, options))
904 ? ret : NULL;
905 }
envoy_config_core_v3_AsyncDataSource_serialize(const envoy_config_core_v3_AsyncDataSource * msg,upb_arena * arena,size_t * len)906 UPB_INLINE char *envoy_config_core_v3_AsyncDataSource_serialize(const envoy_config_core_v3_AsyncDataSource *msg, upb_arena *arena, size_t *len) {
907 return upb_encode(msg, &envoy_config_core_v3_AsyncDataSource_msginit, arena, len);
908 }
909
910 typedef enum {
911 envoy_config_core_v3_AsyncDataSource_specifier_local = 1,
912 envoy_config_core_v3_AsyncDataSource_specifier_remote = 2,
913 envoy_config_core_v3_AsyncDataSource_specifier_NOT_SET = 0
914 } envoy_config_core_v3_AsyncDataSource_specifier_oneofcases;
envoy_config_core_v3_AsyncDataSource_specifier_case(const envoy_config_core_v3_AsyncDataSource * msg)915 UPB_INLINE envoy_config_core_v3_AsyncDataSource_specifier_oneofcases envoy_config_core_v3_AsyncDataSource_specifier_case(const envoy_config_core_v3_AsyncDataSource* msg) { return (envoy_config_core_v3_AsyncDataSource_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(4, 8), int32_t); }
916
envoy_config_core_v3_AsyncDataSource_has_local(const envoy_config_core_v3_AsyncDataSource * msg)917 UPB_INLINE bool envoy_config_core_v3_AsyncDataSource_has_local(const envoy_config_core_v3_AsyncDataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 1; }
envoy_config_core_v3_AsyncDataSource_local(const envoy_config_core_v3_AsyncDataSource * msg)918 UPB_INLINE const envoy_config_core_v3_DataSource* envoy_config_core_v3_AsyncDataSource_local(const envoy_config_core_v3_AsyncDataSource *msg) { return UPB_READ_ONEOF(msg, const envoy_config_core_v3_DataSource*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 1, NULL); }
envoy_config_core_v3_AsyncDataSource_has_remote(const envoy_config_core_v3_AsyncDataSource * msg)919 UPB_INLINE bool envoy_config_core_v3_AsyncDataSource_has_remote(const envoy_config_core_v3_AsyncDataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 2; }
envoy_config_core_v3_AsyncDataSource_remote(const envoy_config_core_v3_AsyncDataSource * msg)920 UPB_INLINE const envoy_config_core_v3_RemoteDataSource* envoy_config_core_v3_AsyncDataSource_remote(const envoy_config_core_v3_AsyncDataSource *msg) { return UPB_READ_ONEOF(msg, const envoy_config_core_v3_RemoteDataSource*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 2, NULL); }
921
envoy_config_core_v3_AsyncDataSource_set_local(envoy_config_core_v3_AsyncDataSource * msg,envoy_config_core_v3_DataSource * value)922 UPB_INLINE void envoy_config_core_v3_AsyncDataSource_set_local(envoy_config_core_v3_AsyncDataSource *msg, envoy_config_core_v3_DataSource* value) {
923 UPB_WRITE_ONEOF(msg, envoy_config_core_v3_DataSource*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 1);
924 }
envoy_config_core_v3_AsyncDataSource_mutable_local(envoy_config_core_v3_AsyncDataSource * msg,upb_arena * arena)925 UPB_INLINE struct envoy_config_core_v3_DataSource* envoy_config_core_v3_AsyncDataSource_mutable_local(envoy_config_core_v3_AsyncDataSource *msg, upb_arena *arena) {
926 struct envoy_config_core_v3_DataSource* sub = (struct envoy_config_core_v3_DataSource*)envoy_config_core_v3_AsyncDataSource_local(msg);
927 if (sub == NULL) {
928 sub = (struct envoy_config_core_v3_DataSource*)_upb_msg_new(&envoy_config_core_v3_DataSource_msginit, arena);
929 if (!sub) return NULL;
930 envoy_config_core_v3_AsyncDataSource_set_local(msg, sub);
931 }
932 return sub;
933 }
envoy_config_core_v3_AsyncDataSource_set_remote(envoy_config_core_v3_AsyncDataSource * msg,envoy_config_core_v3_RemoteDataSource * value)934 UPB_INLINE void envoy_config_core_v3_AsyncDataSource_set_remote(envoy_config_core_v3_AsyncDataSource *msg, envoy_config_core_v3_RemoteDataSource* value) {
935 UPB_WRITE_ONEOF(msg, envoy_config_core_v3_RemoteDataSource*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 2);
936 }
envoy_config_core_v3_AsyncDataSource_mutable_remote(envoy_config_core_v3_AsyncDataSource * msg,upb_arena * arena)937 UPB_INLINE struct envoy_config_core_v3_RemoteDataSource* envoy_config_core_v3_AsyncDataSource_mutable_remote(envoy_config_core_v3_AsyncDataSource *msg, upb_arena *arena) {
938 struct envoy_config_core_v3_RemoteDataSource* sub = (struct envoy_config_core_v3_RemoteDataSource*)envoy_config_core_v3_AsyncDataSource_remote(msg);
939 if (sub == NULL) {
940 sub = (struct envoy_config_core_v3_RemoteDataSource*)_upb_msg_new(&envoy_config_core_v3_RemoteDataSource_msginit, arena);
941 if (!sub) return NULL;
942 envoy_config_core_v3_AsyncDataSource_set_remote(msg, sub);
943 }
944 return sub;
945 }
946
947 /* envoy.config.core.v3.TransportSocket */
948
envoy_config_core_v3_TransportSocket_new(upb_arena * arena)949 UPB_INLINE envoy_config_core_v3_TransportSocket *envoy_config_core_v3_TransportSocket_new(upb_arena *arena) {
950 return (envoy_config_core_v3_TransportSocket *)_upb_msg_new(&envoy_config_core_v3_TransportSocket_msginit, arena);
951 }
envoy_config_core_v3_TransportSocket_parse(const char * buf,size_t size,upb_arena * arena)952 UPB_INLINE envoy_config_core_v3_TransportSocket *envoy_config_core_v3_TransportSocket_parse(const char *buf, size_t size,
953 upb_arena *arena) {
954 envoy_config_core_v3_TransportSocket *ret = envoy_config_core_v3_TransportSocket_new(arena);
955 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_TransportSocket_msginit, arena)) ? ret : NULL;
956 }
envoy_config_core_v3_TransportSocket_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)957 UPB_INLINE envoy_config_core_v3_TransportSocket *envoy_config_core_v3_TransportSocket_parse_ex(const char *buf, size_t size,
958 upb_arena *arena, int options) {
959 envoy_config_core_v3_TransportSocket *ret = envoy_config_core_v3_TransportSocket_new(arena);
960 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_TransportSocket_msginit, arena, options))
961 ? ret : NULL;
962 }
envoy_config_core_v3_TransportSocket_serialize(const envoy_config_core_v3_TransportSocket * msg,upb_arena * arena,size_t * len)963 UPB_INLINE char *envoy_config_core_v3_TransportSocket_serialize(const envoy_config_core_v3_TransportSocket *msg, upb_arena *arena, size_t *len) {
964 return upb_encode(msg, &envoy_config_core_v3_TransportSocket_msginit, arena, len);
965 }
966
967 typedef enum {
968 envoy_config_core_v3_TransportSocket_config_type_typed_config = 3,
969 envoy_config_core_v3_TransportSocket_config_type_NOT_SET = 0
970 } envoy_config_core_v3_TransportSocket_config_type_oneofcases;
envoy_config_core_v3_TransportSocket_config_type_case(const envoy_config_core_v3_TransportSocket * msg)971 UPB_INLINE envoy_config_core_v3_TransportSocket_config_type_oneofcases envoy_config_core_v3_TransportSocket_config_type_case(const envoy_config_core_v3_TransportSocket* msg) { return (envoy_config_core_v3_TransportSocket_config_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(12, 24), int32_t); }
972
envoy_config_core_v3_TransportSocket_name(const envoy_config_core_v3_TransportSocket * msg)973 UPB_INLINE upb_strview envoy_config_core_v3_TransportSocket_name(const envoy_config_core_v3_TransportSocket *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
envoy_config_core_v3_TransportSocket_has_typed_config(const envoy_config_core_v3_TransportSocket * msg)974 UPB_INLINE bool envoy_config_core_v3_TransportSocket_has_typed_config(const envoy_config_core_v3_TransportSocket *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 3; }
envoy_config_core_v3_TransportSocket_typed_config(const envoy_config_core_v3_TransportSocket * msg)975 UPB_INLINE const struct google_protobuf_Any* envoy_config_core_v3_TransportSocket_typed_config(const envoy_config_core_v3_TransportSocket *msg) { return UPB_READ_ONEOF(msg, const struct google_protobuf_Any*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 3, NULL); }
976
envoy_config_core_v3_TransportSocket_set_name(envoy_config_core_v3_TransportSocket * msg,upb_strview value)977 UPB_INLINE void envoy_config_core_v3_TransportSocket_set_name(envoy_config_core_v3_TransportSocket *msg, upb_strview value) {
978 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
979 }
envoy_config_core_v3_TransportSocket_set_typed_config(envoy_config_core_v3_TransportSocket * msg,struct google_protobuf_Any * value)980 UPB_INLINE void envoy_config_core_v3_TransportSocket_set_typed_config(envoy_config_core_v3_TransportSocket *msg, struct google_protobuf_Any* value) {
981 UPB_WRITE_ONEOF(msg, struct google_protobuf_Any*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 3);
982 }
envoy_config_core_v3_TransportSocket_mutable_typed_config(envoy_config_core_v3_TransportSocket * msg,upb_arena * arena)983 UPB_INLINE struct google_protobuf_Any* envoy_config_core_v3_TransportSocket_mutable_typed_config(envoy_config_core_v3_TransportSocket *msg, upb_arena *arena) {
984 struct google_protobuf_Any* sub = (struct google_protobuf_Any*)envoy_config_core_v3_TransportSocket_typed_config(msg);
985 if (sub == NULL) {
986 sub = (struct google_protobuf_Any*)_upb_msg_new(&google_protobuf_Any_msginit, arena);
987 if (!sub) return NULL;
988 envoy_config_core_v3_TransportSocket_set_typed_config(msg, sub);
989 }
990 return sub;
991 }
992
993 /* envoy.config.core.v3.RuntimeFractionalPercent */
994
envoy_config_core_v3_RuntimeFractionalPercent_new(upb_arena * arena)995 UPB_INLINE envoy_config_core_v3_RuntimeFractionalPercent *envoy_config_core_v3_RuntimeFractionalPercent_new(upb_arena *arena) {
996 return (envoy_config_core_v3_RuntimeFractionalPercent *)_upb_msg_new(&envoy_config_core_v3_RuntimeFractionalPercent_msginit, arena);
997 }
envoy_config_core_v3_RuntimeFractionalPercent_parse(const char * buf,size_t size,upb_arena * arena)998 UPB_INLINE envoy_config_core_v3_RuntimeFractionalPercent *envoy_config_core_v3_RuntimeFractionalPercent_parse(const char *buf, size_t size,
999 upb_arena *arena) {
1000 envoy_config_core_v3_RuntimeFractionalPercent *ret = envoy_config_core_v3_RuntimeFractionalPercent_new(arena);
1001 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_RuntimeFractionalPercent_msginit, arena)) ? ret : NULL;
1002 }
envoy_config_core_v3_RuntimeFractionalPercent_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1003 UPB_INLINE envoy_config_core_v3_RuntimeFractionalPercent *envoy_config_core_v3_RuntimeFractionalPercent_parse_ex(const char *buf, size_t size,
1004 upb_arena *arena, int options) {
1005 envoy_config_core_v3_RuntimeFractionalPercent *ret = envoy_config_core_v3_RuntimeFractionalPercent_new(arena);
1006 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_RuntimeFractionalPercent_msginit, arena, options))
1007 ? ret : NULL;
1008 }
envoy_config_core_v3_RuntimeFractionalPercent_serialize(const envoy_config_core_v3_RuntimeFractionalPercent * msg,upb_arena * arena,size_t * len)1009 UPB_INLINE char *envoy_config_core_v3_RuntimeFractionalPercent_serialize(const envoy_config_core_v3_RuntimeFractionalPercent *msg, upb_arena *arena, size_t *len) {
1010 return upb_encode(msg, &envoy_config_core_v3_RuntimeFractionalPercent_msginit, arena, len);
1011 }
1012
envoy_config_core_v3_RuntimeFractionalPercent_has_default_value(const envoy_config_core_v3_RuntimeFractionalPercent * msg)1013 UPB_INLINE bool envoy_config_core_v3_RuntimeFractionalPercent_has_default_value(const envoy_config_core_v3_RuntimeFractionalPercent *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_RuntimeFractionalPercent_default_value(const envoy_config_core_v3_RuntimeFractionalPercent * msg)1014 UPB_INLINE const struct envoy_type_v3_FractionalPercent* envoy_config_core_v3_RuntimeFractionalPercent_default_value(const envoy_config_core_v3_RuntimeFractionalPercent *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_type_v3_FractionalPercent*); }
envoy_config_core_v3_RuntimeFractionalPercent_runtime_key(const envoy_config_core_v3_RuntimeFractionalPercent * msg)1015 UPB_INLINE upb_strview envoy_config_core_v3_RuntimeFractionalPercent_runtime_key(const envoy_config_core_v3_RuntimeFractionalPercent *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
1016
envoy_config_core_v3_RuntimeFractionalPercent_set_default_value(envoy_config_core_v3_RuntimeFractionalPercent * msg,struct envoy_type_v3_FractionalPercent * value)1017 UPB_INLINE void envoy_config_core_v3_RuntimeFractionalPercent_set_default_value(envoy_config_core_v3_RuntimeFractionalPercent *msg, struct envoy_type_v3_FractionalPercent* value) {
1018 _upb_sethas(msg, 1);
1019 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_type_v3_FractionalPercent*) = value;
1020 }
envoy_config_core_v3_RuntimeFractionalPercent_mutable_default_value(envoy_config_core_v3_RuntimeFractionalPercent * msg,upb_arena * arena)1021 UPB_INLINE struct envoy_type_v3_FractionalPercent* envoy_config_core_v3_RuntimeFractionalPercent_mutable_default_value(envoy_config_core_v3_RuntimeFractionalPercent *msg, upb_arena *arena) {
1022 struct envoy_type_v3_FractionalPercent* sub = (struct envoy_type_v3_FractionalPercent*)envoy_config_core_v3_RuntimeFractionalPercent_default_value(msg);
1023 if (sub == NULL) {
1024 sub = (struct envoy_type_v3_FractionalPercent*)_upb_msg_new(&envoy_type_v3_FractionalPercent_msginit, arena);
1025 if (!sub) return NULL;
1026 envoy_config_core_v3_RuntimeFractionalPercent_set_default_value(msg, sub);
1027 }
1028 return sub;
1029 }
envoy_config_core_v3_RuntimeFractionalPercent_set_runtime_key(envoy_config_core_v3_RuntimeFractionalPercent * msg,upb_strview value)1030 UPB_INLINE void envoy_config_core_v3_RuntimeFractionalPercent_set_runtime_key(envoy_config_core_v3_RuntimeFractionalPercent *msg, upb_strview value) {
1031 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
1032 }
1033
1034 /* envoy.config.core.v3.ControlPlane */
1035
envoy_config_core_v3_ControlPlane_new(upb_arena * arena)1036 UPB_INLINE envoy_config_core_v3_ControlPlane *envoy_config_core_v3_ControlPlane_new(upb_arena *arena) {
1037 return (envoy_config_core_v3_ControlPlane *)_upb_msg_new(&envoy_config_core_v3_ControlPlane_msginit, arena);
1038 }
envoy_config_core_v3_ControlPlane_parse(const char * buf,size_t size,upb_arena * arena)1039 UPB_INLINE envoy_config_core_v3_ControlPlane *envoy_config_core_v3_ControlPlane_parse(const char *buf, size_t size,
1040 upb_arena *arena) {
1041 envoy_config_core_v3_ControlPlane *ret = envoy_config_core_v3_ControlPlane_new(arena);
1042 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_ControlPlane_msginit, arena)) ? ret : NULL;
1043 }
envoy_config_core_v3_ControlPlane_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1044 UPB_INLINE envoy_config_core_v3_ControlPlane *envoy_config_core_v3_ControlPlane_parse_ex(const char *buf, size_t size,
1045 upb_arena *arena, int options) {
1046 envoy_config_core_v3_ControlPlane *ret = envoy_config_core_v3_ControlPlane_new(arena);
1047 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_ControlPlane_msginit, arena, options))
1048 ? ret : NULL;
1049 }
envoy_config_core_v3_ControlPlane_serialize(const envoy_config_core_v3_ControlPlane * msg,upb_arena * arena,size_t * len)1050 UPB_INLINE char *envoy_config_core_v3_ControlPlane_serialize(const envoy_config_core_v3_ControlPlane *msg, upb_arena *arena, size_t *len) {
1051 return upb_encode(msg, &envoy_config_core_v3_ControlPlane_msginit, arena, len);
1052 }
1053
envoy_config_core_v3_ControlPlane_identifier(const envoy_config_core_v3_ControlPlane * msg)1054 UPB_INLINE upb_strview envoy_config_core_v3_ControlPlane_identifier(const envoy_config_core_v3_ControlPlane *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
1055
envoy_config_core_v3_ControlPlane_set_identifier(envoy_config_core_v3_ControlPlane * msg,upb_strview value)1056 UPB_INLINE void envoy_config_core_v3_ControlPlane_set_identifier(envoy_config_core_v3_ControlPlane *msg, upb_strview value) {
1057 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
1058 }
1059
1060 #ifdef __cplusplus
1061 } /* extern "C" */
1062 #endif
1063
1064 #include "upb/port_undef.inc"
1065
1066 #endif /* ENVOY_CONFIG_CORE_V3_BASE_PROTO_UPB_H_ */
1067