1 /* This file was generated by upb_generator from the input file:
2 *
3 * envoy/config/core/v3/address.proto
4 *
5 * Do not edit -- your changes will be discarded when the file is
6 * regenerated. */
7
8 #ifndef ENVOY_CONFIG_CORE_V3_ADDRESS_PROTO_UPB_H_
9 #define ENVOY_CONFIG_CORE_V3_ADDRESS_PROTO_UPB_H_
10
11 #include "upb/generated_code_support.h"
12
13 #include "envoy/config/core/v3/address.upb_minitable.h"
14
15 #include "envoy/config/core/v3/extension.upb_minitable.h"
16 #include "envoy/config/core/v3/socket_option.upb_minitable.h"
17 #include "google/protobuf/wrappers.upb_minitable.h"
18 #include "envoy/annotations/deprecation.upb_minitable.h"
19 #include "udpa/annotations/status.upb_minitable.h"
20 #include "udpa/annotations/versioning.upb_minitable.h"
21 #include "validate/validate.upb_minitable.h"
22
23 // Must be last.
24 #include "upb/port/def.inc"
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 typedef struct envoy_config_core_v3_Pipe { upb_Message UPB_PRIVATE(base); } envoy_config_core_v3_Pipe;
31 typedef struct envoy_config_core_v3_EnvoyInternalAddress { upb_Message UPB_PRIVATE(base); } envoy_config_core_v3_EnvoyInternalAddress;
32 typedef struct envoy_config_core_v3_SocketAddress { upb_Message UPB_PRIVATE(base); } envoy_config_core_v3_SocketAddress;
33 typedef struct envoy_config_core_v3_TcpKeepalive { upb_Message UPB_PRIVATE(base); } envoy_config_core_v3_TcpKeepalive;
34 typedef struct envoy_config_core_v3_ExtraSourceAddress { upb_Message UPB_PRIVATE(base); } envoy_config_core_v3_ExtraSourceAddress;
35 typedef struct envoy_config_core_v3_BindConfig { upb_Message UPB_PRIVATE(base); } envoy_config_core_v3_BindConfig;
36 typedef struct envoy_config_core_v3_Address { upb_Message UPB_PRIVATE(base); } envoy_config_core_v3_Address;
37 typedef struct envoy_config_core_v3_CidrRange { upb_Message UPB_PRIVATE(base); } envoy_config_core_v3_CidrRange;
38 struct envoy_config_core_v3_SocketOption;
39 struct envoy_config_core_v3_SocketOptionsOverride;
40 struct envoy_config_core_v3_TypedExtensionConfig;
41 struct google_protobuf_BoolValue;
42 struct google_protobuf_UInt32Value;
43
44 typedef enum {
45 envoy_config_core_v3_SocketAddress_TCP = 0,
46 envoy_config_core_v3_SocketAddress_UDP = 1
47 } envoy_config_core_v3_SocketAddress_Protocol;
48
49
50
51 /* envoy.config.core.v3.Pipe */
52
envoy_config_core_v3_Pipe_new(upb_Arena * arena)53 UPB_INLINE envoy_config_core_v3_Pipe* envoy_config_core_v3_Pipe_new(upb_Arena* arena) {
54 return (envoy_config_core_v3_Pipe*)_upb_Message_New(&envoy__config__core__v3__Pipe_msg_init, arena);
55 }
envoy_config_core_v3_Pipe_parse(const char * buf,size_t size,upb_Arena * arena)56 UPB_INLINE envoy_config_core_v3_Pipe* envoy_config_core_v3_Pipe_parse(const char* buf, size_t size, upb_Arena* arena) {
57 envoy_config_core_v3_Pipe* ret = envoy_config_core_v3_Pipe_new(arena);
58 if (!ret) return NULL;
59 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__Pipe_msg_init, NULL, 0, arena) !=
60 kUpb_DecodeStatus_Ok) {
61 return NULL;
62 }
63 return ret;
64 }
envoy_config_core_v3_Pipe_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)65 UPB_INLINE envoy_config_core_v3_Pipe* envoy_config_core_v3_Pipe_parse_ex(const char* buf, size_t size,
66 const upb_ExtensionRegistry* extreg,
67 int options, upb_Arena* arena) {
68 envoy_config_core_v3_Pipe* ret = envoy_config_core_v3_Pipe_new(arena);
69 if (!ret) return NULL;
70 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__Pipe_msg_init, extreg, options,
71 arena) != kUpb_DecodeStatus_Ok) {
72 return NULL;
73 }
74 return ret;
75 }
envoy_config_core_v3_Pipe_serialize(const envoy_config_core_v3_Pipe * msg,upb_Arena * arena,size_t * len)76 UPB_INLINE char* envoy_config_core_v3_Pipe_serialize(const envoy_config_core_v3_Pipe* msg, upb_Arena* arena, size_t* len) {
77 char* ptr;
78 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__Pipe_msg_init, 0, arena, &ptr, len);
79 return ptr;
80 }
envoy_config_core_v3_Pipe_serialize_ex(const envoy_config_core_v3_Pipe * msg,int options,upb_Arena * arena,size_t * len)81 UPB_INLINE char* envoy_config_core_v3_Pipe_serialize_ex(const envoy_config_core_v3_Pipe* msg, int options,
82 upb_Arena* arena, size_t* len) {
83 char* ptr;
84 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__Pipe_msg_init, options, arena, &ptr, len);
85 return ptr;
86 }
envoy_config_core_v3_Pipe_clear_path(envoy_config_core_v3_Pipe * msg)87 UPB_INLINE void envoy_config_core_v3_Pipe_clear_path(envoy_config_core_v3_Pipe* msg) {
88 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
89 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
90 }
envoy_config_core_v3_Pipe_path(const envoy_config_core_v3_Pipe * msg)91 UPB_INLINE upb_StringView envoy_config_core_v3_Pipe_path(const envoy_config_core_v3_Pipe* msg) {
92 upb_StringView default_val = upb_StringView_FromString("");
93 upb_StringView ret;
94 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
95 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
96 &default_val, &ret);
97 return ret;
98 }
envoy_config_core_v3_Pipe_clear_mode(envoy_config_core_v3_Pipe * msg)99 UPB_INLINE void envoy_config_core_v3_Pipe_clear_mode(envoy_config_core_v3_Pipe* msg) {
100 const upb_MiniTableField field = {2, 8, 0, kUpb_NoSub, 13, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
101 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
102 }
envoy_config_core_v3_Pipe_mode(const envoy_config_core_v3_Pipe * msg)103 UPB_INLINE uint32_t envoy_config_core_v3_Pipe_mode(const envoy_config_core_v3_Pipe* msg) {
104 uint32_t default_val = (uint32_t)0u;
105 uint32_t ret;
106 const upb_MiniTableField field = {2, 8, 0, kUpb_NoSub, 13, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
107 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
108 &default_val, &ret);
109 return ret;
110 }
111
envoy_config_core_v3_Pipe_set_path(envoy_config_core_v3_Pipe * msg,upb_StringView value)112 UPB_INLINE void envoy_config_core_v3_Pipe_set_path(envoy_config_core_v3_Pipe *msg, upb_StringView value) {
113 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
114 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
115 }
envoy_config_core_v3_Pipe_set_mode(envoy_config_core_v3_Pipe * msg,uint32_t value)116 UPB_INLINE void envoy_config_core_v3_Pipe_set_mode(envoy_config_core_v3_Pipe *msg, uint32_t value) {
117 const upb_MiniTableField field = {2, 8, 0, kUpb_NoSub, 13, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
118 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
119 }
120
121 /* envoy.config.core.v3.EnvoyInternalAddress */
122
envoy_config_core_v3_EnvoyInternalAddress_new(upb_Arena * arena)123 UPB_INLINE envoy_config_core_v3_EnvoyInternalAddress* envoy_config_core_v3_EnvoyInternalAddress_new(upb_Arena* arena) {
124 return (envoy_config_core_v3_EnvoyInternalAddress*)_upb_Message_New(&envoy__config__core__v3__EnvoyInternalAddress_msg_init, arena);
125 }
envoy_config_core_v3_EnvoyInternalAddress_parse(const char * buf,size_t size,upb_Arena * arena)126 UPB_INLINE envoy_config_core_v3_EnvoyInternalAddress* envoy_config_core_v3_EnvoyInternalAddress_parse(const char* buf, size_t size, upb_Arena* arena) {
127 envoy_config_core_v3_EnvoyInternalAddress* ret = envoy_config_core_v3_EnvoyInternalAddress_new(arena);
128 if (!ret) return NULL;
129 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__EnvoyInternalAddress_msg_init, NULL, 0, arena) !=
130 kUpb_DecodeStatus_Ok) {
131 return NULL;
132 }
133 return ret;
134 }
envoy_config_core_v3_EnvoyInternalAddress_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)135 UPB_INLINE envoy_config_core_v3_EnvoyInternalAddress* envoy_config_core_v3_EnvoyInternalAddress_parse_ex(const char* buf, size_t size,
136 const upb_ExtensionRegistry* extreg,
137 int options, upb_Arena* arena) {
138 envoy_config_core_v3_EnvoyInternalAddress* ret = envoy_config_core_v3_EnvoyInternalAddress_new(arena);
139 if (!ret) return NULL;
140 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__EnvoyInternalAddress_msg_init, extreg, options,
141 arena) != kUpb_DecodeStatus_Ok) {
142 return NULL;
143 }
144 return ret;
145 }
envoy_config_core_v3_EnvoyInternalAddress_serialize(const envoy_config_core_v3_EnvoyInternalAddress * msg,upb_Arena * arena,size_t * len)146 UPB_INLINE char* envoy_config_core_v3_EnvoyInternalAddress_serialize(const envoy_config_core_v3_EnvoyInternalAddress* msg, upb_Arena* arena, size_t* len) {
147 char* ptr;
148 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__EnvoyInternalAddress_msg_init, 0, arena, &ptr, len);
149 return ptr;
150 }
envoy_config_core_v3_EnvoyInternalAddress_serialize_ex(const envoy_config_core_v3_EnvoyInternalAddress * msg,int options,upb_Arena * arena,size_t * len)151 UPB_INLINE char* envoy_config_core_v3_EnvoyInternalAddress_serialize_ex(const envoy_config_core_v3_EnvoyInternalAddress* msg, int options,
152 upb_Arena* arena, size_t* len) {
153 char* ptr;
154 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__EnvoyInternalAddress_msg_init, options, arena, &ptr, len);
155 return ptr;
156 }
157 typedef enum {
158 envoy_config_core_v3_EnvoyInternalAddress_address_name_specifier_server_listener_name = 1,
159 envoy_config_core_v3_EnvoyInternalAddress_address_name_specifier_NOT_SET = 0
160 } 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)161 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) {
162 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
163 return (envoy_config_core_v3_EnvoyInternalAddress_address_name_specifier_oneofcases)upb_Message_WhichOneofFieldNumber(
164 UPB_UPCAST(msg), &field);
165 }
envoy_config_core_v3_EnvoyInternalAddress_clear_server_listener_name(envoy_config_core_v3_EnvoyInternalAddress * msg)166 UPB_INLINE void envoy_config_core_v3_EnvoyInternalAddress_clear_server_listener_name(envoy_config_core_v3_EnvoyInternalAddress* msg) {
167 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
168 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
169 }
envoy_config_core_v3_EnvoyInternalAddress_server_listener_name(const envoy_config_core_v3_EnvoyInternalAddress * msg)170 UPB_INLINE upb_StringView envoy_config_core_v3_EnvoyInternalAddress_server_listener_name(const envoy_config_core_v3_EnvoyInternalAddress* msg) {
171 upb_StringView default_val = upb_StringView_FromString("");
172 upb_StringView ret;
173 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
174 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
175 &default_val, &ret);
176 return ret;
177 }
envoy_config_core_v3_EnvoyInternalAddress_has_server_listener_name(const envoy_config_core_v3_EnvoyInternalAddress * msg)178 UPB_INLINE bool envoy_config_core_v3_EnvoyInternalAddress_has_server_listener_name(const envoy_config_core_v3_EnvoyInternalAddress* msg) {
179 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
180 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
181 }
envoy_config_core_v3_EnvoyInternalAddress_clear_endpoint_id(envoy_config_core_v3_EnvoyInternalAddress * msg)182 UPB_INLINE void envoy_config_core_v3_EnvoyInternalAddress_clear_endpoint_id(envoy_config_core_v3_EnvoyInternalAddress* msg) {
183 const upb_MiniTableField field = {2, UPB_SIZE(20, 32), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
184 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
185 }
envoy_config_core_v3_EnvoyInternalAddress_endpoint_id(const envoy_config_core_v3_EnvoyInternalAddress * msg)186 UPB_INLINE upb_StringView envoy_config_core_v3_EnvoyInternalAddress_endpoint_id(const envoy_config_core_v3_EnvoyInternalAddress* msg) {
187 upb_StringView default_val = upb_StringView_FromString("");
188 upb_StringView ret;
189 const upb_MiniTableField field = {2, UPB_SIZE(20, 32), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
190 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
191 &default_val, &ret);
192 return ret;
193 }
194
envoy_config_core_v3_EnvoyInternalAddress_set_server_listener_name(envoy_config_core_v3_EnvoyInternalAddress * msg,upb_StringView value)195 UPB_INLINE void envoy_config_core_v3_EnvoyInternalAddress_set_server_listener_name(envoy_config_core_v3_EnvoyInternalAddress *msg, upb_StringView value) {
196 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
197 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
198 }
envoy_config_core_v3_EnvoyInternalAddress_set_endpoint_id(envoy_config_core_v3_EnvoyInternalAddress * msg,upb_StringView value)199 UPB_INLINE void envoy_config_core_v3_EnvoyInternalAddress_set_endpoint_id(envoy_config_core_v3_EnvoyInternalAddress *msg, upb_StringView value) {
200 const upb_MiniTableField field = {2, UPB_SIZE(20, 32), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
201 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
202 }
203
204 /* envoy.config.core.v3.SocketAddress */
205
envoy_config_core_v3_SocketAddress_new(upb_Arena * arena)206 UPB_INLINE envoy_config_core_v3_SocketAddress* envoy_config_core_v3_SocketAddress_new(upb_Arena* arena) {
207 return (envoy_config_core_v3_SocketAddress*)_upb_Message_New(&envoy__config__core__v3__SocketAddress_msg_init, arena);
208 }
envoy_config_core_v3_SocketAddress_parse(const char * buf,size_t size,upb_Arena * arena)209 UPB_INLINE envoy_config_core_v3_SocketAddress* envoy_config_core_v3_SocketAddress_parse(const char* buf, size_t size, upb_Arena* arena) {
210 envoy_config_core_v3_SocketAddress* ret = envoy_config_core_v3_SocketAddress_new(arena);
211 if (!ret) return NULL;
212 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__SocketAddress_msg_init, NULL, 0, arena) !=
213 kUpb_DecodeStatus_Ok) {
214 return NULL;
215 }
216 return ret;
217 }
envoy_config_core_v3_SocketAddress_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)218 UPB_INLINE envoy_config_core_v3_SocketAddress* envoy_config_core_v3_SocketAddress_parse_ex(const char* buf, size_t size,
219 const upb_ExtensionRegistry* extreg,
220 int options, upb_Arena* arena) {
221 envoy_config_core_v3_SocketAddress* ret = envoy_config_core_v3_SocketAddress_new(arena);
222 if (!ret) return NULL;
223 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__SocketAddress_msg_init, extreg, options,
224 arena) != kUpb_DecodeStatus_Ok) {
225 return NULL;
226 }
227 return ret;
228 }
envoy_config_core_v3_SocketAddress_serialize(const envoy_config_core_v3_SocketAddress * msg,upb_Arena * arena,size_t * len)229 UPB_INLINE char* envoy_config_core_v3_SocketAddress_serialize(const envoy_config_core_v3_SocketAddress* msg, upb_Arena* arena, size_t* len) {
230 char* ptr;
231 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__SocketAddress_msg_init, 0, arena, &ptr, len);
232 return ptr;
233 }
envoy_config_core_v3_SocketAddress_serialize_ex(const envoy_config_core_v3_SocketAddress * msg,int options,upb_Arena * arena,size_t * len)234 UPB_INLINE char* envoy_config_core_v3_SocketAddress_serialize_ex(const envoy_config_core_v3_SocketAddress* msg, int options,
235 upb_Arena* arena, size_t* len) {
236 char* ptr;
237 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__SocketAddress_msg_init, options, arena, &ptr, len);
238 return ptr;
239 }
240 typedef enum {
241 envoy_config_core_v3_SocketAddress_port_specifier_port_value = 3,
242 envoy_config_core_v3_SocketAddress_port_specifier_named_port = 4,
243 envoy_config_core_v3_SocketAddress_port_specifier_NOT_SET = 0
244 } envoy_config_core_v3_SocketAddress_port_specifier_oneofcases;
envoy_config_core_v3_SocketAddress_port_specifier_case(const envoy_config_core_v3_SocketAddress * msg)245 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) {
246 const upb_MiniTableField field = {3, UPB_SIZE(20, 24), -13, kUpb_NoSub, 13, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
247 return (envoy_config_core_v3_SocketAddress_port_specifier_oneofcases)upb_Message_WhichOneofFieldNumber(
248 UPB_UPCAST(msg), &field);
249 }
envoy_config_core_v3_SocketAddress_clear_protocol(envoy_config_core_v3_SocketAddress * msg)250 UPB_INLINE void envoy_config_core_v3_SocketAddress_clear_protocol(envoy_config_core_v3_SocketAddress* msg) {
251 const upb_MiniTableField field = {1, 8, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
252 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
253 }
envoy_config_core_v3_SocketAddress_protocol(const envoy_config_core_v3_SocketAddress * msg)254 UPB_INLINE int32_t envoy_config_core_v3_SocketAddress_protocol(const envoy_config_core_v3_SocketAddress* msg) {
255 int32_t default_val = 0;
256 int32_t ret;
257 const upb_MiniTableField field = {1, 8, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
258 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
259 &default_val, &ret);
260 return ret;
261 }
envoy_config_core_v3_SocketAddress_clear_address(envoy_config_core_v3_SocketAddress * msg)262 UPB_INLINE void envoy_config_core_v3_SocketAddress_clear_address(envoy_config_core_v3_SocketAddress* msg) {
263 const upb_MiniTableField field = {2, UPB_SIZE(28, 40), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
264 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
265 }
envoy_config_core_v3_SocketAddress_address(const envoy_config_core_v3_SocketAddress * msg)266 UPB_INLINE upb_StringView envoy_config_core_v3_SocketAddress_address(const envoy_config_core_v3_SocketAddress* msg) {
267 upb_StringView default_val = upb_StringView_FromString("");
268 upb_StringView ret;
269 const upb_MiniTableField field = {2, UPB_SIZE(28, 40), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
270 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
271 &default_val, &ret);
272 return ret;
273 }
envoy_config_core_v3_SocketAddress_clear_port_value(envoy_config_core_v3_SocketAddress * msg)274 UPB_INLINE void envoy_config_core_v3_SocketAddress_clear_port_value(envoy_config_core_v3_SocketAddress* msg) {
275 const upb_MiniTableField field = {3, UPB_SIZE(20, 24), -13, kUpb_NoSub, 13, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
276 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
277 }
envoy_config_core_v3_SocketAddress_port_value(const envoy_config_core_v3_SocketAddress * msg)278 UPB_INLINE uint32_t envoy_config_core_v3_SocketAddress_port_value(const envoy_config_core_v3_SocketAddress* msg) {
279 uint32_t default_val = (uint32_t)0u;
280 uint32_t ret;
281 const upb_MiniTableField field = {3, UPB_SIZE(20, 24), -13, kUpb_NoSub, 13, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
282 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
283 &default_val, &ret);
284 return ret;
285 }
envoy_config_core_v3_SocketAddress_has_port_value(const envoy_config_core_v3_SocketAddress * msg)286 UPB_INLINE bool envoy_config_core_v3_SocketAddress_has_port_value(const envoy_config_core_v3_SocketAddress* msg) {
287 const upb_MiniTableField field = {3, UPB_SIZE(20, 24), -13, kUpb_NoSub, 13, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
288 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
289 }
envoy_config_core_v3_SocketAddress_clear_named_port(envoy_config_core_v3_SocketAddress * msg)290 UPB_INLINE void envoy_config_core_v3_SocketAddress_clear_named_port(envoy_config_core_v3_SocketAddress* msg) {
291 const upb_MiniTableField field = {4, UPB_SIZE(20, 24), -13, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
292 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
293 }
envoy_config_core_v3_SocketAddress_named_port(const envoy_config_core_v3_SocketAddress * msg)294 UPB_INLINE upb_StringView envoy_config_core_v3_SocketAddress_named_port(const envoy_config_core_v3_SocketAddress* msg) {
295 upb_StringView default_val = upb_StringView_FromString("");
296 upb_StringView ret;
297 const upb_MiniTableField field = {4, UPB_SIZE(20, 24), -13, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
298 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
299 &default_val, &ret);
300 return ret;
301 }
envoy_config_core_v3_SocketAddress_has_named_port(const envoy_config_core_v3_SocketAddress * msg)302 UPB_INLINE bool envoy_config_core_v3_SocketAddress_has_named_port(const envoy_config_core_v3_SocketAddress* msg) {
303 const upb_MiniTableField field = {4, UPB_SIZE(20, 24), -13, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
304 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
305 }
envoy_config_core_v3_SocketAddress_clear_resolver_name(envoy_config_core_v3_SocketAddress * msg)306 UPB_INLINE void envoy_config_core_v3_SocketAddress_clear_resolver_name(envoy_config_core_v3_SocketAddress* msg) {
307 const upb_MiniTableField field = {5, UPB_SIZE(36, 56), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
308 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
309 }
envoy_config_core_v3_SocketAddress_resolver_name(const envoy_config_core_v3_SocketAddress * msg)310 UPB_INLINE upb_StringView envoy_config_core_v3_SocketAddress_resolver_name(const envoy_config_core_v3_SocketAddress* msg) {
311 upb_StringView default_val = upb_StringView_FromString("");
312 upb_StringView ret;
313 const upb_MiniTableField field = {5, UPB_SIZE(36, 56), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
314 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
315 &default_val, &ret);
316 return ret;
317 }
envoy_config_core_v3_SocketAddress_clear_ipv4_compat(envoy_config_core_v3_SocketAddress * msg)318 UPB_INLINE void envoy_config_core_v3_SocketAddress_clear_ipv4_compat(envoy_config_core_v3_SocketAddress* msg) {
319 const upb_MiniTableField field = {6, 16, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
320 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
321 }
envoy_config_core_v3_SocketAddress_ipv4_compat(const envoy_config_core_v3_SocketAddress * msg)322 UPB_INLINE bool envoy_config_core_v3_SocketAddress_ipv4_compat(const envoy_config_core_v3_SocketAddress* msg) {
323 bool default_val = false;
324 bool ret;
325 const upb_MiniTableField field = {6, 16, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
326 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
327 &default_val, &ret);
328 return ret;
329 }
330
envoy_config_core_v3_SocketAddress_set_protocol(envoy_config_core_v3_SocketAddress * msg,int32_t value)331 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_protocol(envoy_config_core_v3_SocketAddress *msg, int32_t value) {
332 const upb_MiniTableField field = {1, 8, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
333 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
334 }
envoy_config_core_v3_SocketAddress_set_address(envoy_config_core_v3_SocketAddress * msg,upb_StringView value)335 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_address(envoy_config_core_v3_SocketAddress *msg, upb_StringView value) {
336 const upb_MiniTableField field = {2, UPB_SIZE(28, 40), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
337 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
338 }
envoy_config_core_v3_SocketAddress_set_port_value(envoy_config_core_v3_SocketAddress * msg,uint32_t value)339 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_port_value(envoy_config_core_v3_SocketAddress *msg, uint32_t value) {
340 const upb_MiniTableField field = {3, UPB_SIZE(20, 24), -13, kUpb_NoSub, 13, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
341 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
342 }
envoy_config_core_v3_SocketAddress_set_named_port(envoy_config_core_v3_SocketAddress * msg,upb_StringView value)343 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_named_port(envoy_config_core_v3_SocketAddress *msg, upb_StringView value) {
344 const upb_MiniTableField field = {4, UPB_SIZE(20, 24), -13, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
345 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
346 }
envoy_config_core_v3_SocketAddress_set_resolver_name(envoy_config_core_v3_SocketAddress * msg,upb_StringView value)347 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_resolver_name(envoy_config_core_v3_SocketAddress *msg, upb_StringView value) {
348 const upb_MiniTableField field = {5, UPB_SIZE(36, 56), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
349 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
350 }
envoy_config_core_v3_SocketAddress_set_ipv4_compat(envoy_config_core_v3_SocketAddress * msg,bool value)351 UPB_INLINE void envoy_config_core_v3_SocketAddress_set_ipv4_compat(envoy_config_core_v3_SocketAddress *msg, bool value) {
352 const upb_MiniTableField field = {6, 16, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
353 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
354 }
355
356 /* envoy.config.core.v3.TcpKeepalive */
357
envoy_config_core_v3_TcpKeepalive_new(upb_Arena * arena)358 UPB_INLINE envoy_config_core_v3_TcpKeepalive* envoy_config_core_v3_TcpKeepalive_new(upb_Arena* arena) {
359 return (envoy_config_core_v3_TcpKeepalive*)_upb_Message_New(&envoy__config__core__v3__TcpKeepalive_msg_init, arena);
360 }
envoy_config_core_v3_TcpKeepalive_parse(const char * buf,size_t size,upb_Arena * arena)361 UPB_INLINE envoy_config_core_v3_TcpKeepalive* envoy_config_core_v3_TcpKeepalive_parse(const char* buf, size_t size, upb_Arena* arena) {
362 envoy_config_core_v3_TcpKeepalive* ret = envoy_config_core_v3_TcpKeepalive_new(arena);
363 if (!ret) return NULL;
364 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__TcpKeepalive_msg_init, NULL, 0, arena) !=
365 kUpb_DecodeStatus_Ok) {
366 return NULL;
367 }
368 return ret;
369 }
envoy_config_core_v3_TcpKeepalive_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)370 UPB_INLINE envoy_config_core_v3_TcpKeepalive* envoy_config_core_v3_TcpKeepalive_parse_ex(const char* buf, size_t size,
371 const upb_ExtensionRegistry* extreg,
372 int options, upb_Arena* arena) {
373 envoy_config_core_v3_TcpKeepalive* ret = envoy_config_core_v3_TcpKeepalive_new(arena);
374 if (!ret) return NULL;
375 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__TcpKeepalive_msg_init, extreg, options,
376 arena) != kUpb_DecodeStatus_Ok) {
377 return NULL;
378 }
379 return ret;
380 }
envoy_config_core_v3_TcpKeepalive_serialize(const envoy_config_core_v3_TcpKeepalive * msg,upb_Arena * arena,size_t * len)381 UPB_INLINE char* envoy_config_core_v3_TcpKeepalive_serialize(const envoy_config_core_v3_TcpKeepalive* msg, upb_Arena* arena, size_t* len) {
382 char* ptr;
383 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__TcpKeepalive_msg_init, 0, arena, &ptr, len);
384 return ptr;
385 }
envoy_config_core_v3_TcpKeepalive_serialize_ex(const envoy_config_core_v3_TcpKeepalive * msg,int options,upb_Arena * arena,size_t * len)386 UPB_INLINE char* envoy_config_core_v3_TcpKeepalive_serialize_ex(const envoy_config_core_v3_TcpKeepalive* msg, int options,
387 upb_Arena* arena, size_t* len) {
388 char* ptr;
389 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__TcpKeepalive_msg_init, options, arena, &ptr, len);
390 return ptr;
391 }
envoy_config_core_v3_TcpKeepalive_clear_keepalive_probes(envoy_config_core_v3_TcpKeepalive * msg)392 UPB_INLINE void envoy_config_core_v3_TcpKeepalive_clear_keepalive_probes(envoy_config_core_v3_TcpKeepalive* msg) {
393 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
394 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
395 }
envoy_config_core_v3_TcpKeepalive_keepalive_probes(const envoy_config_core_v3_TcpKeepalive * msg)396 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_keepalive_probes(const envoy_config_core_v3_TcpKeepalive* msg) {
397 const struct google_protobuf_UInt32Value* default_val = NULL;
398 const struct google_protobuf_UInt32Value* ret;
399 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
400 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
401 &default_val, &ret);
402 return ret;
403 }
envoy_config_core_v3_TcpKeepalive_has_keepalive_probes(const envoy_config_core_v3_TcpKeepalive * msg)404 UPB_INLINE bool envoy_config_core_v3_TcpKeepalive_has_keepalive_probes(const envoy_config_core_v3_TcpKeepalive* msg) {
405 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
406 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
407 }
envoy_config_core_v3_TcpKeepalive_clear_keepalive_time(envoy_config_core_v3_TcpKeepalive * msg)408 UPB_INLINE void envoy_config_core_v3_TcpKeepalive_clear_keepalive_time(envoy_config_core_v3_TcpKeepalive* msg) {
409 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
410 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
411 }
envoy_config_core_v3_TcpKeepalive_keepalive_time(const envoy_config_core_v3_TcpKeepalive * msg)412 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_keepalive_time(const envoy_config_core_v3_TcpKeepalive* msg) {
413 const struct google_protobuf_UInt32Value* default_val = NULL;
414 const struct google_protobuf_UInt32Value* ret;
415 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
416 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
417 &default_val, &ret);
418 return ret;
419 }
envoy_config_core_v3_TcpKeepalive_has_keepalive_time(const envoy_config_core_v3_TcpKeepalive * msg)420 UPB_INLINE bool envoy_config_core_v3_TcpKeepalive_has_keepalive_time(const envoy_config_core_v3_TcpKeepalive* msg) {
421 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
422 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
423 }
envoy_config_core_v3_TcpKeepalive_clear_keepalive_interval(envoy_config_core_v3_TcpKeepalive * msg)424 UPB_INLINE void envoy_config_core_v3_TcpKeepalive_clear_keepalive_interval(envoy_config_core_v3_TcpKeepalive* msg) {
425 const upb_MiniTableField field = {3, UPB_SIZE(20, 32), 66, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
426 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
427 }
envoy_config_core_v3_TcpKeepalive_keepalive_interval(const envoy_config_core_v3_TcpKeepalive * msg)428 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_keepalive_interval(const envoy_config_core_v3_TcpKeepalive* msg) {
429 const struct google_protobuf_UInt32Value* default_val = NULL;
430 const struct google_protobuf_UInt32Value* ret;
431 const upb_MiniTableField field = {3, UPB_SIZE(20, 32), 66, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
432 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
433 &default_val, &ret);
434 return ret;
435 }
envoy_config_core_v3_TcpKeepalive_has_keepalive_interval(const envoy_config_core_v3_TcpKeepalive * msg)436 UPB_INLINE bool envoy_config_core_v3_TcpKeepalive_has_keepalive_interval(const envoy_config_core_v3_TcpKeepalive* msg) {
437 const upb_MiniTableField field = {3, UPB_SIZE(20, 32), 66, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
438 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
439 }
440
envoy_config_core_v3_TcpKeepalive_set_keepalive_probes(envoy_config_core_v3_TcpKeepalive * msg,struct google_protobuf_UInt32Value * value)441 UPB_INLINE void envoy_config_core_v3_TcpKeepalive_set_keepalive_probes(envoy_config_core_v3_TcpKeepalive *msg, struct google_protobuf_UInt32Value* value) {
442 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
443 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
444 }
envoy_config_core_v3_TcpKeepalive_mutable_keepalive_probes(envoy_config_core_v3_TcpKeepalive * msg,upb_Arena * arena)445 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_mutable_keepalive_probes(envoy_config_core_v3_TcpKeepalive* msg, upb_Arena* arena) {
446 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_core_v3_TcpKeepalive_keepalive_probes(msg);
447 if (sub == NULL) {
448 sub = (struct google_protobuf_UInt32Value*)_upb_Message_New(&google__protobuf__UInt32Value_msg_init, arena);
449 if (sub) envoy_config_core_v3_TcpKeepalive_set_keepalive_probes(msg, sub);
450 }
451 return sub;
452 }
envoy_config_core_v3_TcpKeepalive_set_keepalive_time(envoy_config_core_v3_TcpKeepalive * msg,struct google_protobuf_UInt32Value * value)453 UPB_INLINE void envoy_config_core_v3_TcpKeepalive_set_keepalive_time(envoy_config_core_v3_TcpKeepalive *msg, struct google_protobuf_UInt32Value* value) {
454 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
455 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
456 }
envoy_config_core_v3_TcpKeepalive_mutable_keepalive_time(envoy_config_core_v3_TcpKeepalive * msg,upb_Arena * arena)457 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_mutable_keepalive_time(envoy_config_core_v3_TcpKeepalive* msg, upb_Arena* arena) {
458 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_core_v3_TcpKeepalive_keepalive_time(msg);
459 if (sub == NULL) {
460 sub = (struct google_protobuf_UInt32Value*)_upb_Message_New(&google__protobuf__UInt32Value_msg_init, arena);
461 if (sub) envoy_config_core_v3_TcpKeepalive_set_keepalive_time(msg, sub);
462 }
463 return sub;
464 }
envoy_config_core_v3_TcpKeepalive_set_keepalive_interval(envoy_config_core_v3_TcpKeepalive * msg,struct google_protobuf_UInt32Value * value)465 UPB_INLINE void envoy_config_core_v3_TcpKeepalive_set_keepalive_interval(envoy_config_core_v3_TcpKeepalive *msg, struct google_protobuf_UInt32Value* value) {
466 const upb_MiniTableField field = {3, UPB_SIZE(20, 32), 66, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
467 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
468 }
envoy_config_core_v3_TcpKeepalive_mutable_keepalive_interval(envoy_config_core_v3_TcpKeepalive * msg,upb_Arena * arena)469 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_core_v3_TcpKeepalive_mutable_keepalive_interval(envoy_config_core_v3_TcpKeepalive* msg, upb_Arena* arena) {
470 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_core_v3_TcpKeepalive_keepalive_interval(msg);
471 if (sub == NULL) {
472 sub = (struct google_protobuf_UInt32Value*)_upb_Message_New(&google__protobuf__UInt32Value_msg_init, arena);
473 if (sub) envoy_config_core_v3_TcpKeepalive_set_keepalive_interval(msg, sub);
474 }
475 return sub;
476 }
477
478 /* envoy.config.core.v3.ExtraSourceAddress */
479
envoy_config_core_v3_ExtraSourceAddress_new(upb_Arena * arena)480 UPB_INLINE envoy_config_core_v3_ExtraSourceAddress* envoy_config_core_v3_ExtraSourceAddress_new(upb_Arena* arena) {
481 return (envoy_config_core_v3_ExtraSourceAddress*)_upb_Message_New(&envoy__config__core__v3__ExtraSourceAddress_msg_init, arena);
482 }
envoy_config_core_v3_ExtraSourceAddress_parse(const char * buf,size_t size,upb_Arena * arena)483 UPB_INLINE envoy_config_core_v3_ExtraSourceAddress* envoy_config_core_v3_ExtraSourceAddress_parse(const char* buf, size_t size, upb_Arena* arena) {
484 envoy_config_core_v3_ExtraSourceAddress* ret = envoy_config_core_v3_ExtraSourceAddress_new(arena);
485 if (!ret) return NULL;
486 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__ExtraSourceAddress_msg_init, NULL, 0, arena) !=
487 kUpb_DecodeStatus_Ok) {
488 return NULL;
489 }
490 return ret;
491 }
envoy_config_core_v3_ExtraSourceAddress_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)492 UPB_INLINE envoy_config_core_v3_ExtraSourceAddress* envoy_config_core_v3_ExtraSourceAddress_parse_ex(const char* buf, size_t size,
493 const upb_ExtensionRegistry* extreg,
494 int options, upb_Arena* arena) {
495 envoy_config_core_v3_ExtraSourceAddress* ret = envoy_config_core_v3_ExtraSourceAddress_new(arena);
496 if (!ret) return NULL;
497 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__ExtraSourceAddress_msg_init, extreg, options,
498 arena) != kUpb_DecodeStatus_Ok) {
499 return NULL;
500 }
501 return ret;
502 }
envoy_config_core_v3_ExtraSourceAddress_serialize(const envoy_config_core_v3_ExtraSourceAddress * msg,upb_Arena * arena,size_t * len)503 UPB_INLINE char* envoy_config_core_v3_ExtraSourceAddress_serialize(const envoy_config_core_v3_ExtraSourceAddress* msg, upb_Arena* arena, size_t* len) {
504 char* ptr;
505 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__ExtraSourceAddress_msg_init, 0, arena, &ptr, len);
506 return ptr;
507 }
envoy_config_core_v3_ExtraSourceAddress_serialize_ex(const envoy_config_core_v3_ExtraSourceAddress * msg,int options,upb_Arena * arena,size_t * len)508 UPB_INLINE char* envoy_config_core_v3_ExtraSourceAddress_serialize_ex(const envoy_config_core_v3_ExtraSourceAddress* msg, int options,
509 upb_Arena* arena, size_t* len) {
510 char* ptr;
511 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__ExtraSourceAddress_msg_init, options, arena, &ptr, len);
512 return ptr;
513 }
envoy_config_core_v3_ExtraSourceAddress_clear_address(envoy_config_core_v3_ExtraSourceAddress * msg)514 UPB_INLINE void envoy_config_core_v3_ExtraSourceAddress_clear_address(envoy_config_core_v3_ExtraSourceAddress* msg) {
515 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
516 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
517 }
envoy_config_core_v3_ExtraSourceAddress_address(const envoy_config_core_v3_ExtraSourceAddress * msg)518 UPB_INLINE const envoy_config_core_v3_SocketAddress* envoy_config_core_v3_ExtraSourceAddress_address(const envoy_config_core_v3_ExtraSourceAddress* msg) {
519 const envoy_config_core_v3_SocketAddress* default_val = NULL;
520 const envoy_config_core_v3_SocketAddress* ret;
521 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
522 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
523 &default_val, &ret);
524 return ret;
525 }
envoy_config_core_v3_ExtraSourceAddress_has_address(const envoy_config_core_v3_ExtraSourceAddress * msg)526 UPB_INLINE bool envoy_config_core_v3_ExtraSourceAddress_has_address(const envoy_config_core_v3_ExtraSourceAddress* msg) {
527 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
528 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
529 }
envoy_config_core_v3_ExtraSourceAddress_clear_socket_options(envoy_config_core_v3_ExtraSourceAddress * msg)530 UPB_INLINE void envoy_config_core_v3_ExtraSourceAddress_clear_socket_options(envoy_config_core_v3_ExtraSourceAddress* msg) {
531 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
532 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
533 }
envoy_config_core_v3_ExtraSourceAddress_socket_options(const envoy_config_core_v3_ExtraSourceAddress * msg)534 UPB_INLINE const struct envoy_config_core_v3_SocketOptionsOverride* envoy_config_core_v3_ExtraSourceAddress_socket_options(const envoy_config_core_v3_ExtraSourceAddress* msg) {
535 const struct envoy_config_core_v3_SocketOptionsOverride* default_val = NULL;
536 const struct envoy_config_core_v3_SocketOptionsOverride* ret;
537 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
538 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
539 &default_val, &ret);
540 return ret;
541 }
envoy_config_core_v3_ExtraSourceAddress_has_socket_options(const envoy_config_core_v3_ExtraSourceAddress * msg)542 UPB_INLINE bool envoy_config_core_v3_ExtraSourceAddress_has_socket_options(const envoy_config_core_v3_ExtraSourceAddress* msg) {
543 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
544 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
545 }
546
envoy_config_core_v3_ExtraSourceAddress_set_address(envoy_config_core_v3_ExtraSourceAddress * msg,envoy_config_core_v3_SocketAddress * value)547 UPB_INLINE void envoy_config_core_v3_ExtraSourceAddress_set_address(envoy_config_core_v3_ExtraSourceAddress *msg, envoy_config_core_v3_SocketAddress* value) {
548 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
549 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
550 }
envoy_config_core_v3_ExtraSourceAddress_mutable_address(envoy_config_core_v3_ExtraSourceAddress * msg,upb_Arena * arena)551 UPB_INLINE struct envoy_config_core_v3_SocketAddress* envoy_config_core_v3_ExtraSourceAddress_mutable_address(envoy_config_core_v3_ExtraSourceAddress* msg, upb_Arena* arena) {
552 struct envoy_config_core_v3_SocketAddress* sub = (struct envoy_config_core_v3_SocketAddress*)envoy_config_core_v3_ExtraSourceAddress_address(msg);
553 if (sub == NULL) {
554 sub = (struct envoy_config_core_v3_SocketAddress*)_upb_Message_New(&envoy__config__core__v3__SocketAddress_msg_init, arena);
555 if (sub) envoy_config_core_v3_ExtraSourceAddress_set_address(msg, sub);
556 }
557 return sub;
558 }
envoy_config_core_v3_ExtraSourceAddress_set_socket_options(envoy_config_core_v3_ExtraSourceAddress * msg,struct envoy_config_core_v3_SocketOptionsOverride * value)559 UPB_INLINE void envoy_config_core_v3_ExtraSourceAddress_set_socket_options(envoy_config_core_v3_ExtraSourceAddress *msg, struct envoy_config_core_v3_SocketOptionsOverride* value) {
560 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
561 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
562 }
envoy_config_core_v3_ExtraSourceAddress_mutable_socket_options(envoy_config_core_v3_ExtraSourceAddress * msg,upb_Arena * arena)563 UPB_INLINE struct envoy_config_core_v3_SocketOptionsOverride* envoy_config_core_v3_ExtraSourceAddress_mutable_socket_options(envoy_config_core_v3_ExtraSourceAddress* msg, upb_Arena* arena) {
564 struct envoy_config_core_v3_SocketOptionsOverride* sub = (struct envoy_config_core_v3_SocketOptionsOverride*)envoy_config_core_v3_ExtraSourceAddress_socket_options(msg);
565 if (sub == NULL) {
566 sub = (struct envoy_config_core_v3_SocketOptionsOverride*)_upb_Message_New(&envoy__config__core__v3__SocketOptionsOverride_msg_init, arena);
567 if (sub) envoy_config_core_v3_ExtraSourceAddress_set_socket_options(msg, sub);
568 }
569 return sub;
570 }
571
572 /* envoy.config.core.v3.BindConfig */
573
envoy_config_core_v3_BindConfig_new(upb_Arena * arena)574 UPB_INLINE envoy_config_core_v3_BindConfig* envoy_config_core_v3_BindConfig_new(upb_Arena* arena) {
575 return (envoy_config_core_v3_BindConfig*)_upb_Message_New(&envoy__config__core__v3__BindConfig_msg_init, arena);
576 }
envoy_config_core_v3_BindConfig_parse(const char * buf,size_t size,upb_Arena * arena)577 UPB_INLINE envoy_config_core_v3_BindConfig* envoy_config_core_v3_BindConfig_parse(const char* buf, size_t size, upb_Arena* arena) {
578 envoy_config_core_v3_BindConfig* ret = envoy_config_core_v3_BindConfig_new(arena);
579 if (!ret) return NULL;
580 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__BindConfig_msg_init, NULL, 0, arena) !=
581 kUpb_DecodeStatus_Ok) {
582 return NULL;
583 }
584 return ret;
585 }
envoy_config_core_v3_BindConfig_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)586 UPB_INLINE envoy_config_core_v3_BindConfig* envoy_config_core_v3_BindConfig_parse_ex(const char* buf, size_t size,
587 const upb_ExtensionRegistry* extreg,
588 int options, upb_Arena* arena) {
589 envoy_config_core_v3_BindConfig* ret = envoy_config_core_v3_BindConfig_new(arena);
590 if (!ret) return NULL;
591 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__BindConfig_msg_init, extreg, options,
592 arena) != kUpb_DecodeStatus_Ok) {
593 return NULL;
594 }
595 return ret;
596 }
envoy_config_core_v3_BindConfig_serialize(const envoy_config_core_v3_BindConfig * msg,upb_Arena * arena,size_t * len)597 UPB_INLINE char* envoy_config_core_v3_BindConfig_serialize(const envoy_config_core_v3_BindConfig* msg, upb_Arena* arena, size_t* len) {
598 char* ptr;
599 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__BindConfig_msg_init, 0, arena, &ptr, len);
600 return ptr;
601 }
envoy_config_core_v3_BindConfig_serialize_ex(const envoy_config_core_v3_BindConfig * msg,int options,upb_Arena * arena,size_t * len)602 UPB_INLINE char* envoy_config_core_v3_BindConfig_serialize_ex(const envoy_config_core_v3_BindConfig* msg, int options,
603 upb_Arena* arena, size_t* len) {
604 char* ptr;
605 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__BindConfig_msg_init, options, arena, &ptr, len);
606 return ptr;
607 }
envoy_config_core_v3_BindConfig_clear_source_address(envoy_config_core_v3_BindConfig * msg)608 UPB_INLINE void envoy_config_core_v3_BindConfig_clear_source_address(envoy_config_core_v3_BindConfig* msg) {
609 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
610 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
611 }
envoy_config_core_v3_BindConfig_source_address(const envoy_config_core_v3_BindConfig * msg)612 UPB_INLINE const envoy_config_core_v3_SocketAddress* envoy_config_core_v3_BindConfig_source_address(const envoy_config_core_v3_BindConfig* msg) {
613 const envoy_config_core_v3_SocketAddress* default_val = NULL;
614 const envoy_config_core_v3_SocketAddress* ret;
615 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
616 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
617 &default_val, &ret);
618 return ret;
619 }
envoy_config_core_v3_BindConfig_has_source_address(const envoy_config_core_v3_BindConfig * msg)620 UPB_INLINE bool envoy_config_core_v3_BindConfig_has_source_address(const envoy_config_core_v3_BindConfig* msg) {
621 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
622 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
623 }
envoy_config_core_v3_BindConfig_clear_freebind(envoy_config_core_v3_BindConfig * msg)624 UPB_INLINE void envoy_config_core_v3_BindConfig_clear_freebind(envoy_config_core_v3_BindConfig* msg) {
625 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
626 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
627 }
envoy_config_core_v3_BindConfig_freebind(const envoy_config_core_v3_BindConfig * msg)628 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_core_v3_BindConfig_freebind(const envoy_config_core_v3_BindConfig* msg) {
629 const struct google_protobuf_BoolValue* default_val = NULL;
630 const struct google_protobuf_BoolValue* ret;
631 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
632 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
633 &default_val, &ret);
634 return ret;
635 }
envoy_config_core_v3_BindConfig_has_freebind(const envoy_config_core_v3_BindConfig * msg)636 UPB_INLINE bool envoy_config_core_v3_BindConfig_has_freebind(const envoy_config_core_v3_BindConfig* msg) {
637 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
638 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
639 }
envoy_config_core_v3_BindConfig_clear_socket_options(envoy_config_core_v3_BindConfig * msg)640 UPB_INLINE void envoy_config_core_v3_BindConfig_clear_socket_options(envoy_config_core_v3_BindConfig* msg) {
641 const upb_MiniTableField field = {3, UPB_SIZE(20, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
642 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
643 }
envoy_config_core_v3_BindConfig_socket_options(const envoy_config_core_v3_BindConfig * msg,size_t * size)644 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* size) {
645 const upb_MiniTableField field = {3, UPB_SIZE(20, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
646 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
647 if (arr) {
648 if (size) *size = arr->UPB_PRIVATE(size);
649 return (const struct envoy_config_core_v3_SocketOption* const*)upb_Array_DataPtr(arr);
650 } else {
651 if (size) *size = 0;
652 return NULL;
653 }
654 }
_envoy_config_core_v3_BindConfig_socket_options_upb_array(const envoy_config_core_v3_BindConfig * msg,size_t * size)655 UPB_INLINE const upb_Array* _envoy_config_core_v3_BindConfig_socket_options_upb_array(const envoy_config_core_v3_BindConfig* msg, size_t* size) {
656 const upb_MiniTableField field = {3, UPB_SIZE(20, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
657 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
658 if (size) {
659 *size = arr ? arr->UPB_PRIVATE(size) : 0;
660 }
661 return arr;
662 }
_envoy_config_core_v3_BindConfig_socket_options_mutable_upb_array(envoy_config_core_v3_BindConfig * msg,size_t * size,upb_Arena * arena)663 UPB_INLINE upb_Array* _envoy_config_core_v3_BindConfig_socket_options_mutable_upb_array(envoy_config_core_v3_BindConfig* msg, size_t* size, upb_Arena* arena) {
664 const upb_MiniTableField field = {3, UPB_SIZE(20, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
665 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
666 &field, arena);
667 if (size) {
668 *size = arr ? arr->UPB_PRIVATE(size) : 0;
669 }
670 return arr;
671 }
envoy_config_core_v3_BindConfig_clear_additional_source_addresses(envoy_config_core_v3_BindConfig * msg)672 UPB_INLINE void envoy_config_core_v3_BindConfig_clear_additional_source_addresses(envoy_config_core_v3_BindConfig* msg) {
673 const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
674 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
675 }
envoy_config_core_v3_BindConfig_additional_source_addresses(const envoy_config_core_v3_BindConfig * msg,size_t * size)676 UPB_INLINE const envoy_config_core_v3_SocketAddress* const* envoy_config_core_v3_BindConfig_additional_source_addresses(const envoy_config_core_v3_BindConfig* msg, size_t* size) {
677 const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
678 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
679 if (arr) {
680 if (size) *size = arr->UPB_PRIVATE(size);
681 return (const envoy_config_core_v3_SocketAddress* const*)upb_Array_DataPtr(arr);
682 } else {
683 if (size) *size = 0;
684 return NULL;
685 }
686 }
_envoy_config_core_v3_BindConfig_additional_source_addresses_upb_array(const envoy_config_core_v3_BindConfig * msg,size_t * size)687 UPB_INLINE const upb_Array* _envoy_config_core_v3_BindConfig_additional_source_addresses_upb_array(const envoy_config_core_v3_BindConfig* msg, size_t* size) {
688 const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
689 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
690 if (size) {
691 *size = arr ? arr->UPB_PRIVATE(size) : 0;
692 }
693 return arr;
694 }
_envoy_config_core_v3_BindConfig_additional_source_addresses_mutable_upb_array(envoy_config_core_v3_BindConfig * msg,size_t * size,upb_Arena * arena)695 UPB_INLINE upb_Array* _envoy_config_core_v3_BindConfig_additional_source_addresses_mutable_upb_array(envoy_config_core_v3_BindConfig* msg, size_t* size, upb_Arena* arena) {
696 const upb_MiniTableField field = {4, UPB_SIZE(24, 40), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
697 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
698 &field, arena);
699 if (size) {
700 *size = arr ? arr->UPB_PRIVATE(size) : 0;
701 }
702 return arr;
703 }
envoy_config_core_v3_BindConfig_clear_extra_source_addresses(envoy_config_core_v3_BindConfig * msg)704 UPB_INLINE void envoy_config_core_v3_BindConfig_clear_extra_source_addresses(envoy_config_core_v3_BindConfig* msg) {
705 const upb_MiniTableField field = {5, UPB_SIZE(28, 48), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
706 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
707 }
envoy_config_core_v3_BindConfig_extra_source_addresses(const envoy_config_core_v3_BindConfig * msg,size_t * size)708 UPB_INLINE const envoy_config_core_v3_ExtraSourceAddress* const* envoy_config_core_v3_BindConfig_extra_source_addresses(const envoy_config_core_v3_BindConfig* msg, size_t* size) {
709 const upb_MiniTableField field = {5, UPB_SIZE(28, 48), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
710 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
711 if (arr) {
712 if (size) *size = arr->UPB_PRIVATE(size);
713 return (const envoy_config_core_v3_ExtraSourceAddress* const*)upb_Array_DataPtr(arr);
714 } else {
715 if (size) *size = 0;
716 return NULL;
717 }
718 }
_envoy_config_core_v3_BindConfig_extra_source_addresses_upb_array(const envoy_config_core_v3_BindConfig * msg,size_t * size)719 UPB_INLINE const upb_Array* _envoy_config_core_v3_BindConfig_extra_source_addresses_upb_array(const envoy_config_core_v3_BindConfig* msg, size_t* size) {
720 const upb_MiniTableField field = {5, UPB_SIZE(28, 48), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
721 const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
722 if (size) {
723 *size = arr ? arr->UPB_PRIVATE(size) : 0;
724 }
725 return arr;
726 }
_envoy_config_core_v3_BindConfig_extra_source_addresses_mutable_upb_array(envoy_config_core_v3_BindConfig * msg,size_t * size,upb_Arena * arena)727 UPB_INLINE upb_Array* _envoy_config_core_v3_BindConfig_extra_source_addresses_mutable_upb_array(envoy_config_core_v3_BindConfig* msg, size_t* size, upb_Arena* arena) {
728 const upb_MiniTableField field = {5, UPB_SIZE(28, 48), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
729 upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
730 &field, arena);
731 if (size) {
732 *size = arr ? arr->UPB_PRIVATE(size) : 0;
733 }
734 return arr;
735 }
envoy_config_core_v3_BindConfig_clear_local_address_selector(envoy_config_core_v3_BindConfig * msg)736 UPB_INLINE void envoy_config_core_v3_BindConfig_clear_local_address_selector(envoy_config_core_v3_BindConfig* msg) {
737 const upb_MiniTableField field = {6, UPB_SIZE(32, 56), 66, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
738 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
739 }
envoy_config_core_v3_BindConfig_local_address_selector(const envoy_config_core_v3_BindConfig * msg)740 UPB_INLINE const struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_core_v3_BindConfig_local_address_selector(const envoy_config_core_v3_BindConfig* msg) {
741 const struct envoy_config_core_v3_TypedExtensionConfig* default_val = NULL;
742 const struct envoy_config_core_v3_TypedExtensionConfig* ret;
743 const upb_MiniTableField field = {6, UPB_SIZE(32, 56), 66, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
744 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
745 &default_val, &ret);
746 return ret;
747 }
envoy_config_core_v3_BindConfig_has_local_address_selector(const envoy_config_core_v3_BindConfig * msg)748 UPB_INLINE bool envoy_config_core_v3_BindConfig_has_local_address_selector(const envoy_config_core_v3_BindConfig* msg) {
749 const upb_MiniTableField field = {6, UPB_SIZE(32, 56), 66, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
750 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
751 }
752
envoy_config_core_v3_BindConfig_set_source_address(envoy_config_core_v3_BindConfig * msg,envoy_config_core_v3_SocketAddress * value)753 UPB_INLINE void envoy_config_core_v3_BindConfig_set_source_address(envoy_config_core_v3_BindConfig *msg, envoy_config_core_v3_SocketAddress* value) {
754 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
755 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
756 }
envoy_config_core_v3_BindConfig_mutable_source_address(envoy_config_core_v3_BindConfig * msg,upb_Arena * arena)757 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) {
758 struct envoy_config_core_v3_SocketAddress* sub = (struct envoy_config_core_v3_SocketAddress*)envoy_config_core_v3_BindConfig_source_address(msg);
759 if (sub == NULL) {
760 sub = (struct envoy_config_core_v3_SocketAddress*)_upb_Message_New(&envoy__config__core__v3__SocketAddress_msg_init, arena);
761 if (sub) envoy_config_core_v3_BindConfig_set_source_address(msg, sub);
762 }
763 return sub;
764 }
envoy_config_core_v3_BindConfig_set_freebind(envoy_config_core_v3_BindConfig * msg,struct google_protobuf_BoolValue * value)765 UPB_INLINE void envoy_config_core_v3_BindConfig_set_freebind(envoy_config_core_v3_BindConfig *msg, struct google_protobuf_BoolValue* value) {
766 const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
767 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
768 }
envoy_config_core_v3_BindConfig_mutable_freebind(envoy_config_core_v3_BindConfig * msg,upb_Arena * arena)769 UPB_INLINE struct google_protobuf_BoolValue* envoy_config_core_v3_BindConfig_mutable_freebind(envoy_config_core_v3_BindConfig* msg, upb_Arena* arena) {
770 struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_core_v3_BindConfig_freebind(msg);
771 if (sub == NULL) {
772 sub = (struct google_protobuf_BoolValue*)_upb_Message_New(&google__protobuf__BoolValue_msg_init, arena);
773 if (sub) envoy_config_core_v3_BindConfig_set_freebind(msg, sub);
774 }
775 return sub;
776 }
envoy_config_core_v3_BindConfig_mutable_socket_options(envoy_config_core_v3_BindConfig * msg,size_t * size)777 UPB_INLINE struct envoy_config_core_v3_SocketOption** envoy_config_core_v3_BindConfig_mutable_socket_options(envoy_config_core_v3_BindConfig* msg, size_t* size) {
778 upb_MiniTableField field = {3, UPB_SIZE(20, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
779 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
780 if (arr) {
781 if (size) *size = arr->UPB_PRIVATE(size);
782 return (struct envoy_config_core_v3_SocketOption**)upb_Array_MutableDataPtr(arr);
783 } else {
784 if (size) *size = 0;
785 return NULL;
786 }
787 }
envoy_config_core_v3_BindConfig_resize_socket_options(envoy_config_core_v3_BindConfig * msg,size_t size,upb_Arena * arena)788 UPB_INLINE struct envoy_config_core_v3_SocketOption** envoy_config_core_v3_BindConfig_resize_socket_options(envoy_config_core_v3_BindConfig* msg, size_t size, upb_Arena* arena) {
789 upb_MiniTableField field = {3, UPB_SIZE(20, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
790 return (struct envoy_config_core_v3_SocketOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
791 &field, size, arena);
792 }
envoy_config_core_v3_BindConfig_add_socket_options(envoy_config_core_v3_BindConfig * msg,upb_Arena * arena)793 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) {
794 upb_MiniTableField field = {3, UPB_SIZE(20, 32), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
795 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
796 UPB_UPCAST(msg), &field, arena);
797 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
798 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
799 return NULL;
800 }
801 struct envoy_config_core_v3_SocketOption* sub = (struct envoy_config_core_v3_SocketOption*)_upb_Message_New(&envoy__config__core__v3__SocketOption_msg_init, arena);
802 if (!arr || !sub) return NULL;
803 UPB_PRIVATE(_upb_Array_Set)
804 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
805 return sub;
806 }
envoy_config_core_v3_BindConfig_mutable_additional_source_addresses(envoy_config_core_v3_BindConfig * msg,size_t * size)807 UPB_INLINE envoy_config_core_v3_SocketAddress** envoy_config_core_v3_BindConfig_mutable_additional_source_addresses(envoy_config_core_v3_BindConfig* msg, size_t* size) {
808 upb_MiniTableField field = {4, UPB_SIZE(24, 40), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
809 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
810 if (arr) {
811 if (size) *size = arr->UPB_PRIVATE(size);
812 return (envoy_config_core_v3_SocketAddress**)upb_Array_MutableDataPtr(arr);
813 } else {
814 if (size) *size = 0;
815 return NULL;
816 }
817 }
envoy_config_core_v3_BindConfig_resize_additional_source_addresses(envoy_config_core_v3_BindConfig * msg,size_t size,upb_Arena * arena)818 UPB_INLINE envoy_config_core_v3_SocketAddress** envoy_config_core_v3_BindConfig_resize_additional_source_addresses(envoy_config_core_v3_BindConfig* msg, size_t size, upb_Arena* arena) {
819 upb_MiniTableField field = {4, UPB_SIZE(24, 40), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
820 return (envoy_config_core_v3_SocketAddress**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
821 &field, size, arena);
822 }
envoy_config_core_v3_BindConfig_add_additional_source_addresses(envoy_config_core_v3_BindConfig * msg,upb_Arena * arena)823 UPB_INLINE struct envoy_config_core_v3_SocketAddress* envoy_config_core_v3_BindConfig_add_additional_source_addresses(envoy_config_core_v3_BindConfig* msg, upb_Arena* arena) {
824 upb_MiniTableField field = {4, UPB_SIZE(24, 40), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
825 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
826 UPB_UPCAST(msg), &field, arena);
827 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
828 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
829 return NULL;
830 }
831 struct envoy_config_core_v3_SocketAddress* sub = (struct envoy_config_core_v3_SocketAddress*)_upb_Message_New(&envoy__config__core__v3__SocketAddress_msg_init, arena);
832 if (!arr || !sub) return NULL;
833 UPB_PRIVATE(_upb_Array_Set)
834 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
835 return sub;
836 }
envoy_config_core_v3_BindConfig_mutable_extra_source_addresses(envoy_config_core_v3_BindConfig * msg,size_t * size)837 UPB_INLINE envoy_config_core_v3_ExtraSourceAddress** envoy_config_core_v3_BindConfig_mutable_extra_source_addresses(envoy_config_core_v3_BindConfig* msg, size_t* size) {
838 upb_MiniTableField field = {5, UPB_SIZE(28, 48), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
839 upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
840 if (arr) {
841 if (size) *size = arr->UPB_PRIVATE(size);
842 return (envoy_config_core_v3_ExtraSourceAddress**)upb_Array_MutableDataPtr(arr);
843 } else {
844 if (size) *size = 0;
845 return NULL;
846 }
847 }
envoy_config_core_v3_BindConfig_resize_extra_source_addresses(envoy_config_core_v3_BindConfig * msg,size_t size,upb_Arena * arena)848 UPB_INLINE envoy_config_core_v3_ExtraSourceAddress** envoy_config_core_v3_BindConfig_resize_extra_source_addresses(envoy_config_core_v3_BindConfig* msg, size_t size, upb_Arena* arena) {
849 upb_MiniTableField field = {5, UPB_SIZE(28, 48), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
850 return (envoy_config_core_v3_ExtraSourceAddress**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
851 &field, size, arena);
852 }
envoy_config_core_v3_BindConfig_add_extra_source_addresses(envoy_config_core_v3_BindConfig * msg,upb_Arena * arena)853 UPB_INLINE struct envoy_config_core_v3_ExtraSourceAddress* envoy_config_core_v3_BindConfig_add_extra_source_addresses(envoy_config_core_v3_BindConfig* msg, upb_Arena* arena) {
854 upb_MiniTableField field = {5, UPB_SIZE(28, 48), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
855 upb_Array* arr = upb_Message_GetOrCreateMutableArray(
856 UPB_UPCAST(msg), &field, arena);
857 if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
858 arr, arr->UPB_PRIVATE(size) + 1, arena)) {
859 return NULL;
860 }
861 struct envoy_config_core_v3_ExtraSourceAddress* sub = (struct envoy_config_core_v3_ExtraSourceAddress*)_upb_Message_New(&envoy__config__core__v3__ExtraSourceAddress_msg_init, arena);
862 if (!arr || !sub) return NULL;
863 UPB_PRIVATE(_upb_Array_Set)
864 (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
865 return sub;
866 }
envoy_config_core_v3_BindConfig_set_local_address_selector(envoy_config_core_v3_BindConfig * msg,struct envoy_config_core_v3_TypedExtensionConfig * value)867 UPB_INLINE void envoy_config_core_v3_BindConfig_set_local_address_selector(envoy_config_core_v3_BindConfig *msg, struct envoy_config_core_v3_TypedExtensionConfig* value) {
868 const upb_MiniTableField field = {6, UPB_SIZE(32, 56), 66, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
869 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
870 }
envoy_config_core_v3_BindConfig_mutable_local_address_selector(envoy_config_core_v3_BindConfig * msg,upb_Arena * arena)871 UPB_INLINE struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_core_v3_BindConfig_mutable_local_address_selector(envoy_config_core_v3_BindConfig* msg, upb_Arena* arena) {
872 struct envoy_config_core_v3_TypedExtensionConfig* sub = (struct envoy_config_core_v3_TypedExtensionConfig*)envoy_config_core_v3_BindConfig_local_address_selector(msg);
873 if (sub == NULL) {
874 sub = (struct envoy_config_core_v3_TypedExtensionConfig*)_upb_Message_New(&envoy__config__core__v3__TypedExtensionConfig_msg_init, arena);
875 if (sub) envoy_config_core_v3_BindConfig_set_local_address_selector(msg, sub);
876 }
877 return sub;
878 }
879
880 /* envoy.config.core.v3.Address */
881
envoy_config_core_v3_Address_new(upb_Arena * arena)882 UPB_INLINE envoy_config_core_v3_Address* envoy_config_core_v3_Address_new(upb_Arena* arena) {
883 return (envoy_config_core_v3_Address*)_upb_Message_New(&envoy__config__core__v3__Address_msg_init, arena);
884 }
envoy_config_core_v3_Address_parse(const char * buf,size_t size,upb_Arena * arena)885 UPB_INLINE envoy_config_core_v3_Address* envoy_config_core_v3_Address_parse(const char* buf, size_t size, upb_Arena* arena) {
886 envoy_config_core_v3_Address* ret = envoy_config_core_v3_Address_new(arena);
887 if (!ret) return NULL;
888 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__Address_msg_init, NULL, 0, arena) !=
889 kUpb_DecodeStatus_Ok) {
890 return NULL;
891 }
892 return ret;
893 }
envoy_config_core_v3_Address_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)894 UPB_INLINE envoy_config_core_v3_Address* envoy_config_core_v3_Address_parse_ex(const char* buf, size_t size,
895 const upb_ExtensionRegistry* extreg,
896 int options, upb_Arena* arena) {
897 envoy_config_core_v3_Address* ret = envoy_config_core_v3_Address_new(arena);
898 if (!ret) return NULL;
899 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__Address_msg_init, extreg, options,
900 arena) != kUpb_DecodeStatus_Ok) {
901 return NULL;
902 }
903 return ret;
904 }
envoy_config_core_v3_Address_serialize(const envoy_config_core_v3_Address * msg,upb_Arena * arena,size_t * len)905 UPB_INLINE char* envoy_config_core_v3_Address_serialize(const envoy_config_core_v3_Address* msg, upb_Arena* arena, size_t* len) {
906 char* ptr;
907 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__Address_msg_init, 0, arena, &ptr, len);
908 return ptr;
909 }
envoy_config_core_v3_Address_serialize_ex(const envoy_config_core_v3_Address * msg,int options,upb_Arena * arena,size_t * len)910 UPB_INLINE char* envoy_config_core_v3_Address_serialize_ex(const envoy_config_core_v3_Address* msg, int options,
911 upb_Arena* arena, size_t* len) {
912 char* ptr;
913 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__Address_msg_init, options, arena, &ptr, len);
914 return ptr;
915 }
916 typedef enum {
917 envoy_config_core_v3_Address_address_socket_address = 1,
918 envoy_config_core_v3_Address_address_pipe = 2,
919 envoy_config_core_v3_Address_address_envoy_internal_address = 3,
920 envoy_config_core_v3_Address_address_NOT_SET = 0
921 } envoy_config_core_v3_Address_address_oneofcases;
envoy_config_core_v3_Address_address_case(const envoy_config_core_v3_Address * msg)922 UPB_INLINE envoy_config_core_v3_Address_address_oneofcases envoy_config_core_v3_Address_address_case(const envoy_config_core_v3_Address* msg) {
923 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
924 return (envoy_config_core_v3_Address_address_oneofcases)upb_Message_WhichOneofFieldNumber(
925 UPB_UPCAST(msg), &field);
926 }
envoy_config_core_v3_Address_clear_socket_address(envoy_config_core_v3_Address * msg)927 UPB_INLINE void envoy_config_core_v3_Address_clear_socket_address(envoy_config_core_v3_Address* msg) {
928 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
929 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
930 }
envoy_config_core_v3_Address_socket_address(const envoy_config_core_v3_Address * msg)931 UPB_INLINE const envoy_config_core_v3_SocketAddress* envoy_config_core_v3_Address_socket_address(const envoy_config_core_v3_Address* msg) {
932 const envoy_config_core_v3_SocketAddress* default_val = NULL;
933 const envoy_config_core_v3_SocketAddress* ret;
934 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
935 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
936 &default_val, &ret);
937 return ret;
938 }
envoy_config_core_v3_Address_has_socket_address(const envoy_config_core_v3_Address * msg)939 UPB_INLINE bool envoy_config_core_v3_Address_has_socket_address(const envoy_config_core_v3_Address* msg) {
940 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
941 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
942 }
envoy_config_core_v3_Address_clear_pipe(envoy_config_core_v3_Address * msg)943 UPB_INLINE void envoy_config_core_v3_Address_clear_pipe(envoy_config_core_v3_Address* msg) {
944 const upb_MiniTableField field = {2, UPB_SIZE(12, 16), -9, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
945 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
946 }
envoy_config_core_v3_Address_pipe(const envoy_config_core_v3_Address * msg)947 UPB_INLINE const envoy_config_core_v3_Pipe* envoy_config_core_v3_Address_pipe(const envoy_config_core_v3_Address* msg) {
948 const envoy_config_core_v3_Pipe* default_val = NULL;
949 const envoy_config_core_v3_Pipe* ret;
950 const upb_MiniTableField field = {2, UPB_SIZE(12, 16), -9, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
951 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
952 &default_val, &ret);
953 return ret;
954 }
envoy_config_core_v3_Address_has_pipe(const envoy_config_core_v3_Address * msg)955 UPB_INLINE bool envoy_config_core_v3_Address_has_pipe(const envoy_config_core_v3_Address* msg) {
956 const upb_MiniTableField field = {2, UPB_SIZE(12, 16), -9, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
957 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
958 }
envoy_config_core_v3_Address_clear_envoy_internal_address(envoy_config_core_v3_Address * msg)959 UPB_INLINE void envoy_config_core_v3_Address_clear_envoy_internal_address(envoy_config_core_v3_Address* msg) {
960 const upb_MiniTableField field = {3, UPB_SIZE(12, 16), -9, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
961 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
962 }
envoy_config_core_v3_Address_envoy_internal_address(const envoy_config_core_v3_Address * msg)963 UPB_INLINE const envoy_config_core_v3_EnvoyInternalAddress* envoy_config_core_v3_Address_envoy_internal_address(const envoy_config_core_v3_Address* msg) {
964 const envoy_config_core_v3_EnvoyInternalAddress* default_val = NULL;
965 const envoy_config_core_v3_EnvoyInternalAddress* ret;
966 const upb_MiniTableField field = {3, UPB_SIZE(12, 16), -9, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
967 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
968 &default_val, &ret);
969 return ret;
970 }
envoy_config_core_v3_Address_has_envoy_internal_address(const envoy_config_core_v3_Address * msg)971 UPB_INLINE bool envoy_config_core_v3_Address_has_envoy_internal_address(const envoy_config_core_v3_Address* msg) {
972 const upb_MiniTableField field = {3, UPB_SIZE(12, 16), -9, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
973 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
974 }
975
envoy_config_core_v3_Address_set_socket_address(envoy_config_core_v3_Address * msg,envoy_config_core_v3_SocketAddress * value)976 UPB_INLINE void envoy_config_core_v3_Address_set_socket_address(envoy_config_core_v3_Address *msg, envoy_config_core_v3_SocketAddress* value) {
977 const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
978 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
979 }
envoy_config_core_v3_Address_mutable_socket_address(envoy_config_core_v3_Address * msg,upb_Arena * arena)980 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) {
981 struct envoy_config_core_v3_SocketAddress* sub = (struct envoy_config_core_v3_SocketAddress*)envoy_config_core_v3_Address_socket_address(msg);
982 if (sub == NULL) {
983 sub = (struct envoy_config_core_v3_SocketAddress*)_upb_Message_New(&envoy__config__core__v3__SocketAddress_msg_init, arena);
984 if (sub) envoy_config_core_v3_Address_set_socket_address(msg, sub);
985 }
986 return sub;
987 }
envoy_config_core_v3_Address_set_pipe(envoy_config_core_v3_Address * msg,envoy_config_core_v3_Pipe * value)988 UPB_INLINE void envoy_config_core_v3_Address_set_pipe(envoy_config_core_v3_Address *msg, envoy_config_core_v3_Pipe* value) {
989 const upb_MiniTableField field = {2, UPB_SIZE(12, 16), -9, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
990 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
991 }
envoy_config_core_v3_Address_mutable_pipe(envoy_config_core_v3_Address * msg,upb_Arena * arena)992 UPB_INLINE struct envoy_config_core_v3_Pipe* envoy_config_core_v3_Address_mutable_pipe(envoy_config_core_v3_Address* msg, upb_Arena* arena) {
993 struct envoy_config_core_v3_Pipe* sub = (struct envoy_config_core_v3_Pipe*)envoy_config_core_v3_Address_pipe(msg);
994 if (sub == NULL) {
995 sub = (struct envoy_config_core_v3_Pipe*)_upb_Message_New(&envoy__config__core__v3__Pipe_msg_init, arena);
996 if (sub) envoy_config_core_v3_Address_set_pipe(msg, sub);
997 }
998 return sub;
999 }
envoy_config_core_v3_Address_set_envoy_internal_address(envoy_config_core_v3_Address * msg,envoy_config_core_v3_EnvoyInternalAddress * value)1000 UPB_INLINE void envoy_config_core_v3_Address_set_envoy_internal_address(envoy_config_core_v3_Address *msg, envoy_config_core_v3_EnvoyInternalAddress* value) {
1001 const upb_MiniTableField field = {3, UPB_SIZE(12, 16), -9, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1002 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1003 }
envoy_config_core_v3_Address_mutable_envoy_internal_address(envoy_config_core_v3_Address * msg,upb_Arena * arena)1004 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) {
1005 struct envoy_config_core_v3_EnvoyInternalAddress* sub = (struct envoy_config_core_v3_EnvoyInternalAddress*)envoy_config_core_v3_Address_envoy_internal_address(msg);
1006 if (sub == NULL) {
1007 sub = (struct envoy_config_core_v3_EnvoyInternalAddress*)_upb_Message_New(&envoy__config__core__v3__EnvoyInternalAddress_msg_init, arena);
1008 if (sub) envoy_config_core_v3_Address_set_envoy_internal_address(msg, sub);
1009 }
1010 return sub;
1011 }
1012
1013 /* envoy.config.core.v3.CidrRange */
1014
envoy_config_core_v3_CidrRange_new(upb_Arena * arena)1015 UPB_INLINE envoy_config_core_v3_CidrRange* envoy_config_core_v3_CidrRange_new(upb_Arena* arena) {
1016 return (envoy_config_core_v3_CidrRange*)_upb_Message_New(&envoy__config__core__v3__CidrRange_msg_init, arena);
1017 }
envoy_config_core_v3_CidrRange_parse(const char * buf,size_t size,upb_Arena * arena)1018 UPB_INLINE envoy_config_core_v3_CidrRange* envoy_config_core_v3_CidrRange_parse(const char* buf, size_t size, upb_Arena* arena) {
1019 envoy_config_core_v3_CidrRange* ret = envoy_config_core_v3_CidrRange_new(arena);
1020 if (!ret) return NULL;
1021 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__CidrRange_msg_init, NULL, 0, arena) !=
1022 kUpb_DecodeStatus_Ok) {
1023 return NULL;
1024 }
1025 return ret;
1026 }
envoy_config_core_v3_CidrRange_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)1027 UPB_INLINE envoy_config_core_v3_CidrRange* envoy_config_core_v3_CidrRange_parse_ex(const char* buf, size_t size,
1028 const upb_ExtensionRegistry* extreg,
1029 int options, upb_Arena* arena) {
1030 envoy_config_core_v3_CidrRange* ret = envoy_config_core_v3_CidrRange_new(arena);
1031 if (!ret) return NULL;
1032 if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__config__core__v3__CidrRange_msg_init, extreg, options,
1033 arena) != kUpb_DecodeStatus_Ok) {
1034 return NULL;
1035 }
1036 return ret;
1037 }
envoy_config_core_v3_CidrRange_serialize(const envoy_config_core_v3_CidrRange * msg,upb_Arena * arena,size_t * len)1038 UPB_INLINE char* envoy_config_core_v3_CidrRange_serialize(const envoy_config_core_v3_CidrRange* msg, upb_Arena* arena, size_t* len) {
1039 char* ptr;
1040 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__CidrRange_msg_init, 0, arena, &ptr, len);
1041 return ptr;
1042 }
envoy_config_core_v3_CidrRange_serialize_ex(const envoy_config_core_v3_CidrRange * msg,int options,upb_Arena * arena,size_t * len)1043 UPB_INLINE char* envoy_config_core_v3_CidrRange_serialize_ex(const envoy_config_core_v3_CidrRange* msg, int options,
1044 upb_Arena* arena, size_t* len) {
1045 char* ptr;
1046 (void)upb_Encode(UPB_UPCAST(msg), &envoy__config__core__v3__CidrRange_msg_init, options, arena, &ptr, len);
1047 return ptr;
1048 }
envoy_config_core_v3_CidrRange_clear_address_prefix(envoy_config_core_v3_CidrRange * msg)1049 UPB_INLINE void envoy_config_core_v3_CidrRange_clear_address_prefix(envoy_config_core_v3_CidrRange* msg) {
1050 const upb_MiniTableField field = {1, 16, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1051 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1052 }
envoy_config_core_v3_CidrRange_address_prefix(const envoy_config_core_v3_CidrRange * msg)1053 UPB_INLINE upb_StringView envoy_config_core_v3_CidrRange_address_prefix(const envoy_config_core_v3_CidrRange* msg) {
1054 upb_StringView default_val = upb_StringView_FromString("");
1055 upb_StringView ret;
1056 const upb_MiniTableField field = {1, 16, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1057 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1058 &default_val, &ret);
1059 return ret;
1060 }
envoy_config_core_v3_CidrRange_clear_prefix_len(envoy_config_core_v3_CidrRange * msg)1061 UPB_INLINE void envoy_config_core_v3_CidrRange_clear_prefix_len(envoy_config_core_v3_CidrRange* msg) {
1062 const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1063 upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1064 }
envoy_config_core_v3_CidrRange_prefix_len(const envoy_config_core_v3_CidrRange * msg)1065 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_core_v3_CidrRange_prefix_len(const envoy_config_core_v3_CidrRange* msg) {
1066 const struct google_protobuf_UInt32Value* default_val = NULL;
1067 const struct google_protobuf_UInt32Value* ret;
1068 const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1069 _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1070 &default_val, &ret);
1071 return ret;
1072 }
envoy_config_core_v3_CidrRange_has_prefix_len(const envoy_config_core_v3_CidrRange * msg)1073 UPB_INLINE bool envoy_config_core_v3_CidrRange_has_prefix_len(const envoy_config_core_v3_CidrRange* msg) {
1074 const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1075 return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1076 }
1077
envoy_config_core_v3_CidrRange_set_address_prefix(envoy_config_core_v3_CidrRange * msg,upb_StringView value)1078 UPB_INLINE void envoy_config_core_v3_CidrRange_set_address_prefix(envoy_config_core_v3_CidrRange *msg, upb_StringView value) {
1079 const upb_MiniTableField field = {1, 16, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1080 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1081 }
envoy_config_core_v3_CidrRange_set_prefix_len(envoy_config_core_v3_CidrRange * msg,struct google_protobuf_UInt32Value * value)1082 UPB_INLINE void envoy_config_core_v3_CidrRange_set_prefix_len(envoy_config_core_v3_CidrRange *msg, struct google_protobuf_UInt32Value* value) {
1083 const upb_MiniTableField field = {2, UPB_SIZE(12, 32), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1084 _upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value);
1085 }
envoy_config_core_v3_CidrRange_mutable_prefix_len(envoy_config_core_v3_CidrRange * msg,upb_Arena * arena)1086 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_core_v3_CidrRange_mutable_prefix_len(envoy_config_core_v3_CidrRange* msg, upb_Arena* arena) {
1087 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_core_v3_CidrRange_prefix_len(msg);
1088 if (sub == NULL) {
1089 sub = (struct google_protobuf_UInt32Value*)_upb_Message_New(&google__protobuf__UInt32Value_msg_init, arena);
1090 if (sub) envoy_config_core_v3_CidrRange_set_prefix_len(msg, sub);
1091 }
1092 return sub;
1093 }
1094
1095 #ifdef __cplusplus
1096 } /* extern "C" */
1097 #endif
1098
1099 #include "upb/port/undef.inc"
1100
1101 #endif /* ENVOY_CONFIG_CORE_V3_ADDRESS_PROTO_UPB_H_ */
1102