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