1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     envoy/config/listener/v3/listener.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef ENVOY_CONFIG_LISTENER_V3_LISTENER_PROTO_UPB_H_
10 #define ENVOY_CONFIG_LISTENER_V3_LISTENER_PROTO_UPB_H_
11 
12 #include "upb/msg_internal.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_listener_v3_ListenerCollection;
24 struct envoy_config_listener_v3_Listener;
25 struct envoy_config_listener_v3_Listener_DeprecatedV1;
26 struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig;
27 struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance;
28 struct envoy_config_listener_v3_Listener_InternalListenerConfig;
29 typedef struct envoy_config_listener_v3_ListenerCollection envoy_config_listener_v3_ListenerCollection;
30 typedef struct envoy_config_listener_v3_Listener envoy_config_listener_v3_Listener;
31 typedef struct envoy_config_listener_v3_Listener_DeprecatedV1 envoy_config_listener_v3_Listener_DeprecatedV1;
32 typedef struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig envoy_config_listener_v3_Listener_ConnectionBalanceConfig;
33 typedef struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance;
34 typedef struct envoy_config_listener_v3_Listener_InternalListenerConfig envoy_config_listener_v3_Listener_InternalListenerConfig;
35 extern const upb_msglayout envoy_config_listener_v3_ListenerCollection_msginit;
36 extern const upb_msglayout envoy_config_listener_v3_Listener_msginit;
37 extern const upb_msglayout envoy_config_listener_v3_Listener_DeprecatedV1_msginit;
38 extern const upb_msglayout envoy_config_listener_v3_Listener_ConnectionBalanceConfig_msginit;
39 extern const upb_msglayout envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_msginit;
40 extern const upb_msglayout envoy_config_listener_v3_Listener_InternalListenerConfig_msginit;
41 struct envoy_config_accesslog_v3_AccessLog;
42 struct envoy_config_core_v3_Address;
43 struct envoy_config_core_v3_Metadata;
44 struct envoy_config_core_v3_SocketOption;
45 struct envoy_config_listener_v3_ApiListener;
46 struct envoy_config_listener_v3_FilterChain;
47 struct envoy_config_listener_v3_ListenerFilter;
48 struct envoy_config_listener_v3_UdpListenerConfig;
49 struct google_protobuf_BoolValue;
50 struct google_protobuf_Duration;
51 struct google_protobuf_UInt32Value;
52 struct xds_core_v3_CollectionEntry;
53 extern const upb_msglayout envoy_config_accesslog_v3_AccessLog_msginit;
54 extern const upb_msglayout envoy_config_core_v3_Address_msginit;
55 extern const upb_msglayout envoy_config_core_v3_Metadata_msginit;
56 extern const upb_msglayout envoy_config_core_v3_SocketOption_msginit;
57 extern const upb_msglayout envoy_config_listener_v3_ApiListener_msginit;
58 extern const upb_msglayout envoy_config_listener_v3_FilterChain_msginit;
59 extern const upb_msglayout envoy_config_listener_v3_ListenerFilter_msginit;
60 extern const upb_msglayout envoy_config_listener_v3_UdpListenerConfig_msginit;
61 extern const upb_msglayout google_protobuf_BoolValue_msginit;
62 extern const upb_msglayout google_protobuf_Duration_msginit;
63 extern const upb_msglayout google_protobuf_UInt32Value_msginit;
64 extern const upb_msglayout xds_core_v3_CollectionEntry_msginit;
65 
66 typedef enum {
67   envoy_config_listener_v3_Listener_DEFAULT = 0,
68   envoy_config_listener_v3_Listener_MODIFY_ONLY = 1
69 } envoy_config_listener_v3_Listener_DrainType;
70 
71 
72 /* envoy.config.listener.v3.ListenerCollection */
73 
envoy_config_listener_v3_ListenerCollection_new(upb_arena * arena)74 UPB_INLINE envoy_config_listener_v3_ListenerCollection *envoy_config_listener_v3_ListenerCollection_new(upb_arena *arena) {
75   return (envoy_config_listener_v3_ListenerCollection *)_upb_msg_new(&envoy_config_listener_v3_ListenerCollection_msginit, arena);
76 }
envoy_config_listener_v3_ListenerCollection_parse(const char * buf,size_t size,upb_arena * arena)77 UPB_INLINE envoy_config_listener_v3_ListenerCollection *envoy_config_listener_v3_ListenerCollection_parse(const char *buf, size_t size,
78                         upb_arena *arena) {
79   envoy_config_listener_v3_ListenerCollection *ret = envoy_config_listener_v3_ListenerCollection_new(arena);
80   if (!ret) return NULL;
81   if (!upb_decode(buf, size, ret, &envoy_config_listener_v3_ListenerCollection_msginit, arena)) return NULL;
82   return ret;
83 }
envoy_config_listener_v3_ListenerCollection_parse_ex(const char * buf,size_t size,const upb_extreg * extreg,int options,upb_arena * arena)84 UPB_INLINE envoy_config_listener_v3_ListenerCollection *envoy_config_listener_v3_ListenerCollection_parse_ex(const char *buf, size_t size,
85                            const upb_extreg *extreg, int options,
86                            upb_arena *arena) {
87   envoy_config_listener_v3_ListenerCollection *ret = envoy_config_listener_v3_ListenerCollection_new(arena);
88   if (!ret) return NULL;
89   if (!_upb_decode(buf, size, ret, &envoy_config_listener_v3_ListenerCollection_msginit, extreg, options, arena)) {
90     return NULL;
91   }
92   return ret;
93 }
envoy_config_listener_v3_ListenerCollection_serialize(const envoy_config_listener_v3_ListenerCollection * msg,upb_arena * arena,size_t * len)94 UPB_INLINE char *envoy_config_listener_v3_ListenerCollection_serialize(const envoy_config_listener_v3_ListenerCollection *msg, upb_arena *arena, size_t *len) {
95   return upb_encode(msg, &envoy_config_listener_v3_ListenerCollection_msginit, arena, len);
96 }
97 
envoy_config_listener_v3_ListenerCollection_has_entries(const envoy_config_listener_v3_ListenerCollection * msg)98 UPB_INLINE bool envoy_config_listener_v3_ListenerCollection_has_entries(const envoy_config_listener_v3_ListenerCollection *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
envoy_config_listener_v3_ListenerCollection_entries(const envoy_config_listener_v3_ListenerCollection * msg,size_t * len)99 UPB_INLINE const struct xds_core_v3_CollectionEntry* const* envoy_config_listener_v3_ListenerCollection_entries(const envoy_config_listener_v3_ListenerCollection *msg, size_t *len) { return (const struct xds_core_v3_CollectionEntry* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); }
100 
envoy_config_listener_v3_ListenerCollection_mutable_entries(envoy_config_listener_v3_ListenerCollection * msg,size_t * len)101 UPB_INLINE struct xds_core_v3_CollectionEntry** envoy_config_listener_v3_ListenerCollection_mutable_entries(envoy_config_listener_v3_ListenerCollection *msg, size_t *len) {
102   return (struct xds_core_v3_CollectionEntry**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len);
103 }
envoy_config_listener_v3_ListenerCollection_resize_entries(envoy_config_listener_v3_ListenerCollection * msg,size_t len,upb_arena * arena)104 UPB_INLINE struct xds_core_v3_CollectionEntry** envoy_config_listener_v3_ListenerCollection_resize_entries(envoy_config_listener_v3_ListenerCollection *msg, size_t len, upb_arena *arena) {
105   return (struct xds_core_v3_CollectionEntry**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena);
106 }
envoy_config_listener_v3_ListenerCollection_add_entries(envoy_config_listener_v3_ListenerCollection * msg,upb_arena * arena)107 UPB_INLINE struct xds_core_v3_CollectionEntry* envoy_config_listener_v3_ListenerCollection_add_entries(envoy_config_listener_v3_ListenerCollection *msg, upb_arena *arena) {
108   struct xds_core_v3_CollectionEntry* sub = (struct xds_core_v3_CollectionEntry*)_upb_msg_new(&xds_core_v3_CollectionEntry_msginit, arena);
109   bool ok = _upb_array_append_accessor2(
110       msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena);
111   if (!ok) return NULL;
112   return sub;
113 }
114 
115 /* envoy.config.listener.v3.Listener */
116 
envoy_config_listener_v3_Listener_new(upb_arena * arena)117 UPB_INLINE envoy_config_listener_v3_Listener *envoy_config_listener_v3_Listener_new(upb_arena *arena) {
118   return (envoy_config_listener_v3_Listener *)_upb_msg_new(&envoy_config_listener_v3_Listener_msginit, arena);
119 }
envoy_config_listener_v3_Listener_parse(const char * buf,size_t size,upb_arena * arena)120 UPB_INLINE envoy_config_listener_v3_Listener *envoy_config_listener_v3_Listener_parse(const char *buf, size_t size,
121                         upb_arena *arena) {
122   envoy_config_listener_v3_Listener *ret = envoy_config_listener_v3_Listener_new(arena);
123   if (!ret) return NULL;
124   if (!upb_decode(buf, size, ret, &envoy_config_listener_v3_Listener_msginit, arena)) return NULL;
125   return ret;
126 }
envoy_config_listener_v3_Listener_parse_ex(const char * buf,size_t size,const upb_extreg * extreg,int options,upb_arena * arena)127 UPB_INLINE envoy_config_listener_v3_Listener *envoy_config_listener_v3_Listener_parse_ex(const char *buf, size_t size,
128                            const upb_extreg *extreg, int options,
129                            upb_arena *arena) {
130   envoy_config_listener_v3_Listener *ret = envoy_config_listener_v3_Listener_new(arena);
131   if (!ret) return NULL;
132   if (!_upb_decode(buf, size, ret, &envoy_config_listener_v3_Listener_msginit, extreg, options, arena)) {
133     return NULL;
134   }
135   return ret;
136 }
envoy_config_listener_v3_Listener_serialize(const envoy_config_listener_v3_Listener * msg,upb_arena * arena,size_t * len)137 UPB_INLINE char *envoy_config_listener_v3_Listener_serialize(const envoy_config_listener_v3_Listener *msg, upb_arena *arena, size_t *len) {
138   return upb_encode(msg, &envoy_config_listener_v3_Listener_msginit, arena, len);
139 }
140 
141 typedef enum {
142   envoy_config_listener_v3_Listener_listener_specifier_internal_listener = 27,
143   envoy_config_listener_v3_Listener_listener_specifier_NOT_SET = 0
144 } envoy_config_listener_v3_Listener_listener_specifier_oneofcases;
envoy_config_listener_v3_Listener_listener_specifier_case(const envoy_config_listener_v3_Listener * msg)145 UPB_INLINE envoy_config_listener_v3_Listener_listener_specifier_oneofcases envoy_config_listener_v3_Listener_listener_specifier_case(const envoy_config_listener_v3_Listener* msg) { return (envoy_config_listener_v3_Listener_listener_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(116, 216), int32_t); }
146 
envoy_config_listener_v3_Listener_name(const envoy_config_listener_v3_Listener * msg)147 UPB_INLINE upb_strview envoy_config_listener_v3_Listener_name(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), upb_strview); }
envoy_config_listener_v3_Listener_has_address(const envoy_config_listener_v3_Listener * msg)148 UPB_INLINE bool envoy_config_listener_v3_Listener_has_address(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 1); }
envoy_config_listener_v3_Listener_address(const envoy_config_listener_v3_Listener * msg)149 UPB_INLINE const struct envoy_config_core_v3_Address* envoy_config_listener_v3_Listener_address(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 48), const struct envoy_config_core_v3_Address*); }
envoy_config_listener_v3_Listener_has_filter_chains(const envoy_config_listener_v3_Listener * msg)150 UPB_INLINE bool envoy_config_listener_v3_Listener_has_filter_chains(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(96, 176)); }
envoy_config_listener_v3_Listener_filter_chains(const envoy_config_listener_v3_Listener * msg,size_t * len)151 UPB_INLINE const struct envoy_config_listener_v3_FilterChain* const* envoy_config_listener_v3_Listener_filter_chains(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_listener_v3_FilterChain* const*)_upb_array_accessor(msg, UPB_SIZE(96, 176), len); }
envoy_config_listener_v3_Listener_has_use_original_dst(const envoy_config_listener_v3_Listener * msg)152 UPB_INLINE bool envoy_config_listener_v3_Listener_has_use_original_dst(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 2); }
envoy_config_listener_v3_Listener_use_original_dst(const envoy_config_listener_v3_Listener * msg)153 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_use_original_dst(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(36, 56), const struct google_protobuf_BoolValue*); }
envoy_config_listener_v3_Listener_has_per_connection_buffer_limit_bytes(const envoy_config_listener_v3_Listener * msg)154 UPB_INLINE bool envoy_config_listener_v3_Listener_has_per_connection_buffer_limit_bytes(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 3); }
envoy_config_listener_v3_Listener_per_connection_buffer_limit_bytes(const envoy_config_listener_v3_Listener * msg)155 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_listener_v3_Listener_per_connection_buffer_limit_bytes(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 64), const struct google_protobuf_UInt32Value*); }
envoy_config_listener_v3_Listener_has_metadata(const envoy_config_listener_v3_Listener * msg)156 UPB_INLINE bool envoy_config_listener_v3_Listener_has_metadata(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 4); }
envoy_config_listener_v3_Listener_metadata(const envoy_config_listener_v3_Listener * msg)157 UPB_INLINE const struct envoy_config_core_v3_Metadata* envoy_config_listener_v3_Listener_metadata(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(44, 72), const struct envoy_config_core_v3_Metadata*); }
envoy_config_listener_v3_Listener_has_deprecated_v1(const envoy_config_listener_v3_Listener * msg)158 UPB_INLINE bool envoy_config_listener_v3_Listener_has_deprecated_v1(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 5); }
envoy_config_listener_v3_Listener_deprecated_v1(const envoy_config_listener_v3_Listener * msg)159 UPB_INLINE const envoy_config_listener_v3_Listener_DeprecatedV1* envoy_config_listener_v3_Listener_deprecated_v1(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 80), const envoy_config_listener_v3_Listener_DeprecatedV1*); }
envoy_config_listener_v3_Listener_drain_type(const envoy_config_listener_v3_Listener * msg)160 UPB_INLINE int32_t envoy_config_listener_v3_Listener_drain_type(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
envoy_config_listener_v3_Listener_has_listener_filters(const envoy_config_listener_v3_Listener * msg)161 UPB_INLINE bool envoy_config_listener_v3_Listener_has_listener_filters(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(100, 184)); }
envoy_config_listener_v3_Listener_listener_filters(const envoy_config_listener_v3_Listener * msg,size_t * len)162 UPB_INLINE const struct envoy_config_listener_v3_ListenerFilter* const* envoy_config_listener_v3_Listener_listener_filters(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_listener_v3_ListenerFilter* const*)_upb_array_accessor(msg, UPB_SIZE(100, 184), len); }
envoy_config_listener_v3_Listener_has_transparent(const envoy_config_listener_v3_Listener * msg)163 UPB_INLINE bool envoy_config_listener_v3_Listener_has_transparent(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 6); }
envoy_config_listener_v3_Listener_transparent(const envoy_config_listener_v3_Listener * msg)164 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_transparent(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(52, 88), const struct google_protobuf_BoolValue*); }
envoy_config_listener_v3_Listener_has_freebind(const envoy_config_listener_v3_Listener * msg)165 UPB_INLINE bool envoy_config_listener_v3_Listener_has_freebind(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 7); }
envoy_config_listener_v3_Listener_freebind(const envoy_config_listener_v3_Listener * msg)166 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_freebind(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(56, 96), const struct google_protobuf_BoolValue*); }
envoy_config_listener_v3_Listener_has_tcp_fast_open_queue_length(const envoy_config_listener_v3_Listener * msg)167 UPB_INLINE bool envoy_config_listener_v3_Listener_has_tcp_fast_open_queue_length(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 8); }
envoy_config_listener_v3_Listener_tcp_fast_open_queue_length(const envoy_config_listener_v3_Listener * msg)168 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_listener_v3_Listener_tcp_fast_open_queue_length(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(60, 104), const struct google_protobuf_UInt32Value*); }
envoy_config_listener_v3_Listener_has_socket_options(const envoy_config_listener_v3_Listener * msg)169 UPB_INLINE bool envoy_config_listener_v3_Listener_has_socket_options(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(104, 192)); }
envoy_config_listener_v3_Listener_socket_options(const envoy_config_listener_v3_Listener * msg,size_t * len)170 UPB_INLINE const struct envoy_config_core_v3_SocketOption* const* envoy_config_listener_v3_Listener_socket_options(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_core_v3_SocketOption* const*)_upb_array_accessor(msg, UPB_SIZE(104, 192), len); }
envoy_config_listener_v3_Listener_has_listener_filters_timeout(const envoy_config_listener_v3_Listener * msg)171 UPB_INLINE bool envoy_config_listener_v3_Listener_has_listener_filters_timeout(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 9); }
envoy_config_listener_v3_Listener_listener_filters_timeout(const envoy_config_listener_v3_Listener * msg)172 UPB_INLINE const struct google_protobuf_Duration* envoy_config_listener_v3_Listener_listener_filters_timeout(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(64, 112), const struct google_protobuf_Duration*); }
envoy_config_listener_v3_Listener_traffic_direction(const envoy_config_listener_v3_Listener * msg)173 UPB_INLINE int32_t envoy_config_listener_v3_Listener_traffic_direction(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); }
envoy_config_listener_v3_Listener_continue_on_listener_filters_timeout(const envoy_config_listener_v3_Listener * msg)174 UPB_INLINE bool envoy_config_listener_v3_Listener_continue_on_listener_filters_timeout(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), bool); }
envoy_config_listener_v3_Listener_has_udp_listener_config(const envoy_config_listener_v3_Listener * msg)175 UPB_INLINE bool envoy_config_listener_v3_Listener_has_udp_listener_config(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 10); }
envoy_config_listener_v3_Listener_udp_listener_config(const envoy_config_listener_v3_Listener * msg)176 UPB_INLINE const struct envoy_config_listener_v3_UdpListenerConfig* envoy_config_listener_v3_Listener_udp_listener_config(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(68, 120), const struct envoy_config_listener_v3_UdpListenerConfig*); }
envoy_config_listener_v3_Listener_has_api_listener(const envoy_config_listener_v3_Listener * msg)177 UPB_INLINE bool envoy_config_listener_v3_Listener_has_api_listener(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 11); }
envoy_config_listener_v3_Listener_api_listener(const envoy_config_listener_v3_Listener * msg)178 UPB_INLINE const struct envoy_config_listener_v3_ApiListener* envoy_config_listener_v3_Listener_api_listener(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(72, 128), const struct envoy_config_listener_v3_ApiListener*); }
envoy_config_listener_v3_Listener_has_connection_balance_config(const envoy_config_listener_v3_Listener * msg)179 UPB_INLINE bool envoy_config_listener_v3_Listener_has_connection_balance_config(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 12); }
envoy_config_listener_v3_Listener_connection_balance_config(const envoy_config_listener_v3_Listener * msg)180 UPB_INLINE const envoy_config_listener_v3_Listener_ConnectionBalanceConfig* envoy_config_listener_v3_Listener_connection_balance_config(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(76, 136), const envoy_config_listener_v3_Listener_ConnectionBalanceConfig*); }
envoy_config_listener_v3_Listener_reuse_port(const envoy_config_listener_v3_Listener * msg)181 UPB_INLINE bool envoy_config_listener_v3_Listener_reuse_port(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(13, 13), bool); }
envoy_config_listener_v3_Listener_has_access_log(const envoy_config_listener_v3_Listener * msg)182 UPB_INLINE bool envoy_config_listener_v3_Listener_has_access_log(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(108, 200)); }
envoy_config_listener_v3_Listener_access_log(const envoy_config_listener_v3_Listener * msg,size_t * len)183 UPB_INLINE const struct envoy_config_accesslog_v3_AccessLog* const* envoy_config_listener_v3_Listener_access_log(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_accesslog_v3_AccessLog* const*)_upb_array_accessor(msg, UPB_SIZE(108, 200), len); }
envoy_config_listener_v3_Listener_has_tcp_backlog_size(const envoy_config_listener_v3_Listener * msg)184 UPB_INLINE bool envoy_config_listener_v3_Listener_has_tcp_backlog_size(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 13); }
envoy_config_listener_v3_Listener_tcp_backlog_size(const envoy_config_listener_v3_Listener * msg)185 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_listener_v3_Listener_tcp_backlog_size(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(80, 144), const struct google_protobuf_UInt32Value*); }
envoy_config_listener_v3_Listener_has_default_filter_chain(const envoy_config_listener_v3_Listener * msg)186 UPB_INLINE bool envoy_config_listener_v3_Listener_has_default_filter_chain(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 14); }
envoy_config_listener_v3_Listener_default_filter_chain(const envoy_config_listener_v3_Listener * msg)187 UPB_INLINE const struct envoy_config_listener_v3_FilterChain* envoy_config_listener_v3_Listener_default_filter_chain(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(84, 152), const struct envoy_config_listener_v3_FilterChain*); }
envoy_config_listener_v3_Listener_has_bind_to_port(const envoy_config_listener_v3_Listener * msg)188 UPB_INLINE bool envoy_config_listener_v3_Listener_has_bind_to_port(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 15); }
envoy_config_listener_v3_Listener_bind_to_port(const envoy_config_listener_v3_Listener * msg)189 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_bind_to_port(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(88, 160), const struct google_protobuf_BoolValue*); }
envoy_config_listener_v3_Listener_has_internal_listener(const envoy_config_listener_v3_Listener * msg)190 UPB_INLINE bool envoy_config_listener_v3_Listener_has_internal_listener(const envoy_config_listener_v3_Listener *msg) { return _upb_getoneofcase(msg, UPB_SIZE(116, 216)) == 27; }
envoy_config_listener_v3_Listener_internal_listener(const envoy_config_listener_v3_Listener * msg)191 UPB_INLINE const envoy_config_listener_v3_Listener_InternalListenerConfig* envoy_config_listener_v3_Listener_internal_listener(const envoy_config_listener_v3_Listener *msg) { return UPB_READ_ONEOF(msg, const envoy_config_listener_v3_Listener_InternalListenerConfig*, UPB_SIZE(112, 208), UPB_SIZE(116, 216), 27, NULL); }
envoy_config_listener_v3_Listener_stat_prefix(const envoy_config_listener_v3_Listener * msg)192 UPB_INLINE upb_strview envoy_config_listener_v3_Listener_stat_prefix(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 32), upb_strview); }
envoy_config_listener_v3_Listener_has_enable_reuse_port(const envoy_config_listener_v3_Listener * msg)193 UPB_INLINE bool envoy_config_listener_v3_Listener_has_enable_reuse_port(const envoy_config_listener_v3_Listener *msg) { return _upb_hasbit(msg, 16); }
envoy_config_listener_v3_Listener_enable_reuse_port(const envoy_config_listener_v3_Listener * msg)194 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_enable_reuse_port(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(92, 168), const struct google_protobuf_BoolValue*); }
195 
envoy_config_listener_v3_Listener_set_name(envoy_config_listener_v3_Listener * msg,upb_strview value)196 UPB_INLINE void envoy_config_listener_v3_Listener_set_name(envoy_config_listener_v3_Listener *msg, upb_strview value) {
197   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), upb_strview) = value;
198 }
envoy_config_listener_v3_Listener_set_address(envoy_config_listener_v3_Listener * msg,struct envoy_config_core_v3_Address * value)199 UPB_INLINE void envoy_config_listener_v3_Listener_set_address(envoy_config_listener_v3_Listener *msg, struct envoy_config_core_v3_Address* value) {
200   _upb_sethas(msg, 1);
201   *UPB_PTR_AT(msg, UPB_SIZE(32, 48), struct envoy_config_core_v3_Address*) = value;
202 }
envoy_config_listener_v3_Listener_mutable_address(envoy_config_listener_v3_Listener * msg,upb_arena * arena)203 UPB_INLINE struct envoy_config_core_v3_Address* envoy_config_listener_v3_Listener_mutable_address(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
204   struct envoy_config_core_v3_Address* sub = (struct envoy_config_core_v3_Address*)envoy_config_listener_v3_Listener_address(msg);
205   if (sub == NULL) {
206     sub = (struct envoy_config_core_v3_Address*)_upb_msg_new(&envoy_config_core_v3_Address_msginit, arena);
207     if (!sub) return NULL;
208     envoy_config_listener_v3_Listener_set_address(msg, sub);
209   }
210   return sub;
211 }
envoy_config_listener_v3_Listener_mutable_filter_chains(envoy_config_listener_v3_Listener * msg,size_t * len)212 UPB_INLINE struct envoy_config_listener_v3_FilterChain** envoy_config_listener_v3_Listener_mutable_filter_chains(envoy_config_listener_v3_Listener *msg, size_t *len) {
213   return (struct envoy_config_listener_v3_FilterChain**)_upb_array_mutable_accessor(msg, UPB_SIZE(96, 176), len);
214 }
envoy_config_listener_v3_Listener_resize_filter_chains(envoy_config_listener_v3_Listener * msg,size_t len,upb_arena * arena)215 UPB_INLINE struct envoy_config_listener_v3_FilterChain** envoy_config_listener_v3_Listener_resize_filter_chains(envoy_config_listener_v3_Listener *msg, size_t len, upb_arena *arena) {
216   return (struct envoy_config_listener_v3_FilterChain**)_upb_array_resize_accessor2(msg, UPB_SIZE(96, 176), len, UPB_SIZE(2, 3), arena);
217 }
envoy_config_listener_v3_Listener_add_filter_chains(envoy_config_listener_v3_Listener * msg,upb_arena * arena)218 UPB_INLINE struct envoy_config_listener_v3_FilterChain* envoy_config_listener_v3_Listener_add_filter_chains(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
219   struct envoy_config_listener_v3_FilterChain* sub = (struct envoy_config_listener_v3_FilterChain*)_upb_msg_new(&envoy_config_listener_v3_FilterChain_msginit, arena);
220   bool ok = _upb_array_append_accessor2(
221       msg, UPB_SIZE(96, 176), UPB_SIZE(2, 3), &sub, arena);
222   if (!ok) return NULL;
223   return sub;
224 }
envoy_config_listener_v3_Listener_set_use_original_dst(envoy_config_listener_v3_Listener * msg,struct google_protobuf_BoolValue * value)225 UPB_INLINE void envoy_config_listener_v3_Listener_set_use_original_dst(envoy_config_listener_v3_Listener *msg, struct google_protobuf_BoolValue* value) {
226   _upb_sethas(msg, 2);
227   *UPB_PTR_AT(msg, UPB_SIZE(36, 56), struct google_protobuf_BoolValue*) = value;
228 }
envoy_config_listener_v3_Listener_mutable_use_original_dst(envoy_config_listener_v3_Listener * msg,upb_arena * arena)229 UPB_INLINE struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_mutable_use_original_dst(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
230   struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_listener_v3_Listener_use_original_dst(msg);
231   if (sub == NULL) {
232     sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
233     if (!sub) return NULL;
234     envoy_config_listener_v3_Listener_set_use_original_dst(msg, sub);
235   }
236   return sub;
237 }
envoy_config_listener_v3_Listener_set_per_connection_buffer_limit_bytes(envoy_config_listener_v3_Listener * msg,struct google_protobuf_UInt32Value * value)238 UPB_INLINE void envoy_config_listener_v3_Listener_set_per_connection_buffer_limit_bytes(envoy_config_listener_v3_Listener *msg, struct google_protobuf_UInt32Value* value) {
239   _upb_sethas(msg, 3);
240   *UPB_PTR_AT(msg, UPB_SIZE(40, 64), struct google_protobuf_UInt32Value*) = value;
241 }
envoy_config_listener_v3_Listener_mutable_per_connection_buffer_limit_bytes(envoy_config_listener_v3_Listener * msg,upb_arena * arena)242 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_listener_v3_Listener_mutable_per_connection_buffer_limit_bytes(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
243   struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_listener_v3_Listener_per_connection_buffer_limit_bytes(msg);
244   if (sub == NULL) {
245     sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
246     if (!sub) return NULL;
247     envoy_config_listener_v3_Listener_set_per_connection_buffer_limit_bytes(msg, sub);
248   }
249   return sub;
250 }
envoy_config_listener_v3_Listener_set_metadata(envoy_config_listener_v3_Listener * msg,struct envoy_config_core_v3_Metadata * value)251 UPB_INLINE void envoy_config_listener_v3_Listener_set_metadata(envoy_config_listener_v3_Listener *msg, struct envoy_config_core_v3_Metadata* value) {
252   _upb_sethas(msg, 4);
253   *UPB_PTR_AT(msg, UPB_SIZE(44, 72), struct envoy_config_core_v3_Metadata*) = value;
254 }
envoy_config_listener_v3_Listener_mutable_metadata(envoy_config_listener_v3_Listener * msg,upb_arena * arena)255 UPB_INLINE struct envoy_config_core_v3_Metadata* envoy_config_listener_v3_Listener_mutable_metadata(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
256   struct envoy_config_core_v3_Metadata* sub = (struct envoy_config_core_v3_Metadata*)envoy_config_listener_v3_Listener_metadata(msg);
257   if (sub == NULL) {
258     sub = (struct envoy_config_core_v3_Metadata*)_upb_msg_new(&envoy_config_core_v3_Metadata_msginit, arena);
259     if (!sub) return NULL;
260     envoy_config_listener_v3_Listener_set_metadata(msg, sub);
261   }
262   return sub;
263 }
envoy_config_listener_v3_Listener_set_deprecated_v1(envoy_config_listener_v3_Listener * msg,envoy_config_listener_v3_Listener_DeprecatedV1 * value)264 UPB_INLINE void envoy_config_listener_v3_Listener_set_deprecated_v1(envoy_config_listener_v3_Listener *msg, envoy_config_listener_v3_Listener_DeprecatedV1* value) {
265   _upb_sethas(msg, 5);
266   *UPB_PTR_AT(msg, UPB_SIZE(48, 80), envoy_config_listener_v3_Listener_DeprecatedV1*) = value;
267 }
envoy_config_listener_v3_Listener_mutable_deprecated_v1(envoy_config_listener_v3_Listener * msg,upb_arena * arena)268 UPB_INLINE struct envoy_config_listener_v3_Listener_DeprecatedV1* envoy_config_listener_v3_Listener_mutable_deprecated_v1(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
269   struct envoy_config_listener_v3_Listener_DeprecatedV1* sub = (struct envoy_config_listener_v3_Listener_DeprecatedV1*)envoy_config_listener_v3_Listener_deprecated_v1(msg);
270   if (sub == NULL) {
271     sub = (struct envoy_config_listener_v3_Listener_DeprecatedV1*)_upb_msg_new(&envoy_config_listener_v3_Listener_DeprecatedV1_msginit, arena);
272     if (!sub) return NULL;
273     envoy_config_listener_v3_Listener_set_deprecated_v1(msg, sub);
274   }
275   return sub;
276 }
envoy_config_listener_v3_Listener_set_drain_type(envoy_config_listener_v3_Listener * msg,int32_t value)277 UPB_INLINE void envoy_config_listener_v3_Listener_set_drain_type(envoy_config_listener_v3_Listener *msg, int32_t value) {
278   *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
279 }
envoy_config_listener_v3_Listener_mutable_listener_filters(envoy_config_listener_v3_Listener * msg,size_t * len)280 UPB_INLINE struct envoy_config_listener_v3_ListenerFilter** envoy_config_listener_v3_Listener_mutable_listener_filters(envoy_config_listener_v3_Listener *msg, size_t *len) {
281   return (struct envoy_config_listener_v3_ListenerFilter**)_upb_array_mutable_accessor(msg, UPB_SIZE(100, 184), len);
282 }
envoy_config_listener_v3_Listener_resize_listener_filters(envoy_config_listener_v3_Listener * msg,size_t len,upb_arena * arena)283 UPB_INLINE struct envoy_config_listener_v3_ListenerFilter** envoy_config_listener_v3_Listener_resize_listener_filters(envoy_config_listener_v3_Listener *msg, size_t len, upb_arena *arena) {
284   return (struct envoy_config_listener_v3_ListenerFilter**)_upb_array_resize_accessor2(msg, UPB_SIZE(100, 184), len, UPB_SIZE(2, 3), arena);
285 }
envoy_config_listener_v3_Listener_add_listener_filters(envoy_config_listener_v3_Listener * msg,upb_arena * arena)286 UPB_INLINE struct envoy_config_listener_v3_ListenerFilter* envoy_config_listener_v3_Listener_add_listener_filters(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
287   struct envoy_config_listener_v3_ListenerFilter* sub = (struct envoy_config_listener_v3_ListenerFilter*)_upb_msg_new(&envoy_config_listener_v3_ListenerFilter_msginit, arena);
288   bool ok = _upb_array_append_accessor2(
289       msg, UPB_SIZE(100, 184), UPB_SIZE(2, 3), &sub, arena);
290   if (!ok) return NULL;
291   return sub;
292 }
envoy_config_listener_v3_Listener_set_transparent(envoy_config_listener_v3_Listener * msg,struct google_protobuf_BoolValue * value)293 UPB_INLINE void envoy_config_listener_v3_Listener_set_transparent(envoy_config_listener_v3_Listener *msg, struct google_protobuf_BoolValue* value) {
294   _upb_sethas(msg, 6);
295   *UPB_PTR_AT(msg, UPB_SIZE(52, 88), struct google_protobuf_BoolValue*) = value;
296 }
envoy_config_listener_v3_Listener_mutable_transparent(envoy_config_listener_v3_Listener * msg,upb_arena * arena)297 UPB_INLINE struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_mutable_transparent(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
298   struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_listener_v3_Listener_transparent(msg);
299   if (sub == NULL) {
300     sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
301     if (!sub) return NULL;
302     envoy_config_listener_v3_Listener_set_transparent(msg, sub);
303   }
304   return sub;
305 }
envoy_config_listener_v3_Listener_set_freebind(envoy_config_listener_v3_Listener * msg,struct google_protobuf_BoolValue * value)306 UPB_INLINE void envoy_config_listener_v3_Listener_set_freebind(envoy_config_listener_v3_Listener *msg, struct google_protobuf_BoolValue* value) {
307   _upb_sethas(msg, 7);
308   *UPB_PTR_AT(msg, UPB_SIZE(56, 96), struct google_protobuf_BoolValue*) = value;
309 }
envoy_config_listener_v3_Listener_mutable_freebind(envoy_config_listener_v3_Listener * msg,upb_arena * arena)310 UPB_INLINE struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_mutable_freebind(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
311   struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_listener_v3_Listener_freebind(msg);
312   if (sub == NULL) {
313     sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
314     if (!sub) return NULL;
315     envoy_config_listener_v3_Listener_set_freebind(msg, sub);
316   }
317   return sub;
318 }
envoy_config_listener_v3_Listener_set_tcp_fast_open_queue_length(envoy_config_listener_v3_Listener * msg,struct google_protobuf_UInt32Value * value)319 UPB_INLINE void envoy_config_listener_v3_Listener_set_tcp_fast_open_queue_length(envoy_config_listener_v3_Listener *msg, struct google_protobuf_UInt32Value* value) {
320   _upb_sethas(msg, 8);
321   *UPB_PTR_AT(msg, UPB_SIZE(60, 104), struct google_protobuf_UInt32Value*) = value;
322 }
envoy_config_listener_v3_Listener_mutable_tcp_fast_open_queue_length(envoy_config_listener_v3_Listener * msg,upb_arena * arena)323 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_listener_v3_Listener_mutable_tcp_fast_open_queue_length(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
324   struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_listener_v3_Listener_tcp_fast_open_queue_length(msg);
325   if (sub == NULL) {
326     sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
327     if (!sub) return NULL;
328     envoy_config_listener_v3_Listener_set_tcp_fast_open_queue_length(msg, sub);
329   }
330   return sub;
331 }
envoy_config_listener_v3_Listener_mutable_socket_options(envoy_config_listener_v3_Listener * msg,size_t * len)332 UPB_INLINE struct envoy_config_core_v3_SocketOption** envoy_config_listener_v3_Listener_mutable_socket_options(envoy_config_listener_v3_Listener *msg, size_t *len) {
333   return (struct envoy_config_core_v3_SocketOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(104, 192), len);
334 }
envoy_config_listener_v3_Listener_resize_socket_options(envoy_config_listener_v3_Listener * msg,size_t len,upb_arena * arena)335 UPB_INLINE struct envoy_config_core_v3_SocketOption** envoy_config_listener_v3_Listener_resize_socket_options(envoy_config_listener_v3_Listener *msg, size_t len, upb_arena *arena) {
336   return (struct envoy_config_core_v3_SocketOption**)_upb_array_resize_accessor2(msg, UPB_SIZE(104, 192), len, UPB_SIZE(2, 3), arena);
337 }
envoy_config_listener_v3_Listener_add_socket_options(envoy_config_listener_v3_Listener * msg,upb_arena * arena)338 UPB_INLINE struct envoy_config_core_v3_SocketOption* envoy_config_listener_v3_Listener_add_socket_options(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
339   struct envoy_config_core_v3_SocketOption* sub = (struct envoy_config_core_v3_SocketOption*)_upb_msg_new(&envoy_config_core_v3_SocketOption_msginit, arena);
340   bool ok = _upb_array_append_accessor2(
341       msg, UPB_SIZE(104, 192), UPB_SIZE(2, 3), &sub, arena);
342   if (!ok) return NULL;
343   return sub;
344 }
envoy_config_listener_v3_Listener_set_listener_filters_timeout(envoy_config_listener_v3_Listener * msg,struct google_protobuf_Duration * value)345 UPB_INLINE void envoy_config_listener_v3_Listener_set_listener_filters_timeout(envoy_config_listener_v3_Listener *msg, struct google_protobuf_Duration* value) {
346   _upb_sethas(msg, 9);
347   *UPB_PTR_AT(msg, UPB_SIZE(64, 112), struct google_protobuf_Duration*) = value;
348 }
envoy_config_listener_v3_Listener_mutable_listener_filters_timeout(envoy_config_listener_v3_Listener * msg,upb_arena * arena)349 UPB_INLINE struct google_protobuf_Duration* envoy_config_listener_v3_Listener_mutable_listener_filters_timeout(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
350   struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_config_listener_v3_Listener_listener_filters_timeout(msg);
351   if (sub == NULL) {
352     sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
353     if (!sub) return NULL;
354     envoy_config_listener_v3_Listener_set_listener_filters_timeout(msg, sub);
355   }
356   return sub;
357 }
envoy_config_listener_v3_Listener_set_traffic_direction(envoy_config_listener_v3_Listener * msg,int32_t value)358 UPB_INLINE void envoy_config_listener_v3_Listener_set_traffic_direction(envoy_config_listener_v3_Listener *msg, int32_t value) {
359   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = value;
360 }
envoy_config_listener_v3_Listener_set_continue_on_listener_filters_timeout(envoy_config_listener_v3_Listener * msg,bool value)361 UPB_INLINE void envoy_config_listener_v3_Listener_set_continue_on_listener_filters_timeout(envoy_config_listener_v3_Listener *msg, bool value) {
362   *UPB_PTR_AT(msg, UPB_SIZE(12, 12), bool) = value;
363 }
envoy_config_listener_v3_Listener_set_udp_listener_config(envoy_config_listener_v3_Listener * msg,struct envoy_config_listener_v3_UdpListenerConfig * value)364 UPB_INLINE void envoy_config_listener_v3_Listener_set_udp_listener_config(envoy_config_listener_v3_Listener *msg, struct envoy_config_listener_v3_UdpListenerConfig* value) {
365   _upb_sethas(msg, 10);
366   *UPB_PTR_AT(msg, UPB_SIZE(68, 120), struct envoy_config_listener_v3_UdpListenerConfig*) = value;
367 }
envoy_config_listener_v3_Listener_mutable_udp_listener_config(envoy_config_listener_v3_Listener * msg,upb_arena * arena)368 UPB_INLINE struct envoy_config_listener_v3_UdpListenerConfig* envoy_config_listener_v3_Listener_mutable_udp_listener_config(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
369   struct envoy_config_listener_v3_UdpListenerConfig* sub = (struct envoy_config_listener_v3_UdpListenerConfig*)envoy_config_listener_v3_Listener_udp_listener_config(msg);
370   if (sub == NULL) {
371     sub = (struct envoy_config_listener_v3_UdpListenerConfig*)_upb_msg_new(&envoy_config_listener_v3_UdpListenerConfig_msginit, arena);
372     if (!sub) return NULL;
373     envoy_config_listener_v3_Listener_set_udp_listener_config(msg, sub);
374   }
375   return sub;
376 }
envoy_config_listener_v3_Listener_set_api_listener(envoy_config_listener_v3_Listener * msg,struct envoy_config_listener_v3_ApiListener * value)377 UPB_INLINE void envoy_config_listener_v3_Listener_set_api_listener(envoy_config_listener_v3_Listener *msg, struct envoy_config_listener_v3_ApiListener* value) {
378   _upb_sethas(msg, 11);
379   *UPB_PTR_AT(msg, UPB_SIZE(72, 128), struct envoy_config_listener_v3_ApiListener*) = value;
380 }
envoy_config_listener_v3_Listener_mutable_api_listener(envoy_config_listener_v3_Listener * msg,upb_arena * arena)381 UPB_INLINE struct envoy_config_listener_v3_ApiListener* envoy_config_listener_v3_Listener_mutable_api_listener(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
382   struct envoy_config_listener_v3_ApiListener* sub = (struct envoy_config_listener_v3_ApiListener*)envoy_config_listener_v3_Listener_api_listener(msg);
383   if (sub == NULL) {
384     sub = (struct envoy_config_listener_v3_ApiListener*)_upb_msg_new(&envoy_config_listener_v3_ApiListener_msginit, arena);
385     if (!sub) return NULL;
386     envoy_config_listener_v3_Listener_set_api_listener(msg, sub);
387   }
388   return sub;
389 }
envoy_config_listener_v3_Listener_set_connection_balance_config(envoy_config_listener_v3_Listener * msg,envoy_config_listener_v3_Listener_ConnectionBalanceConfig * value)390 UPB_INLINE void envoy_config_listener_v3_Listener_set_connection_balance_config(envoy_config_listener_v3_Listener *msg, envoy_config_listener_v3_Listener_ConnectionBalanceConfig* value) {
391   _upb_sethas(msg, 12);
392   *UPB_PTR_AT(msg, UPB_SIZE(76, 136), envoy_config_listener_v3_Listener_ConnectionBalanceConfig*) = value;
393 }
envoy_config_listener_v3_Listener_mutable_connection_balance_config(envoy_config_listener_v3_Listener * msg,upb_arena * arena)394 UPB_INLINE struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig* envoy_config_listener_v3_Listener_mutable_connection_balance_config(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
395   struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig* sub = (struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig*)envoy_config_listener_v3_Listener_connection_balance_config(msg);
396   if (sub == NULL) {
397     sub = (struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig*)_upb_msg_new(&envoy_config_listener_v3_Listener_ConnectionBalanceConfig_msginit, arena);
398     if (!sub) return NULL;
399     envoy_config_listener_v3_Listener_set_connection_balance_config(msg, sub);
400   }
401   return sub;
402 }
envoy_config_listener_v3_Listener_set_reuse_port(envoy_config_listener_v3_Listener * msg,bool value)403 UPB_INLINE void envoy_config_listener_v3_Listener_set_reuse_port(envoy_config_listener_v3_Listener *msg, bool value) {
404   *UPB_PTR_AT(msg, UPB_SIZE(13, 13), bool) = value;
405 }
envoy_config_listener_v3_Listener_mutable_access_log(envoy_config_listener_v3_Listener * msg,size_t * len)406 UPB_INLINE struct envoy_config_accesslog_v3_AccessLog** envoy_config_listener_v3_Listener_mutable_access_log(envoy_config_listener_v3_Listener *msg, size_t *len) {
407   return (struct envoy_config_accesslog_v3_AccessLog**)_upb_array_mutable_accessor(msg, UPB_SIZE(108, 200), len);
408 }
envoy_config_listener_v3_Listener_resize_access_log(envoy_config_listener_v3_Listener * msg,size_t len,upb_arena * arena)409 UPB_INLINE struct envoy_config_accesslog_v3_AccessLog** envoy_config_listener_v3_Listener_resize_access_log(envoy_config_listener_v3_Listener *msg, size_t len, upb_arena *arena) {
410   return (struct envoy_config_accesslog_v3_AccessLog**)_upb_array_resize_accessor2(msg, UPB_SIZE(108, 200), len, UPB_SIZE(2, 3), arena);
411 }
envoy_config_listener_v3_Listener_add_access_log(envoy_config_listener_v3_Listener * msg,upb_arena * arena)412 UPB_INLINE struct envoy_config_accesslog_v3_AccessLog* envoy_config_listener_v3_Listener_add_access_log(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
413   struct envoy_config_accesslog_v3_AccessLog* sub = (struct envoy_config_accesslog_v3_AccessLog*)_upb_msg_new(&envoy_config_accesslog_v3_AccessLog_msginit, arena);
414   bool ok = _upb_array_append_accessor2(
415       msg, UPB_SIZE(108, 200), UPB_SIZE(2, 3), &sub, arena);
416   if (!ok) return NULL;
417   return sub;
418 }
envoy_config_listener_v3_Listener_set_tcp_backlog_size(envoy_config_listener_v3_Listener * msg,struct google_protobuf_UInt32Value * value)419 UPB_INLINE void envoy_config_listener_v3_Listener_set_tcp_backlog_size(envoy_config_listener_v3_Listener *msg, struct google_protobuf_UInt32Value* value) {
420   _upb_sethas(msg, 13);
421   *UPB_PTR_AT(msg, UPB_SIZE(80, 144), struct google_protobuf_UInt32Value*) = value;
422 }
envoy_config_listener_v3_Listener_mutable_tcp_backlog_size(envoy_config_listener_v3_Listener * msg,upb_arena * arena)423 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_listener_v3_Listener_mutable_tcp_backlog_size(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
424   struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_listener_v3_Listener_tcp_backlog_size(msg);
425   if (sub == NULL) {
426     sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
427     if (!sub) return NULL;
428     envoy_config_listener_v3_Listener_set_tcp_backlog_size(msg, sub);
429   }
430   return sub;
431 }
envoy_config_listener_v3_Listener_set_default_filter_chain(envoy_config_listener_v3_Listener * msg,struct envoy_config_listener_v3_FilterChain * value)432 UPB_INLINE void envoy_config_listener_v3_Listener_set_default_filter_chain(envoy_config_listener_v3_Listener *msg, struct envoy_config_listener_v3_FilterChain* value) {
433   _upb_sethas(msg, 14);
434   *UPB_PTR_AT(msg, UPB_SIZE(84, 152), struct envoy_config_listener_v3_FilterChain*) = value;
435 }
envoy_config_listener_v3_Listener_mutable_default_filter_chain(envoy_config_listener_v3_Listener * msg,upb_arena * arena)436 UPB_INLINE struct envoy_config_listener_v3_FilterChain* envoy_config_listener_v3_Listener_mutable_default_filter_chain(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
437   struct envoy_config_listener_v3_FilterChain* sub = (struct envoy_config_listener_v3_FilterChain*)envoy_config_listener_v3_Listener_default_filter_chain(msg);
438   if (sub == NULL) {
439     sub = (struct envoy_config_listener_v3_FilterChain*)_upb_msg_new(&envoy_config_listener_v3_FilterChain_msginit, arena);
440     if (!sub) return NULL;
441     envoy_config_listener_v3_Listener_set_default_filter_chain(msg, sub);
442   }
443   return sub;
444 }
envoy_config_listener_v3_Listener_set_bind_to_port(envoy_config_listener_v3_Listener * msg,struct google_protobuf_BoolValue * value)445 UPB_INLINE void envoy_config_listener_v3_Listener_set_bind_to_port(envoy_config_listener_v3_Listener *msg, struct google_protobuf_BoolValue* value) {
446   _upb_sethas(msg, 15);
447   *UPB_PTR_AT(msg, UPB_SIZE(88, 160), struct google_protobuf_BoolValue*) = value;
448 }
envoy_config_listener_v3_Listener_mutable_bind_to_port(envoy_config_listener_v3_Listener * msg,upb_arena * arena)449 UPB_INLINE struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_mutable_bind_to_port(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
450   struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_listener_v3_Listener_bind_to_port(msg);
451   if (sub == NULL) {
452     sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
453     if (!sub) return NULL;
454     envoy_config_listener_v3_Listener_set_bind_to_port(msg, sub);
455   }
456   return sub;
457 }
envoy_config_listener_v3_Listener_set_internal_listener(envoy_config_listener_v3_Listener * msg,envoy_config_listener_v3_Listener_InternalListenerConfig * value)458 UPB_INLINE void envoy_config_listener_v3_Listener_set_internal_listener(envoy_config_listener_v3_Listener *msg, envoy_config_listener_v3_Listener_InternalListenerConfig* value) {
459   UPB_WRITE_ONEOF(msg, envoy_config_listener_v3_Listener_InternalListenerConfig*, UPB_SIZE(112, 208), value, UPB_SIZE(116, 216), 27);
460 }
envoy_config_listener_v3_Listener_mutable_internal_listener(envoy_config_listener_v3_Listener * msg,upb_arena * arena)461 UPB_INLINE struct envoy_config_listener_v3_Listener_InternalListenerConfig* envoy_config_listener_v3_Listener_mutable_internal_listener(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
462   struct envoy_config_listener_v3_Listener_InternalListenerConfig* sub = (struct envoy_config_listener_v3_Listener_InternalListenerConfig*)envoy_config_listener_v3_Listener_internal_listener(msg);
463   if (sub == NULL) {
464     sub = (struct envoy_config_listener_v3_Listener_InternalListenerConfig*)_upb_msg_new(&envoy_config_listener_v3_Listener_InternalListenerConfig_msginit, arena);
465     if (!sub) return NULL;
466     envoy_config_listener_v3_Listener_set_internal_listener(msg, sub);
467   }
468   return sub;
469 }
envoy_config_listener_v3_Listener_set_stat_prefix(envoy_config_listener_v3_Listener * msg,upb_strview value)470 UPB_INLINE void envoy_config_listener_v3_Listener_set_stat_prefix(envoy_config_listener_v3_Listener *msg, upb_strview value) {
471   *UPB_PTR_AT(msg, UPB_SIZE(24, 32), upb_strview) = value;
472 }
envoy_config_listener_v3_Listener_set_enable_reuse_port(envoy_config_listener_v3_Listener * msg,struct google_protobuf_BoolValue * value)473 UPB_INLINE void envoy_config_listener_v3_Listener_set_enable_reuse_port(envoy_config_listener_v3_Listener *msg, struct google_protobuf_BoolValue* value) {
474   _upb_sethas(msg, 16);
475   *UPB_PTR_AT(msg, UPB_SIZE(92, 168), struct google_protobuf_BoolValue*) = value;
476 }
envoy_config_listener_v3_Listener_mutable_enable_reuse_port(envoy_config_listener_v3_Listener * msg,upb_arena * arena)477 UPB_INLINE struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_mutable_enable_reuse_port(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
478   struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_listener_v3_Listener_enable_reuse_port(msg);
479   if (sub == NULL) {
480     sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
481     if (!sub) return NULL;
482     envoy_config_listener_v3_Listener_set_enable_reuse_port(msg, sub);
483   }
484   return sub;
485 }
486 
487 /* envoy.config.listener.v3.Listener.DeprecatedV1 */
488 
envoy_config_listener_v3_Listener_DeprecatedV1_new(upb_arena * arena)489 UPB_INLINE envoy_config_listener_v3_Listener_DeprecatedV1 *envoy_config_listener_v3_Listener_DeprecatedV1_new(upb_arena *arena) {
490   return (envoy_config_listener_v3_Listener_DeprecatedV1 *)_upb_msg_new(&envoy_config_listener_v3_Listener_DeprecatedV1_msginit, arena);
491 }
envoy_config_listener_v3_Listener_DeprecatedV1_parse(const char * buf,size_t size,upb_arena * arena)492 UPB_INLINE envoy_config_listener_v3_Listener_DeprecatedV1 *envoy_config_listener_v3_Listener_DeprecatedV1_parse(const char *buf, size_t size,
493                         upb_arena *arena) {
494   envoy_config_listener_v3_Listener_DeprecatedV1 *ret = envoy_config_listener_v3_Listener_DeprecatedV1_new(arena);
495   if (!ret) return NULL;
496   if (!upb_decode(buf, size, ret, &envoy_config_listener_v3_Listener_DeprecatedV1_msginit, arena)) return NULL;
497   return ret;
498 }
envoy_config_listener_v3_Listener_DeprecatedV1_parse_ex(const char * buf,size_t size,const upb_extreg * extreg,int options,upb_arena * arena)499 UPB_INLINE envoy_config_listener_v3_Listener_DeprecatedV1 *envoy_config_listener_v3_Listener_DeprecatedV1_parse_ex(const char *buf, size_t size,
500                            const upb_extreg *extreg, int options,
501                            upb_arena *arena) {
502   envoy_config_listener_v3_Listener_DeprecatedV1 *ret = envoy_config_listener_v3_Listener_DeprecatedV1_new(arena);
503   if (!ret) return NULL;
504   if (!_upb_decode(buf, size, ret, &envoy_config_listener_v3_Listener_DeprecatedV1_msginit, extreg, options, arena)) {
505     return NULL;
506   }
507   return ret;
508 }
envoy_config_listener_v3_Listener_DeprecatedV1_serialize(const envoy_config_listener_v3_Listener_DeprecatedV1 * msg,upb_arena * arena,size_t * len)509 UPB_INLINE char *envoy_config_listener_v3_Listener_DeprecatedV1_serialize(const envoy_config_listener_v3_Listener_DeprecatedV1 *msg, upb_arena *arena, size_t *len) {
510   return upb_encode(msg, &envoy_config_listener_v3_Listener_DeprecatedV1_msginit, arena, len);
511 }
512 
envoy_config_listener_v3_Listener_DeprecatedV1_has_bind_to_port(const envoy_config_listener_v3_Listener_DeprecatedV1 * msg)513 UPB_INLINE bool envoy_config_listener_v3_Listener_DeprecatedV1_has_bind_to_port(const envoy_config_listener_v3_Listener_DeprecatedV1 *msg) { return _upb_hasbit(msg, 1); }
envoy_config_listener_v3_Listener_DeprecatedV1_bind_to_port(const envoy_config_listener_v3_Listener_DeprecatedV1 * msg)514 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_DeprecatedV1_bind_to_port(const envoy_config_listener_v3_Listener_DeprecatedV1 *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_BoolValue*); }
515 
envoy_config_listener_v3_Listener_DeprecatedV1_set_bind_to_port(envoy_config_listener_v3_Listener_DeprecatedV1 * msg,struct google_protobuf_BoolValue * value)516 UPB_INLINE void envoy_config_listener_v3_Listener_DeprecatedV1_set_bind_to_port(envoy_config_listener_v3_Listener_DeprecatedV1 *msg, struct google_protobuf_BoolValue* value) {
517   _upb_sethas(msg, 1);
518   *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_BoolValue*) = value;
519 }
envoy_config_listener_v3_Listener_DeprecatedV1_mutable_bind_to_port(envoy_config_listener_v3_Listener_DeprecatedV1 * msg,upb_arena * arena)520 UPB_INLINE struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_DeprecatedV1_mutable_bind_to_port(envoy_config_listener_v3_Listener_DeprecatedV1 *msg, upb_arena *arena) {
521   struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_listener_v3_Listener_DeprecatedV1_bind_to_port(msg);
522   if (sub == NULL) {
523     sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
524     if (!sub) return NULL;
525     envoy_config_listener_v3_Listener_DeprecatedV1_set_bind_to_port(msg, sub);
526   }
527   return sub;
528 }
529 
530 /* envoy.config.listener.v3.Listener.ConnectionBalanceConfig */
531 
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_new(upb_arena * arena)532 UPB_INLINE envoy_config_listener_v3_Listener_ConnectionBalanceConfig *envoy_config_listener_v3_Listener_ConnectionBalanceConfig_new(upb_arena *arena) {
533   return (envoy_config_listener_v3_Listener_ConnectionBalanceConfig *)_upb_msg_new(&envoy_config_listener_v3_Listener_ConnectionBalanceConfig_msginit, arena);
534 }
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_parse(const char * buf,size_t size,upb_arena * arena)535 UPB_INLINE envoy_config_listener_v3_Listener_ConnectionBalanceConfig *envoy_config_listener_v3_Listener_ConnectionBalanceConfig_parse(const char *buf, size_t size,
536                         upb_arena *arena) {
537   envoy_config_listener_v3_Listener_ConnectionBalanceConfig *ret = envoy_config_listener_v3_Listener_ConnectionBalanceConfig_new(arena);
538   if (!ret) return NULL;
539   if (!upb_decode(buf, size, ret, &envoy_config_listener_v3_Listener_ConnectionBalanceConfig_msginit, arena)) return NULL;
540   return ret;
541 }
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_parse_ex(const char * buf,size_t size,const upb_extreg * extreg,int options,upb_arena * arena)542 UPB_INLINE envoy_config_listener_v3_Listener_ConnectionBalanceConfig *envoy_config_listener_v3_Listener_ConnectionBalanceConfig_parse_ex(const char *buf, size_t size,
543                            const upb_extreg *extreg, int options,
544                            upb_arena *arena) {
545   envoy_config_listener_v3_Listener_ConnectionBalanceConfig *ret = envoy_config_listener_v3_Listener_ConnectionBalanceConfig_new(arena);
546   if (!ret) return NULL;
547   if (!_upb_decode(buf, size, ret, &envoy_config_listener_v3_Listener_ConnectionBalanceConfig_msginit, extreg, options, arena)) {
548     return NULL;
549   }
550   return ret;
551 }
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_serialize(const envoy_config_listener_v3_Listener_ConnectionBalanceConfig * msg,upb_arena * arena,size_t * len)552 UPB_INLINE char *envoy_config_listener_v3_Listener_ConnectionBalanceConfig_serialize(const envoy_config_listener_v3_Listener_ConnectionBalanceConfig *msg, upb_arena *arena, size_t *len) {
553   return upb_encode(msg, &envoy_config_listener_v3_Listener_ConnectionBalanceConfig_msginit, arena, len);
554 }
555 
556 typedef enum {
557   envoy_config_listener_v3_Listener_ConnectionBalanceConfig_balance_type_exact_balance = 1,
558   envoy_config_listener_v3_Listener_ConnectionBalanceConfig_balance_type_NOT_SET = 0
559 } envoy_config_listener_v3_Listener_ConnectionBalanceConfig_balance_type_oneofcases;
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_balance_type_case(const envoy_config_listener_v3_Listener_ConnectionBalanceConfig * msg)560 UPB_INLINE envoy_config_listener_v3_Listener_ConnectionBalanceConfig_balance_type_oneofcases envoy_config_listener_v3_Listener_ConnectionBalanceConfig_balance_type_case(const envoy_config_listener_v3_Listener_ConnectionBalanceConfig* msg) { return (envoy_config_listener_v3_Listener_ConnectionBalanceConfig_balance_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(4, 8), int32_t); }
561 
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_has_exact_balance(const envoy_config_listener_v3_Listener_ConnectionBalanceConfig * msg)562 UPB_INLINE bool envoy_config_listener_v3_Listener_ConnectionBalanceConfig_has_exact_balance(const envoy_config_listener_v3_Listener_ConnectionBalanceConfig *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 1; }
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_exact_balance(const envoy_config_listener_v3_Listener_ConnectionBalanceConfig * msg)563 UPB_INLINE const envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance* envoy_config_listener_v3_Listener_ConnectionBalanceConfig_exact_balance(const envoy_config_listener_v3_Listener_ConnectionBalanceConfig *msg) { return UPB_READ_ONEOF(msg, const envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 1, NULL); }
564 
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_set_exact_balance(envoy_config_listener_v3_Listener_ConnectionBalanceConfig * msg,envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance * value)565 UPB_INLINE void envoy_config_listener_v3_Listener_ConnectionBalanceConfig_set_exact_balance(envoy_config_listener_v3_Listener_ConnectionBalanceConfig *msg, envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance* value) {
566   UPB_WRITE_ONEOF(msg, envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 1);
567 }
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_mutable_exact_balance(envoy_config_listener_v3_Listener_ConnectionBalanceConfig * msg,upb_arena * arena)568 UPB_INLINE struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance* envoy_config_listener_v3_Listener_ConnectionBalanceConfig_mutable_exact_balance(envoy_config_listener_v3_Listener_ConnectionBalanceConfig *msg, upb_arena *arena) {
569   struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance* sub = (struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance*)envoy_config_listener_v3_Listener_ConnectionBalanceConfig_exact_balance(msg);
570   if (sub == NULL) {
571     sub = (struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance*)_upb_msg_new(&envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_msginit, arena);
572     if (!sub) return NULL;
573     envoy_config_listener_v3_Listener_ConnectionBalanceConfig_set_exact_balance(msg, sub);
574   }
575   return sub;
576 }
577 
578 /* envoy.config.listener.v3.Listener.ConnectionBalanceConfig.ExactBalance */
579 
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_new(upb_arena * arena)580 UPB_INLINE envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance *envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_new(upb_arena *arena) {
581   return (envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance *)_upb_msg_new(&envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_msginit, arena);
582 }
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_parse(const char * buf,size_t size,upb_arena * arena)583 UPB_INLINE envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance *envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_parse(const char *buf, size_t size,
584                         upb_arena *arena) {
585   envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance *ret = envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_new(arena);
586   if (!ret) return NULL;
587   if (!upb_decode(buf, size, ret, &envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_msginit, arena)) return NULL;
588   return ret;
589 }
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_parse_ex(const char * buf,size_t size,const upb_extreg * extreg,int options,upb_arena * arena)590 UPB_INLINE envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance *envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_parse_ex(const char *buf, size_t size,
591                            const upb_extreg *extreg, int options,
592                            upb_arena *arena) {
593   envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance *ret = envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_new(arena);
594   if (!ret) return NULL;
595   if (!_upb_decode(buf, size, ret, &envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_msginit, extreg, options, arena)) {
596     return NULL;
597   }
598   return ret;
599 }
envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_serialize(const envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance * msg,upb_arena * arena,size_t * len)600 UPB_INLINE char *envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_serialize(const envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance *msg, upb_arena *arena, size_t *len) {
601   return upb_encode(msg, &envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance_msginit, arena, len);
602 }
603 
604 
605 
606 /* envoy.config.listener.v3.Listener.InternalListenerConfig */
607 
envoy_config_listener_v3_Listener_InternalListenerConfig_new(upb_arena * arena)608 UPB_INLINE envoy_config_listener_v3_Listener_InternalListenerConfig *envoy_config_listener_v3_Listener_InternalListenerConfig_new(upb_arena *arena) {
609   return (envoy_config_listener_v3_Listener_InternalListenerConfig *)_upb_msg_new(&envoy_config_listener_v3_Listener_InternalListenerConfig_msginit, arena);
610 }
envoy_config_listener_v3_Listener_InternalListenerConfig_parse(const char * buf,size_t size,upb_arena * arena)611 UPB_INLINE envoy_config_listener_v3_Listener_InternalListenerConfig *envoy_config_listener_v3_Listener_InternalListenerConfig_parse(const char *buf, size_t size,
612                         upb_arena *arena) {
613   envoy_config_listener_v3_Listener_InternalListenerConfig *ret = envoy_config_listener_v3_Listener_InternalListenerConfig_new(arena);
614   if (!ret) return NULL;
615   if (!upb_decode(buf, size, ret, &envoy_config_listener_v3_Listener_InternalListenerConfig_msginit, arena)) return NULL;
616   return ret;
617 }
envoy_config_listener_v3_Listener_InternalListenerConfig_parse_ex(const char * buf,size_t size,const upb_extreg * extreg,int options,upb_arena * arena)618 UPB_INLINE envoy_config_listener_v3_Listener_InternalListenerConfig *envoy_config_listener_v3_Listener_InternalListenerConfig_parse_ex(const char *buf, size_t size,
619                            const upb_extreg *extreg, int options,
620                            upb_arena *arena) {
621   envoy_config_listener_v3_Listener_InternalListenerConfig *ret = envoy_config_listener_v3_Listener_InternalListenerConfig_new(arena);
622   if (!ret) return NULL;
623   if (!_upb_decode(buf, size, ret, &envoy_config_listener_v3_Listener_InternalListenerConfig_msginit, extreg, options, arena)) {
624     return NULL;
625   }
626   return ret;
627 }
envoy_config_listener_v3_Listener_InternalListenerConfig_serialize(const envoy_config_listener_v3_Listener_InternalListenerConfig * msg,upb_arena * arena,size_t * len)628 UPB_INLINE char *envoy_config_listener_v3_Listener_InternalListenerConfig_serialize(const envoy_config_listener_v3_Listener_InternalListenerConfig *msg, upb_arena *arena, size_t *len) {
629   return upb_encode(msg, &envoy_config_listener_v3_Listener_InternalListenerConfig_msginit, arena, len);
630 }
631 
632 
633 
634 extern const upb_msglayout_file envoy_config_listener_v3_listener_proto_upb_file_layout;
635 
636 #ifdef __cplusplus
637 }  /* extern "C" */
638 #endif
639 
640 #include "upb/port_undef.inc"
641 
642 #endif  /* ENVOY_CONFIG_LISTENER_V3_LISTENER_PROTO_UPB_H_ */
643