Class RouteAction.HashPolicy
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.envoyproxy.envoy.config.route.v3.RouteAction.HashPolicy
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,RouteAction.HashPolicyOrBuilder
,Serializable
- Enclosing class:
RouteAction
public static final class RouteAction.HashPolicy
extends com.google.protobuf.GeneratedMessage
implements RouteAction.HashPolicyOrBuilder
Specifies the route's hashing policy if the upstream cluster uses a hashing :ref:`load balancer <arch_overview_load_balancing_types>`. [#next-free-field: 7]Protobuf type
envoy.config.route.v3.RouteAction.HashPolicy
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Specifies the route's hashing policy if the upstream cluster uses a hashing :ref:`load balancer <arch_overview_load_balancing_types>`.static final class
Protobuf typeenvoy.config.route.v3.RouteAction.HashPolicy.ConnectionProperties
static interface
static final class
Envoy supports two types of cookie affinity: 1.static final class
CookieAttribute defines an API for adding additional attributes for a HTTP cookie.static interface
static interface
static final class
Protobuf typeenvoy.config.route.v3.RouteAction.HashPolicy.FilterState
static interface
static final class
Protobuf typeenvoy.config.route.v3.RouteAction.HashPolicy.Header
static interface
static enum
static final class
Protobuf typeenvoy.config.route.v3.RouteAction.HashPolicy.QueryParameter
static interface
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
private static final RouteAction.HashPolicy
static final int
static final int
private byte
private static final com.google.protobuf.Parser
<RouteAction.HashPolicy> private Object
private int
static final int
private static final long
private boolean
static final int
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
private
HashPolicy
(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Connection properties hash policy.Connection properties hash policy.Cookie hash policy.Cookie hash policy.static RouteAction.HashPolicy
static final com.google.protobuf.Descriptors.Descriptor
Filter state hash policy.Filter state hash policy.Header hash policy.Header hash policy.com.google.protobuf.Parser
<RouteAction.HashPolicy> Query parameter hash policy.Query parameter hash policy.int
boolean
The flag that short-circuits the hash computing.boolean
Connection properties hash policy.boolean
Cookie hash policy.boolean
Filter state hash policy.int
hashCode()
boolean
Header hash policy.boolean
Query parameter hash policy.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
newBuilder
(RouteAction.HashPolicy prototype) protected RouteAction.HashPolicy.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static RouteAction.HashPolicy
parseDelimitedFrom
(InputStream input) static RouteAction.HashPolicy
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteAction.HashPolicy
parseFrom
(byte[] data) static RouteAction.HashPolicy
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteAction.HashPolicy
parseFrom
(com.google.protobuf.ByteString data) static RouteAction.HashPolicy
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteAction.HashPolicy
parseFrom
(com.google.protobuf.CodedInputStream input) static RouteAction.HashPolicy
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteAction.HashPolicy
parseFrom
(InputStream input) static RouteAction.HashPolicy
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteAction.HashPolicy
parseFrom
(ByteBuffer data) static RouteAction.HashPolicy
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<RouteAction.HashPolicy> parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
policySpecifierCase_
private int policySpecifierCase_ -
policySpecifier_
-
HEADER_FIELD_NUMBER
public static final int HEADER_FIELD_NUMBER- See Also:
-
COOKIE_FIELD_NUMBER
public static final int COOKIE_FIELD_NUMBER- See Also:
-
CONNECTION_PROPERTIES_FIELD_NUMBER
public static final int CONNECTION_PROPERTIES_FIELD_NUMBER- See Also:
-
QUERY_PARAMETER_FIELD_NUMBER
public static final int QUERY_PARAMETER_FIELD_NUMBER- See Also:
-
FILTER_STATE_FIELD_NUMBER
public static final int FILTER_STATE_FIELD_NUMBER- See Also:
-
TERMINAL_FIELD_NUMBER
public static final int TERMINAL_FIELD_NUMBER- See Also:
-
terminal_
private boolean terminal_ -
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
HashPolicy
private HashPolicy(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
HashPolicy
private HashPolicy()
-
-
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
-
getPolicySpecifierCase
- Specified by:
getPolicySpecifierCase
in interfaceRouteAction.HashPolicyOrBuilder
-
hasHeader
public boolean hasHeader()Header hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Header header = 1;
- Specified by:
hasHeader
in interfaceRouteAction.HashPolicyOrBuilder
- Returns:
- Whether the header field is set.
-
getHeader
Header hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Header header = 1;
- Specified by:
getHeader
in interfaceRouteAction.HashPolicyOrBuilder
- Returns:
- The header.
-
getHeaderOrBuilder
Header hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Header header = 1;
- Specified by:
getHeaderOrBuilder
in interfaceRouteAction.HashPolicyOrBuilder
-
hasCookie
public boolean hasCookie()Cookie hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Cookie cookie = 2;
- Specified by:
hasCookie
in interfaceRouteAction.HashPolicyOrBuilder
- Returns:
- Whether the cookie field is set.
-
getCookie
Cookie hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Cookie cookie = 2;
- Specified by:
getCookie
in interfaceRouteAction.HashPolicyOrBuilder
- Returns:
- The cookie.
-
getCookieOrBuilder
Cookie hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Cookie cookie = 2;
- Specified by:
getCookieOrBuilder
in interfaceRouteAction.HashPolicyOrBuilder
-
hasConnectionProperties
public boolean hasConnectionProperties()Connection properties hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.ConnectionProperties connection_properties = 3;
- Specified by:
hasConnectionProperties
in interfaceRouteAction.HashPolicyOrBuilder
- Returns:
- Whether the connectionProperties field is set.
-
getConnectionProperties
Connection properties hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.ConnectionProperties connection_properties = 3;
- Specified by:
getConnectionProperties
in interfaceRouteAction.HashPolicyOrBuilder
- Returns:
- The connectionProperties.
-
getConnectionPropertiesOrBuilder
Connection properties hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.ConnectionProperties connection_properties = 3;
- Specified by:
getConnectionPropertiesOrBuilder
in interfaceRouteAction.HashPolicyOrBuilder
-
hasQueryParameter
public boolean hasQueryParameter()Query parameter hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.QueryParameter query_parameter = 5;
- Specified by:
hasQueryParameter
in interfaceRouteAction.HashPolicyOrBuilder
- Returns:
- Whether the queryParameter field is set.
-
getQueryParameter
Query parameter hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.QueryParameter query_parameter = 5;
- Specified by:
getQueryParameter
in interfaceRouteAction.HashPolicyOrBuilder
- Returns:
- The queryParameter.
-
getQueryParameterOrBuilder
Query parameter hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.QueryParameter query_parameter = 5;
- Specified by:
getQueryParameterOrBuilder
in interfaceRouteAction.HashPolicyOrBuilder
-
hasFilterState
public boolean hasFilterState()Filter state hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.FilterState filter_state = 6;
- Specified by:
hasFilterState
in interfaceRouteAction.HashPolicyOrBuilder
- Returns:
- Whether the filterState field is set.
-
getFilterState
Filter state hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.FilterState filter_state = 6;
- Specified by:
getFilterState
in interfaceRouteAction.HashPolicyOrBuilder
- Returns:
- The filterState.
-
getFilterStateOrBuilder
Filter state hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.FilterState filter_state = 6;
- Specified by:
getFilterStateOrBuilder
in interfaceRouteAction.HashPolicyOrBuilder
-
getTerminal
public boolean getTerminal()The flag that short-circuits the hash computing. This field provides a 'fallback' style of configuration: "if a terminal policy doesn't work, fallback to rest of the policy list", it saves time when the terminal policy works. If true, and there is already a hash computed, ignore rest of the list of hash polices. For example, if the following hash methods are configured: ========= ======== specifier terminal ========= ======== Header A true Header B false Header C false ========= ======== The generateHash process ends if policy "header A" generates a hash, as it's a terminal policy.
bool terminal = 4;
- Specified by:
getTerminal
in interfaceRouteAction.HashPolicyOrBuilder
- Returns:
- The terminal.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RouteAction.HashPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteAction.HashPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteAction.HashPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteAction.HashPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteAction.HashPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteAction.HashPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RouteAction.HashPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RouteAction.HashPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RouteAction.HashPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RouteAction.HashPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RouteAction.HashPolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-