Class RedirectPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.extensions.http.custom_response.redirect_policy.v3.RedirectPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RedirectPolicy.BuilderaddAllRequestHeadersToAdd(Iterable<? extends HeaderValueOption> values)HTTP headers to add to the request before it is internally redirected.RedirectPolicy.BuilderaddAllResponseHeadersToAdd(Iterable<? extends HeaderValueOption> values)HTTP headers to add to the response.RedirectPolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RedirectPolicy.BuilderaddRequestHeadersToAdd(int index, HeaderValueOption value)HTTP headers to add to the request before it is internally redirected.RedirectPolicy.BuilderaddRequestHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)HTTP headers to add to the request before it is internally redirected.RedirectPolicy.BuilderaddRequestHeadersToAdd(HeaderValueOption value)HTTP headers to add to the request before it is internally redirected.RedirectPolicy.BuilderaddRequestHeadersToAdd(HeaderValueOption.Builder builderForValue)HTTP headers to add to the request before it is internally redirected.HeaderValueOption.BuilderaddRequestHeadersToAddBuilder()HTTP headers to add to the request before it is internally redirected.HeaderValueOption.BuilderaddRequestHeadersToAddBuilder(int index)HTTP headers to add to the request before it is internally redirected.RedirectPolicy.BuilderaddResponseHeadersToAdd(int index, HeaderValueOption value)HTTP headers to add to the response.RedirectPolicy.BuilderaddResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)HTTP headers to add to the response.RedirectPolicy.BuilderaddResponseHeadersToAdd(HeaderValueOption value)HTTP headers to add to the response.RedirectPolicy.BuilderaddResponseHeadersToAdd(HeaderValueOption.Builder builderForValue)HTTP headers to add to the response.HeaderValueOption.BuilderaddResponseHeadersToAddBuilder()HTTP headers to add to the response.HeaderValueOption.BuilderaddResponseHeadersToAddBuilder(int index)HTTP headers to add to the response.RedirectPolicybuild()RedirectPolicybuildPartial()RedirectPolicy.Builderclear()RedirectPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RedirectPolicy.BuilderclearModifyRequestHeadersAction()Custom action to modify request headers before selection of the redirected route.RedirectPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RedirectPolicy.BuilderclearRedirectAction()Specify elements of the redirect url individually.RedirectPolicy.BuilderclearRedirectActionSpecifier()RedirectPolicy.BuilderclearRequestHeadersToAdd()HTTP headers to add to the request before it is internally redirected.RedirectPolicy.BuilderclearResponseHeadersToAdd()HTTP headers to add to the response.RedirectPolicy.BuilderclearStatusCode()The new response status code if specified.RedirectPolicy.BuilderclearUri()The Http URI to redirect the original request to, to get the custom response.RedirectPolicy.Builderclone()RedirectPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()TypedExtensionConfiggetModifyRequestHeadersAction()Custom action to modify request headers before selection of the redirected route.TypedExtensionConfig.BuildergetModifyRequestHeadersActionBuilder()Custom action to modify request headers before selection of the redirected route.TypedExtensionConfigOrBuildergetModifyRequestHeadersActionOrBuilder()Custom action to modify request headers before selection of the redirected route.RedirectActiongetRedirectAction()Specify elements of the redirect url individually.RedirectAction.BuildergetRedirectActionBuilder()Specify elements of the redirect url individually.RedirectActionOrBuildergetRedirectActionOrBuilder()Specify elements of the redirect url individually.RedirectPolicy.RedirectActionSpecifierCasegetRedirectActionSpecifierCase()HeaderValueOptiongetRequestHeadersToAdd(int index)HTTP headers to add to the request before it is internally redirected.HeaderValueOption.BuildergetRequestHeadersToAddBuilder(int index)HTTP headers to add to the request before it is internally redirected.List<HeaderValueOption.Builder>getRequestHeadersToAddBuilderList()HTTP headers to add to the request before it is internally redirected.intgetRequestHeadersToAddCount()HTTP headers to add to the request before it is internally redirected.List<HeaderValueOption>getRequestHeadersToAddList()HTTP headers to add to the request before it is internally redirected.HeaderValueOptionOrBuildergetRequestHeadersToAddOrBuilder(int index)HTTP headers to add to the request before it is internally redirected.List<? extends HeaderValueOptionOrBuilder>getRequestHeadersToAddOrBuilderList()HTTP headers to add to the request before it is internally redirected.HeaderValueOptiongetResponseHeadersToAdd(int index)HTTP headers to add to the response.HeaderValueOption.BuildergetResponseHeadersToAddBuilder(int index)HTTP headers to add to the response.List<HeaderValueOption.Builder>getResponseHeadersToAddBuilderList()HTTP headers to add to the response.intgetResponseHeadersToAddCount()HTTP headers to add to the response.List<HeaderValueOption>getResponseHeadersToAddList()HTTP headers to add to the response.HeaderValueOptionOrBuildergetResponseHeadersToAddOrBuilder(int index)HTTP headers to add to the response.List<? extends HeaderValueOptionOrBuilder>getResponseHeadersToAddOrBuilderList()HTTP headers to add to the response.com.google.protobuf.UInt32ValuegetStatusCode()The new response status code if specified.com.google.protobuf.UInt32Value.BuildergetStatusCodeBuilder()The new response status code if specified.com.google.protobuf.UInt32ValueOrBuildergetStatusCodeOrBuilder()The new response status code if specified.StringgetUri()The Http URI to redirect the original request to, to get the custom response.com.google.protobuf.ByteStringgetUriBytes()The Http URI to redirect the original request to, to get the custom response.booleanhasModifyRequestHeadersAction()Custom action to modify request headers before selection of the redirected route.booleanhasRedirectAction()Specify elements of the redirect url individually.booleanhasStatusCode()The 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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RedirectPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RedirectPolicy.BuildermergeFrom(com.google.protobuf.Message other)RedirectPolicy.BuildermergeFrom(RedirectPolicy other)RedirectPolicy.BuildermergeModifyRequestHeadersAction(TypedExtensionConfig value)Custom action to modify request headers before selection of the redirected route.RedirectPolicy.BuildermergeRedirectAction(RedirectAction value)Specify elements of the redirect url individually.RedirectPolicy.BuildermergeStatusCode(com.google.protobuf.UInt32Value value)The new response status code if specified.RedirectPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RedirectPolicy.BuilderremoveRequestHeadersToAdd(int index)HTTP headers to add to the request before it is internally redirected.RedirectPolicy.BuilderremoveResponseHeadersToAdd(int index)HTTP headers to add to the response.RedirectPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RedirectPolicy.BuildersetModifyRequestHeadersAction(TypedExtensionConfig value)Custom action to modify request headers before selection of the redirected route.RedirectPolicy.BuildersetModifyRequestHeadersAction(TypedExtensionConfig.Builder builderForValue)Custom action to modify request headers before selection of the redirected route.RedirectPolicy.BuildersetRedirectAction(RedirectAction value)Specify elements of the redirect url individually.RedirectPolicy.BuildersetRedirectAction(RedirectAction.Builder builderForValue)Specify elements of the redirect url individually.RedirectPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RedirectPolicy.BuildersetRequestHeadersToAdd(int index, HeaderValueOption value)HTTP headers to add to the request before it is internally redirected.RedirectPolicy.BuildersetRequestHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)HTTP headers to add to the request before it is internally redirected.RedirectPolicy.BuildersetResponseHeadersToAdd(int index, HeaderValueOption value)HTTP headers to add to the response.RedirectPolicy.BuildersetResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue)HTTP headers to add to the response.RedirectPolicy.BuildersetStatusCode(com.google.protobuf.UInt32Value value)The new response status code if specified.RedirectPolicy.BuildersetStatusCode(com.google.protobuf.UInt32Value.Builder builderForValue)The new response status code if specified.RedirectPolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RedirectPolicy.BuildersetUri(String value)The Http URI to redirect the original request to, to get the custom response.RedirectPolicy.BuildersetUriBytes(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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public RedirectPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RedirectPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RedirectPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RedirectPolicy.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
public RedirectPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedirectPolicy.Builder>
-
clearOneof
public RedirectPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public RedirectPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RedirectPolicy.Builder>
-
mergeFrom
public RedirectPolicy.Builder mergeFrom(RedirectPolicy other)
-
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
public RedirectPolicy.RedirectActionSpecifierCase getRedirectActionSpecifierCase()
- Specified by:
getRedirectActionSpecifierCasein interfaceRedirectPolicyOrBuilder
-
clearRedirectActionSpecifier
public RedirectPolicy.Builder 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
public String 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
public RedirectPolicy.Builder setUri(String value)
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
public RedirectPolicy.Builder 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
public RedirectPolicy.Builder setUriBytes(com.google.protobuf.ByteString value)
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
public RedirectAction 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
public RedirectPolicy.Builder setRedirectAction(RedirectAction value)
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
public RedirectPolicy.Builder setRedirectAction(RedirectAction.Builder builderForValue)
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
public RedirectPolicy.Builder mergeRedirectAction(RedirectAction value)
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
public RedirectPolicy.Builder 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
public RedirectAction.Builder 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
public RedirectActionOrBuilder 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
public RedirectPolicy.Builder setStatusCode(com.google.protobuf.UInt32Value value)
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
public RedirectPolicy.Builder mergeStatusCode(com.google.protobuf.UInt32Value value)
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
public RedirectPolicy.Builder 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
public List<HeaderValueOption> 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
public HeaderValueOption getResponseHeadersToAdd(int index)
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
public RedirectPolicy.Builder setResponseHeadersToAdd(int index, HeaderValueOption value)
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
public RedirectPolicy.Builder addResponseHeadersToAdd(HeaderValueOption value)
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 value)
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(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
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
public RedirectPolicy.Builder 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
public RedirectPolicy.Builder removeResponseHeadersToAdd(int index)
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
public HeaderValueOption.Builder getResponseHeadersToAddBuilder(int index)
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
public HeaderValueOptionOrBuilder getResponseHeadersToAddOrBuilder(int index)
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
public List<? extends HeaderValueOptionOrBuilder> 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
public HeaderValueOption.Builder 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
public HeaderValueOption.Builder addResponseHeadersToAddBuilder(int index)
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
public List<HeaderValueOption.Builder> 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
public List<HeaderValueOption> 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
public HeaderValueOption getRequestHeadersToAdd(int index)
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
public RedirectPolicy.Builder setRequestHeadersToAdd(int index, HeaderValueOption value)
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
public RedirectPolicy.Builder addRequestHeadersToAdd(HeaderValueOption value)
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 value)
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(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
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
public RedirectPolicy.Builder 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
public RedirectPolicy.Builder removeRequestHeadersToAdd(int index)
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
public HeaderValueOption.Builder getRequestHeadersToAddBuilder(int index)
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
public HeaderValueOptionOrBuilder getRequestHeadersToAddOrBuilder(int index)
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
public List<? extends HeaderValueOptionOrBuilder> 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
public HeaderValueOption.Builder 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
public HeaderValueOption.Builder addRequestHeadersToAddBuilder(int index)
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
public List<HeaderValueOption.Builder> 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
public TypedExtensionConfig 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
public RedirectPolicy.Builder setModifyRequestHeadersAction(TypedExtensionConfig value)
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
public RedirectPolicy.Builder mergeModifyRequestHeadersAction(TypedExtensionConfig value)
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
public RedirectPolicy.Builder 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
public TypedExtensionConfig.Builder 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
public TypedExtensionConfigOrBuilder 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>
-
-