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