Class InternalRedirectPolicy
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.envoyproxy.envoy.config.route.v3.InternalRedirectPolicy
- All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, InternalRedirectPolicyOrBuilder, Serializable
@Generated
public final class InternalRedirectPolicy
extends com.google.protobuf.GeneratedMessage
implements InternalRedirectPolicyOrBuilder
HTTP Internal Redirect :ref:`architecture overview <arch_overview_internal_redirects>`. [#next-free-field: 6]Protobuf type
envoy.config.route.v3.InternalRedirectPolicy- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHTTP Internal Redirect :ref:`architecture overview <arch_overview_internal_redirects>`.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate booleanprivate intprivate static final InternalRedirectPolicystatic final intprivate com.google.protobuf.UInt32Valueprivate byteprivate static final com.google.protobuf.Parser<InternalRedirectPolicy> private List<TypedExtensionConfig> static final intstatic final intprivate com.google.protobuf.Internal.IntListprivate intstatic final intprivate com.google.protobuf.LazyStringArrayListprivate static final longFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateInternalRedirectPolicy(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanAllow internal redirect to follow a target URI with a different scheme than the value of x-forwarded-proto.static InternalRedirectPolicystatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.UInt32ValueAn 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.UInt32ValueOrBuilderAn 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.Parser<InternalRedirectPolicy> 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.intSpecifies 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.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.intgetRedirectResponseCodes(int index) Defines what upstream response codes are allowed to trigger internal redirect.intDefines 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.ByteStringgetResponseHeadersToCopyBytes(int index) Specifies a list of headers, by name, to copy from the internal redirect into the subsequent request.intSpecifies a list of headers, by name, to copy from the internal redirect into the subsequent request.com.google.protobuf.ProtocolStringListSpecifies a list of headers, by name, to copy from the internal redirect into the subsequent request.intinthashCode()booleanAn 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.FieldAccessorTablefinal booleannewBuilder(InternalRedirectPolicy prototype) protected InternalRedirectPolicy.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static InternalRedirectPolicyparseDelimitedFrom(InputStream input) static InternalRedirectPolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InternalRedirectPolicyparseFrom(byte[] data) static InternalRedirectPolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InternalRedirectPolicyparseFrom(com.google.protobuf.ByteString data) static InternalRedirectPolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InternalRedirectPolicyparseFrom(com.google.protobuf.CodedInputStream input) static InternalRedirectPolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InternalRedirectPolicyparseFrom(InputStream input) static InternalRedirectPolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InternalRedirectPolicyparseFrom(ByteBuffer data) static InternalRedirectPolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<InternalRedirectPolicy> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
MAX_INTERNAL_REDIRECTS_FIELD_NUMBER
public static final int MAX_INTERNAL_REDIRECTS_FIELD_NUMBER- See Also:
-
maxInternalRedirects_
private com.google.protobuf.UInt32Value maxInternalRedirects_ -
REDIRECT_RESPONSE_CODES_FIELD_NUMBER
public static final int REDIRECT_RESPONSE_CODES_FIELD_NUMBER- See Also:
-
redirectResponseCodes_
private com.google.protobuf.Internal.IntList redirectResponseCodes_ -
redirectResponseCodesMemoizedSerializedSize
private int redirectResponseCodesMemoizedSerializedSize -
PREDICATES_FIELD_NUMBER
public static final int PREDICATES_FIELD_NUMBER- See Also:
-
predicates_
-
ALLOW_CROSS_SCHEME_REDIRECT_FIELD_NUMBER
public static final int ALLOW_CROSS_SCHEME_REDIRECT_FIELD_NUMBER- See Also:
-
allowCrossSchemeRedirect_
private boolean allowCrossSchemeRedirect_ -
RESPONSE_HEADERS_TO_COPY_FIELD_NUMBER
public static final int RESPONSE_HEADERS_TO_COPY_FIELD_NUMBER- See Also:
-
responseHeadersToCopy_
private com.google.protobuf.LazyStringArrayList responseHeadersToCopy_ -
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
InternalRedirectPolicy
private InternalRedirectPolicy(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
InternalRedirectPolicy
private InternalRedirectPolicy()
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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:
hasMaxInternalRedirectsin 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:
getMaxInternalRedirectsin interfaceInternalRedirectPolicyOrBuilder- Returns:
- The maxInternalRedirects.
-
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:
getMaxInternalRedirectsOrBuilderin interfaceInternalRedirectPolicyOrBuilder
-
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:
getRedirectResponseCodesListin 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:
getRedirectResponseCodesCountin 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:
getRedirectResponseCodesin interfaceInternalRedirectPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The redirectResponseCodes at the given index.
-
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:
getPredicatesListin 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:
getPredicatesOrBuilderListin 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:
getPredicatesCountin 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:
getPredicatesin interfaceInternalRedirectPolicyOrBuilder
-
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:
getPredicatesOrBuilderin interfaceInternalRedirectPolicyOrBuilder
-
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:
getAllowCrossSchemeRedirectin interfaceInternalRedirectPolicyOrBuilder- Returns:
- The allowCrossSchemeRedirect.
-
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:
getResponseHeadersToCopyListin 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:
getResponseHeadersToCopyCountin 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:
getResponseHeadersToCopyin 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:
getResponseHeadersToCopyBytesin interfaceInternalRedirectPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the responseHeadersToCopy at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static InternalRedirectPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InternalRedirectPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InternalRedirectPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InternalRedirectPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InternalRedirectPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InternalRedirectPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static InternalRedirectPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static InternalRedirectPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static InternalRedirectPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static InternalRedirectPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected InternalRedirectPolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-