GRPC Core  18.0.0
endpoint_components.upb.h
Go to the documentation of this file.
1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  * envoy/config/endpoint/v3/endpoint_components.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef ENVOY_CONFIG_ENDPOINT_V3_ENDPOINT_COMPONENTS_PROTO_UPB_H_
10 #define ENVOY_CONFIG_ENDPOINT_V3_ENDPOINT_COMPONENTS_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 
31 extern const upb_msglayout envoy_config_endpoint_v3_Endpoint_msginit;
33 extern const upb_msglayout envoy_config_endpoint_v3_LbEndpoint_msginit;
39 extern const upb_msglayout envoy_config_core_v3_Address_msginit;
40 extern const upb_msglayout envoy_config_core_v3_Locality_msginit;
41 extern const upb_msglayout envoy_config_core_v3_Metadata_msginit;
42 extern const upb_msglayout google_protobuf_UInt32Value_msginit;
43 
44 
45 /* envoy.config.endpoint.v3.Endpoint */
46 
49 }
51  upb_arena *arena) {
53  return (ret && upb_decode(buf, size, ret, &envoy_config_endpoint_v3_Endpoint_msginit, arena)) ? ret : NULL;
54 }
56  upb_arena *arena, int options) {
58  return (ret && _upb_decode(buf, size, ret, &envoy_config_endpoint_v3_Endpoint_msginit, arena, options))
59  ? ret : NULL;
60 }
61 UPB_INLINE char *envoy_config_endpoint_v3_Endpoint_serialize(const envoy_config_endpoint_v3_Endpoint *msg, upb_arena *arena, size_t *len) {
62  return upb_encode(msg, &envoy_config_endpoint_v3_Endpoint_msginit, arena, len);
63 }
64 
65 UPB_INLINE bool envoy_config_endpoint_v3_Endpoint_has_address(const envoy_config_endpoint_v3_Endpoint *msg) { return _upb_hasbit(msg, 1); }
66 UPB_INLINE const struct envoy_config_core_v3_Address* envoy_config_endpoint_v3_Endpoint_address(const envoy_config_endpoint_v3_Endpoint *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_Address*); }
67 UPB_INLINE bool envoy_config_endpoint_v3_Endpoint_has_health_check_config(const envoy_config_endpoint_v3_Endpoint *msg) { return _upb_hasbit(msg, 2); }
69 UPB_INLINE upb_strview envoy_config_endpoint_v3_Endpoint_hostname(const envoy_config_endpoint_v3_Endpoint *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
70 
72  _upb_sethas(msg, 1);
73  *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_Address*) = value;
74 }
77  if (sub == NULL) {
79  if (!sub) return NULL;
81  }
82  return sub;
83 }
85  _upb_sethas(msg, 2);
86  *UPB_PTR_AT(msg, UPB_SIZE(16, 32), envoy_config_endpoint_v3_Endpoint_HealthCheckConfig*) = value;
87 }
90  if (sub == NULL) {
92  if (!sub) return NULL;
94  }
95  return sub;
96 }
98  *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
99 }
100 
101 /* envoy.config.endpoint.v3.Endpoint.HealthCheckConfig */
102 
105 }
107  upb_arena *arena) {
109  return (ret && upb_decode(buf, size, ret, &envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_msginit, arena)) ? ret : NULL;
110 }
112  upb_arena *arena, int options) {
114  return (ret && _upb_decode(buf, size, ret, &envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_msginit, arena, options))
115  ? ret : NULL;
116 }
119 }
120 
121 UPB_INLINE uint32_t envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_port_value(const envoy_config_endpoint_v3_Endpoint_HealthCheckConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t); }
122 UPB_INLINE upb_strview envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_hostname(const envoy_config_endpoint_v3_Endpoint_HealthCheckConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
123 
125  *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t) = value;
126 }
128  *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
129 }
130 
131 /* envoy.config.endpoint.v3.LbEndpoint */
132 
135 }
137  upb_arena *arena) {
139  return (ret && upb_decode(buf, size, ret, &envoy_config_endpoint_v3_LbEndpoint_msginit, arena)) ? ret : NULL;
140 }
142  upb_arena *arena, int options) {
144  return (ret && _upb_decode(buf, size, ret, &envoy_config_endpoint_v3_LbEndpoint_msginit, arena, options))
145  ? ret : NULL;
146 }
147 UPB_INLINE char *envoy_config_endpoint_v3_LbEndpoint_serialize(const envoy_config_endpoint_v3_LbEndpoint *msg, upb_arena *arena, size_t *len) {
148  return upb_encode(msg, &envoy_config_endpoint_v3_LbEndpoint_msginit, arena, len);
149 }
150 
151 typedef enum {
157 
158 UPB_INLINE bool envoy_config_endpoint_v3_LbEndpoint_has_endpoint(const envoy_config_endpoint_v3_LbEndpoint *msg) { return _upb_getoneofcase(msg, UPB_SIZE(24, 40)) == 1; }
159 UPB_INLINE const envoy_config_endpoint_v3_Endpoint* envoy_config_endpoint_v3_LbEndpoint_endpoint(const envoy_config_endpoint_v3_LbEndpoint *msg) { return UPB_READ_ONEOF(msg, const envoy_config_endpoint_v3_Endpoint*, UPB_SIZE(16, 24), UPB_SIZE(24, 40), 1, NULL); }
160 UPB_INLINE int32_t envoy_config_endpoint_v3_LbEndpoint_health_status(const envoy_config_endpoint_v3_LbEndpoint *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
161 UPB_INLINE bool envoy_config_endpoint_v3_LbEndpoint_has_metadata(const envoy_config_endpoint_v3_LbEndpoint *msg) { return _upb_hasbit(msg, 1); }
162 UPB_INLINE const struct envoy_config_core_v3_Metadata* envoy_config_endpoint_v3_LbEndpoint_metadata(const envoy_config_endpoint_v3_LbEndpoint *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), const struct envoy_config_core_v3_Metadata*); }
164 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_endpoint_v3_LbEndpoint_load_balancing_weight(const envoy_config_endpoint_v3_LbEndpoint *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), const struct google_protobuf_UInt32Value*); }
165 UPB_INLINE bool envoy_config_endpoint_v3_LbEndpoint_has_endpoint_name(const envoy_config_endpoint_v3_LbEndpoint *msg) { return _upb_getoneofcase(msg, UPB_SIZE(24, 40)) == 5; }
166 UPB_INLINE upb_strview envoy_config_endpoint_v3_LbEndpoint_endpoint_name(const envoy_config_endpoint_v3_LbEndpoint *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(16, 24), UPB_SIZE(24, 40), 5, upb_strview_make("", strlen(""))); }
167 
169  UPB_WRITE_ONEOF(msg, envoy_config_endpoint_v3_Endpoint*, UPB_SIZE(16, 24), value, UPB_SIZE(24, 40), 1);
170 }
173  if (sub == NULL) {
175  if (!sub) return NULL;
177  }
178  return sub;
179 }
181  *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
182 }
184  _upb_sethas(msg, 1);
185  *UPB_PTR_AT(msg, UPB_SIZE(8, 8), struct envoy_config_core_v3_Metadata*) = value;
186 }
189  if (sub == NULL) {
191  if (!sub) return NULL;
193  }
194  return sub;
195 }
197  _upb_sethas(msg, 2);
198  *UPB_PTR_AT(msg, UPB_SIZE(12, 16), struct google_protobuf_UInt32Value*) = value;
199 }
202  if (sub == NULL) {
204  if (!sub) return NULL;
206  }
207  return sub;
208 }
210  UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(16, 24), value, UPB_SIZE(24, 40), 5);
211 }
212 
213 /* envoy.config.endpoint.v3.LocalityLbEndpoints */
214 
217 }
219  upb_arena *arena) {
221  return (ret && upb_decode(buf, size, ret, &envoy_config_endpoint_v3_LocalityLbEndpoints_msginit, arena)) ? ret : NULL;
222 }
224  upb_arena *arena, int options) {
226  return (ret && _upb_decode(buf, size, ret, &envoy_config_endpoint_v3_LocalityLbEndpoints_msginit, arena, options))
227  ? ret : NULL;
228 }
230  return upb_encode(msg, &envoy_config_endpoint_v3_LocalityLbEndpoints_msginit, arena, len);
231 }
232 
235 UPB_INLINE bool envoy_config_endpoint_v3_LocalityLbEndpoints_has_lb_endpoints(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(20, 32)); }
236 UPB_INLINE const envoy_config_endpoint_v3_LbEndpoint* const* envoy_config_endpoint_v3_LocalityLbEndpoints_lb_endpoints(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg, size_t *len) { return (const envoy_config_endpoint_v3_LbEndpoint* const*)_upb_array_accessor(msg, UPB_SIZE(20, 32), len); }
239 UPB_INLINE uint32_t envoy_config_endpoint_v3_LocalityLbEndpoints_priority(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t); }
241 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_endpoint_v3_LocalityLbEndpoints_proximity(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), const struct google_protobuf_UInt32Value*); }
242 
244  _upb_sethas(msg, 1);
245  *UPB_PTR_AT(msg, UPB_SIZE(8, 8), struct envoy_config_core_v3_Locality*) = value;
246 }
249  if (sub == NULL) {
251  if (!sub) return NULL;
253  }
254  return sub;
255 }
257  return (envoy_config_endpoint_v3_LbEndpoint**)_upb_array_mutable_accessor(msg, UPB_SIZE(20, 32), len);
258 }
260  return (envoy_config_endpoint_v3_LbEndpoint**)_upb_array_resize_accessor2(msg, UPB_SIZE(20, 32), len, UPB_SIZE(2, 3), arena);
261 }
264  bool ok = _upb_array_append_accessor2(
265  msg, UPB_SIZE(20, 32), UPB_SIZE(2, 3), &sub, arena);
266  if (!ok) return NULL;
267  return sub;
268 }
270  _upb_sethas(msg, 2);
271  *UPB_PTR_AT(msg, UPB_SIZE(12, 16), struct google_protobuf_UInt32Value*) = value;
272 }
275  if (sub == NULL) {
277  if (!sub) return NULL;
279  }
280  return sub;
281 }
283  *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = value;
284 }
286  _upb_sethas(msg, 3);
287  *UPB_PTR_AT(msg, UPB_SIZE(16, 24), struct google_protobuf_UInt32Value*) = value;
288 }
291  if (sub == NULL) {
293  if (!sub) return NULL;
295  }
296  return sub;
297 }
298 
299 #ifdef __cplusplus
300 } /* extern "C" */
301 #endif
302 
303 #include "upb/port_undef.inc"
304 
305 #endif /* ENVOY_CONFIG_ENDPOINT_V3_ENDPOINT_COMPONENTS_PROTO_UPB_H_ */
struct envoy_config_core_v3_Address envoy_config_core_v3_Address
Definition: address.upb.h:35
struct envoy_config_core_v3_Metadata envoy_config_core_v3_Metadata
Definition: base.upb.h:48
struct envoy_config_core_v3_Locality envoy_config_core_v3_Locality
Definition: base.upb.h:44
UPB_INLINE struct google_protobuf_UInt32Value * envoy_config_endpoint_v3_LocalityLbEndpoints_mutable_proximity(envoy_config_endpoint_v3_LocalityLbEndpoints *msg, upb_arena *arena)
Definition: endpoint_components.upb.h:289
UPB_INLINE void envoy_config_endpoint_v3_Endpoint_set_address(envoy_config_endpoint_v3_Endpoint *msg, struct envoy_config_core_v3_Address *value)
Definition: endpoint_components.upb.h:71
UPB_INLINE void envoy_config_endpoint_v3_LocalityLbEndpoints_set_locality(envoy_config_endpoint_v3_LocalityLbEndpoints *msg, struct envoy_config_core_v3_Locality *value)
Definition: endpoint_components.upb.h:243
UPB_INLINE void envoy_config_endpoint_v3_LocalityLbEndpoints_set_proximity(envoy_config_endpoint_v3_LocalityLbEndpoints *msg, struct google_protobuf_UInt32Value *value)
Definition: endpoint_components.upb.h:285
UPB_INLINE bool envoy_config_endpoint_v3_LocalityLbEndpoints_has_load_balancing_weight(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg)
Definition: endpoint_components.upb.h:237
UPB_INLINE char * envoy_config_endpoint_v3_Endpoint_serialize(const envoy_config_endpoint_v3_Endpoint *msg, upb_arena *arena, size_t *len)
Definition: endpoint_components.upb.h:61
UPB_INLINE void envoy_config_endpoint_v3_LbEndpoint_set_health_status(envoy_config_endpoint_v3_LbEndpoint *msg, int32_t value)
Definition: endpoint_components.upb.h:180
UPB_INLINE void envoy_config_endpoint_v3_Endpoint_set_health_check_config(envoy_config_endpoint_v3_Endpoint *msg, envoy_config_endpoint_v3_Endpoint_HealthCheckConfig *value)
Definition: endpoint_components.upb.h:84
UPB_INLINE const struct envoy_config_core_v3_Locality * envoy_config_endpoint_v3_LocalityLbEndpoints_locality(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg)
Definition: endpoint_components.upb.h:234
UPB_INLINE struct google_protobuf_UInt32Value * envoy_config_endpoint_v3_LocalityLbEndpoints_mutable_load_balancing_weight(envoy_config_endpoint_v3_LocalityLbEndpoints *msg, upb_arena *arena)
Definition: endpoint_components.upb.h:273
UPB_INLINE char * envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_serialize(const envoy_config_endpoint_v3_Endpoint_HealthCheckConfig *msg, upb_arena *arena, size_t *len)
Definition: endpoint_components.upb.h:117
UPB_INLINE envoy_config_endpoint_v3_LbEndpoint * envoy_config_endpoint_v3_LbEndpoint_parse(const char *buf, size_t size, upb_arena *arena)
Definition: endpoint_components.upb.h:136
UPB_INLINE char * envoy_config_endpoint_v3_LocalityLbEndpoints_serialize(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg, upb_arena *arena, size_t *len)
Definition: endpoint_components.upb.h:229
UPB_INLINE const envoy_config_endpoint_v3_Endpoint * envoy_config_endpoint_v3_LbEndpoint_endpoint(const envoy_config_endpoint_v3_LbEndpoint *msg)
Definition: endpoint_components.upb.h:159
UPB_INLINE envoy_config_endpoint_v3_Endpoint * envoy_config_endpoint_v3_Endpoint_new(upb_arena *arena)
Definition: endpoint_components.upb.h:47
struct envoy_config_endpoint_v3_LbEndpoint envoy_config_endpoint_v3_LbEndpoint
Definition: endpoint_components.upb.h:29
const upb_msglayout envoy_config_endpoint_v3_LbEndpoint_msginit
Definition: endpoint_components.upb.c:64
const upb_msglayout envoy_config_core_v3_Metadata_msginit
Definition: base.upb.c:108
UPB_INLINE envoy_config_endpoint_v3_LbEndpoint ** envoy_config_endpoint_v3_LocalityLbEndpoints_resize_lb_endpoints(envoy_config_endpoint_v3_LocalityLbEndpoints *msg, size_t len, upb_arena *arena)
Definition: endpoint_components.upb.h:259
UPB_INLINE bool envoy_config_endpoint_v3_Endpoint_has_address(const envoy_config_endpoint_v3_Endpoint *msg)
Definition: endpoint_components.upb.h:65
struct envoy_config_endpoint_v3_Endpoint_HealthCheckConfig envoy_config_endpoint_v3_Endpoint_HealthCheckConfig
Definition: endpoint_components.upb.h:28
UPB_INLINE envoy_config_endpoint_v3_LbEndpoint * envoy_config_endpoint_v3_LbEndpoint_new(upb_arena *arena)
Definition: endpoint_components.upb.h:133
UPB_INLINE envoy_config_endpoint_v3_Endpoint * envoy_config_endpoint_v3_Endpoint_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: endpoint_components.upb.h:55
UPB_INLINE void envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_set_port_value(envoy_config_endpoint_v3_Endpoint_HealthCheckConfig *msg, uint32_t value)
Definition: endpoint_components.upb.h:124
UPB_INLINE envoy_config_endpoint_v3_LocalityLbEndpoints * envoy_config_endpoint_v3_LocalityLbEndpoints_new(upb_arena *arena)
Definition: endpoint_components.upb.h:215
const upb_msglayout envoy_config_endpoint_v3_LocalityLbEndpoints_msginit
Definition: endpoint_components.upb.c:84
UPB_INLINE void envoy_config_endpoint_v3_LocalityLbEndpoints_set_priority(envoy_config_endpoint_v3_LocalityLbEndpoints *msg, uint32_t value)
Definition: endpoint_components.upb.h:282
UPB_INLINE void envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_set_hostname(envoy_config_endpoint_v3_Endpoint_HealthCheckConfig *msg, upb_strview value)
Definition: endpoint_components.upb.h:127
UPB_INLINE int32_t envoy_config_endpoint_v3_LbEndpoint_health_status(const envoy_config_endpoint_v3_LbEndpoint *msg)
Definition: endpoint_components.upb.h:160
UPB_INLINE bool envoy_config_endpoint_v3_LbEndpoint_has_endpoint(const envoy_config_endpoint_v3_LbEndpoint *msg)
Definition: endpoint_components.upb.h:158
const upb_msglayout google_protobuf_UInt32Value_msginit
Definition: wrappers.upb.c:69
UPB_INLINE bool envoy_config_endpoint_v3_Endpoint_has_health_check_config(const envoy_config_endpoint_v3_Endpoint *msg)
Definition: endpoint_components.upb.h:67
UPB_INLINE bool envoy_config_endpoint_v3_LocalityLbEndpoints_has_locality(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg)
Definition: endpoint_components.upb.h:233
UPB_INLINE upb_strview envoy_config_endpoint_v3_Endpoint_hostname(const envoy_config_endpoint_v3_Endpoint *msg)
Definition: endpoint_components.upb.h:69
UPB_INLINE void envoy_config_endpoint_v3_Endpoint_set_hostname(envoy_config_endpoint_v3_Endpoint *msg, upb_strview value)
Definition: endpoint_components.upb.h:97
UPB_INLINE envoy_config_endpoint_v3_LocalityLbEndpoints * envoy_config_endpoint_v3_LocalityLbEndpoints_parse(const char *buf, size_t size, upb_arena *arena)
Definition: endpoint_components.upb.h:218
UPB_INLINE void envoy_config_endpoint_v3_LbEndpoint_set_endpoint_name(envoy_config_endpoint_v3_LbEndpoint *msg, upb_strview value)
Definition: endpoint_components.upb.h:209
UPB_INLINE struct envoy_config_endpoint_v3_Endpoint * envoy_config_endpoint_v3_LbEndpoint_mutable_endpoint(envoy_config_endpoint_v3_LbEndpoint *msg, upb_arena *arena)
Definition: endpoint_components.upb.h:171
UPB_INLINE bool envoy_config_endpoint_v3_LbEndpoint_has_endpoint_name(const envoy_config_endpoint_v3_LbEndpoint *msg)
Definition: endpoint_components.upb.h:165
UPB_INLINE bool envoy_config_endpoint_v3_LbEndpoint_has_metadata(const envoy_config_endpoint_v3_LbEndpoint *msg)
Definition: endpoint_components.upb.h:161
UPB_INLINE bool envoy_config_endpoint_v3_LocalityLbEndpoints_has_lb_endpoints(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg)
Definition: endpoint_components.upb.h:235
UPB_INLINE const envoy_config_endpoint_v3_Endpoint_HealthCheckConfig * envoy_config_endpoint_v3_Endpoint_health_check_config(const envoy_config_endpoint_v3_Endpoint *msg)
Definition: endpoint_components.upb.h:68
UPB_INLINE envoy_config_endpoint_v3_LbEndpoint_host_identifier_oneofcases envoy_config_endpoint_v3_LbEndpoint_host_identifier_case(const envoy_config_endpoint_v3_LbEndpoint *msg)
Definition: endpoint_components.upb.h:156
envoy_config_endpoint_v3_LbEndpoint_host_identifier_oneofcases
Definition: endpoint_components.upb.h:151
@ envoy_config_endpoint_v3_LbEndpoint_host_identifier_NOT_SET
Definition: endpoint_components.upb.h:154
@ envoy_config_endpoint_v3_LbEndpoint_host_identifier_endpoint_name
Definition: endpoint_components.upb.h:153
@ envoy_config_endpoint_v3_LbEndpoint_host_identifier_endpoint
Definition: endpoint_components.upb.h:152
UPB_INLINE envoy_config_endpoint_v3_Endpoint_HealthCheckConfig * envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_new(upb_arena *arena)
Definition: endpoint_components.upb.h:103
const upb_msglayout envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_msginit
Definition: endpoint_components.upb.c:44
UPB_INLINE struct envoy_config_core_v3_Address * envoy_config_endpoint_v3_Endpoint_mutable_address(envoy_config_endpoint_v3_Endpoint *msg, upb_arena *arena)
Definition: endpoint_components.upb.h:75
UPB_INLINE struct envoy_config_core_v3_Metadata * envoy_config_endpoint_v3_LbEndpoint_mutable_metadata(envoy_config_endpoint_v3_LbEndpoint *msg, upb_arena *arena)
Definition: endpoint_components.upb.h:187
UPB_INLINE void envoy_config_endpoint_v3_LbEndpoint_set_endpoint(envoy_config_endpoint_v3_LbEndpoint *msg, envoy_config_endpoint_v3_Endpoint *value)
Definition: endpoint_components.upb.h:168
UPB_INLINE struct envoy_config_endpoint_v3_LbEndpoint * envoy_config_endpoint_v3_LocalityLbEndpoints_add_lb_endpoints(envoy_config_endpoint_v3_LocalityLbEndpoints *msg, upb_arena *arena)
Definition: endpoint_components.upb.h:262
UPB_INLINE struct google_protobuf_UInt32Value * envoy_config_endpoint_v3_LbEndpoint_mutable_load_balancing_weight(envoy_config_endpoint_v3_LbEndpoint *msg, upb_arena *arena)
Definition: endpoint_components.upb.h:200
UPB_INLINE void envoy_config_endpoint_v3_LbEndpoint_set_metadata(envoy_config_endpoint_v3_LbEndpoint *msg, struct envoy_config_core_v3_Metadata *value)
Definition: endpoint_components.upb.h:183
UPB_INLINE char * envoy_config_endpoint_v3_LbEndpoint_serialize(const envoy_config_endpoint_v3_LbEndpoint *msg, upb_arena *arena, size_t *len)
Definition: endpoint_components.upb.h:147
UPB_INLINE const struct google_protobuf_UInt32Value * envoy_config_endpoint_v3_LbEndpoint_load_balancing_weight(const envoy_config_endpoint_v3_LbEndpoint *msg)
Definition: endpoint_components.upb.h:164
UPB_INLINE uint32_t envoy_config_endpoint_v3_LocalityLbEndpoints_priority(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg)
Definition: endpoint_components.upb.h:239
UPB_INLINE struct envoy_config_core_v3_Locality * envoy_config_endpoint_v3_LocalityLbEndpoints_mutable_locality(envoy_config_endpoint_v3_LocalityLbEndpoints *msg, upb_arena *arena)
Definition: endpoint_components.upb.h:247
UPB_INLINE envoy_config_endpoint_v3_LocalityLbEndpoints * envoy_config_endpoint_v3_LocalityLbEndpoints_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: endpoint_components.upb.h:223
UPB_INLINE struct envoy_config_endpoint_v3_Endpoint_HealthCheckConfig * envoy_config_endpoint_v3_Endpoint_mutable_health_check_config(envoy_config_endpoint_v3_Endpoint *msg, upb_arena *arena)
Definition: endpoint_components.upb.h:88
UPB_INLINE const struct google_protobuf_UInt32Value * envoy_config_endpoint_v3_LocalityLbEndpoints_load_balancing_weight(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg)
Definition: endpoint_components.upb.h:238
UPB_INLINE envoy_config_endpoint_v3_LbEndpoint ** envoy_config_endpoint_v3_LocalityLbEndpoints_mutable_lb_endpoints(envoy_config_endpoint_v3_LocalityLbEndpoints *msg, size_t *len)
Definition: endpoint_components.upb.h:256
UPB_INLINE const envoy_config_endpoint_v3_LbEndpoint *const * envoy_config_endpoint_v3_LocalityLbEndpoints_lb_endpoints(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg, size_t *len)
Definition: endpoint_components.upb.h:236
const upb_msglayout envoy_config_endpoint_v3_Endpoint_msginit
Definition: endpoint_components.upb.c:33
UPB_INLINE bool envoy_config_endpoint_v3_LbEndpoint_has_load_balancing_weight(const envoy_config_endpoint_v3_LbEndpoint *msg)
Definition: endpoint_components.upb.h:163
UPB_INLINE uint32_t envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_port_value(const envoy_config_endpoint_v3_Endpoint_HealthCheckConfig *msg)
Definition: endpoint_components.upb.h:121
UPB_INLINE bool envoy_config_endpoint_v3_LocalityLbEndpoints_has_proximity(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg)
Definition: endpoint_components.upb.h:240
UPB_INLINE envoy_config_endpoint_v3_Endpoint * envoy_config_endpoint_v3_Endpoint_parse(const char *buf, size_t size, upb_arena *arena)
Definition: endpoint_components.upb.h:50
UPB_INLINE upb_strview envoy_config_endpoint_v3_LbEndpoint_endpoint_name(const envoy_config_endpoint_v3_LbEndpoint *msg)
Definition: endpoint_components.upb.h:166
UPB_INLINE envoy_config_endpoint_v3_LbEndpoint * envoy_config_endpoint_v3_LbEndpoint_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: endpoint_components.upb.h:141
UPB_INLINE void envoy_config_endpoint_v3_LocalityLbEndpoints_set_load_balancing_weight(envoy_config_endpoint_v3_LocalityLbEndpoints *msg, struct google_protobuf_UInt32Value *value)
Definition: endpoint_components.upb.h:269
const upb_msglayout envoy_config_core_v3_Locality_msginit
Definition: base.upb.c:33
UPB_INLINE envoy_config_endpoint_v3_Endpoint_HealthCheckConfig * envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_parse(const char *buf, size_t size, upb_arena *arena)
Definition: endpoint_components.upb.h:106
UPB_INLINE const struct google_protobuf_UInt32Value * envoy_config_endpoint_v3_LocalityLbEndpoints_proximity(const envoy_config_endpoint_v3_LocalityLbEndpoints *msg)
Definition: endpoint_components.upb.h:241
UPB_INLINE upb_strview envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_hostname(const envoy_config_endpoint_v3_Endpoint_HealthCheckConfig *msg)
Definition: endpoint_components.upb.h:122
UPB_INLINE void envoy_config_endpoint_v3_LbEndpoint_set_load_balancing_weight(envoy_config_endpoint_v3_LbEndpoint *msg, struct google_protobuf_UInt32Value *value)
Definition: endpoint_components.upb.h:196
const upb_msglayout envoy_config_core_v3_Address_msginit
Definition: address.upb.c:102
UPB_INLINE const struct envoy_config_core_v3_Metadata * envoy_config_endpoint_v3_LbEndpoint_metadata(const envoy_config_endpoint_v3_LbEndpoint *msg)
Definition: endpoint_components.upb.h:162
UPB_INLINE envoy_config_endpoint_v3_Endpoint_HealthCheckConfig * envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: endpoint_components.upb.h:111
struct envoy_config_endpoint_v3_Endpoint envoy_config_endpoint_v3_Endpoint
Definition: endpoint_components.upb.h:27
struct envoy_config_endpoint_v3_LocalityLbEndpoints envoy_config_endpoint_v3_LocalityLbEndpoints
Definition: endpoint_components.upb.h:30
UPB_INLINE const struct envoy_config_core_v3_Address * envoy_config_endpoint_v3_Endpoint_address(const envoy_config_endpoint_v3_Endpoint *msg)
Definition: endpoint_components.upb.h:66
struct google_protobuf_UInt32Value google_protobuf_UInt32Value
Definition: wrappers.upb.h:37
upb_arena * arena
Definition: xds_api.cc:909