Class InternalRedirectPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<InternalRedirectPolicy.Builder>
com.google.protobuf.GeneratedMessage.Builder<InternalRedirectPolicy.Builder>
io.envoyproxy.envoy.config.route.v3.InternalRedirectPolicy.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,InternalRedirectPolicyOrBuilder
,Cloneable
- Enclosing class:
InternalRedirectPolicy
public static final class InternalRedirectPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InternalRedirectPolicy.Builder>
implements InternalRedirectPolicyOrBuilder
HTTP Internal Redirect :ref:`architecture overview <arch_overview_internal_redirects>`. [#next-free-field: 6]Protobuf type
envoy.config.route.v3.InternalRedirectPolicy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private int
private com.google.protobuf.UInt32Value
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> private List
<TypedExtensionConfig> private com.google.protobuf.RepeatedFieldBuilder
<TypedExtensionConfig, TypedExtensionConfig.Builder, TypedExtensionConfigOrBuilder> private com.google.protobuf.Internal.IntList
private com.google.protobuf.LazyStringArrayList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllPredicates
(Iterable<? extends TypedExtensionConfig> values) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.addAllRedirectResponseCodes
(Iterable<? extends Integer> values) Defines what upstream response codes are allowed to trigger internal redirect.addAllResponseHeadersToCopy
(Iterable<String> values) Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request.addPredicates
(int index, TypedExtensionConfig value) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.addPredicates
(int index, TypedExtensionConfig.Builder builderForValue) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.addPredicates
(TypedExtensionConfig.Builder builderForValue) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.addPredicatesBuilder
(int index) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.addRedirectResponseCodes
(int value) Defines what upstream response codes are allowed to trigger internal redirect.addResponseHeadersToCopy
(String value) Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request.addResponseHeadersToCopyBytes
(com.google.protobuf.ByteString value) Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request.build()
private void
buildPartial0
(InternalRedirectPolicy result) private void
clear()
Allow internal redirect to follow a target URI with a different scheme than the value of x-forwarded-proto.An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.Defines what upstream response codes are allowed to trigger internal redirect.Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request.private void
private void
private void
boolean
Allow internal redirect to follow a target URI with a different scheme than the value of x-forwarded-proto.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.UInt32Value
An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.com.google.protobuf.UInt32Value.Builder
An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.com.google.protobuf.UInt32ValueOrBuilder
An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.getPredicates
(int index) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.getPredicatesBuilder
(int index) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.int
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.private com.google.protobuf.RepeatedFieldBuilder
<TypedExtensionConfig, TypedExtensionConfig.Builder, TypedExtensionConfigOrBuilder> Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.getPredicatesOrBuilder
(int index) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.List
<? extends TypedExtensionConfigOrBuilder> Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.int
getRedirectResponseCodes
(int index) Defines what upstream response codes are allowed to trigger internal redirect.int
Defines what upstream response codes are allowed to trigger internal redirect.Defines what upstream response codes are allowed to trigger internal redirect.getResponseHeadersToCopy
(int index) Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request.com.google.protobuf.ByteString
getResponseHeadersToCopyBytes
(int index) Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request.int
Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request.com.google.protobuf.ProtocolStringList
Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request.boolean
An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(InternalRedirectPolicy other) mergeMaxInternalRedirects
(com.google.protobuf.UInt32Value value) An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.removePredicates
(int index) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.setAllowCrossSchemeRedirect
(boolean value) Allow internal redirect to follow a target URI with a different scheme than the value of x-forwarded-proto.setMaxInternalRedirects
(com.google.protobuf.UInt32Value value) An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.setMaxInternalRedirects
(com.google.protobuf.UInt32Value.Builder builderForValue) An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.setPredicates
(int index, TypedExtensionConfig value) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.setPredicates
(int index, TypedExtensionConfig.Builder builderForValue) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.setRedirectResponseCodes
(int index, int value) Defines what upstream response codes are allowed to trigger internal redirect.setResponseHeadersToCopy
(int index, String value) Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
maxInternalRedirects_
private com.google.protobuf.UInt32Value maxInternalRedirects_ -
maxInternalRedirectsBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder, maxInternalRedirectsBuilder_com.google.protobuf.UInt32ValueOrBuilder> -
redirectResponseCodes_
private com.google.protobuf.Internal.IntList redirectResponseCodes_ -
predicates_
-
predicatesBuilder_
private com.google.protobuf.RepeatedFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder, predicatesBuilder_TypedExtensionConfigOrBuilder> -
allowCrossSchemeRedirect_
private boolean allowCrossSchemeRedirect_ -
responseHeadersToCopy_
private com.google.protobuf.LazyStringArrayList responseHeadersToCopy_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<InternalRedirectPolicy.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<InternalRedirectPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<InternalRedirectPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InternalRedirectPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<InternalRedirectPolicy.Builder>
-
mergeFrom
public InternalRedirectPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InternalRedirectPolicy.Builder>
- Throws:
IOException
-
hasMaxInternalRedirects
public boolean hasMaxInternalRedirects()An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;
- Specified by:
hasMaxInternalRedirects
in interfaceInternalRedirectPolicyOrBuilder
- Returns:
- Whether the maxInternalRedirects field is set.
-
getMaxInternalRedirects
public com.google.protobuf.UInt32Value getMaxInternalRedirects()An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;
- Specified by:
getMaxInternalRedirects
in interfaceInternalRedirectPolicyOrBuilder
- Returns:
- The maxInternalRedirects.
-
setMaxInternalRedirects
public InternalRedirectPolicy.Builder setMaxInternalRedirects(com.google.protobuf.UInt32Value value) An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;
-
setMaxInternalRedirects
public InternalRedirectPolicy.Builder setMaxInternalRedirects(com.google.protobuf.UInt32Value.Builder builderForValue) An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;
-
mergeMaxInternalRedirects
public InternalRedirectPolicy.Builder mergeMaxInternalRedirects(com.google.protobuf.UInt32Value value) An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;
-
clearMaxInternalRedirects
An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;
-
getMaxInternalRedirectsBuilder
public com.google.protobuf.UInt32Value.Builder getMaxInternalRedirectsBuilder()An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;
-
getMaxInternalRedirectsOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxInternalRedirectsOrBuilder()An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;
- Specified by:
getMaxInternalRedirectsOrBuilder
in interfaceInternalRedirectPolicyOrBuilder
-
getMaxInternalRedirectsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder, getMaxInternalRedirectsFieldBuilder()com.google.protobuf.UInt32ValueOrBuilder> An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;
-
ensureRedirectResponseCodesIsMutable
private void ensureRedirectResponseCodesIsMutable() -
getRedirectResponseCodesList
Defines what upstream response codes are allowed to trigger internal redirect. If unspecified, only 302 will be treated as internal redirect. Only 301, 302, 303, 307 and 308 are valid values. Any other codes will be ignored.
repeated uint32 redirect_response_codes = 2 [(.validate.rules) = { ... }
- Specified by:
getRedirectResponseCodesList
in interfaceInternalRedirectPolicyOrBuilder
- Returns:
- A list containing the redirectResponseCodes.
-
getRedirectResponseCodesCount
public int getRedirectResponseCodesCount()Defines what upstream response codes are allowed to trigger internal redirect. If unspecified, only 302 will be treated as internal redirect. Only 301, 302, 303, 307 and 308 are valid values. Any other codes will be ignored.
repeated uint32 redirect_response_codes = 2 [(.validate.rules) = { ... }
- Specified by:
getRedirectResponseCodesCount
in interfaceInternalRedirectPolicyOrBuilder
- Returns:
- The count of redirectResponseCodes.
-
getRedirectResponseCodes
public int getRedirectResponseCodes(int index) Defines what upstream response codes are allowed to trigger internal redirect. If unspecified, only 302 will be treated as internal redirect. Only 301, 302, 303, 307 and 308 are valid values. Any other codes will be ignored.
repeated uint32 redirect_response_codes = 2 [(.validate.rules) = { ... }
- Specified by:
getRedirectResponseCodes
in interfaceInternalRedirectPolicyOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The redirectResponseCodes at the given index.
-
setRedirectResponseCodes
Defines what upstream response codes are allowed to trigger internal redirect. If unspecified, only 302 will be treated as internal redirect. Only 301, 302, 303, 307 and 308 are valid values. Any other codes will be ignored.
repeated uint32 redirect_response_codes = 2 [(.validate.rules) = { ... }
- Parameters:
index
- The index to set the value at.value
- The redirectResponseCodes to set.- Returns:
- This builder for chaining.
-
addRedirectResponseCodes
Defines what upstream response codes are allowed to trigger internal redirect. If unspecified, only 302 will be treated as internal redirect. Only 301, 302, 303, 307 and 308 are valid values. Any other codes will be ignored.
repeated uint32 redirect_response_codes = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The redirectResponseCodes to add.- Returns:
- This builder for chaining.
-
addAllRedirectResponseCodes
public InternalRedirectPolicy.Builder addAllRedirectResponseCodes(Iterable<? extends Integer> values) Defines what upstream response codes are allowed to trigger internal redirect. If unspecified, only 302 will be treated as internal redirect. Only 301, 302, 303, 307 and 308 are valid values. Any other codes will be ignored.
repeated uint32 redirect_response_codes = 2 [(.validate.rules) = { ... }
- Parameters:
values
- The redirectResponseCodes to add.- Returns:
- This builder for chaining.
-
clearRedirectResponseCodes
Defines what upstream response codes are allowed to trigger internal redirect. If unspecified, only 302 will be treated as internal redirect. Only 301, 302, 303, 307 and 308 are valid values. Any other codes will be ignored.
repeated uint32 redirect_response_codes = 2 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
ensurePredicatesIsMutable
private void ensurePredicatesIsMutable() -
getPredicatesList
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
- Specified by:
getPredicatesList
in interfaceInternalRedirectPolicyOrBuilder
-
getPredicatesCount
public int getPredicatesCount()Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
- Specified by:
getPredicatesCount
in interfaceInternalRedirectPolicyOrBuilder
-
getPredicates
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
- Specified by:
getPredicates
in interfaceInternalRedirectPolicyOrBuilder
-
setPredicates
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
setPredicates
public InternalRedirectPolicy.Builder setPredicates(int index, TypedExtensionConfig.Builder builderForValue) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
addPredicates
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
addPredicates
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
addPredicates
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
addPredicates
public InternalRedirectPolicy.Builder addPredicates(int index, TypedExtensionConfig.Builder builderForValue) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
addAllPredicates
public InternalRedirectPolicy.Builder addAllPredicates(Iterable<? extends TypedExtensionConfig> values) Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
clearPredicates
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
removePredicates
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
getPredicatesBuilder
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
getPredicatesOrBuilder
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
- Specified by:
getPredicatesOrBuilder
in interfaceInternalRedirectPolicyOrBuilder
-
getPredicatesOrBuilderList
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
- Specified by:
getPredicatesOrBuilderList
in interfaceInternalRedirectPolicyOrBuilder
-
addPredicatesBuilder
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
addPredicatesBuilder
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
getPredicatesBuilderList
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;
-
getPredicatesFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder, getPredicatesFieldBuilder()TypedExtensionConfigOrBuilder> -
getAllowCrossSchemeRedirect
public boolean getAllowCrossSchemeRedirect()Allow internal redirect to follow a target URI with a different scheme than the value of x-forwarded-proto. The default is false.
bool allow_cross_scheme_redirect = 4;
- Specified by:
getAllowCrossSchemeRedirect
in interfaceInternalRedirectPolicyOrBuilder
- Returns:
- The allowCrossSchemeRedirect.
-
setAllowCrossSchemeRedirect
Allow internal redirect to follow a target URI with a different scheme than the value of x-forwarded-proto. The default is false.
bool allow_cross_scheme_redirect = 4;
- Parameters:
value
- The allowCrossSchemeRedirect to set.- Returns:
- This builder for chaining.
-
clearAllowCrossSchemeRedirect
Allow internal redirect to follow a target URI with a different scheme than the value of x-forwarded-proto. The default is false.
bool allow_cross_scheme_redirect = 4;
- Returns:
- This builder for chaining.
-
ensureResponseHeadersToCopyIsMutable
private void ensureResponseHeadersToCopyIsMutable() -
getResponseHeadersToCopyList
public com.google.protobuf.ProtocolStringList getResponseHeadersToCopyList()Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request. If a header is specified here but not present in the redirect, it will be cleared in the subsequent request.
repeated string response_headers_to_copy = 5 [(.validate.rules) = { ... }
- Specified by:
getResponseHeadersToCopyList
in interfaceInternalRedirectPolicyOrBuilder
- Returns:
- A list containing the responseHeadersToCopy.
-
getResponseHeadersToCopyCount
public int getResponseHeadersToCopyCount()Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request. If a header is specified here but not present in the redirect, it will be cleared in the subsequent request.
repeated string response_headers_to_copy = 5 [(.validate.rules) = { ... }
- Specified by:
getResponseHeadersToCopyCount
in interfaceInternalRedirectPolicyOrBuilder
- Returns:
- The count of responseHeadersToCopy.
-
getResponseHeadersToCopy
Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request. If a header is specified here but not present in the redirect, it will be cleared in the subsequent request.
repeated string response_headers_to_copy = 5 [(.validate.rules) = { ... }
- Specified by:
getResponseHeadersToCopy
in interfaceInternalRedirectPolicyOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The responseHeadersToCopy at the given index.
-
getResponseHeadersToCopyBytes
public com.google.protobuf.ByteString getResponseHeadersToCopyBytes(int index) Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request. If a header is specified here but not present in the redirect, it will be cleared in the subsequent request.
repeated string response_headers_to_copy = 5 [(.validate.rules) = { ... }
- Specified by:
getResponseHeadersToCopyBytes
in interfaceInternalRedirectPolicyOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the responseHeadersToCopy at the given index.
-
setResponseHeadersToCopy
Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request. If a header is specified here but not present in the redirect, it will be cleared in the subsequent request.
repeated string response_headers_to_copy = 5 [(.validate.rules) = { ... }
- Parameters:
index
- The index to set the value at.value
- The responseHeadersToCopy to set.- Returns:
- This builder for chaining.
-
addResponseHeadersToCopy
Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request. If a header is specified here but not present in the redirect, it will be cleared in the subsequent request.
repeated string response_headers_to_copy = 5 [(.validate.rules) = { ... }
- Parameters:
value
- The responseHeadersToCopy to add.- Returns:
- This builder for chaining.
-
addAllResponseHeadersToCopy
Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request. If a header is specified here but not present in the redirect, it will be cleared in the subsequent request.
repeated string response_headers_to_copy = 5 [(.validate.rules) = { ... }
- Parameters:
values
- The responseHeadersToCopy to add.- Returns:
- This builder for chaining.
-
clearResponseHeadersToCopy
Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request. If a header is specified here but not present in the redirect, it will be cleared in the subsequent request.
repeated string response_headers_to_copy = 5 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
addResponseHeadersToCopyBytes
public InternalRedirectPolicy.Builder addResponseHeadersToCopyBytes(com.google.protobuf.ByteString value) Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request. If a header is specified here but not present in the redirect, it will be cleared in the subsequent request.
repeated string response_headers_to_copy = 5 [(.validate.rules) = { ... }
- Parameters:
value
- The bytes of the responseHeadersToCopy to add.- Returns:
- This builder for chaining.
-