9 #ifndef ENVOY_CONFIG_ENDPOINT_V3_ENDPOINT_COMPONENTS_PROTO_UPB_H_
10 #define ENVOY_CONFIG_ENDPOINT_V3_ENDPOINT_COMPONENTS_PROTO_UPB_H_
13 #include "upb/decode.h"
14 #include "upb/decode_fast.h"
15 #include "upb/encode.h"
17 #include "upb/port_def.inc"
56 upb_arena *
arena,
int options) {
79 if (!sub)
return NULL;
92 if (!sub)
return NULL;
98 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
112 upb_arena *
arena,
int options) {
125 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t) = value;
128 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
142 upb_arena *
arena,
int options) {
175 if (!sub)
return NULL;
181 *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
191 if (!sub)
return NULL;
204 if (!sub)
return NULL;
210 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(16, 24), value, UPB_SIZE(24, 40), 5);
224 upb_arena *
arena,
int options) {
251 if (!sub)
return NULL;
264 bool ok = _upb_array_append_accessor2(
265 msg, UPB_SIZE(20, 32), UPB_SIZE(2, 3), &sub,
arena);
266 if (!ok)
return NULL;
277 if (!sub)
return NULL;
283 *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = value;
293 if (!sub)
return NULL;
303 #include "upb/port_undef.inc"
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