1 /* This file was generated by upbc (the upb compiler) from the input
2 * file:
3 *
4 * envoy/api/v2/core/base.proto
5 *
6 * Do not edit -- your changes will be discarded when the file is
7 * regenerated. */
8
9 #ifndef ENVOY_API_V2_CORE_BASE_PROTO_UPB_H_
10 #define ENVOY_API_V2_CORE_BASE_PROTO_UPB_H_
11
12 #include "upb/msg.h"
13 #include "upb/decode.h"
14 #include "upb/encode.h"
15
16 /* Public Imports. */
17 #include "envoy/api/v2/core/socket_option.upb.h"
18
19 #include "upb/port_def.inc"
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 struct envoy_api_v2_core_Locality;
26 struct envoy_api_v2_core_BuildVersion;
27 struct envoy_api_v2_core_Extension;
28 struct envoy_api_v2_core_Node;
29 struct envoy_api_v2_core_Metadata;
30 struct envoy_api_v2_core_Metadata_FilterMetadataEntry;
31 struct envoy_api_v2_core_RuntimeUInt32;
32 struct envoy_api_v2_core_RuntimeDouble;
33 struct envoy_api_v2_core_RuntimeFeatureFlag;
34 struct envoy_api_v2_core_HeaderValue;
35 struct envoy_api_v2_core_HeaderValueOption;
36 struct envoy_api_v2_core_HeaderMap;
37 struct envoy_api_v2_core_DataSource;
38 struct envoy_api_v2_core_RetryPolicy;
39 struct envoy_api_v2_core_RemoteDataSource;
40 struct envoy_api_v2_core_AsyncDataSource;
41 struct envoy_api_v2_core_TransportSocket;
42 struct envoy_api_v2_core_RuntimeFractionalPercent;
43 struct envoy_api_v2_core_ControlPlane;
44 typedef struct envoy_api_v2_core_Locality envoy_api_v2_core_Locality;
45 typedef struct envoy_api_v2_core_BuildVersion envoy_api_v2_core_BuildVersion;
46 typedef struct envoy_api_v2_core_Extension envoy_api_v2_core_Extension;
47 typedef struct envoy_api_v2_core_Node envoy_api_v2_core_Node;
48 typedef struct envoy_api_v2_core_Metadata envoy_api_v2_core_Metadata;
49 typedef struct envoy_api_v2_core_Metadata_FilterMetadataEntry envoy_api_v2_core_Metadata_FilterMetadataEntry;
50 typedef struct envoy_api_v2_core_RuntimeUInt32 envoy_api_v2_core_RuntimeUInt32;
51 typedef struct envoy_api_v2_core_RuntimeDouble envoy_api_v2_core_RuntimeDouble;
52 typedef struct envoy_api_v2_core_RuntimeFeatureFlag envoy_api_v2_core_RuntimeFeatureFlag;
53 typedef struct envoy_api_v2_core_HeaderValue envoy_api_v2_core_HeaderValue;
54 typedef struct envoy_api_v2_core_HeaderValueOption envoy_api_v2_core_HeaderValueOption;
55 typedef struct envoy_api_v2_core_HeaderMap envoy_api_v2_core_HeaderMap;
56 typedef struct envoy_api_v2_core_DataSource envoy_api_v2_core_DataSource;
57 typedef struct envoy_api_v2_core_RetryPolicy envoy_api_v2_core_RetryPolicy;
58 typedef struct envoy_api_v2_core_RemoteDataSource envoy_api_v2_core_RemoteDataSource;
59 typedef struct envoy_api_v2_core_AsyncDataSource envoy_api_v2_core_AsyncDataSource;
60 typedef struct envoy_api_v2_core_TransportSocket envoy_api_v2_core_TransportSocket;
61 typedef struct envoy_api_v2_core_RuntimeFractionalPercent envoy_api_v2_core_RuntimeFractionalPercent;
62 typedef struct envoy_api_v2_core_ControlPlane envoy_api_v2_core_ControlPlane;
63 extern const upb_msglayout envoy_api_v2_core_Locality_msginit;
64 extern const upb_msglayout envoy_api_v2_core_BuildVersion_msginit;
65 extern const upb_msglayout envoy_api_v2_core_Extension_msginit;
66 extern const upb_msglayout envoy_api_v2_core_Node_msginit;
67 extern const upb_msglayout envoy_api_v2_core_Metadata_msginit;
68 extern const upb_msglayout envoy_api_v2_core_Metadata_FilterMetadataEntry_msginit;
69 extern const upb_msglayout envoy_api_v2_core_RuntimeUInt32_msginit;
70 extern const upb_msglayout envoy_api_v2_core_RuntimeDouble_msginit;
71 extern const upb_msglayout envoy_api_v2_core_RuntimeFeatureFlag_msginit;
72 extern const upb_msglayout envoy_api_v2_core_HeaderValue_msginit;
73 extern const upb_msglayout envoy_api_v2_core_HeaderValueOption_msginit;
74 extern const upb_msglayout envoy_api_v2_core_HeaderMap_msginit;
75 extern const upb_msglayout envoy_api_v2_core_DataSource_msginit;
76 extern const upb_msglayout envoy_api_v2_core_RetryPolicy_msginit;
77 extern const upb_msglayout envoy_api_v2_core_RemoteDataSource_msginit;
78 extern const upb_msglayout envoy_api_v2_core_AsyncDataSource_msginit;
79 extern const upb_msglayout envoy_api_v2_core_TransportSocket_msginit;
80 extern const upb_msglayout envoy_api_v2_core_RuntimeFractionalPercent_msginit;
81 extern const upb_msglayout envoy_api_v2_core_ControlPlane_msginit;
82 struct envoy_api_v2_core_Address;
83 struct envoy_api_v2_core_BackoffStrategy;
84 struct envoy_api_v2_core_HttpUri;
85 struct envoy_type_FractionalPercent;
86 struct envoy_type_SemanticVersion;
87 struct google_protobuf_Any;
88 struct google_protobuf_BoolValue;
89 struct google_protobuf_Struct;
90 struct google_protobuf_UInt32Value;
91 extern const upb_msglayout envoy_api_v2_core_Address_msginit;
92 extern const upb_msglayout envoy_api_v2_core_BackoffStrategy_msginit;
93 extern const upb_msglayout envoy_api_v2_core_HttpUri_msginit;
94 extern const upb_msglayout envoy_type_FractionalPercent_msginit;
95 extern const upb_msglayout envoy_type_SemanticVersion_msginit;
96 extern const upb_msglayout google_protobuf_Any_msginit;
97 extern const upb_msglayout google_protobuf_BoolValue_msginit;
98 extern const upb_msglayout google_protobuf_Struct_msginit;
99 extern const upb_msglayout google_protobuf_UInt32Value_msginit;
100
101 typedef enum {
102 envoy_api_v2_core_METHOD_UNSPECIFIED = 0,
103 envoy_api_v2_core_GET = 1,
104 envoy_api_v2_core_HEAD = 2,
105 envoy_api_v2_core_POST = 3,
106 envoy_api_v2_core_PUT = 4,
107 envoy_api_v2_core_DELETE = 5,
108 envoy_api_v2_core_CONNECT = 6,
109 envoy_api_v2_core_OPTIONS = 7,
110 envoy_api_v2_core_TRACE = 8,
111 envoy_api_v2_core_PATCH = 9
112 } envoy_api_v2_core_RequestMethod;
113
114 typedef enum {
115 envoy_api_v2_core_DEFAULT = 0,
116 envoy_api_v2_core_HIGH = 1
117 } envoy_api_v2_core_RoutingPriority;
118
119 typedef enum {
120 envoy_api_v2_core_UNSPECIFIED = 0,
121 envoy_api_v2_core_INBOUND = 1,
122 envoy_api_v2_core_OUTBOUND = 2
123 } envoy_api_v2_core_TrafficDirection;
124
125
126 /* envoy.api.v2.core.Locality */
127
envoy_api_v2_core_Locality_new(upb_arena * arena)128 UPB_INLINE envoy_api_v2_core_Locality *envoy_api_v2_core_Locality_new(upb_arena *arena) {
129 return (envoy_api_v2_core_Locality *)_upb_msg_new(&envoy_api_v2_core_Locality_msginit, arena);
130 }
envoy_api_v2_core_Locality_parse(const char * buf,size_t size,upb_arena * arena)131 UPB_INLINE envoy_api_v2_core_Locality *envoy_api_v2_core_Locality_parse(const char *buf, size_t size,
132 upb_arena *arena) {
133 envoy_api_v2_core_Locality *ret = envoy_api_v2_core_Locality_new(arena);
134 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_Locality_msginit, arena)) ? ret : NULL;
135 }
envoy_api_v2_core_Locality_serialize(const envoy_api_v2_core_Locality * msg,upb_arena * arena,size_t * len)136 UPB_INLINE char *envoy_api_v2_core_Locality_serialize(const envoy_api_v2_core_Locality *msg, upb_arena *arena, size_t *len) {
137 return upb_encode(msg, &envoy_api_v2_core_Locality_msginit, arena, len);
138 }
139
envoy_api_v2_core_Locality_region(const envoy_api_v2_core_Locality * msg)140 UPB_INLINE upb_strview envoy_api_v2_core_Locality_region(const envoy_api_v2_core_Locality *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
envoy_api_v2_core_Locality_zone(const envoy_api_v2_core_Locality * msg)141 UPB_INLINE upb_strview envoy_api_v2_core_Locality_zone(const envoy_api_v2_core_Locality *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview); }
envoy_api_v2_core_Locality_sub_zone(const envoy_api_v2_core_Locality * msg)142 UPB_INLINE upb_strview envoy_api_v2_core_Locality_sub_zone(const envoy_api_v2_core_Locality *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_strview); }
143
envoy_api_v2_core_Locality_set_region(envoy_api_v2_core_Locality * msg,upb_strview value)144 UPB_INLINE void envoy_api_v2_core_Locality_set_region(envoy_api_v2_core_Locality *msg, upb_strview value) {
145 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
146 }
envoy_api_v2_core_Locality_set_zone(envoy_api_v2_core_Locality * msg,upb_strview value)147 UPB_INLINE void envoy_api_v2_core_Locality_set_zone(envoy_api_v2_core_Locality *msg, upb_strview value) {
148 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview) = value;
149 }
envoy_api_v2_core_Locality_set_sub_zone(envoy_api_v2_core_Locality * msg,upb_strview value)150 UPB_INLINE void envoy_api_v2_core_Locality_set_sub_zone(envoy_api_v2_core_Locality *msg, upb_strview value) {
151 *UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_strview) = value;
152 }
153
154 /* envoy.api.v2.core.BuildVersion */
155
envoy_api_v2_core_BuildVersion_new(upb_arena * arena)156 UPB_INLINE envoy_api_v2_core_BuildVersion *envoy_api_v2_core_BuildVersion_new(upb_arena *arena) {
157 return (envoy_api_v2_core_BuildVersion *)_upb_msg_new(&envoy_api_v2_core_BuildVersion_msginit, arena);
158 }
envoy_api_v2_core_BuildVersion_parse(const char * buf,size_t size,upb_arena * arena)159 UPB_INLINE envoy_api_v2_core_BuildVersion *envoy_api_v2_core_BuildVersion_parse(const char *buf, size_t size,
160 upb_arena *arena) {
161 envoy_api_v2_core_BuildVersion *ret = envoy_api_v2_core_BuildVersion_new(arena);
162 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_BuildVersion_msginit, arena)) ? ret : NULL;
163 }
envoy_api_v2_core_BuildVersion_serialize(const envoy_api_v2_core_BuildVersion * msg,upb_arena * arena,size_t * len)164 UPB_INLINE char *envoy_api_v2_core_BuildVersion_serialize(const envoy_api_v2_core_BuildVersion *msg, upb_arena *arena, size_t *len) {
165 return upb_encode(msg, &envoy_api_v2_core_BuildVersion_msginit, arena, len);
166 }
167
envoy_api_v2_core_BuildVersion_has_version(const envoy_api_v2_core_BuildVersion * msg)168 UPB_INLINE bool envoy_api_v2_core_BuildVersion_has_version(const envoy_api_v2_core_BuildVersion *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
envoy_api_v2_core_BuildVersion_version(const envoy_api_v2_core_BuildVersion * msg)169 UPB_INLINE const struct envoy_type_SemanticVersion* envoy_api_v2_core_BuildVersion_version(const envoy_api_v2_core_BuildVersion *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), const struct envoy_type_SemanticVersion*); }
envoy_api_v2_core_BuildVersion_has_metadata(const envoy_api_v2_core_BuildVersion * msg)170 UPB_INLINE bool envoy_api_v2_core_BuildVersion_has_metadata(const envoy_api_v2_core_BuildVersion *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); }
envoy_api_v2_core_BuildVersion_metadata(const envoy_api_v2_core_BuildVersion * msg)171 UPB_INLINE const struct google_protobuf_Struct* envoy_api_v2_core_BuildVersion_metadata(const envoy_api_v2_core_BuildVersion *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_Struct*); }
172
envoy_api_v2_core_BuildVersion_set_version(envoy_api_v2_core_BuildVersion * msg,struct envoy_type_SemanticVersion * value)173 UPB_INLINE void envoy_api_v2_core_BuildVersion_set_version(envoy_api_v2_core_BuildVersion *msg, struct envoy_type_SemanticVersion* value) {
174 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), struct envoy_type_SemanticVersion*) = value;
175 }
envoy_api_v2_core_BuildVersion_mutable_version(envoy_api_v2_core_BuildVersion * msg,upb_arena * arena)176 UPB_INLINE struct envoy_type_SemanticVersion* envoy_api_v2_core_BuildVersion_mutable_version(envoy_api_v2_core_BuildVersion *msg, upb_arena *arena) {
177 struct envoy_type_SemanticVersion* sub = (struct envoy_type_SemanticVersion*)envoy_api_v2_core_BuildVersion_version(msg);
178 if (sub == NULL) {
179 sub = (struct envoy_type_SemanticVersion*)_upb_msg_new(&envoy_type_SemanticVersion_msginit, arena);
180 if (!sub) return NULL;
181 envoy_api_v2_core_BuildVersion_set_version(msg, sub);
182 }
183 return sub;
184 }
envoy_api_v2_core_BuildVersion_set_metadata(envoy_api_v2_core_BuildVersion * msg,struct google_protobuf_Struct * value)185 UPB_INLINE void envoy_api_v2_core_BuildVersion_set_metadata(envoy_api_v2_core_BuildVersion *msg, struct google_protobuf_Struct* value) {
186 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_Struct*) = value;
187 }
envoy_api_v2_core_BuildVersion_mutable_metadata(envoy_api_v2_core_BuildVersion * msg,upb_arena * arena)188 UPB_INLINE struct google_protobuf_Struct* envoy_api_v2_core_BuildVersion_mutable_metadata(envoy_api_v2_core_BuildVersion *msg, upb_arena *arena) {
189 struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_api_v2_core_BuildVersion_metadata(msg);
190 if (sub == NULL) {
191 sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena);
192 if (!sub) return NULL;
193 envoy_api_v2_core_BuildVersion_set_metadata(msg, sub);
194 }
195 return sub;
196 }
197
198 /* envoy.api.v2.core.Extension */
199
envoy_api_v2_core_Extension_new(upb_arena * arena)200 UPB_INLINE envoy_api_v2_core_Extension *envoy_api_v2_core_Extension_new(upb_arena *arena) {
201 return (envoy_api_v2_core_Extension *)_upb_msg_new(&envoy_api_v2_core_Extension_msginit, arena);
202 }
envoy_api_v2_core_Extension_parse(const char * buf,size_t size,upb_arena * arena)203 UPB_INLINE envoy_api_v2_core_Extension *envoy_api_v2_core_Extension_parse(const char *buf, size_t size,
204 upb_arena *arena) {
205 envoy_api_v2_core_Extension *ret = envoy_api_v2_core_Extension_new(arena);
206 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_Extension_msginit, arena)) ? ret : NULL;
207 }
envoy_api_v2_core_Extension_serialize(const envoy_api_v2_core_Extension * msg,upb_arena * arena,size_t * len)208 UPB_INLINE char *envoy_api_v2_core_Extension_serialize(const envoy_api_v2_core_Extension *msg, upb_arena *arena, size_t *len) {
209 return upb_encode(msg, &envoy_api_v2_core_Extension_msginit, arena, len);
210 }
211
envoy_api_v2_core_Extension_name(const envoy_api_v2_core_Extension * msg)212 UPB_INLINE upb_strview envoy_api_v2_core_Extension_name(const envoy_api_v2_core_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
envoy_api_v2_core_Extension_category(const envoy_api_v2_core_Extension * msg)213 UPB_INLINE upb_strview envoy_api_v2_core_Extension_category(const envoy_api_v2_core_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview); }
envoy_api_v2_core_Extension_type_descriptor(const envoy_api_v2_core_Extension * msg)214 UPB_INLINE upb_strview envoy_api_v2_core_Extension_type_descriptor(const envoy_api_v2_core_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_strview); }
envoy_api_v2_core_Extension_has_version(const envoy_api_v2_core_Extension * msg)215 UPB_INLINE bool envoy_api_v2_core_Extension_has_version(const envoy_api_v2_core_Extension *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 56)); }
envoy_api_v2_core_Extension_version(const envoy_api_v2_core_Extension * msg)216 UPB_INLINE const envoy_api_v2_core_BuildVersion* envoy_api_v2_core_Extension_version(const envoy_api_v2_core_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 56), const envoy_api_v2_core_BuildVersion*); }
envoy_api_v2_core_Extension_disabled(const envoy_api_v2_core_Extension * msg)217 UPB_INLINE bool envoy_api_v2_core_Extension_disabled(const envoy_api_v2_core_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool); }
218
envoy_api_v2_core_Extension_set_name(envoy_api_v2_core_Extension * msg,upb_strview value)219 UPB_INLINE void envoy_api_v2_core_Extension_set_name(envoy_api_v2_core_Extension *msg, upb_strview value) {
220 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
221 }
envoy_api_v2_core_Extension_set_category(envoy_api_v2_core_Extension * msg,upb_strview value)222 UPB_INLINE void envoy_api_v2_core_Extension_set_category(envoy_api_v2_core_Extension *msg, upb_strview value) {
223 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview) = value;
224 }
envoy_api_v2_core_Extension_set_type_descriptor(envoy_api_v2_core_Extension * msg,upb_strview value)225 UPB_INLINE void envoy_api_v2_core_Extension_set_type_descriptor(envoy_api_v2_core_Extension *msg, upb_strview value) {
226 *UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_strview) = value;
227 }
envoy_api_v2_core_Extension_set_version(envoy_api_v2_core_Extension * msg,envoy_api_v2_core_BuildVersion * value)228 UPB_INLINE void envoy_api_v2_core_Extension_set_version(envoy_api_v2_core_Extension *msg, envoy_api_v2_core_BuildVersion* value) {
229 *UPB_PTR_AT(msg, UPB_SIZE(28, 56), envoy_api_v2_core_BuildVersion*) = value;
230 }
envoy_api_v2_core_Extension_mutable_version(envoy_api_v2_core_Extension * msg,upb_arena * arena)231 UPB_INLINE struct envoy_api_v2_core_BuildVersion* envoy_api_v2_core_Extension_mutable_version(envoy_api_v2_core_Extension *msg, upb_arena *arena) {
232 struct envoy_api_v2_core_BuildVersion* sub = (struct envoy_api_v2_core_BuildVersion*)envoy_api_v2_core_Extension_version(msg);
233 if (sub == NULL) {
234 sub = (struct envoy_api_v2_core_BuildVersion*)_upb_msg_new(&envoy_api_v2_core_BuildVersion_msginit, arena);
235 if (!sub) return NULL;
236 envoy_api_v2_core_Extension_set_version(msg, sub);
237 }
238 return sub;
239 }
envoy_api_v2_core_Extension_set_disabled(envoy_api_v2_core_Extension * msg,bool value)240 UPB_INLINE void envoy_api_v2_core_Extension_set_disabled(envoy_api_v2_core_Extension *msg, bool value) {
241 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = value;
242 }
243
244 /* envoy.api.v2.core.Node */
245
envoy_api_v2_core_Node_new(upb_arena * arena)246 UPB_INLINE envoy_api_v2_core_Node *envoy_api_v2_core_Node_new(upb_arena *arena) {
247 return (envoy_api_v2_core_Node *)_upb_msg_new(&envoy_api_v2_core_Node_msginit, arena);
248 }
envoy_api_v2_core_Node_parse(const char * buf,size_t size,upb_arena * arena)249 UPB_INLINE envoy_api_v2_core_Node *envoy_api_v2_core_Node_parse(const char *buf, size_t size,
250 upb_arena *arena) {
251 envoy_api_v2_core_Node *ret = envoy_api_v2_core_Node_new(arena);
252 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_Node_msginit, arena)) ? ret : NULL;
253 }
envoy_api_v2_core_Node_serialize(const envoy_api_v2_core_Node * msg,upb_arena * arena,size_t * len)254 UPB_INLINE char *envoy_api_v2_core_Node_serialize(const envoy_api_v2_core_Node *msg, upb_arena *arena, size_t *len) {
255 return upb_encode(msg, &envoy_api_v2_core_Node_msginit, arena, len);
256 }
257
258 typedef enum {
259 envoy_api_v2_core_Node_user_agent_version_type_user_agent_version = 7,
260 envoy_api_v2_core_Node_user_agent_version_type_user_agent_build_version = 8,
261 envoy_api_v2_core_Node_user_agent_version_type_NOT_SET = 0
262 } envoy_api_v2_core_Node_user_agent_version_type_oneofcases;
envoy_api_v2_core_Node_user_agent_version_type_case(const envoy_api_v2_core_Node * msg)263 UPB_INLINE envoy_api_v2_core_Node_user_agent_version_type_oneofcases envoy_api_v2_core_Node_user_agent_version_type_case(const envoy_api_v2_core_Node* msg) { return (envoy_api_v2_core_Node_user_agent_version_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(60, 120), int32_t); }
264
envoy_api_v2_core_Node_id(const envoy_api_v2_core_Node * msg)265 UPB_INLINE upb_strview envoy_api_v2_core_Node_id(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
envoy_api_v2_core_Node_cluster(const envoy_api_v2_core_Node * msg)266 UPB_INLINE upb_strview envoy_api_v2_core_Node_cluster(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview); }
envoy_api_v2_core_Node_has_metadata(const envoy_api_v2_core_Node * msg)267 UPB_INLINE bool envoy_api_v2_core_Node_has_metadata(const envoy_api_v2_core_Node *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(32, 64)); }
envoy_api_v2_core_Node_metadata(const envoy_api_v2_core_Node * msg)268 UPB_INLINE const struct google_protobuf_Struct* envoy_api_v2_core_Node_metadata(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 64), const struct google_protobuf_Struct*); }
envoy_api_v2_core_Node_has_locality(const envoy_api_v2_core_Node * msg)269 UPB_INLINE bool envoy_api_v2_core_Node_has_locality(const envoy_api_v2_core_Node *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(36, 72)); }
envoy_api_v2_core_Node_locality(const envoy_api_v2_core_Node * msg)270 UPB_INLINE const envoy_api_v2_core_Locality* envoy_api_v2_core_Node_locality(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(36, 72), const envoy_api_v2_core_Locality*); }
envoy_api_v2_core_Node_build_version(const envoy_api_v2_core_Node * msg)271 UPB_INLINE upb_strview envoy_api_v2_core_Node_build_version(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_strview); }
envoy_api_v2_core_Node_user_agent_name(const envoy_api_v2_core_Node * msg)272 UPB_INLINE upb_strview envoy_api_v2_core_Node_user_agent_name(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 48), upb_strview); }
envoy_api_v2_core_Node_has_user_agent_version(const envoy_api_v2_core_Node * msg)273 UPB_INLINE bool envoy_api_v2_core_Node_has_user_agent_version(const envoy_api_v2_core_Node *msg) { return _upb_getoneofcase(msg, UPB_SIZE(60, 120)) == 7; }
envoy_api_v2_core_Node_user_agent_version(const envoy_api_v2_core_Node * msg)274 UPB_INLINE upb_strview envoy_api_v2_core_Node_user_agent_version(const envoy_api_v2_core_Node *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(52, 104), UPB_SIZE(60, 120), 7, upb_strview_make("", strlen(""))); }
envoy_api_v2_core_Node_has_user_agent_build_version(const envoy_api_v2_core_Node * msg)275 UPB_INLINE bool envoy_api_v2_core_Node_has_user_agent_build_version(const envoy_api_v2_core_Node *msg) { return _upb_getoneofcase(msg, UPB_SIZE(60, 120)) == 8; }
envoy_api_v2_core_Node_user_agent_build_version(const envoy_api_v2_core_Node * msg)276 UPB_INLINE const envoy_api_v2_core_BuildVersion* envoy_api_v2_core_Node_user_agent_build_version(const envoy_api_v2_core_Node *msg) { return UPB_READ_ONEOF(msg, const envoy_api_v2_core_BuildVersion*, UPB_SIZE(52, 104), UPB_SIZE(60, 120), 8, NULL); }
envoy_api_v2_core_Node_has_extensions(const envoy_api_v2_core_Node * msg)277 UPB_INLINE bool envoy_api_v2_core_Node_has_extensions(const envoy_api_v2_core_Node *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(40, 80)); }
envoy_api_v2_core_Node_extensions(const envoy_api_v2_core_Node * msg,size_t * len)278 UPB_INLINE const envoy_api_v2_core_Extension* const* envoy_api_v2_core_Node_extensions(const envoy_api_v2_core_Node *msg, size_t *len) { return (const envoy_api_v2_core_Extension* const*)_upb_array_accessor(msg, UPB_SIZE(40, 80), len); }
envoy_api_v2_core_Node_client_features(const envoy_api_v2_core_Node * msg,size_t * len)279 UPB_INLINE upb_strview const* envoy_api_v2_core_Node_client_features(const envoy_api_v2_core_Node *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(44, 88), len); }
envoy_api_v2_core_Node_has_listening_addresses(const envoy_api_v2_core_Node * msg)280 UPB_INLINE bool envoy_api_v2_core_Node_has_listening_addresses(const envoy_api_v2_core_Node *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(48, 96)); }
envoy_api_v2_core_Node_listening_addresses(const envoy_api_v2_core_Node * msg,size_t * len)281 UPB_INLINE const struct envoy_api_v2_core_Address* const* envoy_api_v2_core_Node_listening_addresses(const envoy_api_v2_core_Node *msg, size_t *len) { return (const struct envoy_api_v2_core_Address* const*)_upb_array_accessor(msg, UPB_SIZE(48, 96), len); }
282
envoy_api_v2_core_Node_set_id(envoy_api_v2_core_Node * msg,upb_strview value)283 UPB_INLINE void envoy_api_v2_core_Node_set_id(envoy_api_v2_core_Node *msg, upb_strview value) {
284 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
285 }
envoy_api_v2_core_Node_set_cluster(envoy_api_v2_core_Node * msg,upb_strview value)286 UPB_INLINE void envoy_api_v2_core_Node_set_cluster(envoy_api_v2_core_Node *msg, upb_strview value) {
287 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview) = value;
288 }
envoy_api_v2_core_Node_set_metadata(envoy_api_v2_core_Node * msg,struct google_protobuf_Struct * value)289 UPB_INLINE void envoy_api_v2_core_Node_set_metadata(envoy_api_v2_core_Node *msg, struct google_protobuf_Struct* value) {
290 *UPB_PTR_AT(msg, UPB_SIZE(32, 64), struct google_protobuf_Struct*) = value;
291 }
envoy_api_v2_core_Node_mutable_metadata(envoy_api_v2_core_Node * msg,upb_arena * arena)292 UPB_INLINE struct google_protobuf_Struct* envoy_api_v2_core_Node_mutable_metadata(envoy_api_v2_core_Node *msg, upb_arena *arena) {
293 struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_api_v2_core_Node_metadata(msg);
294 if (sub == NULL) {
295 sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena);
296 if (!sub) return NULL;
297 envoy_api_v2_core_Node_set_metadata(msg, sub);
298 }
299 return sub;
300 }
envoy_api_v2_core_Node_set_locality(envoy_api_v2_core_Node * msg,envoy_api_v2_core_Locality * value)301 UPB_INLINE void envoy_api_v2_core_Node_set_locality(envoy_api_v2_core_Node *msg, envoy_api_v2_core_Locality* value) {
302 *UPB_PTR_AT(msg, UPB_SIZE(36, 72), envoy_api_v2_core_Locality*) = value;
303 }
envoy_api_v2_core_Node_mutable_locality(envoy_api_v2_core_Node * msg,upb_arena * arena)304 UPB_INLINE struct envoy_api_v2_core_Locality* envoy_api_v2_core_Node_mutable_locality(envoy_api_v2_core_Node *msg, upb_arena *arena) {
305 struct envoy_api_v2_core_Locality* sub = (struct envoy_api_v2_core_Locality*)envoy_api_v2_core_Node_locality(msg);
306 if (sub == NULL) {
307 sub = (struct envoy_api_v2_core_Locality*)_upb_msg_new(&envoy_api_v2_core_Locality_msginit, arena);
308 if (!sub) return NULL;
309 envoy_api_v2_core_Node_set_locality(msg, sub);
310 }
311 return sub;
312 }
envoy_api_v2_core_Node_set_build_version(envoy_api_v2_core_Node * msg,upb_strview value)313 UPB_INLINE void envoy_api_v2_core_Node_set_build_version(envoy_api_v2_core_Node *msg, upb_strview value) {
314 *UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_strview) = value;
315 }
envoy_api_v2_core_Node_set_user_agent_name(envoy_api_v2_core_Node * msg,upb_strview value)316 UPB_INLINE void envoy_api_v2_core_Node_set_user_agent_name(envoy_api_v2_core_Node *msg, upb_strview value) {
317 *UPB_PTR_AT(msg, UPB_SIZE(24, 48), upb_strview) = value;
318 }
envoy_api_v2_core_Node_set_user_agent_version(envoy_api_v2_core_Node * msg,upb_strview value)319 UPB_INLINE void envoy_api_v2_core_Node_set_user_agent_version(envoy_api_v2_core_Node *msg, upb_strview value) {
320 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(52, 104), value, UPB_SIZE(60, 120), 7);
321 }
envoy_api_v2_core_Node_set_user_agent_build_version(envoy_api_v2_core_Node * msg,envoy_api_v2_core_BuildVersion * value)322 UPB_INLINE void envoy_api_v2_core_Node_set_user_agent_build_version(envoy_api_v2_core_Node *msg, envoy_api_v2_core_BuildVersion* value) {
323 UPB_WRITE_ONEOF(msg, envoy_api_v2_core_BuildVersion*, UPB_SIZE(52, 104), value, UPB_SIZE(60, 120), 8);
324 }
envoy_api_v2_core_Node_mutable_user_agent_build_version(envoy_api_v2_core_Node * msg,upb_arena * arena)325 UPB_INLINE struct envoy_api_v2_core_BuildVersion* envoy_api_v2_core_Node_mutable_user_agent_build_version(envoy_api_v2_core_Node *msg, upb_arena *arena) {
326 struct envoy_api_v2_core_BuildVersion* sub = (struct envoy_api_v2_core_BuildVersion*)envoy_api_v2_core_Node_user_agent_build_version(msg);
327 if (sub == NULL) {
328 sub = (struct envoy_api_v2_core_BuildVersion*)_upb_msg_new(&envoy_api_v2_core_BuildVersion_msginit, arena);
329 if (!sub) return NULL;
330 envoy_api_v2_core_Node_set_user_agent_build_version(msg, sub);
331 }
332 return sub;
333 }
envoy_api_v2_core_Node_mutable_extensions(envoy_api_v2_core_Node * msg,size_t * len)334 UPB_INLINE envoy_api_v2_core_Extension** envoy_api_v2_core_Node_mutable_extensions(envoy_api_v2_core_Node *msg, size_t *len) {
335 return (envoy_api_v2_core_Extension**)_upb_array_mutable_accessor(msg, UPB_SIZE(40, 80), len);
336 }
envoy_api_v2_core_Node_resize_extensions(envoy_api_v2_core_Node * msg,size_t len,upb_arena * arena)337 UPB_INLINE envoy_api_v2_core_Extension** envoy_api_v2_core_Node_resize_extensions(envoy_api_v2_core_Node *msg, size_t len, upb_arena *arena) {
338 return (envoy_api_v2_core_Extension**)_upb_array_resize_accessor(msg, UPB_SIZE(40, 80), len, UPB_TYPE_MESSAGE, arena);
339 }
envoy_api_v2_core_Node_add_extensions(envoy_api_v2_core_Node * msg,upb_arena * arena)340 UPB_INLINE struct envoy_api_v2_core_Extension* envoy_api_v2_core_Node_add_extensions(envoy_api_v2_core_Node *msg, upb_arena *arena) {
341 struct envoy_api_v2_core_Extension* sub = (struct envoy_api_v2_core_Extension*)_upb_msg_new(&envoy_api_v2_core_Extension_msginit, arena);
342 bool ok = _upb_array_append_accessor(
343 msg, UPB_SIZE(40, 80), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
344 if (!ok) return NULL;
345 return sub;
346 }
envoy_api_v2_core_Node_mutable_client_features(envoy_api_v2_core_Node * msg,size_t * len)347 UPB_INLINE upb_strview* envoy_api_v2_core_Node_mutable_client_features(envoy_api_v2_core_Node *msg, size_t *len) {
348 return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(44, 88), len);
349 }
envoy_api_v2_core_Node_resize_client_features(envoy_api_v2_core_Node * msg,size_t len,upb_arena * arena)350 UPB_INLINE upb_strview* envoy_api_v2_core_Node_resize_client_features(envoy_api_v2_core_Node *msg, size_t len, upb_arena *arena) {
351 return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(44, 88), len, UPB_TYPE_STRING, arena);
352 }
envoy_api_v2_core_Node_add_client_features(envoy_api_v2_core_Node * msg,upb_strview val,upb_arena * arena)353 UPB_INLINE bool envoy_api_v2_core_Node_add_client_features(envoy_api_v2_core_Node *msg, upb_strview val, upb_arena *arena) {
354 return _upb_array_append_accessor(msg, UPB_SIZE(44, 88), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val,
355 arena);
356 }
envoy_api_v2_core_Node_mutable_listening_addresses(envoy_api_v2_core_Node * msg,size_t * len)357 UPB_INLINE struct envoy_api_v2_core_Address** envoy_api_v2_core_Node_mutable_listening_addresses(envoy_api_v2_core_Node *msg, size_t *len) {
358 return (struct envoy_api_v2_core_Address**)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 96), len);
359 }
envoy_api_v2_core_Node_resize_listening_addresses(envoy_api_v2_core_Node * msg,size_t len,upb_arena * arena)360 UPB_INLINE struct envoy_api_v2_core_Address** envoy_api_v2_core_Node_resize_listening_addresses(envoy_api_v2_core_Node *msg, size_t len, upb_arena *arena) {
361 return (struct envoy_api_v2_core_Address**)_upb_array_resize_accessor(msg, UPB_SIZE(48, 96), len, UPB_TYPE_MESSAGE, arena);
362 }
envoy_api_v2_core_Node_add_listening_addresses(envoy_api_v2_core_Node * msg,upb_arena * arena)363 UPB_INLINE struct envoy_api_v2_core_Address* envoy_api_v2_core_Node_add_listening_addresses(envoy_api_v2_core_Node *msg, upb_arena *arena) {
364 struct envoy_api_v2_core_Address* sub = (struct envoy_api_v2_core_Address*)_upb_msg_new(&envoy_api_v2_core_Address_msginit, arena);
365 bool ok = _upb_array_append_accessor(
366 msg, UPB_SIZE(48, 96), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
367 if (!ok) return NULL;
368 return sub;
369 }
370
371 /* envoy.api.v2.core.Metadata */
372
envoy_api_v2_core_Metadata_new(upb_arena * arena)373 UPB_INLINE envoy_api_v2_core_Metadata *envoy_api_v2_core_Metadata_new(upb_arena *arena) {
374 return (envoy_api_v2_core_Metadata *)_upb_msg_new(&envoy_api_v2_core_Metadata_msginit, arena);
375 }
envoy_api_v2_core_Metadata_parse(const char * buf,size_t size,upb_arena * arena)376 UPB_INLINE envoy_api_v2_core_Metadata *envoy_api_v2_core_Metadata_parse(const char *buf, size_t size,
377 upb_arena *arena) {
378 envoy_api_v2_core_Metadata *ret = envoy_api_v2_core_Metadata_new(arena);
379 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_Metadata_msginit, arena)) ? ret : NULL;
380 }
envoy_api_v2_core_Metadata_serialize(const envoy_api_v2_core_Metadata * msg,upb_arena * arena,size_t * len)381 UPB_INLINE char *envoy_api_v2_core_Metadata_serialize(const envoy_api_v2_core_Metadata *msg, upb_arena *arena, size_t *len) {
382 return upb_encode(msg, &envoy_api_v2_core_Metadata_msginit, arena, len);
383 }
384
envoy_api_v2_core_Metadata_has_filter_metadata(const envoy_api_v2_core_Metadata * msg)385 UPB_INLINE bool envoy_api_v2_core_Metadata_has_filter_metadata(const envoy_api_v2_core_Metadata *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
envoy_api_v2_core_Metadata_filter_metadata_size(const envoy_api_v2_core_Metadata * msg)386 UPB_INLINE size_t envoy_api_v2_core_Metadata_filter_metadata_size(const envoy_api_v2_core_Metadata *msg) {return _upb_msg_map_size(msg, UPB_SIZE(0, 0)); }
envoy_api_v2_core_Metadata_filter_metadata_get(const envoy_api_v2_core_Metadata * msg,upb_strview key,struct google_protobuf_Struct ** val)387 UPB_INLINE bool envoy_api_v2_core_Metadata_filter_metadata_get(const envoy_api_v2_core_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_api_v2_core_Metadata_filter_metadata_next(const envoy_api_v2_core_Metadata * msg,size_t * iter)388 UPB_INLINE const envoy_api_v2_core_Metadata_FilterMetadataEntry* envoy_api_v2_core_Metadata_filter_metadata_next(const envoy_api_v2_core_Metadata *msg, size_t* iter) { return (const envoy_api_v2_core_Metadata_FilterMetadataEntry*)_upb_msg_map_next(msg, UPB_SIZE(0, 0), iter); }
389
envoy_api_v2_core_Metadata_filter_metadata_clear(envoy_api_v2_core_Metadata * msg)390 UPB_INLINE void envoy_api_v2_core_Metadata_filter_metadata_clear(envoy_api_v2_core_Metadata *msg) { _upb_msg_map_clear(msg, UPB_SIZE(0, 0)); }
envoy_api_v2_core_Metadata_filter_metadata_set(envoy_api_v2_core_Metadata * msg,upb_strview key,struct google_protobuf_Struct * val,upb_arena * a)391 UPB_INLINE bool envoy_api_v2_core_Metadata_filter_metadata_set(envoy_api_v2_core_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_api_v2_core_Metadata_filter_metadata_delete(envoy_api_v2_core_Metadata * msg,upb_strview key)392 UPB_INLINE bool envoy_api_v2_core_Metadata_filter_metadata_delete(envoy_api_v2_core_Metadata *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(0, 0), &key, 0); }
envoy_api_v2_core_Metadata_filter_metadata_nextmutable(envoy_api_v2_core_Metadata * msg,size_t * iter)393 UPB_INLINE envoy_api_v2_core_Metadata_FilterMetadataEntry* envoy_api_v2_core_Metadata_filter_metadata_nextmutable(envoy_api_v2_core_Metadata *msg, size_t* iter) { return (envoy_api_v2_core_Metadata_FilterMetadataEntry*)_upb_msg_map_next(msg, UPB_SIZE(0, 0), iter); }
394
395 /* envoy.api.v2.core.Metadata.FilterMetadataEntry */
396
envoy_api_v2_core_Metadata_FilterMetadataEntry_key(const envoy_api_v2_core_Metadata_FilterMetadataEntry * msg)397 UPB_INLINE upb_strview envoy_api_v2_core_Metadata_FilterMetadataEntry_key(const envoy_api_v2_core_Metadata_FilterMetadataEntry *msg) {
398 upb_strview ret;
399 _upb_msg_map_key(msg, &ret, 0);
400 return ret;
401 }
envoy_api_v2_core_Metadata_FilterMetadataEntry_has_value(const envoy_api_v2_core_Metadata_FilterMetadataEntry * msg)402 UPB_INLINE bool envoy_api_v2_core_Metadata_FilterMetadataEntry_has_value(const envoy_api_v2_core_Metadata_FilterMetadataEntry *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
envoy_api_v2_core_Metadata_FilterMetadataEntry_value(const envoy_api_v2_core_Metadata_FilterMetadataEntry * msg)403 UPB_INLINE const struct google_protobuf_Struct* envoy_api_v2_core_Metadata_FilterMetadataEntry_value(const envoy_api_v2_core_Metadata_FilterMetadataEntry *msg) {
404 struct google_protobuf_Struct* ret;
405 _upb_msg_map_value(msg, &ret, sizeof(ret));
406 return ret;
407 }
408
envoy_api_v2_core_Metadata_FilterMetadataEntry_set_value(envoy_api_v2_core_Metadata_FilterMetadataEntry * msg,struct google_protobuf_Struct * value)409 UPB_INLINE void envoy_api_v2_core_Metadata_FilterMetadataEntry_set_value(envoy_api_v2_core_Metadata_FilterMetadataEntry *msg, struct google_protobuf_Struct* value) {
410 _upb_msg_map_set_value(msg, &value, sizeof(struct google_protobuf_Struct*));
411 }
412
413 /* envoy.api.v2.core.RuntimeUInt32 */
414
envoy_api_v2_core_RuntimeUInt32_new(upb_arena * arena)415 UPB_INLINE envoy_api_v2_core_RuntimeUInt32 *envoy_api_v2_core_RuntimeUInt32_new(upb_arena *arena) {
416 return (envoy_api_v2_core_RuntimeUInt32 *)_upb_msg_new(&envoy_api_v2_core_RuntimeUInt32_msginit, arena);
417 }
envoy_api_v2_core_RuntimeUInt32_parse(const char * buf,size_t size,upb_arena * arena)418 UPB_INLINE envoy_api_v2_core_RuntimeUInt32 *envoy_api_v2_core_RuntimeUInt32_parse(const char *buf, size_t size,
419 upb_arena *arena) {
420 envoy_api_v2_core_RuntimeUInt32 *ret = envoy_api_v2_core_RuntimeUInt32_new(arena);
421 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RuntimeUInt32_msginit, arena)) ? ret : NULL;
422 }
envoy_api_v2_core_RuntimeUInt32_serialize(const envoy_api_v2_core_RuntimeUInt32 * msg,upb_arena * arena,size_t * len)423 UPB_INLINE char *envoy_api_v2_core_RuntimeUInt32_serialize(const envoy_api_v2_core_RuntimeUInt32 *msg, upb_arena *arena, size_t *len) {
424 return upb_encode(msg, &envoy_api_v2_core_RuntimeUInt32_msginit, arena, len);
425 }
426
envoy_api_v2_core_RuntimeUInt32_default_value(const envoy_api_v2_core_RuntimeUInt32 * msg)427 UPB_INLINE uint32_t envoy_api_v2_core_RuntimeUInt32_default_value(const envoy_api_v2_core_RuntimeUInt32 *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t); }
envoy_api_v2_core_RuntimeUInt32_runtime_key(const envoy_api_v2_core_RuntimeUInt32 * msg)428 UPB_INLINE upb_strview envoy_api_v2_core_RuntimeUInt32_runtime_key(const envoy_api_v2_core_RuntimeUInt32 *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
429
envoy_api_v2_core_RuntimeUInt32_set_default_value(envoy_api_v2_core_RuntimeUInt32 * msg,uint32_t value)430 UPB_INLINE void envoy_api_v2_core_RuntimeUInt32_set_default_value(envoy_api_v2_core_RuntimeUInt32 *msg, uint32_t value) {
431 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t) = value;
432 }
envoy_api_v2_core_RuntimeUInt32_set_runtime_key(envoy_api_v2_core_RuntimeUInt32 * msg,upb_strview value)433 UPB_INLINE void envoy_api_v2_core_RuntimeUInt32_set_runtime_key(envoy_api_v2_core_RuntimeUInt32 *msg, upb_strview value) {
434 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
435 }
436
437 /* envoy.api.v2.core.RuntimeDouble */
438
envoy_api_v2_core_RuntimeDouble_new(upb_arena * arena)439 UPB_INLINE envoy_api_v2_core_RuntimeDouble *envoy_api_v2_core_RuntimeDouble_new(upb_arena *arena) {
440 return (envoy_api_v2_core_RuntimeDouble *)_upb_msg_new(&envoy_api_v2_core_RuntimeDouble_msginit, arena);
441 }
envoy_api_v2_core_RuntimeDouble_parse(const char * buf,size_t size,upb_arena * arena)442 UPB_INLINE envoy_api_v2_core_RuntimeDouble *envoy_api_v2_core_RuntimeDouble_parse(const char *buf, size_t size,
443 upb_arena *arena) {
444 envoy_api_v2_core_RuntimeDouble *ret = envoy_api_v2_core_RuntimeDouble_new(arena);
445 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RuntimeDouble_msginit, arena)) ? ret : NULL;
446 }
envoy_api_v2_core_RuntimeDouble_serialize(const envoy_api_v2_core_RuntimeDouble * msg,upb_arena * arena,size_t * len)447 UPB_INLINE char *envoy_api_v2_core_RuntimeDouble_serialize(const envoy_api_v2_core_RuntimeDouble *msg, upb_arena *arena, size_t *len) {
448 return upb_encode(msg, &envoy_api_v2_core_RuntimeDouble_msginit, arena, len);
449 }
450
envoy_api_v2_core_RuntimeDouble_default_value(const envoy_api_v2_core_RuntimeDouble * msg)451 UPB_INLINE double envoy_api_v2_core_RuntimeDouble_default_value(const envoy_api_v2_core_RuntimeDouble *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), double); }
envoy_api_v2_core_RuntimeDouble_runtime_key(const envoy_api_v2_core_RuntimeDouble * msg)452 UPB_INLINE upb_strview envoy_api_v2_core_RuntimeDouble_runtime_key(const envoy_api_v2_core_RuntimeDouble *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview); }
453
envoy_api_v2_core_RuntimeDouble_set_default_value(envoy_api_v2_core_RuntimeDouble * msg,double value)454 UPB_INLINE void envoy_api_v2_core_RuntimeDouble_set_default_value(envoy_api_v2_core_RuntimeDouble *msg, double value) {
455 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), double) = value;
456 }
envoy_api_v2_core_RuntimeDouble_set_runtime_key(envoy_api_v2_core_RuntimeDouble * msg,upb_strview value)457 UPB_INLINE void envoy_api_v2_core_RuntimeDouble_set_runtime_key(envoy_api_v2_core_RuntimeDouble *msg, upb_strview value) {
458 *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview) = value;
459 }
460
461 /* envoy.api.v2.core.RuntimeFeatureFlag */
462
envoy_api_v2_core_RuntimeFeatureFlag_new(upb_arena * arena)463 UPB_INLINE envoy_api_v2_core_RuntimeFeatureFlag *envoy_api_v2_core_RuntimeFeatureFlag_new(upb_arena *arena) {
464 return (envoy_api_v2_core_RuntimeFeatureFlag *)_upb_msg_new(&envoy_api_v2_core_RuntimeFeatureFlag_msginit, arena);
465 }
envoy_api_v2_core_RuntimeFeatureFlag_parse(const char * buf,size_t size,upb_arena * arena)466 UPB_INLINE envoy_api_v2_core_RuntimeFeatureFlag *envoy_api_v2_core_RuntimeFeatureFlag_parse(const char *buf, size_t size,
467 upb_arena *arena) {
468 envoy_api_v2_core_RuntimeFeatureFlag *ret = envoy_api_v2_core_RuntimeFeatureFlag_new(arena);
469 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RuntimeFeatureFlag_msginit, arena)) ? ret : NULL;
470 }
envoy_api_v2_core_RuntimeFeatureFlag_serialize(const envoy_api_v2_core_RuntimeFeatureFlag * msg,upb_arena * arena,size_t * len)471 UPB_INLINE char *envoy_api_v2_core_RuntimeFeatureFlag_serialize(const envoy_api_v2_core_RuntimeFeatureFlag *msg, upb_arena *arena, size_t *len) {
472 return upb_encode(msg, &envoy_api_v2_core_RuntimeFeatureFlag_msginit, arena, len);
473 }
474
envoy_api_v2_core_RuntimeFeatureFlag_has_default_value(const envoy_api_v2_core_RuntimeFeatureFlag * msg)475 UPB_INLINE bool envoy_api_v2_core_RuntimeFeatureFlag_has_default_value(const envoy_api_v2_core_RuntimeFeatureFlag *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
envoy_api_v2_core_RuntimeFeatureFlag_default_value(const envoy_api_v2_core_RuntimeFeatureFlag * msg)476 UPB_INLINE const struct google_protobuf_BoolValue* envoy_api_v2_core_RuntimeFeatureFlag_default_value(const envoy_api_v2_core_RuntimeFeatureFlag *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_BoolValue*); }
envoy_api_v2_core_RuntimeFeatureFlag_runtime_key(const envoy_api_v2_core_RuntimeFeatureFlag * msg)477 UPB_INLINE upb_strview envoy_api_v2_core_RuntimeFeatureFlag_runtime_key(const envoy_api_v2_core_RuntimeFeatureFlag *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
478
envoy_api_v2_core_RuntimeFeatureFlag_set_default_value(envoy_api_v2_core_RuntimeFeatureFlag * msg,struct google_protobuf_BoolValue * value)479 UPB_INLINE void envoy_api_v2_core_RuntimeFeatureFlag_set_default_value(envoy_api_v2_core_RuntimeFeatureFlag *msg, struct google_protobuf_BoolValue* value) {
480 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_BoolValue*) = value;
481 }
envoy_api_v2_core_RuntimeFeatureFlag_mutable_default_value(envoy_api_v2_core_RuntimeFeatureFlag * msg,upb_arena * arena)482 UPB_INLINE struct google_protobuf_BoolValue* envoy_api_v2_core_RuntimeFeatureFlag_mutable_default_value(envoy_api_v2_core_RuntimeFeatureFlag *msg, upb_arena *arena) {
483 struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_api_v2_core_RuntimeFeatureFlag_default_value(msg);
484 if (sub == NULL) {
485 sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
486 if (!sub) return NULL;
487 envoy_api_v2_core_RuntimeFeatureFlag_set_default_value(msg, sub);
488 }
489 return sub;
490 }
envoy_api_v2_core_RuntimeFeatureFlag_set_runtime_key(envoy_api_v2_core_RuntimeFeatureFlag * msg,upb_strview value)491 UPB_INLINE void envoy_api_v2_core_RuntimeFeatureFlag_set_runtime_key(envoy_api_v2_core_RuntimeFeatureFlag *msg, upb_strview value) {
492 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
493 }
494
495 /* envoy.api.v2.core.HeaderValue */
496
envoy_api_v2_core_HeaderValue_new(upb_arena * arena)497 UPB_INLINE envoy_api_v2_core_HeaderValue *envoy_api_v2_core_HeaderValue_new(upb_arena *arena) {
498 return (envoy_api_v2_core_HeaderValue *)_upb_msg_new(&envoy_api_v2_core_HeaderValue_msginit, arena);
499 }
envoy_api_v2_core_HeaderValue_parse(const char * buf,size_t size,upb_arena * arena)500 UPB_INLINE envoy_api_v2_core_HeaderValue *envoy_api_v2_core_HeaderValue_parse(const char *buf, size_t size,
501 upb_arena *arena) {
502 envoy_api_v2_core_HeaderValue *ret = envoy_api_v2_core_HeaderValue_new(arena);
503 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_HeaderValue_msginit, arena)) ? ret : NULL;
504 }
envoy_api_v2_core_HeaderValue_serialize(const envoy_api_v2_core_HeaderValue * msg,upb_arena * arena,size_t * len)505 UPB_INLINE char *envoy_api_v2_core_HeaderValue_serialize(const envoy_api_v2_core_HeaderValue *msg, upb_arena *arena, size_t *len) {
506 return upb_encode(msg, &envoy_api_v2_core_HeaderValue_msginit, arena, len);
507 }
508
envoy_api_v2_core_HeaderValue_key(const envoy_api_v2_core_HeaderValue * msg)509 UPB_INLINE upb_strview envoy_api_v2_core_HeaderValue_key(const envoy_api_v2_core_HeaderValue *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
envoy_api_v2_core_HeaderValue_value(const envoy_api_v2_core_HeaderValue * msg)510 UPB_INLINE upb_strview envoy_api_v2_core_HeaderValue_value(const envoy_api_v2_core_HeaderValue *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview); }
511
envoy_api_v2_core_HeaderValue_set_key(envoy_api_v2_core_HeaderValue * msg,upb_strview value)512 UPB_INLINE void envoy_api_v2_core_HeaderValue_set_key(envoy_api_v2_core_HeaderValue *msg, upb_strview value) {
513 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
514 }
envoy_api_v2_core_HeaderValue_set_value(envoy_api_v2_core_HeaderValue * msg,upb_strview value)515 UPB_INLINE void envoy_api_v2_core_HeaderValue_set_value(envoy_api_v2_core_HeaderValue *msg, upb_strview value) {
516 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview) = value;
517 }
518
519 /* envoy.api.v2.core.HeaderValueOption */
520
envoy_api_v2_core_HeaderValueOption_new(upb_arena * arena)521 UPB_INLINE envoy_api_v2_core_HeaderValueOption *envoy_api_v2_core_HeaderValueOption_new(upb_arena *arena) {
522 return (envoy_api_v2_core_HeaderValueOption *)_upb_msg_new(&envoy_api_v2_core_HeaderValueOption_msginit, arena);
523 }
envoy_api_v2_core_HeaderValueOption_parse(const char * buf,size_t size,upb_arena * arena)524 UPB_INLINE envoy_api_v2_core_HeaderValueOption *envoy_api_v2_core_HeaderValueOption_parse(const char *buf, size_t size,
525 upb_arena *arena) {
526 envoy_api_v2_core_HeaderValueOption *ret = envoy_api_v2_core_HeaderValueOption_new(arena);
527 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_HeaderValueOption_msginit, arena)) ? ret : NULL;
528 }
envoy_api_v2_core_HeaderValueOption_serialize(const envoy_api_v2_core_HeaderValueOption * msg,upb_arena * arena,size_t * len)529 UPB_INLINE char *envoy_api_v2_core_HeaderValueOption_serialize(const envoy_api_v2_core_HeaderValueOption *msg, upb_arena *arena, size_t *len) {
530 return upb_encode(msg, &envoy_api_v2_core_HeaderValueOption_msginit, arena, len);
531 }
532
envoy_api_v2_core_HeaderValueOption_has_header(const envoy_api_v2_core_HeaderValueOption * msg)533 UPB_INLINE bool envoy_api_v2_core_HeaderValueOption_has_header(const envoy_api_v2_core_HeaderValueOption *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
envoy_api_v2_core_HeaderValueOption_header(const envoy_api_v2_core_HeaderValueOption * msg)534 UPB_INLINE const envoy_api_v2_core_HeaderValue* envoy_api_v2_core_HeaderValueOption_header(const envoy_api_v2_core_HeaderValueOption *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), const envoy_api_v2_core_HeaderValue*); }
envoy_api_v2_core_HeaderValueOption_has_append(const envoy_api_v2_core_HeaderValueOption * msg)535 UPB_INLINE bool envoy_api_v2_core_HeaderValueOption_has_append(const envoy_api_v2_core_HeaderValueOption *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); }
envoy_api_v2_core_HeaderValueOption_append(const envoy_api_v2_core_HeaderValueOption * msg)536 UPB_INLINE const struct google_protobuf_BoolValue* envoy_api_v2_core_HeaderValueOption_append(const envoy_api_v2_core_HeaderValueOption *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_BoolValue*); }
537
envoy_api_v2_core_HeaderValueOption_set_header(envoy_api_v2_core_HeaderValueOption * msg,envoy_api_v2_core_HeaderValue * value)538 UPB_INLINE void envoy_api_v2_core_HeaderValueOption_set_header(envoy_api_v2_core_HeaderValueOption *msg, envoy_api_v2_core_HeaderValue* value) {
539 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), envoy_api_v2_core_HeaderValue*) = value;
540 }
envoy_api_v2_core_HeaderValueOption_mutable_header(envoy_api_v2_core_HeaderValueOption * msg,upb_arena * arena)541 UPB_INLINE struct envoy_api_v2_core_HeaderValue* envoy_api_v2_core_HeaderValueOption_mutable_header(envoy_api_v2_core_HeaderValueOption *msg, upb_arena *arena) {
542 struct envoy_api_v2_core_HeaderValue* sub = (struct envoy_api_v2_core_HeaderValue*)envoy_api_v2_core_HeaderValueOption_header(msg);
543 if (sub == NULL) {
544 sub = (struct envoy_api_v2_core_HeaderValue*)_upb_msg_new(&envoy_api_v2_core_HeaderValue_msginit, arena);
545 if (!sub) return NULL;
546 envoy_api_v2_core_HeaderValueOption_set_header(msg, sub);
547 }
548 return sub;
549 }
envoy_api_v2_core_HeaderValueOption_set_append(envoy_api_v2_core_HeaderValueOption * msg,struct google_protobuf_BoolValue * value)550 UPB_INLINE void envoy_api_v2_core_HeaderValueOption_set_append(envoy_api_v2_core_HeaderValueOption *msg, struct google_protobuf_BoolValue* value) {
551 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_BoolValue*) = value;
552 }
envoy_api_v2_core_HeaderValueOption_mutable_append(envoy_api_v2_core_HeaderValueOption * msg,upb_arena * arena)553 UPB_INLINE struct google_protobuf_BoolValue* envoy_api_v2_core_HeaderValueOption_mutable_append(envoy_api_v2_core_HeaderValueOption *msg, upb_arena *arena) {
554 struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_api_v2_core_HeaderValueOption_append(msg);
555 if (sub == NULL) {
556 sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
557 if (!sub) return NULL;
558 envoy_api_v2_core_HeaderValueOption_set_append(msg, sub);
559 }
560 return sub;
561 }
562
563 /* envoy.api.v2.core.HeaderMap */
564
envoy_api_v2_core_HeaderMap_new(upb_arena * arena)565 UPB_INLINE envoy_api_v2_core_HeaderMap *envoy_api_v2_core_HeaderMap_new(upb_arena *arena) {
566 return (envoy_api_v2_core_HeaderMap *)_upb_msg_new(&envoy_api_v2_core_HeaderMap_msginit, arena);
567 }
envoy_api_v2_core_HeaderMap_parse(const char * buf,size_t size,upb_arena * arena)568 UPB_INLINE envoy_api_v2_core_HeaderMap *envoy_api_v2_core_HeaderMap_parse(const char *buf, size_t size,
569 upb_arena *arena) {
570 envoy_api_v2_core_HeaderMap *ret = envoy_api_v2_core_HeaderMap_new(arena);
571 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_HeaderMap_msginit, arena)) ? ret : NULL;
572 }
envoy_api_v2_core_HeaderMap_serialize(const envoy_api_v2_core_HeaderMap * msg,upb_arena * arena,size_t * len)573 UPB_INLINE char *envoy_api_v2_core_HeaderMap_serialize(const envoy_api_v2_core_HeaderMap *msg, upb_arena *arena, size_t *len) {
574 return upb_encode(msg, &envoy_api_v2_core_HeaderMap_msginit, arena, len);
575 }
576
envoy_api_v2_core_HeaderMap_has_headers(const envoy_api_v2_core_HeaderMap * msg)577 UPB_INLINE bool envoy_api_v2_core_HeaderMap_has_headers(const envoy_api_v2_core_HeaderMap *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
envoy_api_v2_core_HeaderMap_headers(const envoy_api_v2_core_HeaderMap * msg,size_t * len)578 UPB_INLINE const envoy_api_v2_core_HeaderValue* const* envoy_api_v2_core_HeaderMap_headers(const envoy_api_v2_core_HeaderMap *msg, size_t *len) { return (const envoy_api_v2_core_HeaderValue* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); }
579
envoy_api_v2_core_HeaderMap_mutable_headers(envoy_api_v2_core_HeaderMap * msg,size_t * len)580 UPB_INLINE envoy_api_v2_core_HeaderValue** envoy_api_v2_core_HeaderMap_mutable_headers(envoy_api_v2_core_HeaderMap *msg, size_t *len) {
581 return (envoy_api_v2_core_HeaderValue**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len);
582 }
envoy_api_v2_core_HeaderMap_resize_headers(envoy_api_v2_core_HeaderMap * msg,size_t len,upb_arena * arena)583 UPB_INLINE envoy_api_v2_core_HeaderValue** envoy_api_v2_core_HeaderMap_resize_headers(envoy_api_v2_core_HeaderMap *msg, size_t len, upb_arena *arena) {
584 return (envoy_api_v2_core_HeaderValue**)_upb_array_resize_accessor(msg, UPB_SIZE(0, 0), len, UPB_TYPE_MESSAGE, arena);
585 }
envoy_api_v2_core_HeaderMap_add_headers(envoy_api_v2_core_HeaderMap * msg,upb_arena * arena)586 UPB_INLINE struct envoy_api_v2_core_HeaderValue* envoy_api_v2_core_HeaderMap_add_headers(envoy_api_v2_core_HeaderMap *msg, upb_arena *arena) {
587 struct envoy_api_v2_core_HeaderValue* sub = (struct envoy_api_v2_core_HeaderValue*)_upb_msg_new(&envoy_api_v2_core_HeaderValue_msginit, arena);
588 bool ok = _upb_array_append_accessor(
589 msg, UPB_SIZE(0, 0), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
590 if (!ok) return NULL;
591 return sub;
592 }
593
594 /* envoy.api.v2.core.DataSource */
595
envoy_api_v2_core_DataSource_new(upb_arena * arena)596 UPB_INLINE envoy_api_v2_core_DataSource *envoy_api_v2_core_DataSource_new(upb_arena *arena) {
597 return (envoy_api_v2_core_DataSource *)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena);
598 }
envoy_api_v2_core_DataSource_parse(const char * buf,size_t size,upb_arena * arena)599 UPB_INLINE envoy_api_v2_core_DataSource *envoy_api_v2_core_DataSource_parse(const char *buf, size_t size,
600 upb_arena *arena) {
601 envoy_api_v2_core_DataSource *ret = envoy_api_v2_core_DataSource_new(arena);
602 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_DataSource_msginit, arena)) ? ret : NULL;
603 }
envoy_api_v2_core_DataSource_serialize(const envoy_api_v2_core_DataSource * msg,upb_arena * arena,size_t * len)604 UPB_INLINE char *envoy_api_v2_core_DataSource_serialize(const envoy_api_v2_core_DataSource *msg, upb_arena *arena, size_t *len) {
605 return upb_encode(msg, &envoy_api_v2_core_DataSource_msginit, arena, len);
606 }
607
608 typedef enum {
609 envoy_api_v2_core_DataSource_specifier_filename = 1,
610 envoy_api_v2_core_DataSource_specifier_inline_bytes = 2,
611 envoy_api_v2_core_DataSource_specifier_inline_string = 3,
612 envoy_api_v2_core_DataSource_specifier_NOT_SET = 0
613 } envoy_api_v2_core_DataSource_specifier_oneofcases;
envoy_api_v2_core_DataSource_specifier_case(const envoy_api_v2_core_DataSource * msg)614 UPB_INLINE envoy_api_v2_core_DataSource_specifier_oneofcases envoy_api_v2_core_DataSource_specifier_case(const envoy_api_v2_core_DataSource* msg) { return (envoy_api_v2_core_DataSource_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(8, 16), int32_t); }
615
envoy_api_v2_core_DataSource_has_filename(const envoy_api_v2_core_DataSource * msg)616 UPB_INLINE bool envoy_api_v2_core_DataSource_has_filename(const envoy_api_v2_core_DataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 1; }
envoy_api_v2_core_DataSource_filename(const envoy_api_v2_core_DataSource * msg)617 UPB_INLINE upb_strview envoy_api_v2_core_DataSource_filename(const envoy_api_v2_core_DataSource *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 1, upb_strview_make("", strlen(""))); }
envoy_api_v2_core_DataSource_has_inline_bytes(const envoy_api_v2_core_DataSource * msg)618 UPB_INLINE bool envoy_api_v2_core_DataSource_has_inline_bytes(const envoy_api_v2_core_DataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 2; }
envoy_api_v2_core_DataSource_inline_bytes(const envoy_api_v2_core_DataSource * msg)619 UPB_INLINE upb_strview envoy_api_v2_core_DataSource_inline_bytes(const envoy_api_v2_core_DataSource *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 2, upb_strview_make("", strlen(""))); }
envoy_api_v2_core_DataSource_has_inline_string(const envoy_api_v2_core_DataSource * msg)620 UPB_INLINE bool envoy_api_v2_core_DataSource_has_inline_string(const envoy_api_v2_core_DataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 3; }
envoy_api_v2_core_DataSource_inline_string(const envoy_api_v2_core_DataSource * msg)621 UPB_INLINE upb_strview envoy_api_v2_core_DataSource_inline_string(const envoy_api_v2_core_DataSource *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 3, upb_strview_make("", strlen(""))); }
622
envoy_api_v2_core_DataSource_set_filename(envoy_api_v2_core_DataSource * msg,upb_strview value)623 UPB_INLINE void envoy_api_v2_core_DataSource_set_filename(envoy_api_v2_core_DataSource *msg, upb_strview value) {
624 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 1);
625 }
envoy_api_v2_core_DataSource_set_inline_bytes(envoy_api_v2_core_DataSource * msg,upb_strview value)626 UPB_INLINE void envoy_api_v2_core_DataSource_set_inline_bytes(envoy_api_v2_core_DataSource *msg, upb_strview value) {
627 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 2);
628 }
envoy_api_v2_core_DataSource_set_inline_string(envoy_api_v2_core_DataSource * msg,upb_strview value)629 UPB_INLINE void envoy_api_v2_core_DataSource_set_inline_string(envoy_api_v2_core_DataSource *msg, upb_strview value) {
630 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 3);
631 }
632
633 /* envoy.api.v2.core.RetryPolicy */
634
envoy_api_v2_core_RetryPolicy_new(upb_arena * arena)635 UPB_INLINE envoy_api_v2_core_RetryPolicy *envoy_api_v2_core_RetryPolicy_new(upb_arena *arena) {
636 return (envoy_api_v2_core_RetryPolicy *)_upb_msg_new(&envoy_api_v2_core_RetryPolicy_msginit, arena);
637 }
envoy_api_v2_core_RetryPolicy_parse(const char * buf,size_t size,upb_arena * arena)638 UPB_INLINE envoy_api_v2_core_RetryPolicy *envoy_api_v2_core_RetryPolicy_parse(const char *buf, size_t size,
639 upb_arena *arena) {
640 envoy_api_v2_core_RetryPolicy *ret = envoy_api_v2_core_RetryPolicy_new(arena);
641 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RetryPolicy_msginit, arena)) ? ret : NULL;
642 }
envoy_api_v2_core_RetryPolicy_serialize(const envoy_api_v2_core_RetryPolicy * msg,upb_arena * arena,size_t * len)643 UPB_INLINE char *envoy_api_v2_core_RetryPolicy_serialize(const envoy_api_v2_core_RetryPolicy *msg, upb_arena *arena, size_t *len) {
644 return upb_encode(msg, &envoy_api_v2_core_RetryPolicy_msginit, arena, len);
645 }
646
envoy_api_v2_core_RetryPolicy_has_retry_back_off(const envoy_api_v2_core_RetryPolicy * msg)647 UPB_INLINE bool envoy_api_v2_core_RetryPolicy_has_retry_back_off(const envoy_api_v2_core_RetryPolicy *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
envoy_api_v2_core_RetryPolicy_retry_back_off(const envoy_api_v2_core_RetryPolicy * msg)648 UPB_INLINE const struct envoy_api_v2_core_BackoffStrategy* envoy_api_v2_core_RetryPolicy_retry_back_off(const envoy_api_v2_core_RetryPolicy *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), const struct envoy_api_v2_core_BackoffStrategy*); }
envoy_api_v2_core_RetryPolicy_has_num_retries(const envoy_api_v2_core_RetryPolicy * msg)649 UPB_INLINE bool envoy_api_v2_core_RetryPolicy_has_num_retries(const envoy_api_v2_core_RetryPolicy *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); }
envoy_api_v2_core_RetryPolicy_num_retries(const envoy_api_v2_core_RetryPolicy * msg)650 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_api_v2_core_RetryPolicy_num_retries(const envoy_api_v2_core_RetryPolicy *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_UInt32Value*); }
651
envoy_api_v2_core_RetryPolicy_set_retry_back_off(envoy_api_v2_core_RetryPolicy * msg,struct envoy_api_v2_core_BackoffStrategy * value)652 UPB_INLINE void envoy_api_v2_core_RetryPolicy_set_retry_back_off(envoy_api_v2_core_RetryPolicy *msg, struct envoy_api_v2_core_BackoffStrategy* value) {
653 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), struct envoy_api_v2_core_BackoffStrategy*) = value;
654 }
envoy_api_v2_core_RetryPolicy_mutable_retry_back_off(envoy_api_v2_core_RetryPolicy * msg,upb_arena * arena)655 UPB_INLINE struct envoy_api_v2_core_BackoffStrategy* envoy_api_v2_core_RetryPolicy_mutable_retry_back_off(envoy_api_v2_core_RetryPolicy *msg, upb_arena *arena) {
656 struct envoy_api_v2_core_BackoffStrategy* sub = (struct envoy_api_v2_core_BackoffStrategy*)envoy_api_v2_core_RetryPolicy_retry_back_off(msg);
657 if (sub == NULL) {
658 sub = (struct envoy_api_v2_core_BackoffStrategy*)_upb_msg_new(&envoy_api_v2_core_BackoffStrategy_msginit, arena);
659 if (!sub) return NULL;
660 envoy_api_v2_core_RetryPolicy_set_retry_back_off(msg, sub);
661 }
662 return sub;
663 }
envoy_api_v2_core_RetryPolicy_set_num_retries(envoy_api_v2_core_RetryPolicy * msg,struct google_protobuf_UInt32Value * value)664 UPB_INLINE void envoy_api_v2_core_RetryPolicy_set_num_retries(envoy_api_v2_core_RetryPolicy *msg, struct google_protobuf_UInt32Value* value) {
665 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_UInt32Value*) = value;
666 }
envoy_api_v2_core_RetryPolicy_mutable_num_retries(envoy_api_v2_core_RetryPolicy * msg,upb_arena * arena)667 UPB_INLINE struct google_protobuf_UInt32Value* envoy_api_v2_core_RetryPolicy_mutable_num_retries(envoy_api_v2_core_RetryPolicy *msg, upb_arena *arena) {
668 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_api_v2_core_RetryPolicy_num_retries(msg);
669 if (sub == NULL) {
670 sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
671 if (!sub) return NULL;
672 envoy_api_v2_core_RetryPolicy_set_num_retries(msg, sub);
673 }
674 return sub;
675 }
676
677 /* envoy.api.v2.core.RemoteDataSource */
678
envoy_api_v2_core_RemoteDataSource_new(upb_arena * arena)679 UPB_INLINE envoy_api_v2_core_RemoteDataSource *envoy_api_v2_core_RemoteDataSource_new(upb_arena *arena) {
680 return (envoy_api_v2_core_RemoteDataSource *)_upb_msg_new(&envoy_api_v2_core_RemoteDataSource_msginit, arena);
681 }
envoy_api_v2_core_RemoteDataSource_parse(const char * buf,size_t size,upb_arena * arena)682 UPB_INLINE envoy_api_v2_core_RemoteDataSource *envoy_api_v2_core_RemoteDataSource_parse(const char *buf, size_t size,
683 upb_arena *arena) {
684 envoy_api_v2_core_RemoteDataSource *ret = envoy_api_v2_core_RemoteDataSource_new(arena);
685 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RemoteDataSource_msginit, arena)) ? ret : NULL;
686 }
envoy_api_v2_core_RemoteDataSource_serialize(const envoy_api_v2_core_RemoteDataSource * msg,upb_arena * arena,size_t * len)687 UPB_INLINE char *envoy_api_v2_core_RemoteDataSource_serialize(const envoy_api_v2_core_RemoteDataSource *msg, upb_arena *arena, size_t *len) {
688 return upb_encode(msg, &envoy_api_v2_core_RemoteDataSource_msginit, arena, len);
689 }
690
envoy_api_v2_core_RemoteDataSource_has_http_uri(const envoy_api_v2_core_RemoteDataSource * msg)691 UPB_INLINE bool envoy_api_v2_core_RemoteDataSource_has_http_uri(const envoy_api_v2_core_RemoteDataSource *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
envoy_api_v2_core_RemoteDataSource_http_uri(const envoy_api_v2_core_RemoteDataSource * msg)692 UPB_INLINE const struct envoy_api_v2_core_HttpUri* envoy_api_v2_core_RemoteDataSource_http_uri(const envoy_api_v2_core_RemoteDataSource *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct envoy_api_v2_core_HttpUri*); }
envoy_api_v2_core_RemoteDataSource_sha256(const envoy_api_v2_core_RemoteDataSource * msg)693 UPB_INLINE upb_strview envoy_api_v2_core_RemoteDataSource_sha256(const envoy_api_v2_core_RemoteDataSource *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
envoy_api_v2_core_RemoteDataSource_has_retry_policy(const envoy_api_v2_core_RemoteDataSource * msg)694 UPB_INLINE bool envoy_api_v2_core_RemoteDataSource_has_retry_policy(const envoy_api_v2_core_RemoteDataSource *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 24)); }
envoy_api_v2_core_RemoteDataSource_retry_policy(const envoy_api_v2_core_RemoteDataSource * msg)695 UPB_INLINE const envoy_api_v2_core_RetryPolicy* envoy_api_v2_core_RemoteDataSource_retry_policy(const envoy_api_v2_core_RemoteDataSource *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const envoy_api_v2_core_RetryPolicy*); }
696
envoy_api_v2_core_RemoteDataSource_set_http_uri(envoy_api_v2_core_RemoteDataSource * msg,struct envoy_api_v2_core_HttpUri * value)697 UPB_INLINE void envoy_api_v2_core_RemoteDataSource_set_http_uri(envoy_api_v2_core_RemoteDataSource *msg, struct envoy_api_v2_core_HttpUri* value) {
698 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct envoy_api_v2_core_HttpUri*) = value;
699 }
envoy_api_v2_core_RemoteDataSource_mutable_http_uri(envoy_api_v2_core_RemoteDataSource * msg,upb_arena * arena)700 UPB_INLINE struct envoy_api_v2_core_HttpUri* envoy_api_v2_core_RemoteDataSource_mutable_http_uri(envoy_api_v2_core_RemoteDataSource *msg, upb_arena *arena) {
701 struct envoy_api_v2_core_HttpUri* sub = (struct envoy_api_v2_core_HttpUri*)envoy_api_v2_core_RemoteDataSource_http_uri(msg);
702 if (sub == NULL) {
703 sub = (struct envoy_api_v2_core_HttpUri*)_upb_msg_new(&envoy_api_v2_core_HttpUri_msginit, arena);
704 if (!sub) return NULL;
705 envoy_api_v2_core_RemoteDataSource_set_http_uri(msg, sub);
706 }
707 return sub;
708 }
envoy_api_v2_core_RemoteDataSource_set_sha256(envoy_api_v2_core_RemoteDataSource * msg,upb_strview value)709 UPB_INLINE void envoy_api_v2_core_RemoteDataSource_set_sha256(envoy_api_v2_core_RemoteDataSource *msg, upb_strview value) {
710 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
711 }
envoy_api_v2_core_RemoteDataSource_set_retry_policy(envoy_api_v2_core_RemoteDataSource * msg,envoy_api_v2_core_RetryPolicy * value)712 UPB_INLINE void envoy_api_v2_core_RemoteDataSource_set_retry_policy(envoy_api_v2_core_RemoteDataSource *msg, envoy_api_v2_core_RetryPolicy* value) {
713 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), envoy_api_v2_core_RetryPolicy*) = value;
714 }
envoy_api_v2_core_RemoteDataSource_mutable_retry_policy(envoy_api_v2_core_RemoteDataSource * msg,upb_arena * arena)715 UPB_INLINE struct envoy_api_v2_core_RetryPolicy* envoy_api_v2_core_RemoteDataSource_mutable_retry_policy(envoy_api_v2_core_RemoteDataSource *msg, upb_arena *arena) {
716 struct envoy_api_v2_core_RetryPolicy* sub = (struct envoy_api_v2_core_RetryPolicy*)envoy_api_v2_core_RemoteDataSource_retry_policy(msg);
717 if (sub == NULL) {
718 sub = (struct envoy_api_v2_core_RetryPolicy*)_upb_msg_new(&envoy_api_v2_core_RetryPolicy_msginit, arena);
719 if (!sub) return NULL;
720 envoy_api_v2_core_RemoteDataSource_set_retry_policy(msg, sub);
721 }
722 return sub;
723 }
724
725 /* envoy.api.v2.core.AsyncDataSource */
726
envoy_api_v2_core_AsyncDataSource_new(upb_arena * arena)727 UPB_INLINE envoy_api_v2_core_AsyncDataSource *envoy_api_v2_core_AsyncDataSource_new(upb_arena *arena) {
728 return (envoy_api_v2_core_AsyncDataSource *)_upb_msg_new(&envoy_api_v2_core_AsyncDataSource_msginit, arena);
729 }
envoy_api_v2_core_AsyncDataSource_parse(const char * buf,size_t size,upb_arena * arena)730 UPB_INLINE envoy_api_v2_core_AsyncDataSource *envoy_api_v2_core_AsyncDataSource_parse(const char *buf, size_t size,
731 upb_arena *arena) {
732 envoy_api_v2_core_AsyncDataSource *ret = envoy_api_v2_core_AsyncDataSource_new(arena);
733 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_AsyncDataSource_msginit, arena)) ? ret : NULL;
734 }
envoy_api_v2_core_AsyncDataSource_serialize(const envoy_api_v2_core_AsyncDataSource * msg,upb_arena * arena,size_t * len)735 UPB_INLINE char *envoy_api_v2_core_AsyncDataSource_serialize(const envoy_api_v2_core_AsyncDataSource *msg, upb_arena *arena, size_t *len) {
736 return upb_encode(msg, &envoy_api_v2_core_AsyncDataSource_msginit, arena, len);
737 }
738
739 typedef enum {
740 envoy_api_v2_core_AsyncDataSource_specifier_local = 1,
741 envoy_api_v2_core_AsyncDataSource_specifier_remote = 2,
742 envoy_api_v2_core_AsyncDataSource_specifier_NOT_SET = 0
743 } envoy_api_v2_core_AsyncDataSource_specifier_oneofcases;
envoy_api_v2_core_AsyncDataSource_specifier_case(const envoy_api_v2_core_AsyncDataSource * msg)744 UPB_INLINE envoy_api_v2_core_AsyncDataSource_specifier_oneofcases envoy_api_v2_core_AsyncDataSource_specifier_case(const envoy_api_v2_core_AsyncDataSource* msg) { return (envoy_api_v2_core_AsyncDataSource_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(4, 8), int32_t); }
745
envoy_api_v2_core_AsyncDataSource_has_local(const envoy_api_v2_core_AsyncDataSource * msg)746 UPB_INLINE bool envoy_api_v2_core_AsyncDataSource_has_local(const envoy_api_v2_core_AsyncDataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 1; }
envoy_api_v2_core_AsyncDataSource_local(const envoy_api_v2_core_AsyncDataSource * msg)747 UPB_INLINE const envoy_api_v2_core_DataSource* envoy_api_v2_core_AsyncDataSource_local(const envoy_api_v2_core_AsyncDataSource *msg) { return UPB_READ_ONEOF(msg, const envoy_api_v2_core_DataSource*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 1, NULL); }
envoy_api_v2_core_AsyncDataSource_has_remote(const envoy_api_v2_core_AsyncDataSource * msg)748 UPB_INLINE bool envoy_api_v2_core_AsyncDataSource_has_remote(const envoy_api_v2_core_AsyncDataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 2; }
envoy_api_v2_core_AsyncDataSource_remote(const envoy_api_v2_core_AsyncDataSource * msg)749 UPB_INLINE const envoy_api_v2_core_RemoteDataSource* envoy_api_v2_core_AsyncDataSource_remote(const envoy_api_v2_core_AsyncDataSource *msg) { return UPB_READ_ONEOF(msg, const envoy_api_v2_core_RemoteDataSource*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 2, NULL); }
750
envoy_api_v2_core_AsyncDataSource_set_local(envoy_api_v2_core_AsyncDataSource * msg,envoy_api_v2_core_DataSource * value)751 UPB_INLINE void envoy_api_v2_core_AsyncDataSource_set_local(envoy_api_v2_core_AsyncDataSource *msg, envoy_api_v2_core_DataSource* value) {
752 UPB_WRITE_ONEOF(msg, envoy_api_v2_core_DataSource*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 1);
753 }
envoy_api_v2_core_AsyncDataSource_mutable_local(envoy_api_v2_core_AsyncDataSource * msg,upb_arena * arena)754 UPB_INLINE struct envoy_api_v2_core_DataSource* envoy_api_v2_core_AsyncDataSource_mutable_local(envoy_api_v2_core_AsyncDataSource *msg, upb_arena *arena) {
755 struct envoy_api_v2_core_DataSource* sub = (struct envoy_api_v2_core_DataSource*)envoy_api_v2_core_AsyncDataSource_local(msg);
756 if (sub == NULL) {
757 sub = (struct envoy_api_v2_core_DataSource*)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena);
758 if (!sub) return NULL;
759 envoy_api_v2_core_AsyncDataSource_set_local(msg, sub);
760 }
761 return sub;
762 }
envoy_api_v2_core_AsyncDataSource_set_remote(envoy_api_v2_core_AsyncDataSource * msg,envoy_api_v2_core_RemoteDataSource * value)763 UPB_INLINE void envoy_api_v2_core_AsyncDataSource_set_remote(envoy_api_v2_core_AsyncDataSource *msg, envoy_api_v2_core_RemoteDataSource* value) {
764 UPB_WRITE_ONEOF(msg, envoy_api_v2_core_RemoteDataSource*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 2);
765 }
envoy_api_v2_core_AsyncDataSource_mutable_remote(envoy_api_v2_core_AsyncDataSource * msg,upb_arena * arena)766 UPB_INLINE struct envoy_api_v2_core_RemoteDataSource* envoy_api_v2_core_AsyncDataSource_mutable_remote(envoy_api_v2_core_AsyncDataSource *msg, upb_arena *arena) {
767 struct envoy_api_v2_core_RemoteDataSource* sub = (struct envoy_api_v2_core_RemoteDataSource*)envoy_api_v2_core_AsyncDataSource_remote(msg);
768 if (sub == NULL) {
769 sub = (struct envoy_api_v2_core_RemoteDataSource*)_upb_msg_new(&envoy_api_v2_core_RemoteDataSource_msginit, arena);
770 if (!sub) return NULL;
771 envoy_api_v2_core_AsyncDataSource_set_remote(msg, sub);
772 }
773 return sub;
774 }
775
776 /* envoy.api.v2.core.TransportSocket */
777
envoy_api_v2_core_TransportSocket_new(upb_arena * arena)778 UPB_INLINE envoy_api_v2_core_TransportSocket *envoy_api_v2_core_TransportSocket_new(upb_arena *arena) {
779 return (envoy_api_v2_core_TransportSocket *)_upb_msg_new(&envoy_api_v2_core_TransportSocket_msginit, arena);
780 }
envoy_api_v2_core_TransportSocket_parse(const char * buf,size_t size,upb_arena * arena)781 UPB_INLINE envoy_api_v2_core_TransportSocket *envoy_api_v2_core_TransportSocket_parse(const char *buf, size_t size,
782 upb_arena *arena) {
783 envoy_api_v2_core_TransportSocket *ret = envoy_api_v2_core_TransportSocket_new(arena);
784 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_TransportSocket_msginit, arena)) ? ret : NULL;
785 }
envoy_api_v2_core_TransportSocket_serialize(const envoy_api_v2_core_TransportSocket * msg,upb_arena * arena,size_t * len)786 UPB_INLINE char *envoy_api_v2_core_TransportSocket_serialize(const envoy_api_v2_core_TransportSocket *msg, upb_arena *arena, size_t *len) {
787 return upb_encode(msg, &envoy_api_v2_core_TransportSocket_msginit, arena, len);
788 }
789
790 typedef enum {
791 envoy_api_v2_core_TransportSocket_config_type_config = 2,
792 envoy_api_v2_core_TransportSocket_config_type_typed_config = 3,
793 envoy_api_v2_core_TransportSocket_config_type_NOT_SET = 0
794 } envoy_api_v2_core_TransportSocket_config_type_oneofcases;
envoy_api_v2_core_TransportSocket_config_type_case(const envoy_api_v2_core_TransportSocket * msg)795 UPB_INLINE envoy_api_v2_core_TransportSocket_config_type_oneofcases envoy_api_v2_core_TransportSocket_config_type_case(const envoy_api_v2_core_TransportSocket* msg) { return (envoy_api_v2_core_TransportSocket_config_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(12, 24), int32_t); }
796
envoy_api_v2_core_TransportSocket_name(const envoy_api_v2_core_TransportSocket * msg)797 UPB_INLINE upb_strview envoy_api_v2_core_TransportSocket_name(const envoy_api_v2_core_TransportSocket *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
envoy_api_v2_core_TransportSocket_has_config(const envoy_api_v2_core_TransportSocket * msg)798 UPB_INLINE bool envoy_api_v2_core_TransportSocket_has_config(const envoy_api_v2_core_TransportSocket *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 2; }
envoy_api_v2_core_TransportSocket_config(const envoy_api_v2_core_TransportSocket * msg)799 UPB_INLINE const struct google_protobuf_Struct* envoy_api_v2_core_TransportSocket_config(const envoy_api_v2_core_TransportSocket *msg) { return UPB_READ_ONEOF(msg, const struct google_protobuf_Struct*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 2, NULL); }
envoy_api_v2_core_TransportSocket_has_typed_config(const envoy_api_v2_core_TransportSocket * msg)800 UPB_INLINE bool envoy_api_v2_core_TransportSocket_has_typed_config(const envoy_api_v2_core_TransportSocket *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 3; }
envoy_api_v2_core_TransportSocket_typed_config(const envoy_api_v2_core_TransportSocket * msg)801 UPB_INLINE const struct google_protobuf_Any* envoy_api_v2_core_TransportSocket_typed_config(const envoy_api_v2_core_TransportSocket *msg) { return UPB_READ_ONEOF(msg, const struct google_protobuf_Any*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 3, NULL); }
802
envoy_api_v2_core_TransportSocket_set_name(envoy_api_v2_core_TransportSocket * msg,upb_strview value)803 UPB_INLINE void envoy_api_v2_core_TransportSocket_set_name(envoy_api_v2_core_TransportSocket *msg, upb_strview value) {
804 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
805 }
envoy_api_v2_core_TransportSocket_set_config(envoy_api_v2_core_TransportSocket * msg,struct google_protobuf_Struct * value)806 UPB_INLINE void envoy_api_v2_core_TransportSocket_set_config(envoy_api_v2_core_TransportSocket *msg, struct google_protobuf_Struct* value) {
807 UPB_WRITE_ONEOF(msg, struct google_protobuf_Struct*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 2);
808 }
envoy_api_v2_core_TransportSocket_mutable_config(envoy_api_v2_core_TransportSocket * msg,upb_arena * arena)809 UPB_INLINE struct google_protobuf_Struct* envoy_api_v2_core_TransportSocket_mutable_config(envoy_api_v2_core_TransportSocket *msg, upb_arena *arena) {
810 struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_api_v2_core_TransportSocket_config(msg);
811 if (sub == NULL) {
812 sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena);
813 if (!sub) return NULL;
814 envoy_api_v2_core_TransportSocket_set_config(msg, sub);
815 }
816 return sub;
817 }
envoy_api_v2_core_TransportSocket_set_typed_config(envoy_api_v2_core_TransportSocket * msg,struct google_protobuf_Any * value)818 UPB_INLINE void envoy_api_v2_core_TransportSocket_set_typed_config(envoy_api_v2_core_TransportSocket *msg, struct google_protobuf_Any* value) {
819 UPB_WRITE_ONEOF(msg, struct google_protobuf_Any*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 3);
820 }
envoy_api_v2_core_TransportSocket_mutable_typed_config(envoy_api_v2_core_TransportSocket * msg,upb_arena * arena)821 UPB_INLINE struct google_protobuf_Any* envoy_api_v2_core_TransportSocket_mutable_typed_config(envoy_api_v2_core_TransportSocket *msg, upb_arena *arena) {
822 struct google_protobuf_Any* sub = (struct google_protobuf_Any*)envoy_api_v2_core_TransportSocket_typed_config(msg);
823 if (sub == NULL) {
824 sub = (struct google_protobuf_Any*)_upb_msg_new(&google_protobuf_Any_msginit, arena);
825 if (!sub) return NULL;
826 envoy_api_v2_core_TransportSocket_set_typed_config(msg, sub);
827 }
828 return sub;
829 }
830
831 /* envoy.api.v2.core.RuntimeFractionalPercent */
832
envoy_api_v2_core_RuntimeFractionalPercent_new(upb_arena * arena)833 UPB_INLINE envoy_api_v2_core_RuntimeFractionalPercent *envoy_api_v2_core_RuntimeFractionalPercent_new(upb_arena *arena) {
834 return (envoy_api_v2_core_RuntimeFractionalPercent *)_upb_msg_new(&envoy_api_v2_core_RuntimeFractionalPercent_msginit, arena);
835 }
envoy_api_v2_core_RuntimeFractionalPercent_parse(const char * buf,size_t size,upb_arena * arena)836 UPB_INLINE envoy_api_v2_core_RuntimeFractionalPercent *envoy_api_v2_core_RuntimeFractionalPercent_parse(const char *buf, size_t size,
837 upb_arena *arena) {
838 envoy_api_v2_core_RuntimeFractionalPercent *ret = envoy_api_v2_core_RuntimeFractionalPercent_new(arena);
839 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RuntimeFractionalPercent_msginit, arena)) ? ret : NULL;
840 }
envoy_api_v2_core_RuntimeFractionalPercent_serialize(const envoy_api_v2_core_RuntimeFractionalPercent * msg,upb_arena * arena,size_t * len)841 UPB_INLINE char *envoy_api_v2_core_RuntimeFractionalPercent_serialize(const envoy_api_v2_core_RuntimeFractionalPercent *msg, upb_arena *arena, size_t *len) {
842 return upb_encode(msg, &envoy_api_v2_core_RuntimeFractionalPercent_msginit, arena, len);
843 }
844
envoy_api_v2_core_RuntimeFractionalPercent_has_default_value(const envoy_api_v2_core_RuntimeFractionalPercent * msg)845 UPB_INLINE bool envoy_api_v2_core_RuntimeFractionalPercent_has_default_value(const envoy_api_v2_core_RuntimeFractionalPercent *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
envoy_api_v2_core_RuntimeFractionalPercent_default_value(const envoy_api_v2_core_RuntimeFractionalPercent * msg)846 UPB_INLINE const struct envoy_type_FractionalPercent* envoy_api_v2_core_RuntimeFractionalPercent_default_value(const envoy_api_v2_core_RuntimeFractionalPercent *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct envoy_type_FractionalPercent*); }
envoy_api_v2_core_RuntimeFractionalPercent_runtime_key(const envoy_api_v2_core_RuntimeFractionalPercent * msg)847 UPB_INLINE upb_strview envoy_api_v2_core_RuntimeFractionalPercent_runtime_key(const envoy_api_v2_core_RuntimeFractionalPercent *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
848
envoy_api_v2_core_RuntimeFractionalPercent_set_default_value(envoy_api_v2_core_RuntimeFractionalPercent * msg,struct envoy_type_FractionalPercent * value)849 UPB_INLINE void envoy_api_v2_core_RuntimeFractionalPercent_set_default_value(envoy_api_v2_core_RuntimeFractionalPercent *msg, struct envoy_type_FractionalPercent* value) {
850 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct envoy_type_FractionalPercent*) = value;
851 }
envoy_api_v2_core_RuntimeFractionalPercent_mutable_default_value(envoy_api_v2_core_RuntimeFractionalPercent * msg,upb_arena * arena)852 UPB_INLINE struct envoy_type_FractionalPercent* envoy_api_v2_core_RuntimeFractionalPercent_mutable_default_value(envoy_api_v2_core_RuntimeFractionalPercent *msg, upb_arena *arena) {
853 struct envoy_type_FractionalPercent* sub = (struct envoy_type_FractionalPercent*)envoy_api_v2_core_RuntimeFractionalPercent_default_value(msg);
854 if (sub == NULL) {
855 sub = (struct envoy_type_FractionalPercent*)_upb_msg_new(&envoy_type_FractionalPercent_msginit, arena);
856 if (!sub) return NULL;
857 envoy_api_v2_core_RuntimeFractionalPercent_set_default_value(msg, sub);
858 }
859 return sub;
860 }
envoy_api_v2_core_RuntimeFractionalPercent_set_runtime_key(envoy_api_v2_core_RuntimeFractionalPercent * msg,upb_strview value)861 UPB_INLINE void envoy_api_v2_core_RuntimeFractionalPercent_set_runtime_key(envoy_api_v2_core_RuntimeFractionalPercent *msg, upb_strview value) {
862 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
863 }
864
865 /* envoy.api.v2.core.ControlPlane */
866
envoy_api_v2_core_ControlPlane_new(upb_arena * arena)867 UPB_INLINE envoy_api_v2_core_ControlPlane *envoy_api_v2_core_ControlPlane_new(upb_arena *arena) {
868 return (envoy_api_v2_core_ControlPlane *)_upb_msg_new(&envoy_api_v2_core_ControlPlane_msginit, arena);
869 }
envoy_api_v2_core_ControlPlane_parse(const char * buf,size_t size,upb_arena * arena)870 UPB_INLINE envoy_api_v2_core_ControlPlane *envoy_api_v2_core_ControlPlane_parse(const char *buf, size_t size,
871 upb_arena *arena) {
872 envoy_api_v2_core_ControlPlane *ret = envoy_api_v2_core_ControlPlane_new(arena);
873 return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_ControlPlane_msginit, arena)) ? ret : NULL;
874 }
envoy_api_v2_core_ControlPlane_serialize(const envoy_api_v2_core_ControlPlane * msg,upb_arena * arena,size_t * len)875 UPB_INLINE char *envoy_api_v2_core_ControlPlane_serialize(const envoy_api_v2_core_ControlPlane *msg, upb_arena *arena, size_t *len) {
876 return upb_encode(msg, &envoy_api_v2_core_ControlPlane_msginit, arena, len);
877 }
878
envoy_api_v2_core_ControlPlane_identifier(const envoy_api_v2_core_ControlPlane * msg)879 UPB_INLINE upb_strview envoy_api_v2_core_ControlPlane_identifier(const envoy_api_v2_core_ControlPlane *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
880
envoy_api_v2_core_ControlPlane_set_identifier(envoy_api_v2_core_ControlPlane * msg,upb_strview value)881 UPB_INLINE void envoy_api_v2_core_ControlPlane_set_identifier(envoy_api_v2_core_ControlPlane *msg, upb_strview value) {
882 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
883 }
884
885 #ifdef __cplusplus
886 } /* extern "C" */
887 #endif
888
889 #include "upb/port_undef.inc"
890
891 #endif /* ENVOY_API_V2_CORE_BASE_PROTO_UPB_H_ */
892