9 #ifndef ENVOY_API_V2_CORE_ADDRESS_PROTO_UPB_H_
10 #define ENVOY_API_V2_CORE_ADDRESS_PROTO_UPB_H_
12 #include "upb/generated_util.h"
14 #include "upb/decode.h"
15 #include "upb/encode.h"
17 #include "upb/port_def.inc"
71 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)) = value;
105 UPB_FIELD_AT(msg, int32_t, UPB_SIZE(0, 0)) = value;
108 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(12, 16)) = value;
111 UPB_WRITE_ONEOF(msg, uint32_t, UPB_SIZE(28, 48), value, UPB_SIZE(36, 64), 3);
114 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 48), value, UPB_SIZE(36, 64), 4);
117 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(20, 32)) = value;
120 UPB_FIELD_AT(msg,
bool, UPB_SIZE(8, 8)) = value;
148 if (!sub)
return NULL;
160 if (!sub)
return NULL;
172 if (!sub)
return NULL;
203 if (!sub)
return NULL;
215 if (!sub)
return NULL;
228 bool ok = _upb_array_append_accessor(
229 msg, UPB_SIZE(8, 16), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
230 if (!ok)
return NULL;
267 if (!sub)
return NULL;
279 if (!sub)
return NULL;
303 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)) = value;
312 if (!sub)
return NULL;
322 #include "upb/port_undef.inc"
envoy_api_v2_core_SocketAddress_port_specifier_oneofcases
Definition: address.upb.h:88
@ envoy_api_v2_core_SocketAddress_port_specifier_NOT_SET
Definition: address.upb.h:91
@ envoy_api_v2_core_SocketAddress_port_specifier_port_value
Definition: address.upb.h:89
@ envoy_api_v2_core_SocketAddress_port_specifier_named_port
Definition: address.upb.h:90
UPB_INLINE char * envoy_api_v2_core_CidrRange_serialize(const envoy_api_v2_core_CidrRange *msg, upb_arena *arena, size_t *len)
Definition: address.upb.h:295
const upb_msglayout envoy_api_v2_core_Pipe_msginit
Definition: address.upb.c:22
UPB_INLINE void envoy_api_v2_core_SocketAddress_set_port_value(envoy_api_v2_core_SocketAddress *msg, uint32_t value)
Definition: address.upb.h:110
const upb_msglayout envoy_api_v2_core_Address_msginit
Definition: address.upb.c:87
UPB_INLINE envoy_api_v2_core_CidrRange * envoy_api_v2_core_CidrRange_new(upb_arena *arena)
Definition: address.upb.h:287
UPB_INLINE void envoy_api_v2_core_BindConfig_set_source_address(envoy_api_v2_core_BindConfig *msg, envoy_api_v2_core_SocketAddress *value)
Definition: address.upb.h:196
UPB_INLINE void envoy_api_v2_core_SocketAddress_set_address(envoy_api_v2_core_SocketAddress *msg, upb_strview value)
Definition: address.upb.h:107
UPB_INLINE upb_strview envoy_api_v2_core_SocketAddress_named_port(const envoy_api_v2_core_SocketAddress *msg)
Definition: address.upb.h:100
UPB_INLINE char * envoy_api_v2_core_Address_serialize(const envoy_api_v2_core_Address *msg, upb_arena *arena, size_t *len)
Definition: address.upb.h:244
UPB_INLINE struct google_protobuf_UInt32Value * envoy_api_v2_core_TcpKeepalive_mutable_keepalive_probes(envoy_api_v2_core_TcpKeepalive *msg, upb_arena *arena)
Definition: address.upb.h:144
UPB_INLINE void envoy_api_v2_core_CidrRange_set_prefix_len(envoy_api_v2_core_CidrRange *msg, struct google_protobuf_UInt32Value *value)
Definition: address.upb.h:305
UPB_INLINE char * envoy_api_v2_core_TcpKeepalive_serialize(const envoy_api_v2_core_TcpKeepalive *msg, upb_arena *arena, size_t *len)
Definition: address.upb.h:133
UPB_INLINE void envoy_api_v2_core_TcpKeepalive_set_keepalive_probes(envoy_api_v2_core_TcpKeepalive *msg, struct google_protobuf_UInt32Value *value)
Definition: address.upb.h:141
UPB_INLINE void envoy_api_v2_core_TcpKeepalive_set_keepalive_interval(envoy_api_v2_core_TcpKeepalive *msg, struct google_protobuf_UInt32Value *value)
Definition: address.upb.h:165
UPB_INLINE int32_t envoy_api_v2_core_SocketAddress_protocol(const envoy_api_v2_core_SocketAddress *msg)
Definition: address.upb.h:95
UPB_INLINE struct envoy_api_v2_core_Pipe * envoy_api_v2_core_Address_mutable_pipe(envoy_api_v2_core_Address *msg, upb_arena *arena)
Definition: address.upb.h:275
UPB_INLINE envoy_api_v2_core_Address * envoy_api_v2_core_Address_new(upb_arena *arena)
Definition: address.upb.h:236
UPB_INLINE bool envoy_api_v2_core_Address_has_socket_address(const envoy_api_v2_core_Address *msg)
Definition: address.upb.h:255
UPB_INLINE void envoy_api_v2_core_SocketAddress_set_ipv4_compat(envoy_api_v2_core_SocketAddress *msg, bool value)
Definition: address.upb.h:119
UPB_INLINE void envoy_api_v2_core_Address_set_pipe(envoy_api_v2_core_Address *msg, envoy_api_v2_core_Pipe *value)
Definition: address.upb.h:272
UPB_INLINE struct envoy_api_v2_core_SocketOption ** envoy_api_v2_core_BindConfig_resize_socket_options(envoy_api_v2_core_BindConfig *msg, size_t len, upb_arena *arena)
Definition: address.upb.h:223
UPB_INLINE void envoy_api_v2_core_Pipe_set_path(envoy_api_v2_core_Pipe *msg, upb_strview value)
Definition: address.upb.h:70
UPB_INLINE void envoy_api_v2_core_SocketAddress_set_named_port(envoy_api_v2_core_SocketAddress *msg, upb_strview value)
Definition: address.upb.h:113
struct envoy_api_v2_core_Pipe envoy_api_v2_core_Pipe
Definition: address.upb.h:29
envoy_api_v2_core_Address_address_oneofcases
Definition: address.upb.h:248
@ envoy_api_v2_core_Address_address_NOT_SET
Definition: address.upb.h:251
@ envoy_api_v2_core_Address_address_pipe
Definition: address.upb.h:250
@ envoy_api_v2_core_Address_address_socket_address
Definition: address.upb.h:249
UPB_INLINE envoy_api_v2_core_TcpKeepalive * envoy_api_v2_core_TcpKeepalive_new(upb_arena *arena)
Definition: address.upb.h:125
UPB_INLINE const struct google_protobuf_UInt32Value * envoy_api_v2_core_TcpKeepalive_keepalive_time(const envoy_api_v2_core_TcpKeepalive *msg)
Definition: address.upb.h:138
struct envoy_api_v2_core_Address envoy_api_v2_core_Address
Definition: address.upb.h:33
UPB_INLINE bool envoy_api_v2_core_SocketAddress_has_named_port(const envoy_api_v2_core_SocketAddress *msg)
Definition: address.upb.h:99
envoy_api_v2_core_SocketAddress_Protocol
Definition: address.upb.h:48
@ envoy_api_v2_core_SocketAddress_UDP
Definition: address.upb.h:50
@ envoy_api_v2_core_SocketAddress_TCP
Definition: address.upb.h:49
UPB_INLINE void envoy_api_v2_core_SocketAddress_set_resolver_name(envoy_api_v2_core_SocketAddress *msg, upb_strview value)
Definition: address.upb.h:116
UPB_INLINE const struct google_protobuf_UInt32Value * envoy_api_v2_core_TcpKeepalive_keepalive_interval(const envoy_api_v2_core_TcpKeepalive *msg)
Definition: address.upb.h:139
UPB_INLINE const envoy_api_v2_core_SocketAddress * envoy_api_v2_core_BindConfig_source_address(const envoy_api_v2_core_BindConfig *msg)
Definition: address.upb.h:192
const upb_msglayout google_protobuf_UInt32Value_msginit
Definition: wrappers.upb.c:69
struct envoy_api_v2_core_SocketAddress envoy_api_v2_core_SocketAddress
Definition: address.upb.h:30
UPB_INLINE struct google_protobuf_UInt32Value * envoy_api_v2_core_TcpKeepalive_mutable_keepalive_time(envoy_api_v2_core_TcpKeepalive *msg, upb_arena *arena)
Definition: address.upb.h:156
const upb_msglayout envoy_api_v2_core_SocketOption_msginit
Definition: base.upb.c:217
UPB_INLINE envoy_api_v2_core_Address_address_oneofcases envoy_api_v2_core_Address_address_case(const envoy_api_v2_core_Address *msg)
Definition: address.upb.h:253
UPB_INLINE envoy_api_v2_core_Pipe * envoy_api_v2_core_Pipe_new(upb_arena *arena)
Definition: address.upb.h:56
UPB_INLINE struct google_protobuf_UInt32Value * envoy_api_v2_core_CidrRange_mutable_prefix_len(envoy_api_v2_core_CidrRange *msg, upb_arena *arena)
Definition: address.upb.h:308
UPB_INLINE struct google_protobuf_UInt32Value * envoy_api_v2_core_TcpKeepalive_mutable_keepalive_interval(envoy_api_v2_core_TcpKeepalive *msg, upb_arena *arena)
Definition: address.upb.h:168
UPB_INLINE char * envoy_api_v2_core_BindConfig_serialize(const envoy_api_v2_core_BindConfig *msg, upb_arena *arena, size_t *len)
Definition: address.upb.h:188
UPB_INLINE envoy_api_v2_core_SocketAddress_port_specifier_oneofcases envoy_api_v2_core_SocketAddress_port_specifier_case(const envoy_api_v2_core_SocketAddress *msg)
Definition: address.upb.h:93
UPB_INLINE struct google_protobuf_BoolValue * envoy_api_v2_core_BindConfig_mutable_freebind(envoy_api_v2_core_BindConfig *msg, upb_arena *arena)
Definition: address.upb.h:211
struct envoy_api_v2_core_TcpKeepalive envoy_api_v2_core_TcpKeepalive
Definition: address.upb.h:31
struct envoy_api_v2_core_CidrRange envoy_api_v2_core_CidrRange
Definition: address.upb.h:34
UPB_INLINE bool envoy_api_v2_core_SocketAddress_has_port_value(const envoy_api_v2_core_SocketAddress *msg)
Definition: address.upb.h:97
UPB_INLINE envoy_api_v2_core_SocketAddress * envoy_api_v2_core_SocketAddress_parse(const char *buf, size_t size, upb_arena *arena)
Definition: address.upb.h:79
UPB_INLINE envoy_api_v2_core_Pipe * envoy_api_v2_core_Pipe_parse(const char *buf, size_t size, upb_arena *arena)
Definition: address.upb.h:59
UPB_INLINE const struct google_protobuf_UInt32Value * envoy_api_v2_core_CidrRange_prefix_len(const envoy_api_v2_core_CidrRange *msg)
Definition: address.upb.h:300
UPB_INLINE struct envoy_api_v2_core_SocketAddress * envoy_api_v2_core_Address_mutable_socket_address(envoy_api_v2_core_Address *msg, upb_arena *arena)
Definition: address.upb.h:263
UPB_INLINE envoy_api_v2_core_CidrRange * envoy_api_v2_core_CidrRange_parse(const char *buf, size_t size, upb_arena *arena)
Definition: address.upb.h:290
UPB_INLINE char * envoy_api_v2_core_SocketAddress_serialize(const envoy_api_v2_core_SocketAddress *msg, upb_arena *arena, size_t *len)
Definition: address.upb.h:84
UPB_INLINE void envoy_api_v2_core_Address_set_socket_address(envoy_api_v2_core_Address *msg, envoy_api_v2_core_SocketAddress *value)
Definition: address.upb.h:260
UPB_INLINE char * envoy_api_v2_core_Pipe_serialize(const envoy_api_v2_core_Pipe *msg, upb_arena *arena, size_t *len)
Definition: address.upb.h:64
UPB_INLINE const struct google_protobuf_UInt32Value * envoy_api_v2_core_TcpKeepalive_keepalive_probes(const envoy_api_v2_core_TcpKeepalive *msg)
Definition: address.upb.h:137
UPB_INLINE const struct google_protobuf_BoolValue * envoy_api_v2_core_BindConfig_freebind(const envoy_api_v2_core_BindConfig *msg)
Definition: address.upb.h:193
const upb_msglayout envoy_api_v2_core_CidrRange_msginit
Definition: address.upb.c:102
UPB_INLINE const envoy_api_v2_core_Pipe * envoy_api_v2_core_Address_pipe(const envoy_api_v2_core_Address *msg)
Definition: address.upb.h:258
UPB_INLINE const envoy_api_v2_core_SocketAddress * envoy_api_v2_core_Address_socket_address(const envoy_api_v2_core_Address *msg)
Definition: address.upb.h:256
UPB_INLINE envoy_api_v2_core_SocketAddress * envoy_api_v2_core_SocketAddress_new(upb_arena *arena)
Definition: address.upb.h:76
UPB_INLINE void envoy_api_v2_core_BindConfig_set_freebind(envoy_api_v2_core_BindConfig *msg, struct google_protobuf_BoolValue *value)
Definition: address.upb.h:208
UPB_INLINE bool envoy_api_v2_core_Address_has_pipe(const envoy_api_v2_core_Address *msg)
Definition: address.upb.h:257
UPB_INLINE bool envoy_api_v2_core_SocketAddress_ipv4_compat(const envoy_api_v2_core_SocketAddress *msg)
Definition: address.upb.h:102
UPB_INLINE void envoy_api_v2_core_TcpKeepalive_set_keepalive_time(envoy_api_v2_core_TcpKeepalive *msg, struct google_protobuf_UInt32Value *value)
Definition: address.upb.h:153
UPB_INLINE upb_strview envoy_api_v2_core_SocketAddress_address(const envoy_api_v2_core_SocketAddress *msg)
Definition: address.upb.h:96
UPB_INLINE void envoy_api_v2_core_CidrRange_set_address_prefix(envoy_api_v2_core_CidrRange *msg, upb_strview value)
Definition: address.upb.h:302
UPB_INLINE void envoy_api_v2_core_SocketAddress_set_protocol(envoy_api_v2_core_SocketAddress *msg, int32_t value)
Definition: address.upb.h:104
UPB_INLINE envoy_api_v2_core_BindConfig * envoy_api_v2_core_BindConfig_parse(const char *buf, size_t size, upb_arena *arena)
Definition: address.upb.h:183
UPB_INLINE const struct envoy_api_v2_core_SocketOption *const * envoy_api_v2_core_BindConfig_socket_options(const envoy_api_v2_core_BindConfig *msg, size_t *len)
Definition: address.upb.h:194
struct envoy_api_v2_core_BindConfig envoy_api_v2_core_BindConfig
Definition: address.upb.h:32
const upb_msglayout google_protobuf_BoolValue_msginit
Definition: wrappers.upb.c:79
const upb_msglayout envoy_api_v2_core_TcpKeepalive_msginit
Definition: address.upb.c:53
UPB_INLINE upb_strview envoy_api_v2_core_SocketAddress_resolver_name(const envoy_api_v2_core_SocketAddress *msg)
Definition: address.upb.h:101
const upb_msglayout envoy_api_v2_core_BindConfig_msginit
Definition: address.upb.c:71
UPB_INLINE uint32_t envoy_api_v2_core_SocketAddress_port_value(const envoy_api_v2_core_SocketAddress *msg)
Definition: address.upb.h:98
UPB_INLINE envoy_api_v2_core_TcpKeepalive * envoy_api_v2_core_TcpKeepalive_parse(const char *buf, size_t size, upb_arena *arena)
Definition: address.upb.h:128
UPB_INLINE struct envoy_api_v2_core_SocketAddress * envoy_api_v2_core_BindConfig_mutable_source_address(envoy_api_v2_core_BindConfig *msg, upb_arena *arena)
Definition: address.upb.h:199
UPB_INLINE struct envoy_api_v2_core_SocketOption ** envoy_api_v2_core_BindConfig_mutable_socket_options(envoy_api_v2_core_BindConfig *msg, size_t *len)
Definition: address.upb.h:220
UPB_INLINE envoy_api_v2_core_Address * envoy_api_v2_core_Address_parse(const char *buf, size_t size, upb_arena *arena)
Definition: address.upb.h:239
UPB_INLINE upb_strview envoy_api_v2_core_CidrRange_address_prefix(const envoy_api_v2_core_CidrRange *msg)
Definition: address.upb.h:299
UPB_INLINE upb_strview envoy_api_v2_core_Pipe_path(const envoy_api_v2_core_Pipe *msg)
Definition: address.upb.h:68
const upb_msglayout envoy_api_v2_core_SocketAddress_msginit
Definition: address.upb.c:37
UPB_INLINE envoy_api_v2_core_BindConfig * envoy_api_v2_core_BindConfig_new(upb_arena *arena)
Definition: address.upb.h:180
UPB_INLINE struct envoy_api_v2_core_SocketOption * envoy_api_v2_core_BindConfig_add_socket_options(envoy_api_v2_core_BindConfig *msg, upb_arena *arena)
Definition: address.upb.h:226
struct envoy_api_v2_core_SocketOption envoy_api_v2_core_SocketOption
Definition: base.upb.h:52
struct google_protobuf_BoolValue google_protobuf_BoolValue
Definition: wrappers.upb.h:38
struct google_protobuf_UInt32Value google_protobuf_UInt32Value
Definition: wrappers.upb.h:37