1 /* This file was generated by upbc (the upb compiler) from the input
2 * file:
3 *
4 * envoy/config/core/v3/address.proto
5 *
6 * Do not edit -- your changes will be discarded when the file is
7 * regenerated. */
8
9 #ifndef ENVOY_CONFIG_CORE_V3_ADDRESS_PROTO_UPB_H_
10 #define ENVOY_CONFIG_CORE_V3_ADDRESS_PROTO_UPB_H_
11
12 #include "upb/msg.h"
13 #include "upb/decode.h"
14 #include "upb/decode_fast.h"
15 #include "upb/encode.h"
16
17 #include "upb/port_def.inc"
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 struct envoy_config_core_v3_Pipe;
24 struct envoy_config_core_v3_EnvoyInternalAddress;
25 struct envoy_config_core_v3_SocketAddress;
26 struct envoy_config_core_v3_TcpKeepalive;
27 struct envoy_config_core_v3_BindConfig;
28 struct envoy_config_core_v3_Address;
29 struct envoy_config_core_v3_CidrRange;
30 typedef struct envoy_config_core_v3_Pipe envoy_config_core_v3_Pipe;
31 typedef struct envoy_config_core_v3_EnvoyInternalAddress envoy_config_core_v3_EnvoyInternalAddress;
32 typedef struct envoy_config_core_v3_SocketAddress envoy_config_core_v3_SocketAddress;
33 typedef struct envoy_config_core_v3_TcpKeepalive envoy_config_core_v3_TcpKeepalive;
34 typedef struct envoy_config_core_v3_BindConfig envoy_config_core_v3_BindConfig;
35 typedef struct envoy_config_core_v3_Address envoy_config_core_v3_Address;
36 typedef struct envoy_config_core_v3_CidrRange envoy_config_core_v3_CidrRange;
37 extern const upb_msglayout envoy_config_core_v3_Pipe_msginit;
38 extern const upb_msglayout envoy_config_core_v3_EnvoyInternalAddress_msginit;
39 extern const upb_msglayout envoy_config_core_v3_SocketAddress_msginit;
40 extern const upb_msglayout envoy_config_core_v3_TcpKeepalive_msginit;
41 extern const upb_msglayout envoy_config_core_v3_BindConfig_msginit;
42 extern const upb_msglayout envoy_config_core_v3_Address_msginit;
43 extern const upb_msglayout envoy_config_core_v3_CidrRange_msginit;
44 struct envoy_config_core_v3_SocketOption;
45 struct google_protobuf_BoolValue;
46 struct google_protobuf_UInt32Value;
47 extern const upb_msglayout envoy_config_core_v3_SocketOption_msginit;
48 extern const upb_msglayout google_protobuf_BoolValue_msginit;
49 extern const upb_msglayout google_protobuf_UInt32Value_msginit;
50
51 typedef enum {
52 envoy_config_core_v3_SocketAddress_TCP = 0,
53 envoy_config_core_v3_SocketAddress_UDP = 1
54 } envoy_config_core_v3_SocketAddress_Protocol;
55
56
57 /* envoy.config.core.v3.Pipe */
58
envoy_config_core_v3_Pipe_new(upb_arena * arena)59 UPB_INLINE envoy_config_core_v3_Pipe *envoy_config_core_v3_Pipe_new(upb_arena *arena) {
60 return (envoy_config_core_v3_Pipe *)_upb_msg_new(&envoy_config_core_v3_Pipe_msginit, arena);
61 }
envoy_config_core_v3_Pipe_parse(const char * buf,size_t size,upb_arena * arena)62 UPB_INLINE envoy_config_core_v3_Pipe *envoy_config_core_v3_Pipe_parse(const char *buf, size_t size,
63 upb_arena *arena) {
64 envoy_config_core_v3_Pipe *ret = envoy_config_core_v3_Pipe_new(arena);
65 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_Pipe_msginit, arena)) ? ret : NULL;
66 }
envoy_config_core_v3_Pipe_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)67 UPB_INLINE envoy_config_core_v3_Pipe *envoy_config_core_v3_Pipe_parse_ex(const char *buf, size_t size,
68 upb_arena *arena, int options) {
69 envoy_config_core_v3_Pipe *ret = envoy_config_core_v3_Pipe_new(arena);
70 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_Pipe_msginit, arena, options))
71 ? ret : NULL;
72 }
envoy_config_core_v3_Pipe_serialize(const envoy_config_core_v3_Pipe * msg,upb_arena * arena,size_t * len)73 UPB_INLINE char *envoy_config_core_v3_Pipe_serialize(const envoy_config_core_v3_Pipe *msg, upb_arena *arena, size_t *len) {
74 return upb_encode(msg, &envoy_config_core_v3_Pipe_msginit, arena, len);
75 }
76
envoy_config_core_v3_Pipe_path(const envoy_config_core_v3_Pipe * msg)77 UPB_INLINE upb_strview envoy_config_core_v3_Pipe_path(const envoy_config_core_v3_Pipe *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
envoy_config_core_v3_Pipe_mode(const envoy_config_core_v3_Pipe * msg)78 UPB_INLINE uint32_t envoy_config_core_v3_Pipe_mode(const envoy_config_core_v3_Pipe *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t); }
79
envoy_config_core_v3_Pipe_set_path(envoy_config_core_v3_Pipe * msg,upb_strview value)80 UPB_INLINE void envoy_config_core_v3_Pipe_set_path(envoy_config_core_v3_Pipe *msg, upb_strview value) {
81 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
82 }
envoy_config_core_v3_Pipe_set_mode(envoy_config_core_v3_Pipe * msg,uint32_t value)83 UPB_INLINE void envoy_config_core_v3_Pipe_set_mode(envoy_config_core_v3_Pipe *msg, uint32_t value) {
84 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t) = value;
85 }
86
87 /* envoy.config.core.v3.EnvoyInternalAddress */
88
envoy_config_core_v3_EnvoyInternalAddress_new(upb_arena * arena)89 UPB_INLINE envoy_config_core_v3_EnvoyInternalAddress *envoy_config_core_v3_EnvoyInternalAddress_new(upb_arena *arena) {
90 return (envoy_config_core_v3_EnvoyInternalAddress *)_upb_msg_new(&envoy_config_core_v3_EnvoyInternalAddress_msginit, arena);
91 }
envoy_config_core_v3_EnvoyInternalAddress_parse(const char * buf,size_t size,upb_arena * arena)92 UPB_INLINE envoy_config_core_v3_EnvoyInternalAddress *envoy_config_core_v3_EnvoyInternalAddress_parse(const char *buf, size_t size,
93 upb_arena *arena) {
94 envoy_config_core_v3_EnvoyInternalAddress *ret = envoy_config_core_v3_EnvoyInternalAddress_new(arena);
95 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_EnvoyInternalAddress_msginit, arena)) ? ret : NULL;
96 }
envoy_config_core_v3_EnvoyInternalAddress_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)97 UPB_INLINE envoy_config_core_v3_EnvoyInternalAddress *envoy_config_core_v3_EnvoyInternalAddress_parse_ex(const char *buf, size_t size,
98 upb_arena *arena, int options) {
99 envoy_config_core_v3_EnvoyInternalAddress *ret = envoy_config_core_v3_EnvoyInternalAddress_new(arena);
100 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_EnvoyInternalAddress_msginit, arena, options))
101 ? ret : NULL;
102 }
envoy_config_core_v3_EnvoyInternalAddress_serialize(const envoy_config_core_v3_EnvoyInternalAddress * msg,upb_arena * arena,size_t * len)103 UPB_INLINE char *envoy_config_core_v3_EnvoyInternalAddress_serialize(const envoy_config_core_v3_EnvoyInternalAddress *msg, upb_arena *arena, size_t *len) {
104 return upb_encode(msg, &envoy_config_core_v3_EnvoyInternalAddress_msginit, arena, len);
105 }
106
107 typedef enum {
108 envoy_config_core_v3_EnvoyInternalAddress_address_name_specifier_server_listener_name = 1,
109 envoy_config_core_v3_EnvoyInternalAddress_address_name_specifier_NOT_SET = 0
110 } envoy_config_core_v3_EnvoyInternalAddress_address_name_specifier_oneofcases;
envoy_config_core_v3_EnvoyInternalAddress_address_name_specifier_case(const envoy_config_core_v3_EnvoyInternalAddress * msg)111 UPB_INLINE envoy_config_core_v3_EnvoyInternalAddress_address_name_specifier_oneofcases envoy_config_core_v3_EnvoyInternalAddress_address_name_specifier_case(const envoy_config_core_v3_EnvoyInternalAddress* msg) { return (envoy_config_core_v3_EnvoyInternalAddress_address_name_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(8, 16), int32_t); }
112
envoy_config_core_v3_EnvoyInternalAddress_has_server_listener_name(const envoy_config_core_v3_EnvoyInternalAddress * msg)113 UPB_INLINE bool envoy_config_core_v3_EnvoyInternalAddress_has_server_listener_name(const envoy_config_core_v3_EnvoyInternalAddress *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 1; }
envoy_config_core_v3_EnvoyInternalAddress_server_listener_name(const envoy_config_core_v3_EnvoyInternalAddress * msg)114 UPB_INLINE upb_strview envoy_config_core_v3_EnvoyInternalAddress_server_listener_name(const envoy_config_core_v3_EnvoyInternalAddress *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 1, upb_strview_make("", strlen(""))); }
115
envoy_config_core_v3_EnvoyInternalAddress_set_server_listener_name(envoy_config_core_v3_EnvoyInternalAddress * msg,upb_strview value)116 UPB_INLINE void envoy_config_core_v3_EnvoyInternalAddress_set_server_listener_name(envoy_config_core_v3_EnvoyInternalAddress *msg, upb_strview value) {
117 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 1);
118 }
119
120 /* envoy.config.core.v3.SocketAddress */
121
envoy_config_core_v3_SocketAddress_new(upb_arena * arena)122 UPB_INLINE envoy_config_core_v3_SocketAddress *envoy_config_core_v3_SocketAddress_new(upb_arena *arena) {
123 return (envoy_config_core_v3_SocketAddress *)_upb_msg_new(&envoy_config_core_v3_SocketAddress_msginit, arena);
124 }
envoy_config_core_v3_SocketAddress_parse(const char * buf,size_t size,upb_arena * arena)125 UPB_INLINE envoy_config_core_v3_SocketAddress *envoy_config_core_v3_SocketAddress_parse(const char *buf, size_t size,
126 upb_arena *arena) {
127 envoy_config_core_v3_SocketAddress *ret = envoy_config_core_v3_SocketAddress_new(arena);
128 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_SocketAddress_msginit, arena)) ? ret : NULL;
129 }
envoy_config_core_v3_SocketAddress_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)130 UPB_INLINE envoy_config_core_v3_SocketAddress *envoy_config_core_v3_SocketAddress_parse_ex(const char *buf, size_t size,
131 upb_arena *arena, int options) {
132 envoy_config_core_v3_SocketAddress *ret = envoy_config_core_v3_SocketAddress_new(arena);
133 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_SocketAddress_msginit, arena, options))
134 ? ret : NULL;
135 }
envoy_config_core_v3_SocketAddress_serialize(const envoy_config_core_v3_SocketAddress * msg,upb_arena * arena,size_t * len)136 UPB_INLINE char *envoy_config_core_v3_SocketAddress_serialize(const envoy_config_core_v3_SocketAddress *msg, upb_arena *arena, size_t *len) {
137 return upb_encode(msg, &envoy_config_core_v3_SocketAddress_msginit, arena, len);
138 }
139
140 typedef enum {
141 envoy_config_core_v3_SocketAddress_port_specifier_port_value = 3,
142 envoy_config_core_v3_SocketAddress_port_specifier_named_port = 4,
143 envoy_config_core_v3_SocketAddress_port_specifier_NOT_SET = 0
144 } envoy_config_core_v3_SocketAddress_port_specifier_oneofcases;
envoy_config_core_v3_SocketAddress_port_specifier_case(const envoy_config_core_v3_SocketAddress * msg)145 UPB_INLINE envoy_config_core_v3_SocketAddress_port_specifier_oneofcases envoy_config_core_v3_SocketAddress_port_specifier_case(const envoy_config_core_v3_SocketAddress* msg) { return (envoy_config_core_v3_SocketAddress_port_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(32, 56), int32_t); }
146
envoy_config_core_v3_SocketAddress_protocol(const envoy_config_core_v3_SocketAddress * msg)147 UPB_INLINE int32_t envoy_config_core_v3_SocketAddress_protocol(const envoy_config_core_v3_SocketAddress *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); }
envoy_config_core_v3_SocketAddress_address(const envoy_config_core_v3_SocketAddress * msg)148 UPB_INLINE upb_strview envoy_config_core_v3_SocketAddress_address(const envoy_config_core_v3_SocketAddress *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview); }
envoy_config_core_v3_SocketAddress_has_port_value(const envoy_config_core_v3_SocketAddress * msg)149 UPB_INLINE bool envoy_config_core_v3_SocketAddress_has_port_value(const envoy_config_core_v3_SocketAddress *msg) { return _upb_getoneofcase(msg, UPB_SIZE(32, 56)) == 3; }
envoy_config_core_v3_SocketAddress_port_value(const envoy_config_core_v3_SocketAddress * msg)150 UPB_INLINE uint32_t envoy_config_core_v3_SocketAddress_port_value(const envoy_config_core_v3_SocketAddress *msg) { return UPB_READ_ONEOF(msg, uint32_t, UPB_SIZE(24, 40), UPB_SIZE(32, 56), 3, 0); }
envoy_config_core_v3_SocketAddress_has_named_port(const envoy_config_core_v3_SocketAddress * msg)151 UPB_INLINE bool envoy_config_core_v3_SocketAddress_has_named_port(const envoy_config_core_v3_SocketAddress *msg) { return _upb_getoneofcase(msg, UPB_SIZE(32, 56)) == 4; }
envoy_config_core_v3_SocketAddress_named_port(const envoy_config_core_v3_SocketAddress * msg)152 UPB_INLINE upb_strview envoy_config_core_v3_SocketAddress_named_port(const envoy_config_core_v3_SocketAddress *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(24, 40), UPB_SIZE(32, 56), 4, upb_strview_make("", strlen(""))); }
envoy_config_core_v3_SocketAddress_resolver_name(const envoy_config_core_v3_SocketAddress * msg)153 UPB_INLINE upb_strview envoy_config_core_v3_SocketAddress_resolver_name(const envoy_config_core_v3_SocketAddress *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), upb_strview); }
envoy_config_core_v3_SocketAddress_ipv4_compat(const envoy_config_core_v3_SocketAddress * msg)154 UPB_INLINE bool envoy_config_core_v3_SocketAddress_ipv4_compat(const envoy_config_core_v3_SocketAddress *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool); }
155
envoy_config_core_v3_SocketAddress_set_protocol(envoy_config_core_v3_SocketAddress * msg,int32_t value)156 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_protocol(envoy_config_core_v3_SocketAddress *msg, int32_t value) {
157 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value;
158 }
envoy_config_core_v3_SocketAddress_set_address(envoy_config_core_v3_SocketAddress * msg,upb_strview value)159 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_address(envoy_config_core_v3_SocketAddress *msg, upb_strview value) {
160 *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview) = value;
161 }
envoy_config_core_v3_SocketAddress_set_port_value(envoy_config_core_v3_SocketAddress * msg,uint32_t value)162 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_port_value(envoy_config_core_v3_SocketAddress *msg, uint32_t value) {
163 UPB_WRITE_ONEOF(msg, uint32_t, UPB_SIZE(24, 40), value, UPB_SIZE(32, 56), 3);
164 }
envoy_config_core_v3_SocketAddress_set_named_port(envoy_config_core_v3_SocketAddress * msg,upb_strview value)165 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_named_port(envoy_config_core_v3_SocketAddress *msg, upb_strview value) {
166 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(24, 40), value, UPB_SIZE(32, 56), 4);
167 }
envoy_config_core_v3_SocketAddress_set_resolver_name(envoy_config_core_v3_SocketAddress * msg,upb_strview value)168 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_resolver_name(envoy_config_core_v3_SocketAddress *msg, upb_strview value) {
169 *UPB_PTR_AT(msg, UPB_SIZE(16, 24), upb_strview) = value;
170 }
envoy_config_core_v3_SocketAddress_set_ipv4_compat(envoy_config_core_v3_SocketAddress * msg,bool value)171 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_ipv4_compat(envoy_config_core_v3_SocketAddress *msg, bool value) {
172 *UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool) = value;
173 }
174
175 /* envoy.config.core.v3.TcpKeepalive */
176
envoy_config_core_v3_TcpKeepalive_new(upb_arena * arena)177 UPB_INLINE envoy_config_core_v3_TcpKeepalive *envoy_config_core_v3_TcpKeepalive_new(upb_arena *arena) {
178 return (envoy_config_core_v3_TcpKeepalive *)_upb_msg_new(&envoy_config_core_v3_TcpKeepalive_msginit, arena);
179 }
envoy_config_core_v3_TcpKeepalive_parse(const char * buf,size_t size,upb_arena * arena)180 UPB_INLINE envoy_config_core_v3_TcpKeepalive *envoy_config_core_v3_TcpKeepalive_parse(const char *buf, size_t size,
181 upb_arena *arena) {
182 envoy_config_core_v3_TcpKeepalive *ret = envoy_config_core_v3_TcpKeepalive_new(arena);
183 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_TcpKeepalive_msginit, arena)) ? ret : NULL;
184 }
envoy_config_core_v3_TcpKeepalive_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)185 UPB_INLINE envoy_config_core_v3_TcpKeepalive *envoy_config_core_v3_TcpKeepalive_parse_ex(const char *buf, size_t size,
186 upb_arena *arena, int options) {
187 envoy_config_core_v3_TcpKeepalive *ret = envoy_config_core_v3_TcpKeepalive_new(arena);
188 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_TcpKeepalive_msginit, arena, options))
189 ? ret : NULL;
190 }
envoy_config_core_v3_TcpKeepalive_serialize(const envoy_config_core_v3_TcpKeepalive * msg,upb_arena * arena,size_t * len)191 UPB_INLINE char *envoy_config_core_v3_TcpKeepalive_serialize(const envoy_config_core_v3_TcpKeepalive *msg, upb_arena *arena, size_t *len) {
192 return upb_encode(msg, &envoy_config_core_v3_TcpKeepalive_msginit, arena, len);
193 }
194
envoy_config_core_v3_TcpKeepalive_has_keepalive_probes(const envoy_config_core_v3_TcpKeepalive * msg)195 UPB_INLINE bool envoy_config_core_v3_TcpKeepalive_has_keepalive_probes(const envoy_config_core_v3_TcpKeepalive *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_TcpKeepalive_keepalive_probes(const envoy_config_core_v3_TcpKeepalive * msg)196 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_keepalive_probes(const envoy_config_core_v3_TcpKeepalive *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_UInt32Value*); }
envoy_config_core_v3_TcpKeepalive_has_keepalive_time(const envoy_config_core_v3_TcpKeepalive * msg)197 UPB_INLINE bool envoy_config_core_v3_TcpKeepalive_has_keepalive_time(const envoy_config_core_v3_TcpKeepalive *msg) { return _upb_hasbit(msg, 2); }
envoy_config_core_v3_TcpKeepalive_keepalive_time(const envoy_config_core_v3_TcpKeepalive * msg)198 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_keepalive_time(const envoy_config_core_v3_TcpKeepalive *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_UInt32Value*); }
envoy_config_core_v3_TcpKeepalive_has_keepalive_interval(const envoy_config_core_v3_TcpKeepalive * msg)199 UPB_INLINE bool envoy_config_core_v3_TcpKeepalive_has_keepalive_interval(const envoy_config_core_v3_TcpKeepalive *msg) { return _upb_hasbit(msg, 3); }
envoy_config_core_v3_TcpKeepalive_keepalive_interval(const envoy_config_core_v3_TcpKeepalive * msg)200 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_keepalive_interval(const envoy_config_core_v3_TcpKeepalive *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_UInt32Value*); }
201
envoy_config_core_v3_TcpKeepalive_set_keepalive_probes(envoy_config_core_v3_TcpKeepalive * msg,struct google_protobuf_UInt32Value * value)202 UPB_INLINE void envoy_config_core_v3_TcpKeepalive_set_keepalive_probes(envoy_config_core_v3_TcpKeepalive *msg, struct google_protobuf_UInt32Value* value) {
203 _upb_sethas(msg, 1);
204 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_UInt32Value*) = value;
205 }
envoy_config_core_v3_TcpKeepalive_mutable_keepalive_probes(envoy_config_core_v3_TcpKeepalive * msg,upb_arena * arena)206 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_mutable_keepalive_probes(envoy_config_core_v3_TcpKeepalive *msg, upb_arena *arena) {
207 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_core_v3_TcpKeepalive_keepalive_probes(msg);
208 if (sub == NULL) {
209 sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
210 if (!sub) return NULL;
211 envoy_config_core_v3_TcpKeepalive_set_keepalive_probes(msg, sub);
212 }
213 return sub;
214 }
envoy_config_core_v3_TcpKeepalive_set_keepalive_time(envoy_config_core_v3_TcpKeepalive * msg,struct google_protobuf_UInt32Value * value)215 UPB_INLINE void envoy_config_core_v3_TcpKeepalive_set_keepalive_time(envoy_config_core_v3_TcpKeepalive *msg, struct google_protobuf_UInt32Value* value) {
216 _upb_sethas(msg, 2);
217 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_UInt32Value*) = value;
218 }
envoy_config_core_v3_TcpKeepalive_mutable_keepalive_time(envoy_config_core_v3_TcpKeepalive * msg,upb_arena * arena)219 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_mutable_keepalive_time(envoy_config_core_v3_TcpKeepalive *msg, upb_arena *arena) {
220 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_core_v3_TcpKeepalive_keepalive_time(msg);
221 if (sub == NULL) {
222 sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
223 if (!sub) return NULL;
224 envoy_config_core_v3_TcpKeepalive_set_keepalive_time(msg, sub);
225 }
226 return sub;
227 }
envoy_config_core_v3_TcpKeepalive_set_keepalive_interval(envoy_config_core_v3_TcpKeepalive * msg,struct google_protobuf_UInt32Value * value)228 UPB_INLINE void envoy_config_core_v3_TcpKeepalive_set_keepalive_interval(envoy_config_core_v3_TcpKeepalive *msg, struct google_protobuf_UInt32Value* value) {
229 _upb_sethas(msg, 3);
230 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_UInt32Value*) = value;
231 }
envoy_config_core_v3_TcpKeepalive_mutable_keepalive_interval(envoy_config_core_v3_TcpKeepalive * msg,upb_arena * arena)232 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_mutable_keepalive_interval(envoy_config_core_v3_TcpKeepalive *msg, upb_arena *arena) {
233 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_core_v3_TcpKeepalive_keepalive_interval(msg);
234 if (sub == NULL) {
235 sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
236 if (!sub) return NULL;
237 envoy_config_core_v3_TcpKeepalive_set_keepalive_interval(msg, sub);
238 }
239 return sub;
240 }
241
242 /* envoy.config.core.v3.BindConfig */
243
envoy_config_core_v3_BindConfig_new(upb_arena * arena)244 UPB_INLINE envoy_config_core_v3_BindConfig *envoy_config_core_v3_BindConfig_new(upb_arena *arena) {
245 return (envoy_config_core_v3_BindConfig *)_upb_msg_new(&envoy_config_core_v3_BindConfig_msginit, arena);
246 }
envoy_config_core_v3_BindConfig_parse(const char * buf,size_t size,upb_arena * arena)247 UPB_INLINE envoy_config_core_v3_BindConfig *envoy_config_core_v3_BindConfig_parse(const char *buf, size_t size,
248 upb_arena *arena) {
249 envoy_config_core_v3_BindConfig *ret = envoy_config_core_v3_BindConfig_new(arena);
250 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_BindConfig_msginit, arena)) ? ret : NULL;
251 }
envoy_config_core_v3_BindConfig_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)252 UPB_INLINE envoy_config_core_v3_BindConfig *envoy_config_core_v3_BindConfig_parse_ex(const char *buf, size_t size,
253 upb_arena *arena, int options) {
254 envoy_config_core_v3_BindConfig *ret = envoy_config_core_v3_BindConfig_new(arena);
255 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_BindConfig_msginit, arena, options))
256 ? ret : NULL;
257 }
envoy_config_core_v3_BindConfig_serialize(const envoy_config_core_v3_BindConfig * msg,upb_arena * arena,size_t * len)258 UPB_INLINE char *envoy_config_core_v3_BindConfig_serialize(const envoy_config_core_v3_BindConfig *msg, upb_arena *arena, size_t *len) {
259 return upb_encode(msg, &envoy_config_core_v3_BindConfig_msginit, arena, len);
260 }
261
envoy_config_core_v3_BindConfig_has_source_address(const envoy_config_core_v3_BindConfig * msg)262 UPB_INLINE bool envoy_config_core_v3_BindConfig_has_source_address(const envoy_config_core_v3_BindConfig *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_BindConfig_source_address(const envoy_config_core_v3_BindConfig * msg)263 UPB_INLINE const envoy_config_core_v3_SocketAddress* envoy_config_core_v3_BindConfig_source_address(const envoy_config_core_v3_BindConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const envoy_config_core_v3_SocketAddress*); }
envoy_config_core_v3_BindConfig_has_freebind(const envoy_config_core_v3_BindConfig * msg)264 UPB_INLINE bool envoy_config_core_v3_BindConfig_has_freebind(const envoy_config_core_v3_BindConfig *msg) { return _upb_hasbit(msg, 2); }
envoy_config_core_v3_BindConfig_freebind(const envoy_config_core_v3_BindConfig * msg)265 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_core_v3_BindConfig_freebind(const envoy_config_core_v3_BindConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_BoolValue*); }
envoy_config_core_v3_BindConfig_has_socket_options(const envoy_config_core_v3_BindConfig * msg)266 UPB_INLINE bool envoy_config_core_v3_BindConfig_has_socket_options(const envoy_config_core_v3_BindConfig *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 24)); }
envoy_config_core_v3_BindConfig_socket_options(const envoy_config_core_v3_BindConfig * msg,size_t * len)267 UPB_INLINE const struct envoy_config_core_v3_SocketOption* const* envoy_config_core_v3_BindConfig_socket_options(const envoy_config_core_v3_BindConfig *msg, size_t *len) { return (const struct envoy_config_core_v3_SocketOption* const*)_upb_array_accessor(msg, UPB_SIZE(12, 24), len); }
268
envoy_config_core_v3_BindConfig_set_source_address(envoy_config_core_v3_BindConfig * msg,envoy_config_core_v3_SocketAddress * value)269 UPB_INLINE void envoy_config_core_v3_BindConfig_set_source_address(envoy_config_core_v3_BindConfig *msg, envoy_config_core_v3_SocketAddress* value) {
270 _upb_sethas(msg, 1);
271 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), envoy_config_core_v3_SocketAddress*) = value;
272 }
envoy_config_core_v3_BindConfig_mutable_source_address(envoy_config_core_v3_BindConfig * msg,upb_arena * arena)273 UPB_INLINE struct envoy_config_core_v3_SocketAddress* envoy_config_core_v3_BindConfig_mutable_source_address(envoy_config_core_v3_BindConfig *msg, upb_arena *arena) {
274 struct envoy_config_core_v3_SocketAddress* sub = (struct envoy_config_core_v3_SocketAddress*)envoy_config_core_v3_BindConfig_source_address(msg);
275 if (sub == NULL) {
276 sub = (struct envoy_config_core_v3_SocketAddress*)_upb_msg_new(&envoy_config_core_v3_SocketAddress_msginit, arena);
277 if (!sub) return NULL;
278 envoy_config_core_v3_BindConfig_set_source_address(msg, sub);
279 }
280 return sub;
281 }
envoy_config_core_v3_BindConfig_set_freebind(envoy_config_core_v3_BindConfig * msg,struct google_protobuf_BoolValue * value)282 UPB_INLINE void envoy_config_core_v3_BindConfig_set_freebind(envoy_config_core_v3_BindConfig *msg, struct google_protobuf_BoolValue* value) {
283 _upb_sethas(msg, 2);
284 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_BoolValue*) = value;
285 }
envoy_config_core_v3_BindConfig_mutable_freebind(envoy_config_core_v3_BindConfig * msg,upb_arena * arena)286 UPB_INLINE struct google_protobuf_BoolValue* envoy_config_core_v3_BindConfig_mutable_freebind(envoy_config_core_v3_BindConfig *msg, upb_arena *arena) {
287 struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_core_v3_BindConfig_freebind(msg);
288 if (sub == NULL) {
289 sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
290 if (!sub) return NULL;
291 envoy_config_core_v3_BindConfig_set_freebind(msg, sub);
292 }
293 return sub;
294 }
envoy_config_core_v3_BindConfig_mutable_socket_options(envoy_config_core_v3_BindConfig * msg,size_t * len)295 UPB_INLINE struct envoy_config_core_v3_SocketOption** envoy_config_core_v3_BindConfig_mutable_socket_options(envoy_config_core_v3_BindConfig *msg, size_t *len) {
296 return (struct envoy_config_core_v3_SocketOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(12, 24), len);
297 }
envoy_config_core_v3_BindConfig_resize_socket_options(envoy_config_core_v3_BindConfig * msg,size_t len,upb_arena * arena)298 UPB_INLINE struct envoy_config_core_v3_SocketOption** envoy_config_core_v3_BindConfig_resize_socket_options(envoy_config_core_v3_BindConfig *msg, size_t len, upb_arena *arena) {
299 return (struct envoy_config_core_v3_SocketOption**)_upb_array_resize_accessor2(msg, UPB_SIZE(12, 24), len, UPB_SIZE(2, 3), arena);
300 }
envoy_config_core_v3_BindConfig_add_socket_options(envoy_config_core_v3_BindConfig * msg,upb_arena * arena)301 UPB_INLINE struct envoy_config_core_v3_SocketOption* envoy_config_core_v3_BindConfig_add_socket_options(envoy_config_core_v3_BindConfig *msg, upb_arena *arena) {
302 struct envoy_config_core_v3_SocketOption* sub = (struct envoy_config_core_v3_SocketOption*)_upb_msg_new(&envoy_config_core_v3_SocketOption_msginit, arena);
303 bool ok = _upb_array_append_accessor2(
304 msg, UPB_SIZE(12, 24), UPB_SIZE(2, 3), &sub, arena);
305 if (!ok) return NULL;
306 return sub;
307 }
308
309 /* envoy.config.core.v3.Address */
310
envoy_config_core_v3_Address_new(upb_arena * arena)311 UPB_INLINE envoy_config_core_v3_Address *envoy_config_core_v3_Address_new(upb_arena *arena) {
312 return (envoy_config_core_v3_Address *)_upb_msg_new(&envoy_config_core_v3_Address_msginit, arena);
313 }
envoy_config_core_v3_Address_parse(const char * buf,size_t size,upb_arena * arena)314 UPB_INLINE envoy_config_core_v3_Address *envoy_config_core_v3_Address_parse(const char *buf, size_t size,
315 upb_arena *arena) {
316 envoy_config_core_v3_Address *ret = envoy_config_core_v3_Address_new(arena);
317 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_Address_msginit, arena)) ? ret : NULL;
318 }
envoy_config_core_v3_Address_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)319 UPB_INLINE envoy_config_core_v3_Address *envoy_config_core_v3_Address_parse_ex(const char *buf, size_t size,
320 upb_arena *arena, int options) {
321 envoy_config_core_v3_Address *ret = envoy_config_core_v3_Address_new(arena);
322 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_Address_msginit, arena, options))
323 ? ret : NULL;
324 }
envoy_config_core_v3_Address_serialize(const envoy_config_core_v3_Address * msg,upb_arena * arena,size_t * len)325 UPB_INLINE char *envoy_config_core_v3_Address_serialize(const envoy_config_core_v3_Address *msg, upb_arena *arena, size_t *len) {
326 return upb_encode(msg, &envoy_config_core_v3_Address_msginit, arena, len);
327 }
328
329 typedef enum {
330 envoy_config_core_v3_Address_address_socket_address = 1,
331 envoy_config_core_v3_Address_address_pipe = 2,
332 envoy_config_core_v3_Address_address_envoy_internal_address = 3,
333 envoy_config_core_v3_Address_address_NOT_SET = 0
334 } envoy_config_core_v3_Address_address_oneofcases;
envoy_config_core_v3_Address_address_case(const envoy_config_core_v3_Address * msg)335 UPB_INLINE envoy_config_core_v3_Address_address_oneofcases envoy_config_core_v3_Address_address_case(const envoy_config_core_v3_Address* msg) { return (envoy_config_core_v3_Address_address_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(4, 8), int32_t); }
336
envoy_config_core_v3_Address_has_socket_address(const envoy_config_core_v3_Address * msg)337 UPB_INLINE bool envoy_config_core_v3_Address_has_socket_address(const envoy_config_core_v3_Address *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 1; }
envoy_config_core_v3_Address_socket_address(const envoy_config_core_v3_Address * msg)338 UPB_INLINE const envoy_config_core_v3_SocketAddress* envoy_config_core_v3_Address_socket_address(const envoy_config_core_v3_Address *msg) { return UPB_READ_ONEOF(msg, const envoy_config_core_v3_SocketAddress*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 1, NULL); }
envoy_config_core_v3_Address_has_pipe(const envoy_config_core_v3_Address * msg)339 UPB_INLINE bool envoy_config_core_v3_Address_has_pipe(const envoy_config_core_v3_Address *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 2; }
envoy_config_core_v3_Address_pipe(const envoy_config_core_v3_Address * msg)340 UPB_INLINE const envoy_config_core_v3_Pipe* envoy_config_core_v3_Address_pipe(const envoy_config_core_v3_Address *msg) { return UPB_READ_ONEOF(msg, const envoy_config_core_v3_Pipe*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 2, NULL); }
envoy_config_core_v3_Address_has_envoy_internal_address(const envoy_config_core_v3_Address * msg)341 UPB_INLINE bool envoy_config_core_v3_Address_has_envoy_internal_address(const envoy_config_core_v3_Address *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 3; }
envoy_config_core_v3_Address_envoy_internal_address(const envoy_config_core_v3_Address * msg)342 UPB_INLINE const envoy_config_core_v3_EnvoyInternalAddress* envoy_config_core_v3_Address_envoy_internal_address(const envoy_config_core_v3_Address *msg) { return UPB_READ_ONEOF(msg, const envoy_config_core_v3_EnvoyInternalAddress*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 3, NULL); }
343
envoy_config_core_v3_Address_set_socket_address(envoy_config_core_v3_Address * msg,envoy_config_core_v3_SocketAddress * value)344 UPB_INLINE void envoy_config_core_v3_Address_set_socket_address(envoy_config_core_v3_Address *msg, envoy_config_core_v3_SocketAddress* value) {
345 UPB_WRITE_ONEOF(msg, envoy_config_core_v3_SocketAddress*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 1);
346 }
envoy_config_core_v3_Address_mutable_socket_address(envoy_config_core_v3_Address * msg,upb_arena * arena)347 UPB_INLINE struct envoy_config_core_v3_SocketAddress* envoy_config_core_v3_Address_mutable_socket_address(envoy_config_core_v3_Address *msg, upb_arena *arena) {
348 struct envoy_config_core_v3_SocketAddress* sub = (struct envoy_config_core_v3_SocketAddress*)envoy_config_core_v3_Address_socket_address(msg);
349 if (sub == NULL) {
350 sub = (struct envoy_config_core_v3_SocketAddress*)_upb_msg_new(&envoy_config_core_v3_SocketAddress_msginit, arena);
351 if (!sub) return NULL;
352 envoy_config_core_v3_Address_set_socket_address(msg, sub);
353 }
354 return sub;
355 }
envoy_config_core_v3_Address_set_pipe(envoy_config_core_v3_Address * msg,envoy_config_core_v3_Pipe * value)356 UPB_INLINE void envoy_config_core_v3_Address_set_pipe(envoy_config_core_v3_Address *msg, envoy_config_core_v3_Pipe* value) {
357 UPB_WRITE_ONEOF(msg, envoy_config_core_v3_Pipe*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 2);
358 }
envoy_config_core_v3_Address_mutable_pipe(envoy_config_core_v3_Address * msg,upb_arena * arena)359 UPB_INLINE struct envoy_config_core_v3_Pipe* envoy_config_core_v3_Address_mutable_pipe(envoy_config_core_v3_Address *msg, upb_arena *arena) {
360 struct envoy_config_core_v3_Pipe* sub = (struct envoy_config_core_v3_Pipe*)envoy_config_core_v3_Address_pipe(msg);
361 if (sub == NULL) {
362 sub = (struct envoy_config_core_v3_Pipe*)_upb_msg_new(&envoy_config_core_v3_Pipe_msginit, arena);
363 if (!sub) return NULL;
364 envoy_config_core_v3_Address_set_pipe(msg, sub);
365 }
366 return sub;
367 }
envoy_config_core_v3_Address_set_envoy_internal_address(envoy_config_core_v3_Address * msg,envoy_config_core_v3_EnvoyInternalAddress * value)368 UPB_INLINE void envoy_config_core_v3_Address_set_envoy_internal_address(envoy_config_core_v3_Address *msg, envoy_config_core_v3_EnvoyInternalAddress* value) {
369 UPB_WRITE_ONEOF(msg, envoy_config_core_v3_EnvoyInternalAddress*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 3);
370 }
envoy_config_core_v3_Address_mutable_envoy_internal_address(envoy_config_core_v3_Address * msg,upb_arena * arena)371 UPB_INLINE struct envoy_config_core_v3_EnvoyInternalAddress* envoy_config_core_v3_Address_mutable_envoy_internal_address(envoy_config_core_v3_Address *msg, upb_arena *arena) {
372 struct envoy_config_core_v3_EnvoyInternalAddress* sub = (struct envoy_config_core_v3_EnvoyInternalAddress*)envoy_config_core_v3_Address_envoy_internal_address(msg);
373 if (sub == NULL) {
374 sub = (struct envoy_config_core_v3_EnvoyInternalAddress*)_upb_msg_new(&envoy_config_core_v3_EnvoyInternalAddress_msginit, arena);
375 if (!sub) return NULL;
376 envoy_config_core_v3_Address_set_envoy_internal_address(msg, sub);
377 }
378 return sub;
379 }
380
381 /* envoy.config.core.v3.CidrRange */
382
envoy_config_core_v3_CidrRange_new(upb_arena * arena)383 UPB_INLINE envoy_config_core_v3_CidrRange *envoy_config_core_v3_CidrRange_new(upb_arena *arena) {
384 return (envoy_config_core_v3_CidrRange *)_upb_msg_new(&envoy_config_core_v3_CidrRange_msginit, arena);
385 }
envoy_config_core_v3_CidrRange_parse(const char * buf,size_t size,upb_arena * arena)386 UPB_INLINE envoy_config_core_v3_CidrRange *envoy_config_core_v3_CidrRange_parse(const char *buf, size_t size,
387 upb_arena *arena) {
388 envoy_config_core_v3_CidrRange *ret = envoy_config_core_v3_CidrRange_new(arena);
389 return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_CidrRange_msginit, arena)) ? ret : NULL;
390 }
envoy_config_core_v3_CidrRange_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)391 UPB_INLINE envoy_config_core_v3_CidrRange *envoy_config_core_v3_CidrRange_parse_ex(const char *buf, size_t size,
392 upb_arena *arena, int options) {
393 envoy_config_core_v3_CidrRange *ret = envoy_config_core_v3_CidrRange_new(arena);
394 return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_CidrRange_msginit, arena, options))
395 ? ret : NULL;
396 }
envoy_config_core_v3_CidrRange_serialize(const envoy_config_core_v3_CidrRange * msg,upb_arena * arena,size_t * len)397 UPB_INLINE char *envoy_config_core_v3_CidrRange_serialize(const envoy_config_core_v3_CidrRange *msg, upb_arena *arena, size_t *len) {
398 return upb_encode(msg, &envoy_config_core_v3_CidrRange_msginit, arena, len);
399 }
400
envoy_config_core_v3_CidrRange_address_prefix(const envoy_config_core_v3_CidrRange * msg)401 UPB_INLINE upb_strview envoy_config_core_v3_CidrRange_address_prefix(const envoy_config_core_v3_CidrRange *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
envoy_config_core_v3_CidrRange_has_prefix_len(const envoy_config_core_v3_CidrRange * msg)402 UPB_INLINE bool envoy_config_core_v3_CidrRange_has_prefix_len(const envoy_config_core_v3_CidrRange *msg) { return _upb_hasbit(msg, 1); }
envoy_config_core_v3_CidrRange_prefix_len(const envoy_config_core_v3_CidrRange * msg)403 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_core_v3_CidrRange_prefix_len(const envoy_config_core_v3_CidrRange *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_UInt32Value*); }
404
envoy_config_core_v3_CidrRange_set_address_prefix(envoy_config_core_v3_CidrRange * msg,upb_strview value)405 UPB_INLINE void envoy_config_core_v3_CidrRange_set_address_prefix(envoy_config_core_v3_CidrRange *msg, upb_strview value) {
406 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
407 }
envoy_config_core_v3_CidrRange_set_prefix_len(envoy_config_core_v3_CidrRange * msg,struct google_protobuf_UInt32Value * value)408 UPB_INLINE void envoy_config_core_v3_CidrRange_set_prefix_len(envoy_config_core_v3_CidrRange *msg, struct google_protobuf_UInt32Value* value) {
409 _upb_sethas(msg, 1);
410 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_UInt32Value*) = value;
411 }
envoy_config_core_v3_CidrRange_mutable_prefix_len(envoy_config_core_v3_CidrRange * msg,upb_arena * arena)412 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_core_v3_CidrRange_mutable_prefix_len(envoy_config_core_v3_CidrRange *msg, upb_arena *arena) {
413 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_core_v3_CidrRange_prefix_len(msg);
414 if (sub == NULL) {
415 sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
416 if (!sub) return NULL;
417 envoy_config_core_v3_CidrRange_set_prefix_len(msg, sub);
418 }
419 return sub;
420 }
421
422 #ifdef __cplusplus
423 } /* extern "C" */
424 #endif
425
426 #include "upb/port_undef.inc"
427
428 #endif /* ENVOY_CONFIG_CORE_V3_ADDRESS_PROTO_UPB_H_ */
429