1 /* This file was generated by upbc (the upb compiler) from the input
2 * file:
3 *
4 * envoy/config/route/v3/route_components.proto
5 *
6 * Do not edit -- your changes will be discarded when the file is
7 * regenerated. */
8
9 #ifndef ENVOY_CONFIG_ROUTE_V3_ROUTE_COMPONENTS_PROTO_UPB_H_
10 #define ENVOY_CONFIG_ROUTE_V3_ROUTE_COMPONENTS_PROTO_UPB_H_
11
12 #include "upb/msg.h"
13 #include "upb/decode.h"
14 #include "upb/decode_fast.h"
15 #include "upb/encode.h"
16
17 #include "upb/port_def.inc"
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 struct envoy_config_route_v3_VirtualHost;
24 struct envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry;
25 struct envoy_config_route_v3_FilterAction;
26 struct envoy_config_route_v3_Route;
27 struct envoy_config_route_v3_Route_TypedPerFilterConfigEntry;
28 struct envoy_config_route_v3_WeightedCluster;
29 struct envoy_config_route_v3_WeightedCluster_ClusterWeight;
30 struct envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry;
31 struct envoy_config_route_v3_RouteMatch;
32 struct envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions;
33 struct envoy_config_route_v3_RouteMatch_TlsContextMatchOptions;
34 struct envoy_config_route_v3_RouteMatch_ConnectMatcher;
35 struct envoy_config_route_v3_CorsPolicy;
36 struct envoy_config_route_v3_RouteAction;
37 struct envoy_config_route_v3_RouteAction_RequestMirrorPolicy;
38 struct envoy_config_route_v3_RouteAction_HashPolicy;
39 struct envoy_config_route_v3_RouteAction_HashPolicy_Header;
40 struct envoy_config_route_v3_RouteAction_HashPolicy_Cookie;
41 struct envoy_config_route_v3_RouteAction_HashPolicy_ConnectionProperties;
42 struct envoy_config_route_v3_RouteAction_HashPolicy_QueryParameter;
43 struct envoy_config_route_v3_RouteAction_HashPolicy_FilterState;
44 struct envoy_config_route_v3_RouteAction_UpgradeConfig;
45 struct envoy_config_route_v3_RouteAction_UpgradeConfig_ConnectConfig;
46 struct envoy_config_route_v3_RouteAction_MaxStreamDuration;
47 struct envoy_config_route_v3_RetryPolicy;
48 struct envoy_config_route_v3_RetryPolicy_RetryPriority;
49 struct envoy_config_route_v3_RetryPolicy_RetryHostPredicate;
50 struct envoy_config_route_v3_RetryPolicy_RetryBackOff;
51 struct envoy_config_route_v3_RetryPolicy_ResetHeader;
52 struct envoy_config_route_v3_RetryPolicy_RateLimitedRetryBackOff;
53 struct envoy_config_route_v3_HedgePolicy;
54 struct envoy_config_route_v3_RedirectAction;
55 struct envoy_config_route_v3_DirectResponseAction;
56 struct envoy_config_route_v3_Decorator;
57 struct envoy_config_route_v3_Tracing;
58 struct envoy_config_route_v3_VirtualCluster;
59 struct envoy_config_route_v3_RateLimit;
60 struct envoy_config_route_v3_RateLimit_Action;
61 struct envoy_config_route_v3_RateLimit_Action_SourceCluster;
62 struct envoy_config_route_v3_RateLimit_Action_DestinationCluster;
63 struct envoy_config_route_v3_RateLimit_Action_RequestHeaders;
64 struct envoy_config_route_v3_RateLimit_Action_RemoteAddress;
65 struct envoy_config_route_v3_RateLimit_Action_GenericKey;
66 struct envoy_config_route_v3_RateLimit_Action_HeaderValueMatch;
67 struct envoy_config_route_v3_RateLimit_Action_DynamicMetaData;
68 struct envoy_config_route_v3_RateLimit_Action_MetaData;
69 struct envoy_config_route_v3_RateLimit_Override;
70 struct envoy_config_route_v3_RateLimit_Override_DynamicMetadata;
71 struct envoy_config_route_v3_HeaderMatcher;
72 struct envoy_config_route_v3_QueryParameterMatcher;
73 struct envoy_config_route_v3_InternalRedirectPolicy;
74 struct envoy_config_route_v3_FilterConfig;
75 typedef struct envoy_config_route_v3_VirtualHost envoy_config_route_v3_VirtualHost;
76 typedef struct envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry;
77 typedef struct envoy_config_route_v3_FilterAction envoy_config_route_v3_FilterAction;
78 typedef struct envoy_config_route_v3_Route envoy_config_route_v3_Route;
79 typedef struct envoy_config_route_v3_Route_TypedPerFilterConfigEntry envoy_config_route_v3_Route_TypedPerFilterConfigEntry;
80 typedef struct envoy_config_route_v3_WeightedCluster envoy_config_route_v3_WeightedCluster;
81 typedef struct envoy_config_route_v3_WeightedCluster_ClusterWeight envoy_config_route_v3_WeightedCluster_ClusterWeight;
82 typedef struct envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry;
83 typedef struct envoy_config_route_v3_RouteMatch envoy_config_route_v3_RouteMatch;
84 typedef struct envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions;
85 typedef struct envoy_config_route_v3_RouteMatch_TlsContextMatchOptions envoy_config_route_v3_RouteMatch_TlsContextMatchOptions;
86 typedef struct envoy_config_route_v3_RouteMatch_ConnectMatcher envoy_config_route_v3_RouteMatch_ConnectMatcher;
87 typedef struct envoy_config_route_v3_CorsPolicy envoy_config_route_v3_CorsPolicy;
88 typedef struct envoy_config_route_v3_RouteAction envoy_config_route_v3_RouteAction;
89 typedef struct envoy_config_route_v3_RouteAction_RequestMirrorPolicy envoy_config_route_v3_RouteAction_RequestMirrorPolicy;
90 typedef struct envoy_config_route_v3_RouteAction_HashPolicy envoy_config_route_v3_RouteAction_HashPolicy;
91 typedef struct envoy_config_route_v3_RouteAction_HashPolicy_Header envoy_config_route_v3_RouteAction_HashPolicy_Header;
92 typedef struct envoy_config_route_v3_RouteAction_HashPolicy_Cookie envoy_config_route_v3_RouteAction_HashPolicy_Cookie;
93 typedef struct envoy_config_route_v3_RouteAction_HashPolicy_ConnectionProperties envoy_config_route_v3_RouteAction_HashPolicy_ConnectionProperties;
94 typedef struct envoy_config_route_v3_RouteAction_HashPolicy_QueryParameter envoy_config_route_v3_RouteAction_HashPolicy_QueryParameter;
95 typedef struct envoy_config_route_v3_RouteAction_HashPolicy_FilterState envoy_config_route_v3_RouteAction_HashPolicy_FilterState;
96 typedef struct envoy_config_route_v3_RouteAction_UpgradeConfig envoy_config_route_v3_RouteAction_UpgradeConfig;
97 typedef struct envoy_config_route_v3_RouteAction_UpgradeConfig_ConnectConfig envoy_config_route_v3_RouteAction_UpgradeConfig_ConnectConfig;
98 typedef struct envoy_config_route_v3_RouteAction_MaxStreamDuration envoy_config_route_v3_RouteAction_MaxStreamDuration;
99 typedef struct envoy_config_route_v3_RetryPolicy envoy_config_route_v3_RetryPolicy;
100 typedef struct envoy_config_route_v3_RetryPolicy_RetryPriority envoy_config_route_v3_RetryPolicy_RetryPriority;
101 typedef struct envoy_config_route_v3_RetryPolicy_RetryHostPredicate envoy_config_route_v3_RetryPolicy_RetryHostPredicate;
102 typedef struct envoy_config_route_v3_RetryPolicy_RetryBackOff envoy_config_route_v3_RetryPolicy_RetryBackOff;
103 typedef struct envoy_config_route_v3_RetryPolicy_ResetHeader envoy_config_route_v3_RetryPolicy_ResetHeader;
104 typedef struct envoy_config_route_v3_RetryPolicy_RateLimitedRetryBackOff envoy_config_route_v3_RetryPolicy_RateLimitedRetryBackOff;
105 typedef struct envoy_config_route_v3_HedgePolicy envoy_config_route_v3_HedgePolicy;
106 typedef struct envoy_config_route_v3_RedirectAction envoy_config_route_v3_RedirectAction;
107 typedef struct envoy_config_route_v3_DirectResponseAction envoy_config_route_v3_DirectResponseAction;
108 typedef struct envoy_config_route_v3_Decorator envoy_config_route_v3_Decorator;
109 typedef struct envoy_config_route_v3_Tracing envoy_config_route_v3_Tracing;
110 typedef struct envoy_config_route_v3_VirtualCluster envoy_config_route_v3_VirtualCluster;
111 typedef struct envoy_config_route_v3_RateLimit envoy_config_route_v3_RateLimit;
112 typedef struct envoy_config_route_v3_RateLimit_Action envoy_config_route_v3_RateLimit_Action;
113 typedef struct envoy_config_route_v3_RateLimit_Action_SourceCluster envoy_config_route_v3_RateLimit_Action_SourceCluster;
114 typedef struct envoy_config_route_v3_RateLimit_Action_DestinationCluster envoy_config_route_v3_RateLimit_Action_DestinationCluster;
115 typedef struct envoy_config_route_v3_RateLimit_Action_RequestHeaders envoy_config_route_v3_RateLimit_Action_RequestHeaders;
116 typedef struct envoy_config_route_v3_RateLimit_Action_RemoteAddress envoy_config_route_v3_RateLimit_Action_RemoteAddress;
117 typedef struct envoy_config_route_v3_RateLimit_Action_GenericKey envoy_config_route_v3_RateLimit_Action_GenericKey;
118 typedef struct envoy_config_route_v3_RateLimit_Action_HeaderValueMatch envoy_config_route_v3_RateLimit_Action_HeaderValueMatch;
119 typedef struct envoy_config_route_v3_RateLimit_Action_DynamicMetaData envoy_config_route_v3_RateLimit_Action_DynamicMetaData;
120 typedef struct envoy_config_route_v3_RateLimit_Action_MetaData envoy_config_route_v3_RateLimit_Action_MetaData;
121 typedef struct envoy_config_route_v3_RateLimit_Override envoy_config_route_v3_RateLimit_Override;
122 typedef struct envoy_config_route_v3_RateLimit_Override_DynamicMetadata envoy_config_route_v3_RateLimit_Override_DynamicMetadata;
123 typedef struct envoy_config_route_v3_HeaderMatcher envoy_config_route_v3_HeaderMatcher;
124 typedef struct envoy_config_route_v3_QueryParameterMatcher envoy_config_route_v3_QueryParameterMatcher;
125 typedef struct envoy_config_route_v3_InternalRedirectPolicy envoy_config_route_v3_InternalRedirectPolicy;
126 typedef struct envoy_config_route_v3_FilterConfig envoy_config_route_v3_FilterConfig;
127 extern const upb_msglayout envoy_config_route_v3_VirtualHost_msginit;
128 extern const upb_msglayout envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry_msginit;
129 extern const upb_msglayout envoy_config_route_v3_FilterAction_msginit;
130 extern const upb_msglayout envoy_config_route_v3_Route_msginit;
131 extern const upb_msglayout envoy_config_route_v3_Route_TypedPerFilterConfigEntry_msginit;
132 extern const upb_msglayout envoy_config_route_v3_WeightedCluster_msginit;
133 extern const upb_msglayout envoy_config_route_v3_WeightedCluster_ClusterWeight_msginit;
134 extern const upb_msglayout envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry_msginit;
135 extern const upb_msglayout envoy_config_route_v3_RouteMatch_msginit;
136 extern const upb_msglayout envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_msginit;
137 extern const upb_msglayout envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_msginit;
138 extern const upb_msglayout envoy_config_route_v3_RouteMatch_ConnectMatcher_msginit;
139 extern const upb_msglayout envoy_config_route_v3_CorsPolicy_msginit;
140 extern const upb_msglayout envoy_config_route_v3_RouteAction_msginit;
141 extern const upb_msglayout envoy_config_route_v3_RouteAction_RequestMirrorPolicy_msginit;
142 extern const upb_msglayout envoy_config_route_v3_RouteAction_HashPolicy_msginit;
143 extern const upb_msglayout envoy_config_route_v3_RouteAction_HashPolicy_Header_msginit;
144 extern const upb_msglayout envoy_config_route_v3_RouteAction_HashPolicy_Cookie_msginit;
145 extern const upb_msglayout envoy_config_route_v3_RouteAction_HashPolicy_ConnectionProperties_msginit;
146 extern const upb_msglayout envoy_config_route_v3_RouteAction_HashPolicy_QueryParameter_msginit;
147 extern const upb_msglayout envoy_config_route_v3_RouteAction_HashPolicy_FilterState_msginit;
148 extern const upb_msglayout envoy_config_route_v3_RouteAction_UpgradeConfig_msginit;
149 extern const upb_msglayout envoy_config_route_v3_RouteAction_UpgradeConfig_ConnectConfig_msginit;
150 extern const upb_msglayout envoy_config_route_v3_RouteAction_MaxStreamDuration_msginit;
151 extern const upb_msglayout envoy_config_route_v3_RetryPolicy_msginit;
152 extern const upb_msglayout envoy_config_route_v3_RetryPolicy_RetryPriority_msginit;
153 extern const upb_msglayout envoy_config_route_v3_RetryPolicy_RetryHostPredicate_msginit;
154 extern const upb_msglayout envoy_config_route_v3_RetryPolicy_RetryBackOff_msginit;
155 extern const upb_msglayout envoy_config_route_v3_RetryPolicy_ResetHeader_msginit;
156 extern const upb_msglayout envoy_config_route_v3_RetryPolicy_RateLimitedRetryBackOff_msginit;
157 extern const upb_msglayout envoy_config_route_v3_HedgePolicy_msginit;
158 extern const upb_msglayout envoy_config_route_v3_RedirectAction_msginit;
159 extern const upb_msglayout envoy_config_route_v3_DirectResponseAction_msginit;
160 extern const upb_msglayout envoy_config_route_v3_Decorator_msginit;
161 extern const upb_msglayout envoy_config_route_v3_Tracing_msginit;
162 extern const upb_msglayout envoy_config_route_v3_VirtualCluster_msginit;
163 extern const upb_msglayout envoy_config_route_v3_RateLimit_msginit;
164 extern const upb_msglayout envoy_config_route_v3_RateLimit_Action_msginit;
165 extern const upb_msglayout envoy_config_route_v3_RateLimit_Action_SourceCluster_msginit;
166 extern const upb_msglayout envoy_config_route_v3_RateLimit_Action_DestinationCluster_msginit;
167 extern const upb_msglayout envoy_config_route_v3_RateLimit_Action_RequestHeaders_msginit;
168 extern const upb_msglayout envoy_config_route_v3_RateLimit_Action_RemoteAddress_msginit;
169 extern const upb_msglayout envoy_config_route_v3_RateLimit_Action_GenericKey_msginit;
170 extern const upb_msglayout envoy_config_route_v3_RateLimit_Action_HeaderValueMatch_msginit;
171 extern const upb_msglayout envoy_config_route_v3_RateLimit_Action_DynamicMetaData_msginit;
172 extern const upb_msglayout envoy_config_route_v3_RateLimit_Action_MetaData_msginit;
173 extern const upb_msglayout envoy_config_route_v3_RateLimit_Override_msginit;
174 extern const upb_msglayout envoy_config_route_v3_RateLimit_Override_DynamicMetadata_msginit;
175 extern const upb_msglayout envoy_config_route_v3_HeaderMatcher_msginit;
176 extern const upb_msglayout envoy_config_route_v3_QueryParameterMatcher_msginit;
177 extern const upb_msglayout envoy_config_route_v3_InternalRedirectPolicy_msginit;
178 extern const upb_msglayout envoy_config_route_v3_FilterConfig_msginit;
179 struct envoy_config_core_v3_DataSource;
180 struct envoy_config_core_v3_HeaderValueOption;
181 struct envoy_config_core_v3_Metadata;
182 struct envoy_config_core_v3_ProxyProtocolConfig;
183 struct envoy_config_core_v3_RuntimeFractionalPercent;
184 struct envoy_config_core_v3_TypedExtensionConfig;
185 struct envoy_type_matcher_v3_RegexMatchAndSubstitute;
186 struct envoy_type_matcher_v3_RegexMatcher;
187 struct envoy_type_matcher_v3_StringMatcher;
188 struct envoy_type_metadata_v3_MetadataKey;
189 struct envoy_type_tracing_v3_CustomTag;
190 struct envoy_type_v3_FractionalPercent;
191 struct envoy_type_v3_Int64Range;
192 struct google_protobuf_Any;
193 struct google_protobuf_BoolValue;
194 struct google_protobuf_Duration;
195 struct google_protobuf_UInt32Value;
196 extern const upb_msglayout envoy_config_core_v3_DataSource_msginit;
197 extern const upb_msglayout envoy_config_core_v3_HeaderValueOption_msginit;
198 extern const upb_msglayout envoy_config_core_v3_Metadata_msginit;
199 extern const upb_msglayout envoy_config_core_v3_ProxyProtocolConfig_msginit;
200 extern const upb_msglayout envoy_config_core_v3_RuntimeFractionalPercent_msginit;
201 extern const upb_msglayout envoy_config_core_v3_TypedExtensionConfig_msginit;
202 extern const upb_msglayout envoy_type_matcher_v3_RegexMatchAndSubstitute_msginit;
203 extern const upb_msglayout envoy_type_matcher_v3_RegexMatcher_msginit;
204 extern const upb_msglayout envoy_type_matcher_v3_StringMatcher_msginit;
205 extern const upb_msglayout envoy_type_metadata_v3_MetadataKey_msginit;
206 extern const upb_msglayout envoy_type_tracing_v3_CustomTag_msginit;
207 extern const upb_msglayout envoy_type_v3_FractionalPercent_msginit;
208 extern const upb_msglayout envoy_type_v3_Int64Range_msginit;
209 extern const upb_msglayout google_protobuf_Any_msginit;
210 extern const upb_msglayout google_protobuf_BoolValue_msginit;
211 extern const upb_msglayout google_protobuf_Duration_msginit;
212 extern const upb_msglayout google_protobuf_UInt32Value_msginit;
213
214 typedef enum {
215 envoy_config_route_v3_RateLimit_Action_MetaData_DYNAMIC = 0,
216 envoy_config_route_v3_RateLimit_Action_MetaData_ROUTE_ENTRY = 1
217 } envoy_config_route_v3_RateLimit_Action_MetaData_Source;
218
219 typedef enum {
220 envoy_config_route_v3_RedirectAction_MOVED_PERMANENTLY = 0,
221 envoy_config_route_v3_RedirectAction_FOUND = 1,
222 envoy_config_route_v3_RedirectAction_SEE_OTHER = 2,
223 envoy_config_route_v3_RedirectAction_TEMPORARY_REDIRECT = 3,
224 envoy_config_route_v3_RedirectAction_PERMANENT_REDIRECT = 4
225 } envoy_config_route_v3_RedirectAction_RedirectResponseCode;
226
227 typedef enum {
228 envoy_config_route_v3_RetryPolicy_SECONDS = 0,
229 envoy_config_route_v3_RetryPolicy_UNIX_TIMESTAMP = 1
230 } envoy_config_route_v3_RetryPolicy_ResetHeaderFormat;
231
232 typedef enum {
233 envoy_config_route_v3_RouteAction_SERVICE_UNAVAILABLE = 0,
234 envoy_config_route_v3_RouteAction_NOT_FOUND = 1
235 } envoy_config_route_v3_RouteAction_ClusterNotFoundResponseCode;
236
237 typedef enum {
238 envoy_config_route_v3_RouteAction_PASS_THROUGH_INTERNAL_REDIRECT = 0,
239 envoy_config_route_v3_RouteAction_HANDLE_INTERNAL_REDIRECT = 1
240 } envoy_config_route_v3_RouteAction_InternalRedirectAction;
241
242 typedef enum {
243 envoy_config_route_v3_VirtualHost_NONE = 0,
244 envoy_config_route_v3_VirtualHost_EXTERNAL_ONLY = 1,
245 envoy_config_route_v3_VirtualHost_ALL = 2
246 } envoy_config_route_v3_VirtualHost_TlsRequirementType;
247
248
249 /* envoy.config.route.v3.VirtualHost */
250
envoy_config_route_v3_VirtualHost_new(upb_arena * arena)251 UPB_INLINE envoy_config_route_v3_VirtualHost *envoy_config_route_v3_VirtualHost_new(upb_arena *arena) {
252 return (envoy_config_route_v3_VirtualHost *)_upb_msg_new(&envoy_config_route_v3_VirtualHost_msginit, arena);
253 }
envoy_config_route_v3_VirtualHost_parse(const char * buf,size_t size,upb_arena * arena)254 UPB_INLINE envoy_config_route_v3_VirtualHost *envoy_config_route_v3_VirtualHost_parse(const char *buf, size_t size,
255 upb_arena *arena) {
256 envoy_config_route_v3_VirtualHost *ret = envoy_config_route_v3_VirtualHost_new(arena);
257 return (ret && upb_decode(buf, size, ret, &envoy_config_route_v3_VirtualHost_msginit, arena)) ? ret : NULL;
258 }
envoy_config_route_v3_VirtualHost_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)259 UPB_INLINE envoy_config_route_v3_VirtualHost *envoy_config_route_v3_VirtualHost_parse_ex(const char *buf, size_t size,
260 upb_arena *arena, int options) {
261 envoy_config_route_v3_VirtualHost *ret = envoy_config_route_v3_VirtualHost_new(arena);
262 return (ret && _upb_decode(buf, size, ret, &envoy_config_route_v3_VirtualHost_msginit, arena, options))
263 ? ret : NULL;
264 }
envoy_config_route_v3_VirtualHost_serialize(const envoy_config_route_v3_VirtualHost * msg,upb_arena * arena,size_t * len)265 UPB_INLINE char *envoy_config_route_v3_VirtualHost_serialize(const envoy_config_route_v3_VirtualHost *msg, upb_arena *arena, size_t *len) {
266 return upb_encode(msg, &envoy_config_route_v3_VirtualHost_msginit, arena, len);
267 }
268
envoy_config_route_v3_VirtualHost_name(const envoy_config_route_v3_VirtualHost * msg)269 UPB_INLINE upb_strview envoy_config_route_v3_VirtualHost_name(const envoy_config_route_v3_VirtualHost *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), upb_strview); }
envoy_config_route_v3_VirtualHost_domains(const envoy_config_route_v3_VirtualHost * msg,size_t * len)270 UPB_INLINE upb_strview const* envoy_config_route_v3_VirtualHost_domains(const envoy_config_route_v3_VirtualHost *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(40, 72), len); }
envoy_config_route_v3_VirtualHost_has_routes(const envoy_config_route_v3_VirtualHost * msg)271 UPB_INLINE bool envoy_config_route_v3_VirtualHost_has_routes(const envoy_config_route_v3_VirtualHost *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(44, 80)); }
envoy_config_route_v3_VirtualHost_routes(const envoy_config_route_v3_VirtualHost * msg,size_t * len)272 UPB_INLINE const envoy_config_route_v3_Route* const* envoy_config_route_v3_VirtualHost_routes(const envoy_config_route_v3_VirtualHost *msg, size_t *len) { return (const envoy_config_route_v3_Route* const*)_upb_array_accessor(msg, UPB_SIZE(44, 80), len); }
envoy_config_route_v3_VirtualHost_require_tls(const envoy_config_route_v3_VirtualHost * msg)273 UPB_INLINE int32_t envoy_config_route_v3_VirtualHost_require_tls(const envoy_config_route_v3_VirtualHost *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
envoy_config_route_v3_VirtualHost_has_virtual_clusters(const envoy_config_route_v3_VirtualHost * msg)274 UPB_INLINE bool envoy_config_route_v3_VirtualHost_has_virtual_clusters(const envoy_config_route_v3_VirtualHost *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(48, 88)); }
envoy_config_route_v3_VirtualHost_virtual_clusters(const envoy_config_route_v3_VirtualHost * msg,size_t * len)275 UPB_INLINE const envoy_config_route_v3_VirtualCluster* const* envoy_config_route_v3_VirtualHost_virtual_clusters(const envoy_config_route_v3_VirtualHost *msg, size_t *len) { return (const envoy_config_route_v3_VirtualCluster* const*)_upb_array_accessor(msg, UPB_SIZE(48, 88), len); }
envoy_config_route_v3_VirtualHost_has_rate_limits(const envoy_config_route_v3_VirtualHost * msg)276 UPB_INLINE bool envoy_config_route_v3_VirtualHost_has_rate_limits(const envoy_config_route_v3_VirtualHost *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(52, 96)); }
envoy_config_route_v3_VirtualHost_rate_limits(const envoy_config_route_v3_VirtualHost * msg,size_t * len)277 UPB_INLINE const envoy_config_route_v3_RateLimit* const* envoy_config_route_v3_VirtualHost_rate_limits(const envoy_config_route_v3_VirtualHost *msg, size_t *len) { return (const envoy_config_route_v3_RateLimit* const*)_upb_array_accessor(msg, UPB_SIZE(52, 96), len); }
envoy_config_route_v3_VirtualHost_has_request_headers_to_add(const envoy_config_route_v3_VirtualHost * msg)278 UPB_INLINE bool envoy_config_route_v3_VirtualHost_has_request_headers_to_add(const envoy_config_route_v3_VirtualHost *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(56, 104)); }
envoy_config_route_v3_VirtualHost_request_headers_to_add(const envoy_config_route_v3_VirtualHost * msg,size_t * len)279 UPB_INLINE const struct envoy_config_core_v3_HeaderValueOption* const* envoy_config_route_v3_VirtualHost_request_headers_to_add(const envoy_config_route_v3_VirtualHost *msg, size_t *len) { return (const struct envoy_config_core_v3_HeaderValueOption* const*)_upb_array_accessor(msg, UPB_SIZE(56, 104), len); }
envoy_config_route_v3_VirtualHost_has_cors(const envoy_config_route_v3_VirtualHost * msg)280 UPB_INLINE bool envoy_config_route_v3_VirtualHost_has_cors(const envoy_config_route_v3_VirtualHost *msg) { return _upb_hasbit(msg, 1); }
envoy_config_route_v3_VirtualHost_cors(const envoy_config_route_v3_VirtualHost * msg)281 UPB_INLINE const envoy_config_route_v3_CorsPolicy* envoy_config_route_v3_VirtualHost_cors(const envoy_config_route_v3_VirtualHost *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 32), const envoy_config_route_v3_CorsPolicy*); }
envoy_config_route_v3_VirtualHost_has_response_headers_to_add(const envoy_config_route_v3_VirtualHost * msg)282 UPB_INLINE bool envoy_config_route_v3_VirtualHost_has_response_headers_to_add(const envoy_config_route_v3_VirtualHost *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(60, 112)); }
envoy_config_route_v3_VirtualHost_response_headers_to_add(const envoy_config_route_v3_VirtualHost * msg,size_t * len)283 UPB_INLINE const struct envoy_config_core_v3_HeaderValueOption* const* envoy_config_route_v3_VirtualHost_response_headers_to_add(const envoy_config_route_v3_VirtualHost *msg, size_t *len) { return (const struct envoy_config_core_v3_HeaderValueOption* const*)_upb_array_accessor(msg, UPB_SIZE(60, 112), len); }
envoy_config_route_v3_VirtualHost_response_headers_to_remove(const envoy_config_route_v3_VirtualHost * msg,size_t * len)284 UPB_INLINE upb_strview const* envoy_config_route_v3_VirtualHost_response_headers_to_remove(const envoy_config_route_v3_VirtualHost *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(64, 120), len); }
envoy_config_route_v3_VirtualHost_request_headers_to_remove(const envoy_config_route_v3_VirtualHost * msg,size_t * len)285 UPB_INLINE upb_strview const* envoy_config_route_v3_VirtualHost_request_headers_to_remove(const envoy_config_route_v3_VirtualHost *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(68, 128), len); }
envoy_config_route_v3_VirtualHost_include_request_attempt_count(const envoy_config_route_v3_VirtualHost * msg)286 UPB_INLINE bool envoy_config_route_v3_VirtualHost_include_request_attempt_count(const envoy_config_route_v3_VirtualHost *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool); }
envoy_config_route_v3_VirtualHost_has_typed_per_filter_config(const envoy_config_route_v3_VirtualHost * msg)287 UPB_INLINE bool envoy_config_route_v3_VirtualHost_has_typed_per_filter_config(const envoy_config_route_v3_VirtualHost *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(72, 136)); }
envoy_config_route_v3_VirtualHost_typed_per_filter_config_size(const envoy_config_route_v3_VirtualHost * msg)288 UPB_INLINE size_t envoy_config_route_v3_VirtualHost_typed_per_filter_config_size(const envoy_config_route_v3_VirtualHost *msg) {return _upb_msg_map_size(msg, UPB_SIZE(72, 136)); }
envoy_config_route_v3_VirtualHost_typed_per_filter_config_get(const envoy_config_route_v3_VirtualHost * msg,upb_strview key,struct google_protobuf_Any ** val)289 UPB_INLINE bool envoy_config_route_v3_VirtualHost_typed_per_filter_config_get(const envoy_config_route_v3_VirtualHost *msg, upb_strview key, struct google_protobuf_Any* *val) { return _upb_msg_map_get(msg, UPB_SIZE(72, 136), &key, 0, val, sizeof(*val)); }
envoy_config_route_v3_VirtualHost_typed_per_filter_config_next(const envoy_config_route_v3_VirtualHost * msg,size_t * iter)290 UPB_INLINE const envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry* envoy_config_route_v3_VirtualHost_typed_per_filter_config_next(const envoy_config_route_v3_VirtualHost *msg, size_t* iter) { return (const envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry*)_upb_msg_map_next(msg, UPB_SIZE(72, 136), iter); }
envoy_config_route_v3_VirtualHost_has_retry_policy(const envoy_config_route_v3_VirtualHost * msg)291 UPB_INLINE bool envoy_config_route_v3_VirtualHost_has_retry_policy(const envoy_config_route_v3_VirtualHost *msg) { return _upb_hasbit(msg, 2); }
envoy_config_route_v3_VirtualHost_retry_policy(const envoy_config_route_v3_VirtualHost * msg)292 UPB_INLINE const envoy_config_route_v3_RetryPolicy* envoy_config_route_v3_VirtualHost_retry_policy(const envoy_config_route_v3_VirtualHost *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), const envoy_config_route_v3_RetryPolicy*); }
envoy_config_route_v3_VirtualHost_has_hedge_policy(const envoy_config_route_v3_VirtualHost * msg)293 UPB_INLINE bool envoy_config_route_v3_VirtualHost_has_hedge_policy(const envoy_config_route_v3_VirtualHost *msg) { return _upb_hasbit(msg, 3); }
envoy_config_route_v3_VirtualHost_hedge_policy(const envoy_config_route_v3_VirtualHost * msg)294 UPB_INLINE const envoy_config_route_v3_HedgePolicy* envoy_config_route_v3_VirtualHost_hedge_policy(const envoy_config_route_v3_VirtualHost *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 48), const envoy_config_route_v3_HedgePolicy*); }
envoy_config_route_v3_VirtualHost_has_per_request_buffer_limit_bytes(const envoy_config_route_v3_VirtualHost * msg)295 UPB_INLINE bool envoy_config_route_v3_VirtualHost_has_per_request_buffer_limit_bytes(const envoy_config_route_v3_VirtualHost *msg) { return _upb_hasbit(msg, 4); }
envoy_config_route_v3_VirtualHost_per_request_buffer_limit_bytes(const envoy_config_route_v3_VirtualHost * msg)296 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_route_v3_VirtualHost_per_request_buffer_limit_bytes(const envoy_config_route_v3_VirtualHost *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 56), const struct google_protobuf_UInt32Value*); }
envoy_config_route_v3_VirtualHost_include_attempt_count_in_response(const envoy_config_route_v3_VirtualHost * msg)297 UPB_INLINE bool envoy_config_route_v3_VirtualHost_include_attempt_count_in_response(const envoy_config_route_v3_VirtualHost *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(9, 9), bool); }
envoy_config_route_v3_VirtualHost_has_retry_policy_typed_config(const envoy_config_route_v3_VirtualHost * msg)298 UPB_INLINE bool envoy_config_route_v3_VirtualHost_has_retry_policy_typed_config(const envoy_config_route_v3_VirtualHost *msg) { return _upb_hasbit(msg, 5); }
envoy_config_route_v3_VirtualHost_retry_policy_typed_config(const envoy_config_route_v3_VirtualHost * msg)299 UPB_INLINE const struct google_protobuf_Any* envoy_config_route_v3_VirtualHost_retry_policy_typed_config(const envoy_config_route_v3_VirtualHost *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(36, 64), const struct google_protobuf_Any*); }
300
envoy_config_route_v3_VirtualHost_set_name(envoy_config_route_v3_VirtualHost * msg,upb_strview value)301 UPB_INLINE void envoy_config_route_v3_VirtualHost_set_name(envoy_config_route_v3_VirtualHost *msg, upb_strview value) {
302 *UPB_PTR_AT(msg, UPB_SIZE(12, 16), upb_strview) = value;
303 }
envoy_config_route_v3_VirtualHost_mutable_domains(envoy_config_route_v3_VirtualHost * msg,size_t * len)304 UPB_INLINE upb_strview* envoy_config_route_v3_VirtualHost_mutable_domains(envoy_config_route_v3_VirtualHost *msg, size_t *len) {
305 return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(40, 72), len);
306 }
envoy_config_route_v3_VirtualHost_resize_domains(envoy_config_route_v3_VirtualHost * msg,size_t len,upb_arena * arena)307 UPB_INLINE upb_strview* envoy_config_route_v3_VirtualHost_resize_domains(envoy_config_route_v3_VirtualHost *msg, size_t len, upb_arena *arena) {
308 return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(40, 72), len, UPB_SIZE(3, 4), arena);
309 }
envoy_config_route_v3_VirtualHost_add_domains(envoy_config_route_v3_VirtualHost * msg,upb_strview val,upb_arena * arena)310 UPB_INLINE bool envoy_config_route_v3_VirtualHost_add_domains(envoy_config_route_v3_VirtualHost *msg, upb_strview val, upb_arena *arena) {
311 return _upb_array_append_accessor2(msg, UPB_SIZE(40, 72), UPB_SIZE(3, 4), &val,
312 arena);
313 }
envoy_config_route_v3_VirtualHost_mutable_routes(envoy_config_route_v3_VirtualHost * msg,size_t * len)314 UPB_INLINE envoy_config_route_v3_Route** envoy_config_route_v3_VirtualHost_mutable_routes(envoy_config_route_v3_VirtualHost *msg, size_t *len) {
315 return (envoy_config_route_v3_Route**)_upb_array_mutable_accessor(msg, UPB_SIZE(44, 80), len);
316 }
envoy_config_route_v3_VirtualHost_resize_routes(envoy_config_route_v3_VirtualHost * msg,size_t len,upb_arena * arena)317 UPB_INLINE envoy_config_route_v3_Route** envoy_config_route_v3_VirtualHost_resize_routes(envoy_config_route_v3_VirtualHost *msg, size_t len, upb_arena *arena) {
318 return (envoy_config_route_v3_Route**)_upb_array_resize_accessor2(msg, UPB_SIZE(44, 80), len, UPB_SIZE(2, 3), arena);
319 }
envoy_config_route_v3_VirtualHost_add_routes(envoy_config_route_v3_VirtualHost * msg,upb_arena * arena)320 UPB_INLINE struct envoy_config_route_v3_Route* envoy_config_route_v3_VirtualHost_add_routes(envoy_config_route_v3_VirtualHost *msg, upb_arena *arena) {
321 struct envoy_config_route_v3_Route* sub = (struct envoy_config_route_v3_Route*)_upb_msg_new(&envoy_config_route_v3_Route_msginit, arena);
322 bool ok = _upb_array_append_accessor2(
323 msg, UPB_SIZE(44, 80), UPB_SIZE(2, 3), &sub, arena);
324 if (!ok) return NULL;
325 return sub;
326 }
envoy_config_route_v3_VirtualHost_set_require_tls(envoy_config_route_v3_VirtualHost * msg,int32_t value)327 UPB_INLINE void envoy_config_route_v3_VirtualHost_set_require_tls(envoy_config_route_v3_VirtualHost *msg, int32_t value) {
328 *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
329 }
envoy_config_route_v3_VirtualHost_mutable_virtual_clusters(envoy_config_route_v3_VirtualHost * msg,size_t * len)330 UPB_INLINE envoy_config_route_v3_VirtualCluster** envoy_config_route_v3_VirtualHost_mutable_virtual_clusters(envoy_config_route_v3_VirtualHost *msg, size_t *len) {
331 return (envoy_config_route_v3_VirtualCluster**)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 88), len);
332 }
envoy_config_route_v3_VirtualHost_resize_virtual_clusters(envoy_config_route_v3_VirtualHost * msg,size_t len,upb_arena * arena)333 UPB_INLINE envoy_config_route_v3_VirtualCluster** envoy_config_route_v3_VirtualHost_resize_virtual_clusters(envoy_config_route_v3_VirtualHost *msg, size_t len, upb_arena *arena) {
334 return (envoy_config_route_v3_VirtualCluster**)_upb_array_resize_accessor2(msg, UPB_SIZE(48, 88), len, UPB_SIZE(2, 3), arena);
335 }
envoy_config_route_v3_VirtualHost_add_virtual_clusters(envoy_config_route_v3_VirtualHost * msg,upb_arena * arena)336 UPB_INLINE struct envoy_config_route_v3_VirtualCluster* envoy_config_route_v3_VirtualHost_add_virtual_clusters(envoy_config_route_v3_VirtualHost *msg, upb_arena *arena) {
337 struct envoy_config_route_v3_VirtualCluster* sub = (struct envoy_config_route_v3_VirtualCluster*)_upb_msg_new(&envoy_config_route_v3_VirtualCluster_msginit, arena);
338 bool ok = _upb_array_append_accessor2(
339 msg, UPB_SIZE(48, 88), UPB_SIZE(2, 3), &sub, arena);
340 if (!ok) return NULL;
341 return sub;
342 }
envoy_config_route_v3_VirtualHost_mutable_rate_limits(envoy_config_route_v3_VirtualHost * msg,size_t * len)343 UPB_INLINE envoy_config_route_v3_RateLimit** envoy_config_route_v3_VirtualHost_mutable_rate_limits(envoy_config_route_v3_VirtualHost *msg, size_t *len) {
344 return (envoy_config_route_v3_RateLimit**)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 96), len);
345 }
envoy_config_route_v3_VirtualHost_resize_rate_limits(envoy_config_route_v3_VirtualHost * msg,size_t len,upb_arena * arena)346 UPB_INLINE envoy_config_route_v3_RateLimit** envoy_config_route_v3_VirtualHost_resize_rate_limits(envoy_config_route_v3_VirtualHost *msg, size_t len, upb_arena *arena) {
347 return (envoy_config_route_v3_RateLimit**)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 96), len, UPB_SIZE(2, 3), arena);
348 }
envoy_config_route_v3_VirtualHost_add_rate_limits(envoy_config_route_v3_VirtualHost * msg,upb_arena * arena)349 UPB_INLINE struct envoy_config_route_v3_RateLimit* envoy_config_route_v3_VirtualHost_add_rate_limits(envoy_config_route_v3_VirtualHost *msg, upb_arena *arena) {
350 struct envoy_config_route_v3_RateLimit* sub = (struct envoy_config_route_v3_RateLimit*)_upb_msg_new(&envoy_config_route_v3_RateLimit_msginit, arena);
351 bool ok = _upb_array_append_accessor2(
352 msg, UPB_SIZE(52, 96), UPB_SIZE(2, 3), &sub, arena);
353 if (!ok) return NULL;
354 return sub;
355 }
envoy_config_route_v3_VirtualHost_mutable_request_headers_to_add(envoy_config_route_v3_VirtualHost * msg,size_t * len)356 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_VirtualHost_mutable_request_headers_to_add(envoy_config_route_v3_VirtualHost *msg, size_t *len) {
357 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(56, 104), len);
358 }
envoy_config_route_v3_VirtualHost_resize_request_headers_to_add(envoy_config_route_v3_VirtualHost * msg,size_t len,upb_arena * arena)359 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_VirtualHost_resize_request_headers_to_add(envoy_config_route_v3_VirtualHost *msg, size_t len, upb_arena *arena) {
360 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_resize_accessor2(msg, UPB_SIZE(56, 104), len, UPB_SIZE(2, 3), arena);
361 }
envoy_config_route_v3_VirtualHost_add_request_headers_to_add(envoy_config_route_v3_VirtualHost * msg,upb_arena * arena)362 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption* envoy_config_route_v3_VirtualHost_add_request_headers_to_add(envoy_config_route_v3_VirtualHost *msg, upb_arena *arena) {
363 struct envoy_config_core_v3_HeaderValueOption* sub = (struct envoy_config_core_v3_HeaderValueOption*)_upb_msg_new(&envoy_config_core_v3_HeaderValueOption_msginit, arena);
364 bool ok = _upb_array_append_accessor2(
365 msg, UPB_SIZE(56, 104), UPB_SIZE(2, 3), &sub, arena);
366 if (!ok) return NULL;
367 return sub;
368 }
envoy_config_route_v3_VirtualHost_set_cors(envoy_config_route_v3_VirtualHost * msg,envoy_config_route_v3_CorsPolicy * value)369 UPB_INLINE void envoy_config_route_v3_VirtualHost_set_cors(envoy_config_route_v3_VirtualHost *msg, envoy_config_route_v3_CorsPolicy* value) {
370 _upb_sethas(msg, 1);
371 *UPB_PTR_AT(msg, UPB_SIZE(20, 32), envoy_config_route_v3_CorsPolicy*) = value;
372 }
envoy_config_route_v3_VirtualHost_mutable_cors(envoy_config_route_v3_VirtualHost * msg,upb_arena * arena)373 UPB_INLINE struct envoy_config_route_v3_CorsPolicy* envoy_config_route_v3_VirtualHost_mutable_cors(envoy_config_route_v3_VirtualHost *msg, upb_arena *arena) {
374 struct envoy_config_route_v3_CorsPolicy* sub = (struct envoy_config_route_v3_CorsPolicy*)envoy_config_route_v3_VirtualHost_cors(msg);
375 if (sub == NULL) {
376 sub = (struct envoy_config_route_v3_CorsPolicy*)_upb_msg_new(&envoy_config_route_v3_CorsPolicy_msginit, arena);
377 if (!sub) return NULL;
378 envoy_config_route_v3_VirtualHost_set_cors(msg, sub);
379 }
380 return sub;
381 }
envoy_config_route_v3_VirtualHost_mutable_response_headers_to_add(envoy_config_route_v3_VirtualHost * msg,size_t * len)382 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_VirtualHost_mutable_response_headers_to_add(envoy_config_route_v3_VirtualHost *msg, size_t *len) {
383 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(60, 112), len);
384 }
envoy_config_route_v3_VirtualHost_resize_response_headers_to_add(envoy_config_route_v3_VirtualHost * msg,size_t len,upb_arena * arena)385 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_VirtualHost_resize_response_headers_to_add(envoy_config_route_v3_VirtualHost *msg, size_t len, upb_arena *arena) {
386 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_resize_accessor2(msg, UPB_SIZE(60, 112), len, UPB_SIZE(2, 3), arena);
387 }
envoy_config_route_v3_VirtualHost_add_response_headers_to_add(envoy_config_route_v3_VirtualHost * msg,upb_arena * arena)388 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption* envoy_config_route_v3_VirtualHost_add_response_headers_to_add(envoy_config_route_v3_VirtualHost *msg, upb_arena *arena) {
389 struct envoy_config_core_v3_HeaderValueOption* sub = (struct envoy_config_core_v3_HeaderValueOption*)_upb_msg_new(&envoy_config_core_v3_HeaderValueOption_msginit, arena);
390 bool ok = _upb_array_append_accessor2(
391 msg, UPB_SIZE(60, 112), UPB_SIZE(2, 3), &sub, arena);
392 if (!ok) return NULL;
393 return sub;
394 }
envoy_config_route_v3_VirtualHost_mutable_response_headers_to_remove(envoy_config_route_v3_VirtualHost * msg,size_t * len)395 UPB_INLINE upb_strview* envoy_config_route_v3_VirtualHost_mutable_response_headers_to_remove(envoy_config_route_v3_VirtualHost *msg, size_t *len) {
396 return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(64, 120), len);
397 }
envoy_config_route_v3_VirtualHost_resize_response_headers_to_remove(envoy_config_route_v3_VirtualHost * msg,size_t len,upb_arena * arena)398 UPB_INLINE upb_strview* envoy_config_route_v3_VirtualHost_resize_response_headers_to_remove(envoy_config_route_v3_VirtualHost *msg, size_t len, upb_arena *arena) {
399 return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(64, 120), len, UPB_SIZE(3, 4), arena);
400 }
envoy_config_route_v3_VirtualHost_add_response_headers_to_remove(envoy_config_route_v3_VirtualHost * msg,upb_strview val,upb_arena * arena)401 UPB_INLINE bool envoy_config_route_v3_VirtualHost_add_response_headers_to_remove(envoy_config_route_v3_VirtualHost *msg, upb_strview val, upb_arena *arena) {
402 return _upb_array_append_accessor2(msg, UPB_SIZE(64, 120), UPB_SIZE(3, 4), &val,
403 arena);
404 }
envoy_config_route_v3_VirtualHost_mutable_request_headers_to_remove(envoy_config_route_v3_VirtualHost * msg,size_t * len)405 UPB_INLINE upb_strview* envoy_config_route_v3_VirtualHost_mutable_request_headers_to_remove(envoy_config_route_v3_VirtualHost *msg, size_t *len) {
406 return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(68, 128), len);
407 }
envoy_config_route_v3_VirtualHost_resize_request_headers_to_remove(envoy_config_route_v3_VirtualHost * msg,size_t len,upb_arena * arena)408 UPB_INLINE upb_strview* envoy_config_route_v3_VirtualHost_resize_request_headers_to_remove(envoy_config_route_v3_VirtualHost *msg, size_t len, upb_arena *arena) {
409 return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(68, 128), len, UPB_SIZE(3, 4), arena);
410 }
envoy_config_route_v3_VirtualHost_add_request_headers_to_remove(envoy_config_route_v3_VirtualHost * msg,upb_strview val,upb_arena * arena)411 UPB_INLINE bool envoy_config_route_v3_VirtualHost_add_request_headers_to_remove(envoy_config_route_v3_VirtualHost *msg, upb_strview val, upb_arena *arena) {
412 return _upb_array_append_accessor2(msg, UPB_SIZE(68, 128), UPB_SIZE(3, 4), &val,
413 arena);
414 }
envoy_config_route_v3_VirtualHost_set_include_request_attempt_count(envoy_config_route_v3_VirtualHost * msg,bool value)415 UPB_INLINE void envoy_config_route_v3_VirtualHost_set_include_request_attempt_count(envoy_config_route_v3_VirtualHost *msg, bool value) {
416 *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool) = value;
417 }
envoy_config_route_v3_VirtualHost_typed_per_filter_config_clear(envoy_config_route_v3_VirtualHost * msg)418 UPB_INLINE void envoy_config_route_v3_VirtualHost_typed_per_filter_config_clear(envoy_config_route_v3_VirtualHost *msg) { _upb_msg_map_clear(msg, UPB_SIZE(72, 136)); }
envoy_config_route_v3_VirtualHost_typed_per_filter_config_set(envoy_config_route_v3_VirtualHost * msg,upb_strview key,struct google_protobuf_Any * val,upb_arena * a)419 UPB_INLINE bool envoy_config_route_v3_VirtualHost_typed_per_filter_config_set(envoy_config_route_v3_VirtualHost *msg, upb_strview key, struct google_protobuf_Any* val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(72, 136), &key, 0, &val, sizeof(val), a); }
envoy_config_route_v3_VirtualHost_typed_per_filter_config_delete(envoy_config_route_v3_VirtualHost * msg,upb_strview key)420 UPB_INLINE bool envoy_config_route_v3_VirtualHost_typed_per_filter_config_delete(envoy_config_route_v3_VirtualHost *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(72, 136), &key, 0); }
envoy_config_route_v3_VirtualHost_typed_per_filter_config_nextmutable(envoy_config_route_v3_VirtualHost * msg,size_t * iter)421 UPB_INLINE envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry* envoy_config_route_v3_VirtualHost_typed_per_filter_config_nextmutable(envoy_config_route_v3_VirtualHost *msg, size_t* iter) { return (envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry*)_upb_msg_map_next(msg, UPB_SIZE(72, 136), iter); }
envoy_config_route_v3_VirtualHost_set_retry_policy(envoy_config_route_v3_VirtualHost * msg,envoy_config_route_v3_RetryPolicy * value)422 UPB_INLINE void envoy_config_route_v3_VirtualHost_set_retry_policy(envoy_config_route_v3_VirtualHost *msg, envoy_config_route_v3_RetryPolicy* value) {
423 _upb_sethas(msg, 2);
424 *UPB_PTR_AT(msg, UPB_SIZE(24, 40), envoy_config_route_v3_RetryPolicy*) = value;
425 }
envoy_config_route_v3_VirtualHost_mutable_retry_policy(envoy_config_route_v3_VirtualHost * msg,upb_arena * arena)426 UPB_INLINE struct envoy_config_route_v3_RetryPolicy* envoy_config_route_v3_VirtualHost_mutable_retry_policy(envoy_config_route_v3_VirtualHost *msg, upb_arena *arena) {
427 struct envoy_config_route_v3_RetryPolicy* sub = (struct envoy_config_route_v3_RetryPolicy*)envoy_config_route_v3_VirtualHost_retry_policy(msg);
428 if (sub == NULL) {
429 sub = (struct envoy_config_route_v3_RetryPolicy*)_upb_msg_new(&envoy_config_route_v3_RetryPolicy_msginit, arena);
430 if (!sub) return NULL;
431 envoy_config_route_v3_VirtualHost_set_retry_policy(msg, sub);
432 }
433 return sub;
434 }
envoy_config_route_v3_VirtualHost_set_hedge_policy(envoy_config_route_v3_VirtualHost * msg,envoy_config_route_v3_HedgePolicy * value)435 UPB_INLINE void envoy_config_route_v3_VirtualHost_set_hedge_policy(envoy_config_route_v3_VirtualHost *msg, envoy_config_route_v3_HedgePolicy* value) {
436 _upb_sethas(msg, 3);
437 *UPB_PTR_AT(msg, UPB_SIZE(28, 48), envoy_config_route_v3_HedgePolicy*) = value;
438 }
envoy_config_route_v3_VirtualHost_mutable_hedge_policy(envoy_config_route_v3_VirtualHost * msg,upb_arena * arena)439 UPB_INLINE struct envoy_config_route_v3_HedgePolicy* envoy_config_route_v3_VirtualHost_mutable_hedge_policy(envoy_config_route_v3_VirtualHost *msg, upb_arena *arena) {
440 struct envoy_config_route_v3_HedgePolicy* sub = (struct envoy_config_route_v3_HedgePolicy*)envoy_config_route_v3_VirtualHost_hedge_policy(msg);
441 if (sub == NULL) {
442 sub = (struct envoy_config_route_v3_HedgePolicy*)_upb_msg_new(&envoy_config_route_v3_HedgePolicy_msginit, arena);
443 if (!sub) return NULL;
444 envoy_config_route_v3_VirtualHost_set_hedge_policy(msg, sub);
445 }
446 return sub;
447 }
envoy_config_route_v3_VirtualHost_set_per_request_buffer_limit_bytes(envoy_config_route_v3_VirtualHost * msg,struct google_protobuf_UInt32Value * value)448 UPB_INLINE void envoy_config_route_v3_VirtualHost_set_per_request_buffer_limit_bytes(envoy_config_route_v3_VirtualHost *msg, struct google_protobuf_UInt32Value* value) {
449 _upb_sethas(msg, 4);
450 *UPB_PTR_AT(msg, UPB_SIZE(32, 56), struct google_protobuf_UInt32Value*) = value;
451 }
envoy_config_route_v3_VirtualHost_mutable_per_request_buffer_limit_bytes(envoy_config_route_v3_VirtualHost * msg,upb_arena * arena)452 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_route_v3_VirtualHost_mutable_per_request_buffer_limit_bytes(envoy_config_route_v3_VirtualHost *msg, upb_arena *arena) {
453 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_route_v3_VirtualHost_per_request_buffer_limit_bytes(msg);
454 if (sub == NULL) {
455 sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
456 if (!sub) return NULL;
457 envoy_config_route_v3_VirtualHost_set_per_request_buffer_limit_bytes(msg, sub);
458 }
459 return sub;
460 }
envoy_config_route_v3_VirtualHost_set_include_attempt_count_in_response(envoy_config_route_v3_VirtualHost * msg,bool value)461 UPB_INLINE void envoy_config_route_v3_VirtualHost_set_include_attempt_count_in_response(envoy_config_route_v3_VirtualHost *msg, bool value) {
462 *UPB_PTR_AT(msg, UPB_SIZE(9, 9), bool) = value;
463 }
envoy_config_route_v3_VirtualHost_set_retry_policy_typed_config(envoy_config_route_v3_VirtualHost * msg,struct google_protobuf_Any * value)464 UPB_INLINE void envoy_config_route_v3_VirtualHost_set_retry_policy_typed_config(envoy_config_route_v3_VirtualHost *msg, struct google_protobuf_Any* value) {
465 _upb_sethas(msg, 5);
466 *UPB_PTR_AT(msg, UPB_SIZE(36, 64), struct google_protobuf_Any*) = value;
467 }
envoy_config_route_v3_VirtualHost_mutable_retry_policy_typed_config(envoy_config_route_v3_VirtualHost * msg,upb_arena * arena)468 UPB_INLINE struct google_protobuf_Any* envoy_config_route_v3_VirtualHost_mutable_retry_policy_typed_config(envoy_config_route_v3_VirtualHost *msg, upb_arena *arena) {
469 struct google_protobuf_Any* sub = (struct google_protobuf_Any*)envoy_config_route_v3_VirtualHost_retry_policy_typed_config(msg);
470 if (sub == NULL) {
471 sub = (struct google_protobuf_Any*)_upb_msg_new(&google_protobuf_Any_msginit, arena);
472 if (!sub) return NULL;
473 envoy_config_route_v3_VirtualHost_set_retry_policy_typed_config(msg, sub);
474 }
475 return sub;
476 }
477
478 /* envoy.config.route.v3.VirtualHost.TypedPerFilterConfigEntry */
479
envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry_key(const envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry * msg)480 UPB_INLINE upb_strview envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry_key(const envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry *msg) {
481 upb_strview ret;
482 _upb_msg_map_key(msg, &ret, 0);
483 return ret;
484 }
envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry_has_value(const envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry * msg)485 UPB_INLINE bool envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry_has_value(const envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry_value(const envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry * msg)486 UPB_INLINE const struct google_protobuf_Any* envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry_value(const envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry *msg) {
487 struct google_protobuf_Any* ret;
488 _upb_msg_map_value(msg, &ret, sizeof(ret));
489 return ret;
490 }
491
envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry_set_value(envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry * msg,struct google_protobuf_Any * value)492 UPB_INLINE void envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry_set_value(envoy_config_route_v3_VirtualHost_TypedPerFilterConfigEntry *msg, struct google_protobuf_Any* value) {
493 _upb_msg_map_set_value(msg, &value, sizeof(struct google_protobuf_Any*));
494 }
495
496 /* envoy.config.route.v3.FilterAction */
497
envoy_config_route_v3_FilterAction_new(upb_arena * arena)498 UPB_INLINE envoy_config_route_v3_FilterAction *envoy_config_route_v3_FilterAction_new(upb_arena *arena) {
499 return (envoy_config_route_v3_FilterAction *)_upb_msg_new(&envoy_config_route_v3_FilterAction_msginit, arena);
500 }
envoy_config_route_v3_FilterAction_parse(const char * buf,size_t size,upb_arena * arena)501 UPB_INLINE envoy_config_route_v3_FilterAction *envoy_config_route_v3_FilterAction_parse(const char *buf, size_t size,
502 upb_arena *arena) {
503 envoy_config_route_v3_FilterAction *ret = envoy_config_route_v3_FilterAction_new(arena);
504 return (ret && upb_decode(buf, size, ret, &envoy_config_route_v3_FilterAction_msginit, arena)) ? ret : NULL;
505 }
envoy_config_route_v3_FilterAction_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)506 UPB_INLINE envoy_config_route_v3_FilterAction *envoy_config_route_v3_FilterAction_parse_ex(const char *buf, size_t size,
507 upb_arena *arena, int options) {
508 envoy_config_route_v3_FilterAction *ret = envoy_config_route_v3_FilterAction_new(arena);
509 return (ret && _upb_decode(buf, size, ret, &envoy_config_route_v3_FilterAction_msginit, arena, options))
510 ? ret : NULL;
511 }
envoy_config_route_v3_FilterAction_serialize(const envoy_config_route_v3_FilterAction * msg,upb_arena * arena,size_t * len)512 UPB_INLINE char *envoy_config_route_v3_FilterAction_serialize(const envoy_config_route_v3_FilterAction *msg, upb_arena *arena, size_t *len) {
513 return upb_encode(msg, &envoy_config_route_v3_FilterAction_msginit, arena, len);
514 }
515
envoy_config_route_v3_FilterAction_has_action(const envoy_config_route_v3_FilterAction * msg)516 UPB_INLINE bool envoy_config_route_v3_FilterAction_has_action(const envoy_config_route_v3_FilterAction *msg) { return _upb_hasbit(msg, 1); }
envoy_config_route_v3_FilterAction_action(const envoy_config_route_v3_FilterAction * msg)517 UPB_INLINE const struct google_protobuf_Any* envoy_config_route_v3_FilterAction_action(const envoy_config_route_v3_FilterAction *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_Any*); }
518
envoy_config_route_v3_FilterAction_set_action(envoy_config_route_v3_FilterAction * msg,struct google_protobuf_Any * value)519 UPB_INLINE void envoy_config_route_v3_FilterAction_set_action(envoy_config_route_v3_FilterAction *msg, struct google_protobuf_Any* value) {
520 _upb_sethas(msg, 1);
521 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_Any*) = value;
522 }
envoy_config_route_v3_FilterAction_mutable_action(envoy_config_route_v3_FilterAction * msg,upb_arena * arena)523 UPB_INLINE struct google_protobuf_Any* envoy_config_route_v3_FilterAction_mutable_action(envoy_config_route_v3_FilterAction *msg, upb_arena *arena) {
524 struct google_protobuf_Any* sub = (struct google_protobuf_Any*)envoy_config_route_v3_FilterAction_action(msg);
525 if (sub == NULL) {
526 sub = (struct google_protobuf_Any*)_upb_msg_new(&google_protobuf_Any_msginit, arena);
527 if (!sub) return NULL;
528 envoy_config_route_v3_FilterAction_set_action(msg, sub);
529 }
530 return sub;
531 }
532
533 /* envoy.config.route.v3.Route */
534
envoy_config_route_v3_Route_new(upb_arena * arena)535 UPB_INLINE envoy_config_route_v3_Route *envoy_config_route_v3_Route_new(upb_arena *arena) {
536 return (envoy_config_route_v3_Route *)_upb_msg_new(&envoy_config_route_v3_Route_msginit, arena);
537 }
envoy_config_route_v3_Route_parse(const char * buf,size_t size,upb_arena * arena)538 UPB_INLINE envoy_config_route_v3_Route *envoy_config_route_v3_Route_parse(const char *buf, size_t size,
539 upb_arena *arena) {
540 envoy_config_route_v3_Route *ret = envoy_config_route_v3_Route_new(arena);
541 return (ret && upb_decode(buf, size, ret, &envoy_config_route_v3_Route_msginit, arena)) ? ret : NULL;
542 }
envoy_config_route_v3_Route_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)543 UPB_INLINE envoy_config_route_v3_Route *envoy_config_route_v3_Route_parse_ex(const char *buf, size_t size,
544 upb_arena *arena, int options) {
545 envoy_config_route_v3_Route *ret = envoy_config_route_v3_Route_new(arena);
546 return (ret && _upb_decode(buf, size, ret, &envoy_config_route_v3_Route_msginit, arena, options))
547 ? ret : NULL;
548 }
envoy_config_route_v3_Route_serialize(const envoy_config_route_v3_Route * msg,upb_arena * arena,size_t * len)549 UPB_INLINE char *envoy_config_route_v3_Route_serialize(const envoy_config_route_v3_Route *msg, upb_arena *arena, size_t *len) {
550 return upb_encode(msg, &envoy_config_route_v3_Route_msginit, arena, len);
551 }
552
553 typedef enum {
554 envoy_config_route_v3_Route_action_route = 2,
555 envoy_config_route_v3_Route_action_redirect = 3,
556 envoy_config_route_v3_Route_action_direct_response = 7,
557 envoy_config_route_v3_Route_action_filter_action = 17,
558 envoy_config_route_v3_Route_action_NOT_SET = 0
559 } envoy_config_route_v3_Route_action_oneofcases;
envoy_config_route_v3_Route_action_case(const envoy_config_route_v3_Route * msg)560 UPB_INLINE envoy_config_route_v3_Route_action_oneofcases envoy_config_route_v3_Route_action_case(const envoy_config_route_v3_Route* msg) { return (envoy_config_route_v3_Route_action_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(56, 112), int32_t); }
561
envoy_config_route_v3_Route_has_match(const envoy_config_route_v3_Route * msg)562 UPB_INLINE bool envoy_config_route_v3_Route_has_match(const envoy_config_route_v3_Route *msg) { return _upb_hasbit(msg, 1); }
envoy_config_route_v3_Route_match(const envoy_config_route_v3_Route * msg)563 UPB_INLINE const envoy_config_route_v3_RouteMatch* envoy_config_route_v3_Route_match(const envoy_config_route_v3_Route *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const envoy_config_route_v3_RouteMatch*); }
envoy_config_route_v3_Route_has_route(const envoy_config_route_v3_Route * msg)564 UPB_INLINE bool envoy_config_route_v3_Route_has_route(const envoy_config_route_v3_Route *msg) { return _upb_getoneofcase(msg, UPB_SIZE(56, 112)) == 2; }
envoy_config_route_v3_Route_route(const envoy_config_route_v3_Route * msg)565 UPB_INLINE const envoy_config_route_v3_RouteAction* envoy_config_route_v3_Route_route(const envoy_config_route_v3_Route *msg) { return UPB_READ_ONEOF(msg, const envoy_config_route_v3_RouteAction*, UPB_SIZE(52, 104), UPB_SIZE(56, 112), 2, NULL); }
envoy_config_route_v3_Route_has_redirect(const envoy_config_route_v3_Route * msg)566 UPB_INLINE bool envoy_config_route_v3_Route_has_redirect(const envoy_config_route_v3_Route *msg) { return _upb_getoneofcase(msg, UPB_SIZE(56, 112)) == 3; }
envoy_config_route_v3_Route_redirect(const envoy_config_route_v3_Route * msg)567 UPB_INLINE const envoy_config_route_v3_RedirectAction* envoy_config_route_v3_Route_redirect(const envoy_config_route_v3_Route *msg) { return UPB_READ_ONEOF(msg, const envoy_config_route_v3_RedirectAction*, UPB_SIZE(52, 104), UPB_SIZE(56, 112), 3, NULL); }
envoy_config_route_v3_Route_has_metadata(const envoy_config_route_v3_Route * msg)568 UPB_INLINE bool envoy_config_route_v3_Route_has_metadata(const envoy_config_route_v3_Route *msg) { return _upb_hasbit(msg, 2); }
envoy_config_route_v3_Route_metadata(const envoy_config_route_v3_Route * msg)569 UPB_INLINE const struct envoy_config_core_v3_Metadata* envoy_config_route_v3_Route_metadata(const envoy_config_route_v3_Route *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct envoy_config_core_v3_Metadata*); }
envoy_config_route_v3_Route_has_decorator(const envoy_config_route_v3_Route * msg)570 UPB_INLINE bool envoy_config_route_v3_Route_has_decorator(const envoy_config_route_v3_Route *msg) { return _upb_hasbit(msg, 3); }
envoy_config_route_v3_Route_decorator(const envoy_config_route_v3_Route * msg)571 UPB_INLINE const envoy_config_route_v3_Decorator* envoy_config_route_v3_Route_decorator(const envoy_config_route_v3_Route *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const envoy_config_route_v3_Decorator*); }
envoy_config_route_v3_Route_has_direct_response(const envoy_config_route_v3_Route * msg)572 UPB_INLINE bool envoy_config_route_v3_Route_has_direct_response(const envoy_config_route_v3_Route *msg) { return _upb_getoneofcase(msg, UPB_SIZE(56, 112)) == 7; }
envoy_config_route_v3_Route_direct_response(const envoy_config_route_v3_Route * msg)573 UPB_INLINE const envoy_config_route_v3_DirectResponseAction* envoy_config_route_v3_Route_direct_response(const envoy_config_route_v3_Route *msg) { return UPB_READ_ONEOF(msg, const envoy_config_route_v3_DirectResponseAction*, UPB_SIZE(52, 104), UPB_SIZE(56, 112), 7, NULL); }
envoy_config_route_v3_Route_has_request_headers_to_add(const envoy_config_route_v3_Route * msg)574 UPB_INLINE bool envoy_config_route_v3_Route_has_request_headers_to_add(const envoy_config_route_v3_Route *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(32, 64)); }
envoy_config_route_v3_Route_request_headers_to_add(const envoy_config_route_v3_Route * msg,size_t * len)575 UPB_INLINE const struct envoy_config_core_v3_HeaderValueOption* const* envoy_config_route_v3_Route_request_headers_to_add(const envoy_config_route_v3_Route *msg, size_t *len) { return (const struct envoy_config_core_v3_HeaderValueOption* const*)_upb_array_accessor(msg, UPB_SIZE(32, 64), len); }
envoy_config_route_v3_Route_has_response_headers_to_add(const envoy_config_route_v3_Route * msg)576 UPB_INLINE bool envoy_config_route_v3_Route_has_response_headers_to_add(const envoy_config_route_v3_Route *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(36, 72)); }
envoy_config_route_v3_Route_response_headers_to_add(const envoy_config_route_v3_Route * msg,size_t * len)577 UPB_INLINE const struct envoy_config_core_v3_HeaderValueOption* const* envoy_config_route_v3_Route_response_headers_to_add(const envoy_config_route_v3_Route *msg, size_t *len) { return (const struct envoy_config_core_v3_HeaderValueOption* const*)_upb_array_accessor(msg, UPB_SIZE(36, 72), len); }
envoy_config_route_v3_Route_response_headers_to_remove(const envoy_config_route_v3_Route * msg,size_t * len)578 UPB_INLINE upb_strview const* envoy_config_route_v3_Route_response_headers_to_remove(const envoy_config_route_v3_Route *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(40, 80), len); }
envoy_config_route_v3_Route_request_headers_to_remove(const envoy_config_route_v3_Route * msg,size_t * len)579 UPB_INLINE upb_strview const* envoy_config_route_v3_Route_request_headers_to_remove(const envoy_config_route_v3_Route *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(44, 88), len); }
envoy_config_route_v3_Route_has_typed_per_filter_config(const envoy_config_route_v3_Route * msg)580 UPB_INLINE bool envoy_config_route_v3_Route_has_typed_per_filter_config(const envoy_config_route_v3_Route *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(48, 96)); }
envoy_config_route_v3_Route_typed_per_filter_config_size(const envoy_config_route_v3_Route * msg)581 UPB_INLINE size_t envoy_config_route_v3_Route_typed_per_filter_config_size(const envoy_config_route_v3_Route *msg) {return _upb_msg_map_size(msg, UPB_SIZE(48, 96)); }
envoy_config_route_v3_Route_typed_per_filter_config_get(const envoy_config_route_v3_Route * msg,upb_strview key,struct google_protobuf_Any ** val)582 UPB_INLINE bool envoy_config_route_v3_Route_typed_per_filter_config_get(const envoy_config_route_v3_Route *msg, upb_strview key, struct google_protobuf_Any* *val) { return _upb_msg_map_get(msg, UPB_SIZE(48, 96), &key, 0, val, sizeof(*val)); }
envoy_config_route_v3_Route_typed_per_filter_config_next(const envoy_config_route_v3_Route * msg,size_t * iter)583 UPB_INLINE const envoy_config_route_v3_Route_TypedPerFilterConfigEntry* envoy_config_route_v3_Route_typed_per_filter_config_next(const envoy_config_route_v3_Route *msg, size_t* iter) { return (const envoy_config_route_v3_Route_TypedPerFilterConfigEntry*)_upb_msg_map_next(msg, UPB_SIZE(48, 96), iter); }
envoy_config_route_v3_Route_name(const envoy_config_route_v3_Route * msg)584 UPB_INLINE upb_strview envoy_config_route_v3_Route_name(const envoy_config_route_v3_Route *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
envoy_config_route_v3_Route_has_tracing(const envoy_config_route_v3_Route * msg)585 UPB_INLINE bool envoy_config_route_v3_Route_has_tracing(const envoy_config_route_v3_Route *msg) { return _upb_hasbit(msg, 4); }
envoy_config_route_v3_Route_tracing(const envoy_config_route_v3_Route * msg)586 UPB_INLINE const envoy_config_route_v3_Tracing* envoy_config_route_v3_Route_tracing(const envoy_config_route_v3_Route *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 48), const envoy_config_route_v3_Tracing*); }
envoy_config_route_v3_Route_has_per_request_buffer_limit_bytes(const envoy_config_route_v3_Route * msg)587 UPB_INLINE bool envoy_config_route_v3_Route_has_per_request_buffer_limit_bytes(const envoy_config_route_v3_Route *msg) { return _upb_hasbit(msg, 5); }
envoy_config_route_v3_Route_per_request_buffer_limit_bytes(const envoy_config_route_v3_Route * msg)588 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_route_v3_Route_per_request_buffer_limit_bytes(const envoy_config_route_v3_Route *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 56), const struct google_protobuf_UInt32Value*); }
envoy_config_route_v3_Route_has_filter_action(const envoy_config_route_v3_Route * msg)589 UPB_INLINE bool envoy_config_route_v3_Route_has_filter_action(const envoy_config_route_v3_Route *msg) { return _upb_getoneofcase(msg, UPB_SIZE(56, 112)) == 17; }
envoy_config_route_v3_Route_filter_action(const envoy_config_route_v3_Route * msg)590 UPB_INLINE const envoy_config_route_v3_FilterAction* envoy_config_route_v3_Route_filter_action(const envoy_config_route_v3_Route *msg) { return UPB_READ_ONEOF(msg, const envoy_config_route_v3_FilterAction*, UPB_SIZE(52, 104), UPB_SIZE(56, 112), 17, NULL); }
591
envoy_config_route_v3_Route_set_match(envoy_config_route_v3_Route * msg,envoy_config_route_v3_RouteMatch * value)592 UPB_INLINE void envoy_config_route_v3_Route_set_match(envoy_config_route_v3_Route *msg, envoy_config_route_v3_RouteMatch* value) {
593 _upb_sethas(msg, 1);
594 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), envoy_config_route_v3_RouteMatch*) = value;
595 }
envoy_config_route_v3_Route_mutable_match(envoy_config_route_v3_Route * msg,upb_arena * arena)596 UPB_INLINE struct envoy_config_route_v3_RouteMatch* envoy_config_route_v3_Route_mutable_match(envoy_config_route_v3_Route *msg, upb_arena *arena) {
597 struct envoy_config_route_v3_RouteMatch* sub = (struct envoy_config_route_v3_RouteMatch*)envoy_config_route_v3_Route_match(msg);
598 if (sub == NULL) {
599 sub = (struct envoy_config_route_v3_RouteMatch*)_upb_msg_new(&envoy_config_route_v3_RouteMatch_msginit, arena);
600 if (!sub) return NULL;
601 envoy_config_route_v3_Route_set_match(msg, sub);
602 }
603 return sub;
604 }
envoy_config_route_v3_Route_set_route(envoy_config_route_v3_Route * msg,envoy_config_route_v3_RouteAction * value)605 UPB_INLINE void envoy_config_route_v3_Route_set_route(envoy_config_route_v3_Route *msg, envoy_config_route_v3_RouteAction* value) {
606 UPB_WRITE_ONEOF(msg, envoy_config_route_v3_RouteAction*, UPB_SIZE(52, 104), value, UPB_SIZE(56, 112), 2);
607 }
envoy_config_route_v3_Route_mutable_route(envoy_config_route_v3_Route * msg,upb_arena * arena)608 UPB_INLINE struct envoy_config_route_v3_RouteAction* envoy_config_route_v3_Route_mutable_route(envoy_config_route_v3_Route *msg, upb_arena *arena) {
609 struct envoy_config_route_v3_RouteAction* sub = (struct envoy_config_route_v3_RouteAction*)envoy_config_route_v3_Route_route(msg);
610 if (sub == NULL) {
611 sub = (struct envoy_config_route_v3_RouteAction*)_upb_msg_new(&envoy_config_route_v3_RouteAction_msginit, arena);
612 if (!sub) return NULL;
613 envoy_config_route_v3_Route_set_route(msg, sub);
614 }
615 return sub;
616 }
envoy_config_route_v3_Route_set_redirect(envoy_config_route_v3_Route * msg,envoy_config_route_v3_RedirectAction * value)617 UPB_INLINE void envoy_config_route_v3_Route_set_redirect(envoy_config_route_v3_Route *msg, envoy_config_route_v3_RedirectAction* value) {
618 UPB_WRITE_ONEOF(msg, envoy_config_route_v3_RedirectAction*, UPB_SIZE(52, 104), value, UPB_SIZE(56, 112), 3);
619 }
envoy_config_route_v3_Route_mutable_redirect(envoy_config_route_v3_Route * msg,upb_arena * arena)620 UPB_INLINE struct envoy_config_route_v3_RedirectAction* envoy_config_route_v3_Route_mutable_redirect(envoy_config_route_v3_Route *msg, upb_arena *arena) {
621 struct envoy_config_route_v3_RedirectAction* sub = (struct envoy_config_route_v3_RedirectAction*)envoy_config_route_v3_Route_redirect(msg);
622 if (sub == NULL) {
623 sub = (struct envoy_config_route_v3_RedirectAction*)_upb_msg_new(&envoy_config_route_v3_RedirectAction_msginit, arena);
624 if (!sub) return NULL;
625 envoy_config_route_v3_Route_set_redirect(msg, sub);
626 }
627 return sub;
628 }
envoy_config_route_v3_Route_set_metadata(envoy_config_route_v3_Route * msg,struct envoy_config_core_v3_Metadata * value)629 UPB_INLINE void envoy_config_route_v3_Route_set_metadata(envoy_config_route_v3_Route *msg, struct envoy_config_core_v3_Metadata* value) {
630 _upb_sethas(msg, 2);
631 *UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct envoy_config_core_v3_Metadata*) = value;
632 }
envoy_config_route_v3_Route_mutable_metadata(envoy_config_route_v3_Route * msg,upb_arena * arena)633 UPB_INLINE struct envoy_config_core_v3_Metadata* envoy_config_route_v3_Route_mutable_metadata(envoy_config_route_v3_Route *msg, upb_arena *arena) {
634 struct envoy_config_core_v3_Metadata* sub = (struct envoy_config_core_v3_Metadata*)envoy_config_route_v3_Route_metadata(msg);
635 if (sub == NULL) {
636 sub = (struct envoy_config_core_v3_Metadata*)_upb_msg_new(&envoy_config_core_v3_Metadata_msginit, arena);
637 if (!sub) return NULL;
638 envoy_config_route_v3_Route_set_metadata(msg, sub);
639 }
640 return sub;
641 }
envoy_config_route_v3_Route_set_decorator(envoy_config_route_v3_Route * msg,envoy_config_route_v3_Decorator * value)642 UPB_INLINE void envoy_config_route_v3_Route_set_decorator(envoy_config_route_v3_Route *msg, envoy_config_route_v3_Decorator* value) {
643 _upb_sethas(msg, 3);
644 *UPB_PTR_AT(msg, UPB_SIZE(20, 40), envoy_config_route_v3_Decorator*) = value;
645 }
envoy_config_route_v3_Route_mutable_decorator(envoy_config_route_v3_Route * msg,upb_arena * arena)646 UPB_INLINE struct envoy_config_route_v3_Decorator* envoy_config_route_v3_Route_mutable_decorator(envoy_config_route_v3_Route *msg, upb_arena *arena) {
647 struct envoy_config_route_v3_Decorator* sub = (struct envoy_config_route_v3_Decorator*)envoy_config_route_v3_Route_decorator(msg);
648 if (sub == NULL) {
649 sub = (struct envoy_config_route_v3_Decorator*)_upb_msg_new(&envoy_config_route_v3_Decorator_msginit, arena);
650 if (!sub) return NULL;
651 envoy_config_route_v3_Route_set_decorator(msg, sub);
652 }
653 return sub;
654 }
envoy_config_route_v3_Route_set_direct_response(envoy_config_route_v3_Route * msg,envoy_config_route_v3_DirectResponseAction * value)655 UPB_INLINE void envoy_config_route_v3_Route_set_direct_response(envoy_config_route_v3_Route *msg, envoy_config_route_v3_DirectResponseAction* value) {
656 UPB_WRITE_ONEOF(msg, envoy_config_route_v3_DirectResponseAction*, UPB_SIZE(52, 104), value, UPB_SIZE(56, 112), 7);
657 }
envoy_config_route_v3_Route_mutable_direct_response(envoy_config_route_v3_Route * msg,upb_arena * arena)658 UPB_INLINE struct envoy_config_route_v3_DirectResponseAction* envoy_config_route_v3_Route_mutable_direct_response(envoy_config_route_v3_Route *msg, upb_arena *arena) {
659 struct envoy_config_route_v3_DirectResponseAction* sub = (struct envoy_config_route_v3_DirectResponseAction*)envoy_config_route_v3_Route_direct_response(msg);
660 if (sub == NULL) {
661 sub = (struct envoy_config_route_v3_DirectResponseAction*)_upb_msg_new(&envoy_config_route_v3_DirectResponseAction_msginit, arena);
662 if (!sub) return NULL;
663 envoy_config_route_v3_Route_set_direct_response(msg, sub);
664 }
665 return sub;
666 }
envoy_config_route_v3_Route_mutable_request_headers_to_add(envoy_config_route_v3_Route * msg,size_t * len)667 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_Route_mutable_request_headers_to_add(envoy_config_route_v3_Route *msg, size_t *len) {
668 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 64), len);
669 }
envoy_config_route_v3_Route_resize_request_headers_to_add(envoy_config_route_v3_Route * msg,size_t len,upb_arena * arena)670 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_Route_resize_request_headers_to_add(envoy_config_route_v3_Route *msg, size_t len, upb_arena *arena) {
671 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_resize_accessor2(msg, UPB_SIZE(32, 64), len, UPB_SIZE(2, 3), arena);
672 }
envoy_config_route_v3_Route_add_request_headers_to_add(envoy_config_route_v3_Route * msg,upb_arena * arena)673 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption* envoy_config_route_v3_Route_add_request_headers_to_add(envoy_config_route_v3_Route *msg, upb_arena *arena) {
674 struct envoy_config_core_v3_HeaderValueOption* sub = (struct envoy_config_core_v3_HeaderValueOption*)_upb_msg_new(&envoy_config_core_v3_HeaderValueOption_msginit, arena);
675 bool ok = _upb_array_append_accessor2(
676 msg, UPB_SIZE(32, 64), UPB_SIZE(2, 3), &sub, arena);
677 if (!ok) return NULL;
678 return sub;
679 }
envoy_config_route_v3_Route_mutable_response_headers_to_add(envoy_config_route_v3_Route * msg,size_t * len)680 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_Route_mutable_response_headers_to_add(envoy_config_route_v3_Route *msg, size_t *len) {
681 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(36, 72), len);
682 }
envoy_config_route_v3_Route_resize_response_headers_to_add(envoy_config_route_v3_Route * msg,size_t len,upb_arena * arena)683 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_Route_resize_response_headers_to_add(envoy_config_route_v3_Route *msg, size_t len, upb_arena *arena) {
684 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_resize_accessor2(msg, UPB_SIZE(36, 72), len, UPB_SIZE(2, 3), arena);
685 }
envoy_config_route_v3_Route_add_response_headers_to_add(envoy_config_route_v3_Route * msg,upb_arena * arena)686 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption* envoy_config_route_v3_Route_add_response_headers_to_add(envoy_config_route_v3_Route *msg, upb_arena *arena) {
687 struct envoy_config_core_v3_HeaderValueOption* sub = (struct envoy_config_core_v3_HeaderValueOption*)_upb_msg_new(&envoy_config_core_v3_HeaderValueOption_msginit, arena);
688 bool ok = _upb_array_append_accessor2(
689 msg, UPB_SIZE(36, 72), UPB_SIZE(2, 3), &sub, arena);
690 if (!ok) return NULL;
691 return sub;
692 }
envoy_config_route_v3_Route_mutable_response_headers_to_remove(envoy_config_route_v3_Route * msg,size_t * len)693 UPB_INLINE upb_strview* envoy_config_route_v3_Route_mutable_response_headers_to_remove(envoy_config_route_v3_Route *msg, size_t *len) {
694 return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(40, 80), len);
695 }
envoy_config_route_v3_Route_resize_response_headers_to_remove(envoy_config_route_v3_Route * msg,size_t len,upb_arena * arena)696 UPB_INLINE upb_strview* envoy_config_route_v3_Route_resize_response_headers_to_remove(envoy_config_route_v3_Route *msg, size_t len, upb_arena *arena) {
697 return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(40, 80), len, UPB_SIZE(3, 4), arena);
698 }
envoy_config_route_v3_Route_add_response_headers_to_remove(envoy_config_route_v3_Route * msg,upb_strview val,upb_arena * arena)699 UPB_INLINE bool envoy_config_route_v3_Route_add_response_headers_to_remove(envoy_config_route_v3_Route *msg, upb_strview val, upb_arena *arena) {
700 return _upb_array_append_accessor2(msg, UPB_SIZE(40, 80), UPB_SIZE(3, 4), &val,
701 arena);
702 }
envoy_config_route_v3_Route_mutable_request_headers_to_remove(envoy_config_route_v3_Route * msg,size_t * len)703 UPB_INLINE upb_strview* envoy_config_route_v3_Route_mutable_request_headers_to_remove(envoy_config_route_v3_Route *msg, size_t *len) {
704 return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(44, 88), len);
705 }
envoy_config_route_v3_Route_resize_request_headers_to_remove(envoy_config_route_v3_Route * msg,size_t len,upb_arena * arena)706 UPB_INLINE upb_strview* envoy_config_route_v3_Route_resize_request_headers_to_remove(envoy_config_route_v3_Route *msg, size_t len, upb_arena *arena) {
707 return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(44, 88), len, UPB_SIZE(3, 4), arena);
708 }
envoy_config_route_v3_Route_add_request_headers_to_remove(envoy_config_route_v3_Route * msg,upb_strview val,upb_arena * arena)709 UPB_INLINE bool envoy_config_route_v3_Route_add_request_headers_to_remove(envoy_config_route_v3_Route *msg, upb_strview val, upb_arena *arena) {
710 return _upb_array_append_accessor2(msg, UPB_SIZE(44, 88), UPB_SIZE(3, 4), &val,
711 arena);
712 }
envoy_config_route_v3_Route_typed_per_filter_config_clear(envoy_config_route_v3_Route * msg)713 UPB_INLINE void envoy_config_route_v3_Route_typed_per_filter_config_clear(envoy_config_route_v3_Route *msg) { _upb_msg_map_clear(msg, UPB_SIZE(48, 96)); }
envoy_config_route_v3_Route_typed_per_filter_config_set(envoy_config_route_v3_Route * msg,upb_strview key,struct google_protobuf_Any * val,upb_arena * a)714 UPB_INLINE bool envoy_config_route_v3_Route_typed_per_filter_config_set(envoy_config_route_v3_Route *msg, upb_strview key, struct google_protobuf_Any* val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(48, 96), &key, 0, &val, sizeof(val), a); }
envoy_config_route_v3_Route_typed_per_filter_config_delete(envoy_config_route_v3_Route * msg,upb_strview key)715 UPB_INLINE bool envoy_config_route_v3_Route_typed_per_filter_config_delete(envoy_config_route_v3_Route *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(48, 96), &key, 0); }
envoy_config_route_v3_Route_typed_per_filter_config_nextmutable(envoy_config_route_v3_Route * msg,size_t * iter)716 UPB_INLINE envoy_config_route_v3_Route_TypedPerFilterConfigEntry* envoy_config_route_v3_Route_typed_per_filter_config_nextmutable(envoy_config_route_v3_Route *msg, size_t* iter) { return (envoy_config_route_v3_Route_TypedPerFilterConfigEntry*)_upb_msg_map_next(msg, UPB_SIZE(48, 96), iter); }
envoy_config_route_v3_Route_set_name(envoy_config_route_v3_Route * msg,upb_strview value)717 UPB_INLINE void envoy_config_route_v3_Route_set_name(envoy_config_route_v3_Route *msg, upb_strview value) {
718 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
719 }
envoy_config_route_v3_Route_set_tracing(envoy_config_route_v3_Route * msg,envoy_config_route_v3_Tracing * value)720 UPB_INLINE void envoy_config_route_v3_Route_set_tracing(envoy_config_route_v3_Route *msg, envoy_config_route_v3_Tracing* value) {
721 _upb_sethas(msg, 4);
722 *UPB_PTR_AT(msg, UPB_SIZE(24, 48), envoy_config_route_v3_Tracing*) = value;
723 }
envoy_config_route_v3_Route_mutable_tracing(envoy_config_route_v3_Route * msg,upb_arena * arena)724 UPB_INLINE struct envoy_config_route_v3_Tracing* envoy_config_route_v3_Route_mutable_tracing(envoy_config_route_v3_Route *msg, upb_arena *arena) {
725 struct envoy_config_route_v3_Tracing* sub = (struct envoy_config_route_v3_Tracing*)envoy_config_route_v3_Route_tracing(msg);
726 if (sub == NULL) {
727 sub = (struct envoy_config_route_v3_Tracing*)_upb_msg_new(&envoy_config_route_v3_Tracing_msginit, arena);
728 if (!sub) return NULL;
729 envoy_config_route_v3_Route_set_tracing(msg, sub);
730 }
731 return sub;
732 }
envoy_config_route_v3_Route_set_per_request_buffer_limit_bytes(envoy_config_route_v3_Route * msg,struct google_protobuf_UInt32Value * value)733 UPB_INLINE void envoy_config_route_v3_Route_set_per_request_buffer_limit_bytes(envoy_config_route_v3_Route *msg, struct google_protobuf_UInt32Value* value) {
734 _upb_sethas(msg, 5);
735 *UPB_PTR_AT(msg, UPB_SIZE(28, 56), struct google_protobuf_UInt32Value*) = value;
736 }
envoy_config_route_v3_Route_mutable_per_request_buffer_limit_bytes(envoy_config_route_v3_Route * msg,upb_arena * arena)737 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_route_v3_Route_mutable_per_request_buffer_limit_bytes(envoy_config_route_v3_Route *msg, upb_arena *arena) {
738 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_route_v3_Route_per_request_buffer_limit_bytes(msg);
739 if (sub == NULL) {
740 sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
741 if (!sub) return NULL;
742 envoy_config_route_v3_Route_set_per_request_buffer_limit_bytes(msg, sub);
743 }
744 return sub;
745 }
envoy_config_route_v3_Route_set_filter_action(envoy_config_route_v3_Route * msg,envoy_config_route_v3_FilterAction * value)746 UPB_INLINE void envoy_config_route_v3_Route_set_filter_action(envoy_config_route_v3_Route *msg, envoy_config_route_v3_FilterAction* value) {
747 UPB_WRITE_ONEOF(msg, envoy_config_route_v3_FilterAction*, UPB_SIZE(52, 104), value, UPB_SIZE(56, 112), 17);
748 }
envoy_config_route_v3_Route_mutable_filter_action(envoy_config_route_v3_Route * msg,upb_arena * arena)749 UPB_INLINE struct envoy_config_route_v3_FilterAction* envoy_config_route_v3_Route_mutable_filter_action(envoy_config_route_v3_Route *msg, upb_arena *arena) {
750 struct envoy_config_route_v3_FilterAction* sub = (struct envoy_config_route_v3_FilterAction*)envoy_config_route_v3_Route_filter_action(msg);
751 if (sub == NULL) {
752 sub = (struct envoy_config_route_v3_FilterAction*)_upb_msg_new(&envoy_config_route_v3_FilterAction_msginit, arena);
753 if (!sub) return NULL;
754 envoy_config_route_v3_Route_set_filter_action(msg, sub);
755 }
756 return sub;
757 }
758
759 /* envoy.config.route.v3.Route.TypedPerFilterConfigEntry */
760
envoy_config_route_v3_Route_TypedPerFilterConfigEntry_key(const envoy_config_route_v3_Route_TypedPerFilterConfigEntry * msg)761 UPB_INLINE upb_strview envoy_config_route_v3_Route_TypedPerFilterConfigEntry_key(const envoy_config_route_v3_Route_TypedPerFilterConfigEntry *msg) {
762 upb_strview ret;
763 _upb_msg_map_key(msg, &ret, 0);
764 return ret;
765 }
envoy_config_route_v3_Route_TypedPerFilterConfigEntry_has_value(const envoy_config_route_v3_Route_TypedPerFilterConfigEntry * msg)766 UPB_INLINE bool envoy_config_route_v3_Route_TypedPerFilterConfigEntry_has_value(const envoy_config_route_v3_Route_TypedPerFilterConfigEntry *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
envoy_config_route_v3_Route_TypedPerFilterConfigEntry_value(const envoy_config_route_v3_Route_TypedPerFilterConfigEntry * msg)767 UPB_INLINE const struct google_protobuf_Any* envoy_config_route_v3_Route_TypedPerFilterConfigEntry_value(const envoy_config_route_v3_Route_TypedPerFilterConfigEntry *msg) {
768 struct google_protobuf_Any* ret;
769 _upb_msg_map_value(msg, &ret, sizeof(ret));
770 return ret;
771 }
772
envoy_config_route_v3_Route_TypedPerFilterConfigEntry_set_value(envoy_config_route_v3_Route_TypedPerFilterConfigEntry * msg,struct google_protobuf_Any * value)773 UPB_INLINE void envoy_config_route_v3_Route_TypedPerFilterConfigEntry_set_value(envoy_config_route_v3_Route_TypedPerFilterConfigEntry *msg, struct google_protobuf_Any* value) {
774 _upb_msg_map_set_value(msg, &value, sizeof(struct google_protobuf_Any*));
775 }
776
777 /* envoy.config.route.v3.WeightedCluster */
778
envoy_config_route_v3_WeightedCluster_new(upb_arena * arena)779 UPB_INLINE envoy_config_route_v3_WeightedCluster *envoy_config_route_v3_WeightedCluster_new(upb_arena *arena) {
780 return (envoy_config_route_v3_WeightedCluster *)_upb_msg_new(&envoy_config_route_v3_WeightedCluster_msginit, arena);
781 }
envoy_config_route_v3_WeightedCluster_parse(const char * buf,size_t size,upb_arena * arena)782 UPB_INLINE envoy_config_route_v3_WeightedCluster *envoy_config_route_v3_WeightedCluster_parse(const char *buf, size_t size,
783 upb_arena *arena) {
784 envoy_config_route_v3_WeightedCluster *ret = envoy_config_route_v3_WeightedCluster_new(arena);
785 return (ret && upb_decode(buf, size, ret, &envoy_config_route_v3_WeightedCluster_msginit, arena)) ? ret : NULL;
786 }
envoy_config_route_v3_WeightedCluster_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)787 UPB_INLINE envoy_config_route_v3_WeightedCluster *envoy_config_route_v3_WeightedCluster_parse_ex(const char *buf, size_t size,
788 upb_arena *arena, int options) {
789 envoy_config_route_v3_WeightedCluster *ret = envoy_config_route_v3_WeightedCluster_new(arena);
790 return (ret && _upb_decode(buf, size, ret, &envoy_config_route_v3_WeightedCluster_msginit, arena, options))
791 ? ret : NULL;
792 }
envoy_config_route_v3_WeightedCluster_serialize(const envoy_config_route_v3_WeightedCluster * msg,upb_arena * arena,size_t * len)793 UPB_INLINE char *envoy_config_route_v3_WeightedCluster_serialize(const envoy_config_route_v3_WeightedCluster *msg, upb_arena *arena, size_t *len) {
794 return upb_encode(msg, &envoy_config_route_v3_WeightedCluster_msginit, arena, len);
795 }
796
envoy_config_route_v3_WeightedCluster_has_clusters(const envoy_config_route_v3_WeightedCluster * msg)797 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_has_clusters(const envoy_config_route_v3_WeightedCluster *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(16, 32)); }
envoy_config_route_v3_WeightedCluster_clusters(const envoy_config_route_v3_WeightedCluster * msg,size_t * len)798 UPB_INLINE const envoy_config_route_v3_WeightedCluster_ClusterWeight* const* envoy_config_route_v3_WeightedCluster_clusters(const envoy_config_route_v3_WeightedCluster *msg, size_t *len) { return (const envoy_config_route_v3_WeightedCluster_ClusterWeight* const*)_upb_array_accessor(msg, UPB_SIZE(16, 32), len); }
envoy_config_route_v3_WeightedCluster_runtime_key_prefix(const envoy_config_route_v3_WeightedCluster * msg)799 UPB_INLINE upb_strview envoy_config_route_v3_WeightedCluster_runtime_key_prefix(const envoy_config_route_v3_WeightedCluster *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
envoy_config_route_v3_WeightedCluster_has_total_weight(const envoy_config_route_v3_WeightedCluster * msg)800 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_has_total_weight(const envoy_config_route_v3_WeightedCluster *msg) { return _upb_hasbit(msg, 1); }
envoy_config_route_v3_WeightedCluster_total_weight(const envoy_config_route_v3_WeightedCluster * msg)801 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_route_v3_WeightedCluster_total_weight(const envoy_config_route_v3_WeightedCluster *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_UInt32Value*); }
802
envoy_config_route_v3_WeightedCluster_mutable_clusters(envoy_config_route_v3_WeightedCluster * msg,size_t * len)803 UPB_INLINE envoy_config_route_v3_WeightedCluster_ClusterWeight** envoy_config_route_v3_WeightedCluster_mutable_clusters(envoy_config_route_v3_WeightedCluster *msg, size_t *len) {
804 return (envoy_config_route_v3_WeightedCluster_ClusterWeight**)_upb_array_mutable_accessor(msg, UPB_SIZE(16, 32), len);
805 }
envoy_config_route_v3_WeightedCluster_resize_clusters(envoy_config_route_v3_WeightedCluster * msg,size_t len,upb_arena * arena)806 UPB_INLINE envoy_config_route_v3_WeightedCluster_ClusterWeight** envoy_config_route_v3_WeightedCluster_resize_clusters(envoy_config_route_v3_WeightedCluster *msg, size_t len, upb_arena *arena) {
807 return (envoy_config_route_v3_WeightedCluster_ClusterWeight**)_upb_array_resize_accessor2(msg, UPB_SIZE(16, 32), len, UPB_SIZE(2, 3), arena);
808 }
envoy_config_route_v3_WeightedCluster_add_clusters(envoy_config_route_v3_WeightedCluster * msg,upb_arena * arena)809 UPB_INLINE struct envoy_config_route_v3_WeightedCluster_ClusterWeight* envoy_config_route_v3_WeightedCluster_add_clusters(envoy_config_route_v3_WeightedCluster *msg, upb_arena *arena) {
810 struct envoy_config_route_v3_WeightedCluster_ClusterWeight* sub = (struct envoy_config_route_v3_WeightedCluster_ClusterWeight*)_upb_msg_new(&envoy_config_route_v3_WeightedCluster_ClusterWeight_msginit, arena);
811 bool ok = _upb_array_append_accessor2(
812 msg, UPB_SIZE(16, 32), UPB_SIZE(2, 3), &sub, arena);
813 if (!ok) return NULL;
814 return sub;
815 }
envoy_config_route_v3_WeightedCluster_set_runtime_key_prefix(envoy_config_route_v3_WeightedCluster * msg,upb_strview value)816 UPB_INLINE void envoy_config_route_v3_WeightedCluster_set_runtime_key_prefix(envoy_config_route_v3_WeightedCluster *msg, upb_strview value) {
817 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
818 }
envoy_config_route_v3_WeightedCluster_set_total_weight(envoy_config_route_v3_WeightedCluster * msg,struct google_protobuf_UInt32Value * value)819 UPB_INLINE void envoy_config_route_v3_WeightedCluster_set_total_weight(envoy_config_route_v3_WeightedCluster *msg, struct google_protobuf_UInt32Value* value) {
820 _upb_sethas(msg, 1);
821 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_UInt32Value*) = value;
822 }
envoy_config_route_v3_WeightedCluster_mutable_total_weight(envoy_config_route_v3_WeightedCluster * msg,upb_arena * arena)823 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_route_v3_WeightedCluster_mutable_total_weight(envoy_config_route_v3_WeightedCluster *msg, upb_arena *arena) {
824 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_route_v3_WeightedCluster_total_weight(msg);
825 if (sub == NULL) {
826 sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
827 if (!sub) return NULL;
828 envoy_config_route_v3_WeightedCluster_set_total_weight(msg, sub);
829 }
830 return sub;
831 }
832
833 /* envoy.config.route.v3.WeightedCluster.ClusterWeight */
834
envoy_config_route_v3_WeightedCluster_ClusterWeight_new(upb_arena * arena)835 UPB_INLINE envoy_config_route_v3_WeightedCluster_ClusterWeight *envoy_config_route_v3_WeightedCluster_ClusterWeight_new(upb_arena *arena) {
836 return (envoy_config_route_v3_WeightedCluster_ClusterWeight *)_upb_msg_new(&envoy_config_route_v3_WeightedCluster_ClusterWeight_msginit, arena);
837 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_parse(const char * buf,size_t size,upb_arena * arena)838 UPB_INLINE envoy_config_route_v3_WeightedCluster_ClusterWeight *envoy_config_route_v3_WeightedCluster_ClusterWeight_parse(const char *buf, size_t size,
839 upb_arena *arena) {
840 envoy_config_route_v3_WeightedCluster_ClusterWeight *ret = envoy_config_route_v3_WeightedCluster_ClusterWeight_new(arena);
841 return (ret && upb_decode(buf, size, ret, &envoy_config_route_v3_WeightedCluster_ClusterWeight_msginit, arena)) ? ret : NULL;
842 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)843 UPB_INLINE envoy_config_route_v3_WeightedCluster_ClusterWeight *envoy_config_route_v3_WeightedCluster_ClusterWeight_parse_ex(const char *buf, size_t size,
844 upb_arena *arena, int options) {
845 envoy_config_route_v3_WeightedCluster_ClusterWeight *ret = envoy_config_route_v3_WeightedCluster_ClusterWeight_new(arena);
846 return (ret && _upb_decode(buf, size, ret, &envoy_config_route_v3_WeightedCluster_ClusterWeight_msginit, arena, options))
847 ? ret : NULL;
848 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_serialize(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,upb_arena * arena,size_t * len)849 UPB_INLINE char *envoy_config_route_v3_WeightedCluster_ClusterWeight_serialize(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, upb_arena *arena, size_t *len) {
850 return upb_encode(msg, &envoy_config_route_v3_WeightedCluster_ClusterWeight_msginit, arena, len);
851 }
852
envoy_config_route_v3_WeightedCluster_ClusterWeight_name(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg)853 UPB_INLINE upb_strview envoy_config_route_v3_WeightedCluster_ClusterWeight_name(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_has_weight(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg)854 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_ClusterWeight_has_weight(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg) { return _upb_hasbit(msg, 1); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_weight(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg)855 UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_route_v3_WeightedCluster_ClusterWeight_weight(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_UInt32Value*); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_has_metadata_match(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg)856 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_ClusterWeight_has_metadata_match(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg) { return _upb_hasbit(msg, 2); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_metadata_match(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg)857 UPB_INLINE const struct envoy_config_core_v3_Metadata* envoy_config_route_v3_WeightedCluster_ClusterWeight_metadata_match(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct envoy_config_core_v3_Metadata*); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_has_request_headers_to_add(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg)858 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_ClusterWeight_has_request_headers_to_add(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(20, 40)); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_request_headers_to_add(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t * len)859 UPB_INLINE const struct envoy_config_core_v3_HeaderValueOption* const* envoy_config_route_v3_WeightedCluster_ClusterWeight_request_headers_to_add(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t *len) { return (const struct envoy_config_core_v3_HeaderValueOption* const*)_upb_array_accessor(msg, UPB_SIZE(20, 40), len); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_has_response_headers_to_add(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg)860 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_ClusterWeight_has_response_headers_to_add(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(24, 48)); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_response_headers_to_add(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t * len)861 UPB_INLINE const struct envoy_config_core_v3_HeaderValueOption* const* envoy_config_route_v3_WeightedCluster_ClusterWeight_response_headers_to_add(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t *len) { return (const struct envoy_config_core_v3_HeaderValueOption* const*)_upb_array_accessor(msg, UPB_SIZE(24, 48), len); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_response_headers_to_remove(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t * len)862 UPB_INLINE upb_strview const* envoy_config_route_v3_WeightedCluster_ClusterWeight_response_headers_to_remove(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(28, 56), len); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_request_headers_to_remove(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t * len)863 UPB_INLINE upb_strview const* envoy_config_route_v3_WeightedCluster_ClusterWeight_request_headers_to_remove(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(32, 64), len); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_has_typed_per_filter_config(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg)864 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_ClusterWeight_has_typed_per_filter_config(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(36, 72)); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_size(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg)865 UPB_INLINE size_t envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_size(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg) {return _upb_msg_map_size(msg, UPB_SIZE(36, 72)); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_get(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,upb_strview key,struct google_protobuf_Any ** val)866 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_get(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, upb_strview key, struct google_protobuf_Any* *val) { return _upb_msg_map_get(msg, UPB_SIZE(36, 72), &key, 0, val, sizeof(*val)); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_next(const envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t * iter)867 UPB_INLINE const envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry* envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_next(const envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t* iter) { return (const envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry*)_upb_msg_map_next(msg, UPB_SIZE(36, 72), iter); }
868
envoy_config_route_v3_WeightedCluster_ClusterWeight_set_name(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,upb_strview value)869 UPB_INLINE void envoy_config_route_v3_WeightedCluster_ClusterWeight_set_name(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, upb_strview value) {
870 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
871 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_set_weight(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,struct google_protobuf_UInt32Value * value)872 UPB_INLINE void envoy_config_route_v3_WeightedCluster_ClusterWeight_set_weight(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, struct google_protobuf_UInt32Value* value) {
873 _upb_sethas(msg, 1);
874 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_UInt32Value*) = value;
875 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_weight(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,upb_arena * arena)876 UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_weight(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, upb_arena *arena) {
877 struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_route_v3_WeightedCluster_ClusterWeight_weight(msg);
878 if (sub == NULL) {
879 sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
880 if (!sub) return NULL;
881 envoy_config_route_v3_WeightedCluster_ClusterWeight_set_weight(msg, sub);
882 }
883 return sub;
884 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_set_metadata_match(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,struct envoy_config_core_v3_Metadata * value)885 UPB_INLINE void envoy_config_route_v3_WeightedCluster_ClusterWeight_set_metadata_match(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, struct envoy_config_core_v3_Metadata* value) {
886 _upb_sethas(msg, 2);
887 *UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct envoy_config_core_v3_Metadata*) = value;
888 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_metadata_match(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,upb_arena * arena)889 UPB_INLINE struct envoy_config_core_v3_Metadata* envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_metadata_match(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, upb_arena *arena) {
890 struct envoy_config_core_v3_Metadata* sub = (struct envoy_config_core_v3_Metadata*)envoy_config_route_v3_WeightedCluster_ClusterWeight_metadata_match(msg);
891 if (sub == NULL) {
892 sub = (struct envoy_config_core_v3_Metadata*)_upb_msg_new(&envoy_config_core_v3_Metadata_msginit, arena);
893 if (!sub) return NULL;
894 envoy_config_route_v3_WeightedCluster_ClusterWeight_set_metadata_match(msg, sub);
895 }
896 return sub;
897 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_request_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t * len)898 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_request_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t *len) {
899 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(20, 40), len);
900 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_resize_request_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t len,upb_arena * arena)901 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_WeightedCluster_ClusterWeight_resize_request_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t len, upb_arena *arena) {
902 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_resize_accessor2(msg, UPB_SIZE(20, 40), len, UPB_SIZE(2, 3), arena);
903 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_add_request_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,upb_arena * arena)904 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption* envoy_config_route_v3_WeightedCluster_ClusterWeight_add_request_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, upb_arena *arena) {
905 struct envoy_config_core_v3_HeaderValueOption* sub = (struct envoy_config_core_v3_HeaderValueOption*)_upb_msg_new(&envoy_config_core_v3_HeaderValueOption_msginit, arena);
906 bool ok = _upb_array_append_accessor2(
907 msg, UPB_SIZE(20, 40), UPB_SIZE(2, 3), &sub, arena);
908 if (!ok) return NULL;
909 return sub;
910 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_response_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t * len)911 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_response_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t *len) {
912 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 48), len);
913 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_resize_response_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t len,upb_arena * arena)914 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_config_route_v3_WeightedCluster_ClusterWeight_resize_response_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t len, upb_arena *arena) {
915 return (struct envoy_config_core_v3_HeaderValueOption**)_upb_array_resize_accessor2(msg, UPB_SIZE(24, 48), len, UPB_SIZE(2, 3), arena);
916 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_add_response_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,upb_arena * arena)917 UPB_INLINE struct envoy_config_core_v3_HeaderValueOption* envoy_config_route_v3_WeightedCluster_ClusterWeight_add_response_headers_to_add(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, upb_arena *arena) {
918 struct envoy_config_core_v3_HeaderValueOption* sub = (struct envoy_config_core_v3_HeaderValueOption*)_upb_msg_new(&envoy_config_core_v3_HeaderValueOption_msginit, arena);
919 bool ok = _upb_array_append_accessor2(
920 msg, UPB_SIZE(24, 48), UPB_SIZE(2, 3), &sub, arena);
921 if (!ok) return NULL;
922 return sub;
923 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_response_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t * len)924 UPB_INLINE upb_strview* envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_response_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t *len) {
925 return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 56), len);
926 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_resize_response_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t len,upb_arena * arena)927 UPB_INLINE upb_strview* envoy_config_route_v3_WeightedCluster_ClusterWeight_resize_response_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t len, upb_arena *arena) {
928 return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 56), len, UPB_SIZE(3, 4), arena);
929 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_add_response_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,upb_strview val,upb_arena * arena)930 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_ClusterWeight_add_response_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, upb_strview val, upb_arena *arena) {
931 return _upb_array_append_accessor2(msg, UPB_SIZE(28, 56), UPB_SIZE(3, 4), &val,
932 arena);
933 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_request_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t * len)934 UPB_INLINE upb_strview* envoy_config_route_v3_WeightedCluster_ClusterWeight_mutable_request_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t *len) {
935 return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 64), len);
936 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_resize_request_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t len,upb_arena * arena)937 UPB_INLINE upb_strview* envoy_config_route_v3_WeightedCluster_ClusterWeight_resize_request_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t len, upb_arena *arena) {
938 return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(32, 64), len, UPB_SIZE(3, 4), arena);
939 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_add_request_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,upb_strview val,upb_arena * arena)940 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_ClusterWeight_add_request_headers_to_remove(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, upb_strview val, upb_arena *arena) {
941 return _upb_array_append_accessor2(msg, UPB_SIZE(32, 64), UPB_SIZE(3, 4), &val,
942 arena);
943 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_clear(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg)944 UPB_INLINE void envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_clear(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg) { _upb_msg_map_clear(msg, UPB_SIZE(36, 72)); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_set(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,upb_strview key,struct google_protobuf_Any * val,upb_arena * a)945 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_set(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, upb_strview key, struct google_protobuf_Any* val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(36, 72), &key, 0, &val, sizeof(val), a); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_delete(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,upb_strview key)946 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_delete(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(36, 72), &key, 0); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_nextmutable(envoy_config_route_v3_WeightedCluster_ClusterWeight * msg,size_t * iter)947 UPB_INLINE envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry* envoy_config_route_v3_WeightedCluster_ClusterWeight_typed_per_filter_config_nextmutable(envoy_config_route_v3_WeightedCluster_ClusterWeight *msg, size_t* iter) { return (envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry*)_upb_msg_map_next(msg, UPB_SIZE(36, 72), iter); }
948
949 /* envoy.config.route.v3.WeightedCluster.ClusterWeight.TypedPerFilterConfigEntry */
950
envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry_key(const envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry * msg)951 UPB_INLINE upb_strview envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry_key(const envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry *msg) {
952 upb_strview ret;
953 _upb_msg_map_key(msg, &ret, 0);
954 return ret;
955 }
envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry_has_value(const envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry * msg)956 UPB_INLINE bool envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry_has_value(const envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry_value(const envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry * msg)957 UPB_INLINE const struct google_protobuf_Any* envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry_value(const envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry *msg) {
958 struct google_protobuf_Any* ret;
959 _upb_msg_map_value(msg, &ret, sizeof(ret));
960 return ret;
961 }
962
envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry_set_value(envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry * msg,struct google_protobuf_Any * value)963 UPB_INLINE void envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry_set_value(envoy_config_route_v3_WeightedCluster_ClusterWeight_TypedPerFilterConfigEntry *msg, struct google_protobuf_Any* value) {
964 _upb_msg_map_set_value(msg, &value, sizeof(struct google_protobuf_Any*));
965 }
966
967 /* envoy.config.route.v3.RouteMatch */
968
envoy_config_route_v3_RouteMatch_new(upb_arena * arena)969 UPB_INLINE envoy_config_route_v3_RouteMatch *envoy_config_route_v3_RouteMatch_new(upb_arena *arena) {
970 return (envoy_config_route_v3_RouteMatch *)_upb_msg_new(&envoy_config_route_v3_RouteMatch_msginit, arena);
971 }
envoy_config_route_v3_RouteMatch_parse(const char * buf,size_t size,upb_arena * arena)972 UPB_INLINE envoy_config_route_v3_RouteMatch *envoy_config_route_v3_RouteMatch_parse(const char *buf, size_t size,
973 upb_arena *arena) {
974 envoy_config_route_v3_RouteMatch *ret = envoy_config_route_v3_RouteMatch_new(arena);
975 return (ret && upb_decode(buf, size, ret, &envoy_config_route_v3_RouteMatch_msginit, arena)) ? ret : NULL;
976 }
envoy_config_route_v3_RouteMatch_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)977 UPB_INLINE envoy_config_route_v3_RouteMatch *envoy_config_route_v3_RouteMatch_parse_ex(const char *buf, size_t size,
978 upb_arena *arena, int options) {
979 envoy_config_route_v3_RouteMatch *ret = envoy_config_route_v3_RouteMatch_new(arena);
980 return (ret && _upb_decode(buf, size, ret, &envoy_config_route_v3_RouteMatch_msginit, arena, options))
981 ? ret : NULL;
982 }
envoy_config_route_v3_RouteMatch_serialize(const envoy_config_route_v3_RouteMatch * msg,upb_arena * arena,size_t * len)983 UPB_INLINE char *envoy_config_route_v3_RouteMatch_serialize(const envoy_config_route_v3_RouteMatch *msg, upb_arena *arena, size_t *len) {
984 return upb_encode(msg, &envoy_config_route_v3_RouteMatch_msginit, arena, len);
985 }
986
987 typedef enum {
988 envoy_config_route_v3_RouteMatch_path_specifier_prefix = 1,
989 envoy_config_route_v3_RouteMatch_path_specifier_path = 2,
990 envoy_config_route_v3_RouteMatch_path_specifier_safe_regex = 10,
991 envoy_config_route_v3_RouteMatch_path_specifier_connect_matcher = 12,
992 envoy_config_route_v3_RouteMatch_path_specifier_NOT_SET = 0
993 } envoy_config_route_v3_RouteMatch_path_specifier_oneofcases;
envoy_config_route_v3_RouteMatch_path_specifier_case(const envoy_config_route_v3_RouteMatch * msg)994 UPB_INLINE envoy_config_route_v3_RouteMatch_path_specifier_oneofcases envoy_config_route_v3_RouteMatch_path_specifier_case(const envoy_config_route_v3_RouteMatch* msg) { return (envoy_config_route_v3_RouteMatch_path_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(36, 72), int32_t); }
995
envoy_config_route_v3_RouteMatch_has_prefix(const envoy_config_route_v3_RouteMatch * msg)996 UPB_INLINE bool envoy_config_route_v3_RouteMatch_has_prefix(const envoy_config_route_v3_RouteMatch *msg) { return _upb_getoneofcase(msg, UPB_SIZE(36, 72)) == 1; }
envoy_config_route_v3_RouteMatch_prefix(const envoy_config_route_v3_RouteMatch * msg)997 UPB_INLINE upb_strview envoy_config_route_v3_RouteMatch_prefix(const envoy_config_route_v3_RouteMatch *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), UPB_SIZE(36, 72), 1, upb_strview_make("", strlen(""))); }
envoy_config_route_v3_RouteMatch_has_path(const envoy_config_route_v3_RouteMatch * msg)998 UPB_INLINE bool envoy_config_route_v3_RouteMatch_has_path(const envoy_config_route_v3_RouteMatch *msg) { return _upb_getoneofcase(msg, UPB_SIZE(36, 72)) == 2; }
envoy_config_route_v3_RouteMatch_path(const envoy_config_route_v3_RouteMatch * msg)999 UPB_INLINE upb_strview envoy_config_route_v3_RouteMatch_path(const envoy_config_route_v3_RouteMatch *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), UPB_SIZE(36, 72), 2, upb_strview_make("", strlen(""))); }
envoy_config_route_v3_RouteMatch_has_case_sensitive(const envoy_config_route_v3_RouteMatch * msg)1000 UPB_INLINE bool envoy_config_route_v3_RouteMatch_has_case_sensitive(const envoy_config_route_v3_RouteMatch *msg) { return _upb_hasbit(msg, 1); }
envoy_config_route_v3_RouteMatch_case_sensitive(const envoy_config_route_v3_RouteMatch * msg)1001 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_route_v3_RouteMatch_case_sensitive(const envoy_config_route_v3_RouteMatch *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_BoolValue*); }
envoy_config_route_v3_RouteMatch_has_headers(const envoy_config_route_v3_RouteMatch * msg)1002 UPB_INLINE bool envoy_config_route_v3_RouteMatch_has_headers(const envoy_config_route_v3_RouteMatch *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(20, 40)); }
envoy_config_route_v3_RouteMatch_headers(const envoy_config_route_v3_RouteMatch * msg,size_t * len)1003 UPB_INLINE const envoy_config_route_v3_HeaderMatcher* const* envoy_config_route_v3_RouteMatch_headers(const envoy_config_route_v3_RouteMatch *msg, size_t *len) { return (const envoy_config_route_v3_HeaderMatcher* const*)_upb_array_accessor(msg, UPB_SIZE(20, 40), len); }
envoy_config_route_v3_RouteMatch_has_query_parameters(const envoy_config_route_v3_RouteMatch * msg)1004 UPB_INLINE bool envoy_config_route_v3_RouteMatch_has_query_parameters(const envoy_config_route_v3_RouteMatch *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(24, 48)); }
envoy_config_route_v3_RouteMatch_query_parameters(const envoy_config_route_v3_RouteMatch * msg,size_t * len)1005 UPB_INLINE const envoy_config_route_v3_QueryParameterMatcher* const* envoy_config_route_v3_RouteMatch_query_parameters(const envoy_config_route_v3_RouteMatch *msg, size_t *len) { return (const envoy_config_route_v3_QueryParameterMatcher* const*)_upb_array_accessor(msg, UPB_SIZE(24, 48), len); }
envoy_config_route_v3_RouteMatch_has_grpc(const envoy_config_route_v3_RouteMatch * msg)1006 UPB_INLINE bool envoy_config_route_v3_RouteMatch_has_grpc(const envoy_config_route_v3_RouteMatch *msg) { return _upb_hasbit(msg, 2); }
envoy_config_route_v3_RouteMatch_grpc(const envoy_config_route_v3_RouteMatch * msg)1007 UPB_INLINE const envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions* envoy_config_route_v3_RouteMatch_grpc(const envoy_config_route_v3_RouteMatch *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions*); }
envoy_config_route_v3_RouteMatch_has_runtime_fraction(const envoy_config_route_v3_RouteMatch * msg)1008 UPB_INLINE bool envoy_config_route_v3_RouteMatch_has_runtime_fraction(const envoy_config_route_v3_RouteMatch *msg) { return _upb_hasbit(msg, 3); }
envoy_config_route_v3_RouteMatch_runtime_fraction(const envoy_config_route_v3_RouteMatch * msg)1009 UPB_INLINE const struct envoy_config_core_v3_RuntimeFractionalPercent* envoy_config_route_v3_RouteMatch_runtime_fraction(const envoy_config_route_v3_RouteMatch *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_RuntimeFractionalPercent*); }
envoy_config_route_v3_RouteMatch_has_safe_regex(const envoy_config_route_v3_RouteMatch * msg)1010 UPB_INLINE bool envoy_config_route_v3_RouteMatch_has_safe_regex(const envoy_config_route_v3_RouteMatch *msg) { return _upb_getoneofcase(msg, UPB_SIZE(36, 72)) == 10; }
envoy_config_route_v3_RouteMatch_safe_regex(const envoy_config_route_v3_RouteMatch * msg)1011 UPB_INLINE const struct envoy_type_matcher_v3_RegexMatcher* envoy_config_route_v3_RouteMatch_safe_regex(const envoy_config_route_v3_RouteMatch *msg) { return UPB_READ_ONEOF(msg, const struct envoy_type_matcher_v3_RegexMatcher*, UPB_SIZE(28, 56), UPB_SIZE(36, 72), 10, NULL); }
envoy_config_route_v3_RouteMatch_has_tls_context(const envoy_config_route_v3_RouteMatch * msg)1012 UPB_INLINE bool envoy_config_route_v3_RouteMatch_has_tls_context(const envoy_config_route_v3_RouteMatch *msg) { return _upb_hasbit(msg, 4); }
envoy_config_route_v3_RouteMatch_tls_context(const envoy_config_route_v3_RouteMatch * msg)1013 UPB_INLINE const envoy_config_route_v3_RouteMatch_TlsContextMatchOptions* envoy_config_route_v3_RouteMatch_tls_context(const envoy_config_route_v3_RouteMatch *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const envoy_config_route_v3_RouteMatch_TlsContextMatchOptions*); }
envoy_config_route_v3_RouteMatch_has_connect_matcher(const envoy_config_route_v3_RouteMatch * msg)1014 UPB_INLINE bool envoy_config_route_v3_RouteMatch_has_connect_matcher(const envoy_config_route_v3_RouteMatch *msg) { return _upb_getoneofcase(msg, UPB_SIZE(36, 72)) == 12; }
envoy_config_route_v3_RouteMatch_connect_matcher(const envoy_config_route_v3_RouteMatch * msg)1015 UPB_INLINE const envoy_config_route_v3_RouteMatch_ConnectMatcher* envoy_config_route_v3_RouteMatch_connect_matcher(const envoy_config_route_v3_RouteMatch *msg) { return UPB_READ_ONEOF(msg, const envoy_config_route_v3_RouteMatch_ConnectMatcher*, UPB_SIZE(28, 56), UPB_SIZE(36, 72), 12, NULL); }
1016
envoy_config_route_v3_RouteMatch_set_prefix(envoy_config_route_v3_RouteMatch * msg,upb_strview value)1017 UPB_INLINE void envoy_config_route_v3_RouteMatch_set_prefix(envoy_config_route_v3_RouteMatch *msg, upb_strview value) {
1018 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 1);
1019 }
envoy_config_route_v3_RouteMatch_set_path(envoy_config_route_v3_RouteMatch * msg,upb_strview value)1020 UPB_INLINE void envoy_config_route_v3_RouteMatch_set_path(envoy_config_route_v3_RouteMatch *msg, upb_strview value) {
1021 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 2);
1022 }
envoy_config_route_v3_RouteMatch_set_case_sensitive(envoy_config_route_v3_RouteMatch * msg,struct google_protobuf_BoolValue * value)1023 UPB_INLINE void envoy_config_route_v3_RouteMatch_set_case_sensitive(envoy_config_route_v3_RouteMatch *msg, struct google_protobuf_BoolValue* value) {
1024 _upb_sethas(msg, 1);
1025 *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_BoolValue*) = value;
1026 }
envoy_config_route_v3_RouteMatch_mutable_case_sensitive(envoy_config_route_v3_RouteMatch * msg,upb_arena * arena)1027 UPB_INLINE struct google_protobuf_BoolValue* envoy_config_route_v3_RouteMatch_mutable_case_sensitive(envoy_config_route_v3_RouteMatch *msg, upb_arena *arena) {
1028 struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_route_v3_RouteMatch_case_sensitive(msg);
1029 if (sub == NULL) {
1030 sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
1031 if (!sub) return NULL;
1032 envoy_config_route_v3_RouteMatch_set_case_sensitive(msg, sub);
1033 }
1034 return sub;
1035 }
envoy_config_route_v3_RouteMatch_mutable_headers(envoy_config_route_v3_RouteMatch * msg,size_t * len)1036 UPB_INLINE envoy_config_route_v3_HeaderMatcher** envoy_config_route_v3_RouteMatch_mutable_headers(envoy_config_route_v3_RouteMatch *msg, size_t *len) {
1037 return (envoy_config_route_v3_HeaderMatcher**)_upb_array_mutable_accessor(msg, UPB_SIZE(20, 40), len);
1038 }
envoy_config_route_v3_RouteMatch_resize_headers(envoy_config_route_v3_RouteMatch * msg,size_t len,upb_arena * arena)1039 UPB_INLINE envoy_config_route_v3_HeaderMatcher** envoy_config_route_v3_RouteMatch_resize_headers(envoy_config_route_v3_RouteMatch *msg, size_t len, upb_arena *arena) {
1040 return (envoy_config_route_v3_HeaderMatcher**)_upb_array_resize_accessor2(msg, UPB_SIZE(20, 40), len, UPB_SIZE(2, 3), arena);
1041 }
envoy_config_route_v3_RouteMatch_add_headers(envoy_config_route_v3_RouteMatch * msg,upb_arena * arena)1042 UPB_INLINE struct envoy_config_route_v3_HeaderMatcher* envoy_config_route_v3_RouteMatch_add_headers(envoy_config_route_v3_RouteMatch *msg, upb_arena *arena) {
1043 struct envoy_config_route_v3_HeaderMatcher* sub = (struct envoy_config_route_v3_HeaderMatcher*)_upb_msg_new(&envoy_config_route_v3_HeaderMatcher_msginit, arena);
1044 bool ok = _upb_array_append_accessor2(
1045 msg, UPB_SIZE(20, 40), UPB_SIZE(2, 3), &sub, arena);
1046 if (!ok) return NULL;
1047 return sub;
1048 }
envoy_config_route_v3_RouteMatch_mutable_query_parameters(envoy_config_route_v3_RouteMatch * msg,size_t * len)1049 UPB_INLINE envoy_config_route_v3_QueryParameterMatcher** envoy_config_route_v3_RouteMatch_mutable_query_parameters(envoy_config_route_v3_RouteMatch *msg, size_t *len) {
1050 return (envoy_config_route_v3_QueryParameterMatcher**)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 48), len);
1051 }
envoy_config_route_v3_RouteMatch_resize_query_parameters(envoy_config_route_v3_RouteMatch * msg,size_t len,upb_arena * arena)1052 UPB_INLINE envoy_config_route_v3_QueryParameterMatcher** envoy_config_route_v3_RouteMatch_resize_query_parameters(envoy_config_route_v3_RouteMatch *msg, size_t len, upb_arena *arena) {
1053 return (envoy_config_route_v3_QueryParameterMatcher**)_upb_array_resize_accessor2(msg, UPB_SIZE(24, 48), len, UPB_SIZE(2, 3), arena);
1054 }
envoy_config_route_v3_RouteMatch_add_query_parameters(envoy_config_route_v3_RouteMatch * msg,upb_arena * arena)1055 UPB_INLINE struct envoy_config_route_v3_QueryParameterMatcher* envoy_config_route_v3_RouteMatch_add_query_parameters(envoy_config_route_v3_RouteMatch *msg, upb_arena *arena) {
1056 struct envoy_config_route_v3_QueryParameterMatcher* sub = (struct envoy_config_route_v3_QueryParameterMatcher*)_upb_msg_new(&envoy_config_route_v3_QueryParameterMatcher_msginit, arena);
1057 bool ok = _upb_array_append_accessor2(
1058 msg, UPB_SIZE(24, 48), UPB_SIZE(2, 3), &sub, arena);
1059 if (!ok) return NULL;
1060 return sub;
1061 }
envoy_config_route_v3_RouteMatch_set_grpc(envoy_config_route_v3_RouteMatch * msg,envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions * value)1062 UPB_INLINE void envoy_config_route_v3_RouteMatch_set_grpc(envoy_config_route_v3_RouteMatch *msg, envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions* value) {
1063 _upb_sethas(msg, 2);
1064 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions*) = value;
1065 }
envoy_config_route_v3_RouteMatch_mutable_grpc(envoy_config_route_v3_RouteMatch * msg,upb_arena * arena)1066 UPB_INLINE struct envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions* envoy_config_route_v3_RouteMatch_mutable_grpc(envoy_config_route_v3_RouteMatch *msg, upb_arena *arena) {
1067 struct envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions* sub = (struct envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions*)envoy_config_route_v3_RouteMatch_grpc(msg);
1068 if (sub == NULL) {
1069 sub = (struct envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions*)_upb_msg_new(&envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_msginit, arena);
1070 if (!sub) return NULL;
1071 envoy_config_route_v3_RouteMatch_set_grpc(msg, sub);
1072 }
1073 return sub;
1074 }
envoy_config_route_v3_RouteMatch_set_runtime_fraction(envoy_config_route_v3_RouteMatch * msg,struct envoy_config_core_v3_RuntimeFractionalPercent * value)1075 UPB_INLINE void envoy_config_route_v3_RouteMatch_set_runtime_fraction(envoy_config_route_v3_RouteMatch *msg, struct envoy_config_core_v3_RuntimeFractionalPercent* value) {
1076 _upb_sethas(msg, 3);
1077 *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_RuntimeFractionalPercent*) = value;
1078 }
envoy_config_route_v3_RouteMatch_mutable_runtime_fraction(envoy_config_route_v3_RouteMatch * msg,upb_arena * arena)1079 UPB_INLINE struct envoy_config_core_v3_RuntimeFractionalPercent* envoy_config_route_v3_RouteMatch_mutable_runtime_fraction(envoy_config_route_v3_RouteMatch *msg, upb_arena *arena) {
1080 struct envoy_config_core_v3_RuntimeFractionalPercent* sub = (struct envoy_config_core_v3_RuntimeFractionalPercent*)envoy_config_route_v3_RouteMatch_runtime_fraction(msg);
1081 if (sub == NULL) {
1082 sub = (struct envoy_config_core_v3_RuntimeFractionalPercent*)_upb_msg_new(&envoy_config_core_v3_RuntimeFractionalPercent_msginit, arena);
1083 if (!sub) return NULL;
1084 envoy_config_route_v3_RouteMatch_set_runtime_fraction(msg, sub);
1085 }
1086 return sub;
1087 }
envoy_config_route_v3_RouteMatch_set_safe_regex(envoy_config_route_v3_RouteMatch * msg,struct envoy_type_matcher_v3_RegexMatcher * value)1088 UPB_INLINE void envoy_config_route_v3_RouteMatch_set_safe_regex(envoy_config_route_v3_RouteMatch *msg, struct envoy_type_matcher_v3_RegexMatcher* value) {
1089 UPB_WRITE_ONEOF(msg, struct envoy_type_matcher_v3_RegexMatcher*, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 10);
1090 }
envoy_config_route_v3_RouteMatch_mutable_safe_regex(envoy_config_route_v3_RouteMatch * msg,upb_arena * arena)1091 UPB_INLINE struct envoy_type_matcher_v3_RegexMatcher* envoy_config_route_v3_RouteMatch_mutable_safe_regex(envoy_config_route_v3_RouteMatch *msg, upb_arena *arena) {
1092 struct envoy_type_matcher_v3_RegexMatcher* sub = (struct envoy_type_matcher_v3_RegexMatcher*)envoy_config_route_v3_RouteMatch_safe_regex(msg);
1093 if (sub == NULL) {
1094 sub = (struct envoy_type_matcher_v3_RegexMatcher*)_upb_msg_new(&envoy_type_matcher_v3_RegexMatcher_msginit, arena);
1095 if (!sub) return NULL;
1096 envoy_config_route_v3_RouteMatch_set_safe_regex(msg, sub);
1097 }
1098 return sub;
1099 }
envoy_config_route_v3_RouteMatch_set_tls_context(envoy_config_route_v3_RouteMatch * msg,envoy_config_route_v3_RouteMatch_TlsContextMatchOptions * value)1100 UPB_INLINE void envoy_config_route_v3_RouteMatch_set_tls_context(envoy_config_route_v3_RouteMatch *msg, envoy_config_route_v3_RouteMatch_TlsContextMatchOptions* value) {
1101 _upb_sethas(msg, 4);
1102 *UPB_PTR_AT(msg, UPB_SIZE(16, 32), envoy_config_route_v3_RouteMatch_TlsContextMatchOptions*) = value;
1103 }
envoy_config_route_v3_RouteMatch_mutable_tls_context(envoy_config_route_v3_RouteMatch * msg,upb_arena * arena)1104 UPB_INLINE struct envoy_config_route_v3_RouteMatch_TlsContextMatchOptions* envoy_config_route_v3_RouteMatch_mutable_tls_context(envoy_config_route_v3_RouteMatch *msg, upb_arena *arena) {
1105 struct envoy_config_route_v3_RouteMatch_TlsContextMatchOptions* sub = (struct envoy_config_route_v3_RouteMatch_TlsContextMatchOptions*)envoy_config_route_v3_RouteMatch_tls_context(msg);
1106 if (sub == NULL) {
1107 sub = (struct envoy_config_route_v3_RouteMatch_TlsContextMatchOptions*)_upb_msg_new(&envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_msginit, arena);
1108 if (!sub) return NULL;
1109 envoy_config_route_v3_RouteMatch_set_tls_context(msg, sub);
1110 }
1111 return sub;
1112 }
envoy_config_route_v3_RouteMatch_set_connect_matcher(envoy_config_route_v3_RouteMatch * msg,envoy_config_route_v3_RouteMatch_ConnectMatcher * value)1113 UPB_INLINE void envoy_config_route_v3_RouteMatch_set_connect_matcher(envoy_config_route_v3_RouteMatch *msg, envoy_config_route_v3_RouteMatch_ConnectMatcher* value) {
1114 UPB_WRITE_ONEOF(msg, envoy_config_route_v3_RouteMatch_ConnectMatcher*, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 12);
1115 }
envoy_config_route_v3_RouteMatch_mutable_connect_matcher(envoy_config_route_v3_RouteMatch * msg,upb_arena * arena)1116 UPB_INLINE struct envoy_config_route_v3_RouteMatch_ConnectMatcher* envoy_config_route_v3_RouteMatch_mutable_connect_matcher(envoy_config_route_v3_RouteMatch *msg, upb_arena *arena) {
1117 struct envoy_config_route_v3_RouteMatch_ConnectMatcher* sub = (struct envoy_config_route_v3_RouteMatch_ConnectMatcher*)envoy_config_route_v3_RouteMatch_connect_matcher(msg);
1118 if (sub == NULL) {
1119 sub = (struct envoy_config_route_v3_RouteMatch_ConnectMatcher*)_upb_msg_new(&envoy_config_route_v3_RouteMatch_ConnectMatcher_msginit, arena);
1120 if (!sub) return NULL;
1121 envoy_config_route_v3_RouteMatch_set_connect_matcher(msg, sub);
1122 }
1123 return sub;
1124 }
1125
1126 /* envoy.config.route.v3.RouteMatch.GrpcRouteMatchOptions */
1127
envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_new(upb_arena * arena)1128 UPB_INLINE envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions *envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_new(upb_arena *arena) {
1129 return (envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions *)_upb_msg_new(&envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_msginit, arena);
1130 }
envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_parse(const char * buf,size_t size,upb_arena * arena)1131 UPB_INLINE envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions *envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_parse(const char *buf, size_t size,
1132 upb_arena *arena) {
1133 envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions *ret = envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_new(arena);
1134 return (ret && upb_decode(buf, size, ret, &envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_msginit, arena)) ? ret : NULL;
1135 }
envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1136 UPB_INLINE envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions *envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_parse_ex(const char *buf, size_t size,
1137 upb_arena *arena, int options) {
1138 envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions *ret = envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_new(arena);
1139 return (ret && _upb_decode(buf, size, ret, &envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_msginit, arena, options))
1140 ? ret : NULL;
1141 }
envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_serialize(const envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions * msg,upb_arena * arena,size_t * len)1142 UPB_INLINE char *envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_serialize(const envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions *msg, upb_arena *arena, size_t *len) {
1143 return upb_encode(msg, &envoy_config_route_v3_RouteMatch_GrpcRouteMatchOptions_msginit, arena, len);
1144 }
1145
1146
1147
1148 /* envoy.config.route.v3.RouteMatch.TlsContextMatchOptions */
1149
envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_new(upb_arena * arena)1150 UPB_INLINE envoy_config_route_v3_RouteMatch_TlsContextMatchOptions *envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_new(upb_arena *arena) {
1151 return (envoy_config_route_v3_RouteMatch_TlsContextMatchOptions *)_upb_msg_new(&envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_msginit, arena);
1152 }
envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_parse(const char * buf,size_t size,upb_arena * arena)1153 UPB_INLINE envoy_config_route_v3_RouteMatch_TlsContextMatchOptions *envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_parse(const char *buf, size_t size,
1154 upb_arena *arena) {
1155 envoy_config_route_v3_RouteMatch_TlsContextMatchOptions *ret = envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_new(arena);
1156 return (ret && upb_decode(buf, size, ret, &envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_msginit, arena)) ? ret : NULL;
1157 }
envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1158 UPB_INLINE envoy_config_route_v3_RouteMatch_TlsContextMatchOptions *envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_parse_ex(const char *buf, size_t size,
1159 upb_arena *arena, int options) {
1160 envoy_config_route_v3_RouteMatch_TlsContextMatchOptions *ret = envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_new(arena);
1161 return (ret && _upb_decode(buf, size, ret, &envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_msginit, arena, options))
1162 ? ret : NULL;
1163 }
envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_serialize(const envoy_config_route_v3_RouteMatch_TlsContextMatchOptions * msg,upb_arena * arena,size_t * len)1164 UPB_INLINE char *envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_serialize(const envoy_config_route_v3_RouteMatch_TlsContextMatchOptions *msg, upb_arena *arena, size_t *len) {
1165 return upb_encode(msg, &envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_msginit, arena, len);
1166 }
1167
envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_has_presented(const envoy_config_route_v3_RouteMatch_TlsContextMatchOptions * msg)1168 UPB_INLINE bool envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_has_presented(const envoy_config_route_v3_RouteMatch_TlsContextMatchOptions *msg) { return _upb_hasbit(msg, 1); }
envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_presented(const envoy_config_route_v3_RouteMatch_TlsContextMatchOptions * msg)1169 UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_presented(const envoy_config_route_v3_RouteMatch_TlsContextMatchOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_BoolValue*); }
envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_has_validated(const envoy_config_route_v3_RouteMatch_TlsContextMatchOptions * msg)1170 UPB_INLINE bool envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_has_validated(const envoy_config_route_v3_RouteMatch_TlsContextMatchOptions *msg) { return _upb_hasbit(msg, 2); }
envoy_config_route_v3_RouteMatch_TlsContextMatchOptions_validated(const envoy_config_route_v3_RouteMatch_TlsContextMatchOptions * msg)1171