Class RedirectPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
io.envoyproxy.envoy.extensions.http.custom_response.redirect_policy.v3.RedirectPolicy.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RedirectPolicyOrBuilder,Cloneable
- Enclosing class:
- RedirectPolicy
public static final class RedirectPolicy.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
implements RedirectPolicyOrBuilder
Custom response policy to internally redirect the original response to a different upstream. [#next-free-field: 7]Protobuf type
envoy.extensions.http.custom_response.redirect_policy.v3.RedirectPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllRequestHeadersToAdd(Iterable<? extends HeaderValueOption> values) HTTP headers to add to the request before it is internally redirected.addAllResponseHeadersToAdd(Iterable<? extends HeaderValueOption> values) HTTP headers to add to the response.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addRequestHeadersToAdd(int index, HeaderValueOption value) HTTP headers to add to the request before it is internally redirected.addRequestHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) HTTP headers to add to the request before it is internally redirected.HTTP headers to add to the request before it is internally redirected.addRequestHeadersToAdd(HeaderValueOption.Builder builderForValue) HTTP headers to add to the request before it is internally redirected.HTTP headers to add to the request before it is internally redirected.addRequestHeadersToAddBuilder(int index) HTTP headers to add to the request before it is internally redirected.addResponseHeadersToAdd(int index, HeaderValueOption value) HTTP headers to add to the response.addResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) HTTP headers to add to the response.HTTP headers to add to the response.addResponseHeadersToAdd(HeaderValueOption.Builder builderForValue) HTTP headers to add to the response.HTTP headers to add to the response.addResponseHeadersToAddBuilder(int index) HTTP headers to add to the response.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Custom action to modify request headers before selection of the redirected route.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Specify elements of the redirect url individually.HTTP headers to add to the request before it is internally redirected.HTTP headers to add to the response.The new response status code if specified.clearUri()The Http URI to redirect the original request to, to get the custom response.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorCustom action to modify request headers before selection of the redirected route.Custom action to modify request headers before selection of the redirected route.Custom action to modify request headers before selection of the redirected route.Specify elements of the redirect url individually.Specify elements of the redirect url individually.Specify elements of the redirect url individually.getRequestHeadersToAdd(int index) HTTP headers to add to the request before it is internally redirected.getRequestHeadersToAddBuilder(int index) HTTP headers to add to the request before it is internally redirected.HTTP headers to add to the request before it is internally redirected.intHTTP headers to add to the request before it is internally redirected.HTTP headers to add to the request before it is internally redirected.getRequestHeadersToAddOrBuilder(int index) HTTP headers to add to the request before it is internally redirected.List<? extends HeaderValueOptionOrBuilder>HTTP headers to add to the request before it is internally redirected.getResponseHeadersToAdd(int index) HTTP headers to add to the response.getResponseHeadersToAddBuilder(int index) HTTP headers to add to the response.HTTP headers to add to the response.intHTTP headers to add to the response.HTTP headers to add to the response.getResponseHeadersToAddOrBuilder(int index) HTTP headers to add to the response.List<? extends HeaderValueOptionOrBuilder>HTTP headers to add to the response.com.google.protobuf.UInt32ValueThe new response status code if specified.com.google.protobuf.UInt32Value.BuilderThe new response status code if specified.com.google.protobuf.UInt32ValueOrBuilderThe new response status code if specified.getUri()The Http URI to redirect the original request to, to get the custom response.com.google.protobuf.ByteStringThe Http URI to redirect the original request to, to get the custom response.booleanCustom action to modify request headers before selection of the redirected route.booleanSpecify elements of the redirect url individually.booleanThe new response status code if specified.booleanhasUri()The Http URI to redirect the original request to, to get the custom response.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RedirectPolicy other) Custom action to modify request headers before selection of the redirected route.Specify elements of the redirect url individually.mergeStatusCode(com.google.protobuf.UInt32Value value) The new response status code if specified.final RedirectPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeRequestHeadersToAdd(int index) HTTP headers to add to the request before it is internally redirected.removeResponseHeadersToAdd(int index) HTTP headers to add to the response.Custom action to modify request headers before selection of the redirected route.setModifyRequestHeadersAction(TypedExtensionConfig.Builder builderForValue) Custom action to modify request headers before selection of the redirected route.setRedirectAction(RedirectAction value) Specify elements of the redirect url individually.setRedirectAction(RedirectAction.Builder builderForValue) Specify elements of the redirect url individually.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestHeadersToAdd(int index, HeaderValueOption value) HTTP headers to add to the request before it is internally redirected.setRequestHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) HTTP headers to add to the request before it is internally redirected.setResponseHeadersToAdd(int index, HeaderValueOption value) HTTP headers to add to the response.setResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) HTTP headers to add to the response.setStatusCode(com.google.protobuf.UInt32Value value) The new response status code if specified.setStatusCode(com.google.protobuf.UInt32Value.Builder builderForValue) The new response status code if specified.final RedirectPolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The Http URI to redirect the original request to, to get the custom response.setUriBytes(com.google.protobuf.ByteString value) The Http URI to redirect the original request to, to get the custom response.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
setField
public RedirectPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
setRepeatedField
public RedirectPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
addRepeatedField
public RedirectPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RedirectPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
mergeFrom
public RedirectPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RedirectPolicy.Builder>- Throws:
IOException
-
getRedirectActionSpecifierCase
- Specified by:
getRedirectActionSpecifierCasein interfaceRedirectPolicyOrBuilder
-
clearRedirectActionSpecifier
-
hasUri
public boolean hasUri()The Http URI to redirect the original request to, to get the custom response. It should be a full FQDN with protocol, host and path. Example: .. code-block:: yaml uri: https://www.mydomain.com/path/to/404.txtstring uri = 1 [(.validate.rules) = { ... }- Specified by:
hasUriin interfaceRedirectPolicyOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
The Http URI to redirect the original request to, to get the custom response. It should be a full FQDN with protocol, host and path. Example: .. code-block:: yaml uri: https://www.mydomain.com/path/to/404.txtstring uri = 1 [(.validate.rules) = { ... }- Specified by:
getUriin interfaceRedirectPolicyOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()The Http URI to redirect the original request to, to get the custom response. It should be a full FQDN with protocol, host and path. Example: .. code-block:: yaml uri: https://www.mydomain.com/path/to/404.txtstring uri = 1 [(.validate.rules) = { ... }- Specified by:
getUriBytesin interfaceRedirectPolicyOrBuilder- Returns:
- The bytes for uri.
-
setUri
The Http URI to redirect the original request to, to get the custom response. It should be a full FQDN with protocol, host and path. Example: .. code-block:: yaml uri: https://www.mydomain.com/path/to/404.txtstring uri = 1 [(.validate.rules) = { ... }- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
The Http URI to redirect the original request to, to get the custom response. It should be a full FQDN with protocol, host and path. Example: .. code-block:: yaml uri: https://www.mydomain.com/path/to/404.txtstring uri = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setUriBytes
The Http URI to redirect the original request to, to get the custom response. It should be a full FQDN with protocol, host and path. Example: .. code-block:: yaml uri: https://www.mydomain.com/path/to/404.txtstring uri = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
hasRedirectAction
public boolean hasRedirectAction()Specify elements of the redirect url individually. Note: Do not specify the ``response_code`` field in ``redirect_action``, use ``status_code`` instead. The following fields in ``redirect_action`` are currently not supported, and specifying them will cause the config to be rejected: - ``prefix_rewrite`` - ``regex_rewrite``
.envoy.config.route.v3.RedirectAction redirect_action = 2;- Specified by:
hasRedirectActionin interfaceRedirectPolicyOrBuilder- Returns:
- Whether the redirectAction field is set.
-
getRedirectAction
Specify elements of the redirect url individually. Note: Do not specify the ``response_code`` field in ``redirect_action``, use ``status_code`` instead. The following fields in ``redirect_action`` are currently not supported, and specifying them will cause the config to be rejected: - ``prefix_rewrite`` - ``regex_rewrite``
.envoy.config.route.v3.RedirectAction redirect_action = 2;- Specified by:
getRedirectActionin interfaceRedirectPolicyOrBuilder- Returns:
- The redirectAction.
-
setRedirectAction
Specify elements of the redirect url individually. Note: Do not specify the ``response_code`` field in ``redirect_action``, use ``status_code`` instead. The following fields in ``redirect_action`` are currently not supported, and specifying them will cause the config to be rejected: - ``prefix_rewrite`` - ``regex_rewrite``
.envoy.config.route.v3.RedirectAction redirect_action = 2; -
setRedirectAction
Specify elements of the redirect url individually. Note: Do not specify the ``response_code`` field in ``redirect_action``, use ``status_code`` instead. The following fields in ``redirect_action`` are currently not supported, and specifying them will cause the config to be rejected: - ``prefix_rewrite`` - ``regex_rewrite``
.envoy.config.route.v3.RedirectAction redirect_action = 2; -
mergeRedirectAction
Specify elements of the redirect url individually. Note: Do not specify the ``response_code`` field in ``redirect_action``, use ``status_code`` instead. The following fields in ``redirect_action`` are currently not supported, and specifying them will cause the config to be rejected: - ``prefix_rewrite`` - ``regex_rewrite``
.envoy.config.route.v3.RedirectAction redirect_action = 2; -
clearRedirectAction
Specify elements of the redirect url individually. Note: Do not specify the ``response_code`` field in ``redirect_action``, use ``status_code`` instead. The following fields in ``redirect_action`` are currently not supported, and specifying them will cause the config to be rejected: - ``prefix_rewrite`` - ``regex_rewrite``
.envoy.config.route.v3.RedirectAction redirect_action = 2; -
getRedirectActionBuilder
Specify elements of the redirect url individually. Note: Do not specify the ``response_code`` field in ``redirect_action``, use ``status_code`` instead. The following fields in ``redirect_action`` are currently not supported, and specifying them will cause the config to be rejected: - ``prefix_rewrite`` - ``regex_rewrite``
.envoy.config.route.v3.RedirectAction redirect_action = 2; -
getRedirectActionOrBuilder
Specify elements of the redirect url individually. Note: Do not specify the ``response_code`` field in ``redirect_action``, use ``status_code`` instead. The following fields in ``redirect_action`` are currently not supported, and specifying them will cause the config to be rejected: - ``prefix_rewrite`` - ``regex_rewrite``
.envoy.config.route.v3.RedirectAction redirect_action = 2;- Specified by:
getRedirectActionOrBuilderin interfaceRedirectPolicyOrBuilder
-
hasStatusCode
public boolean hasStatusCode()The new response status code if specified. This is used to override the status code of the response from the new upstream if it is not an error status.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }- Specified by:
hasStatusCodein interfaceRedirectPolicyOrBuilder- Returns:
- Whether the statusCode field is set.
-
getStatusCode
public com.google.protobuf.UInt32Value getStatusCode()The new response status code if specified. This is used to override the status code of the response from the new upstream if it is not an error status.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }- Specified by:
getStatusCodein interfaceRedirectPolicyOrBuilder- Returns:
- The statusCode.
-
setStatusCode
The new response status code if specified. This is used to override the status code of the response from the new upstream if it is not an error status.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... } -
setStatusCode
public RedirectPolicy.Builder setStatusCode(com.google.protobuf.UInt32Value.Builder builderForValue) The new response status code if specified. This is used to override the status code of the response from the new upstream if it is not an error status.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... } -
mergeStatusCode
The new response status code if specified. This is used to override the status code of the response from the new upstream if it is not an error status.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... } -
clearStatusCode
The new response status code if specified. This is used to override the status code of the response from the new upstream if it is not an error status.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... } -
getStatusCodeBuilder
public com.google.protobuf.UInt32Value.Builder getStatusCodeBuilder()The new response status code if specified. This is used to override the status code of the response from the new upstream if it is not an error status.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... } -
getStatusCodeOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getStatusCodeOrBuilder()The new response status code if specified. This is used to override the status code of the response from the new upstream if it is not an error status.
.google.protobuf.UInt32Value status_code = 3 [(.validate.rules) = { ... }- Specified by:
getStatusCodeOrBuilderin interfaceRedirectPolicyOrBuilder
-
getResponseHeadersToAddList
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddListin interfaceRedirectPolicyOrBuilder
-
getResponseHeadersToAddCount
public int getResponseHeadersToAddCount()HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddCountin interfaceRedirectPolicyOrBuilder
-
getResponseHeadersToAdd
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddin interfaceRedirectPolicyOrBuilder
-
setResponseHeadersToAdd
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
setResponseHeadersToAdd
public RedirectPolicy.Builder setResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
addResponseHeadersToAdd
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
addResponseHeadersToAdd
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
addResponseHeadersToAdd
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
addResponseHeadersToAdd
public RedirectPolicy.Builder addResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
addAllResponseHeadersToAdd
public RedirectPolicy.Builder addAllResponseHeadersToAdd(Iterable<? extends HeaderValueOption> values) HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
clearResponseHeadersToAdd
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
removeResponseHeadersToAdd
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
getResponseHeadersToAddBuilder
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
getResponseHeadersToAddOrBuilder
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddOrBuilderin interfaceRedirectPolicyOrBuilder
-
getResponseHeadersToAddOrBuilderList
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddOrBuilderListin interfaceRedirectPolicyOrBuilder
-
addResponseHeadersToAddBuilder
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
addResponseHeadersToAddBuilder
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
getResponseHeadersToAddBuilderList
HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... } -
getRequestHeadersToAddList
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddListin interfaceRedirectPolicyOrBuilder
-
getRequestHeadersToAddCount
public int getRequestHeadersToAddCount()HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddCountin interfaceRedirectPolicyOrBuilder
-
getRequestHeadersToAdd
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddin interfaceRedirectPolicyOrBuilder
-
setRequestHeadersToAdd
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
setRequestHeadersToAdd
public RedirectPolicy.Builder setRequestHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
addRequestHeadersToAdd
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
addRequestHeadersToAdd
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
addRequestHeadersToAdd
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
addRequestHeadersToAdd
public RedirectPolicy.Builder addRequestHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
addAllRequestHeadersToAdd
public RedirectPolicy.Builder addAllRequestHeadersToAdd(Iterable<? extends HeaderValueOption> values) HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
clearRequestHeadersToAdd
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
removeRequestHeadersToAdd
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
getRequestHeadersToAddBuilder
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
getRequestHeadersToAddOrBuilder
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddOrBuilderin interfaceRedirectPolicyOrBuilder
-
getRequestHeadersToAddOrBuilderList
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddOrBuilderListin interfaceRedirectPolicyOrBuilder
-
addRequestHeadersToAddBuilder
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
addRequestHeadersToAddBuilder
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
getRequestHeadersToAddBuilderList
HTTP headers to add to the request before it is internally redirected.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 5 [(.validate.rules) = { ... } -
hasModifyRequestHeadersAction
public boolean hasModifyRequestHeadersAction()Custom action to modify request headers before selection of the redirected route. [#comment: TODO(pradeepcrao) add an extension category.]
.envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6;- Specified by:
hasModifyRequestHeadersActionin interfaceRedirectPolicyOrBuilder- Returns:
- Whether the modifyRequestHeadersAction field is set.
-
getModifyRequestHeadersAction
Custom action to modify request headers before selection of the redirected route. [#comment: TODO(pradeepcrao) add an extension category.]
.envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6;- Specified by:
getModifyRequestHeadersActionin interfaceRedirectPolicyOrBuilder- Returns:
- The modifyRequestHeadersAction.
-
setModifyRequestHeadersAction
Custom action to modify request headers before selection of the redirected route. [#comment: TODO(pradeepcrao) add an extension category.]
.envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6; -
setModifyRequestHeadersAction
public RedirectPolicy.Builder setModifyRequestHeadersAction(TypedExtensionConfig.Builder builderForValue) Custom action to modify request headers before selection of the redirected route. [#comment: TODO(pradeepcrao) add an extension category.]
.envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6; -
mergeModifyRequestHeadersAction
Custom action to modify request headers before selection of the redirected route. [#comment: TODO(pradeepcrao) add an extension category.]
.envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6; -
clearModifyRequestHeadersAction
Custom action to modify request headers before selection of the redirected route. [#comment: TODO(pradeepcrao) add an extension category.]
.envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6; -
getModifyRequestHeadersActionBuilder
Custom action to modify request headers before selection of the redirected route. [#comment: TODO(pradeepcrao) add an extension category.]
.envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6; -
getModifyRequestHeadersActionOrBuilder
Custom action to modify request headers before selection of the redirected route. [#comment: TODO(pradeepcrao) add an extension category.]
.envoy.config.core.v3.TypedExtensionConfig modify_request_headers_action = 6;- Specified by:
getModifyRequestHeadersActionOrBuilderin interfaceRedirectPolicyOrBuilder
-
setUnknownFields
public final RedirectPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
mergeUnknownFields
public final RedirectPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-