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 classSpecifies the route's hashing policy if the upstream cluster uses a hashing :ref:`load balancer <arch_overview_load_balancing_types>`.static final classProtobuf typeenvoy.config.route.v3.RouteAction.HashPolicy.ConnectionPropertiesstatic interfacestatic final classEnvoy supports two types of cookie affinity: 1.static final classCookieAttribute defines an API for adding additional attributes for a HTTP cookie.static interfacestatic interfacestatic final classProtobuf typeenvoy.config.route.v3.RouteAction.HashPolicy.FilterStatestatic interfacestatic final classProtobuf typeenvoy.config.route.v3.RouteAction.HashPolicy.Headerstatic interfacestatic enumstatic final classProtobuf typeenvoy.config.route.v3.RouteAction.HashPolicy.QueryParameterstatic interfaceNested 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprivate static final RouteAction.HashPolicystatic final intstatic final intprivate byteprivate static final com.google.protobuf.Parser<RouteAction.HashPolicy> private Objectprivate intstatic final intprivate static final longprivate booleanstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateHashPolicy(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanConnection properties hash policy.Connection properties hash policy.Cookie hash policy.Cookie hash policy.static RouteAction.HashPolicystatic final com.google.protobuf.Descriptors.DescriptorFilter 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.intbooleanThe flag that short-circuits the hash computing.booleanConnection properties hash policy.booleanCookie hash policy.booleanFilter state hash policy.inthashCode()booleanHeader hash policy.booleanQuery parameter hash policy.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(RouteAction.HashPolicy prototype) protected RouteAction.HashPolicy.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RouteAction.HashPolicyparseDelimitedFrom(InputStream input) static RouteAction.HashPolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteAction.HashPolicyparseFrom(byte[] data) static RouteAction.HashPolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteAction.HashPolicyparseFrom(com.google.protobuf.ByteString data) static RouteAction.HashPolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteAction.HashPolicyparseFrom(com.google.protobuf.CodedInputStream input) static RouteAction.HashPolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteAction.HashPolicyparseFrom(InputStream input) static RouteAction.HashPolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteAction.HashPolicyparseFrom(ByteBuffer data) static RouteAction.HashPolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RouteAction.HashPolicy> parser()voidwriteTo(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, 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getPolicySpecifierCase
- Specified by:
getPolicySpecifierCasein interfaceRouteAction.HashPolicyOrBuilder
-
hasHeader
public boolean hasHeader()Header hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Header header = 1;- Specified by:
hasHeaderin interfaceRouteAction.HashPolicyOrBuilder- Returns:
- Whether the header field is set.
-
getHeader
Header hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Header header = 1;- Specified by:
getHeaderin interfaceRouteAction.HashPolicyOrBuilder- Returns:
- The header.
-
getHeaderOrBuilder
Header hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Header header = 1;- Specified by:
getHeaderOrBuilderin interfaceRouteAction.HashPolicyOrBuilder
-
hasCookie
public boolean hasCookie()Cookie hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Cookie cookie = 2;- Specified by:
hasCookiein interfaceRouteAction.HashPolicyOrBuilder- Returns:
- Whether the cookie field is set.
-
getCookie
Cookie hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Cookie cookie = 2;- Specified by:
getCookiein interfaceRouteAction.HashPolicyOrBuilder- Returns:
- The cookie.
-
getCookieOrBuilder
Cookie hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Cookie cookie = 2;- Specified by:
getCookieOrBuilderin interfaceRouteAction.HashPolicyOrBuilder
-
hasConnectionProperties
public boolean hasConnectionProperties()Connection properties hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.ConnectionProperties connection_properties = 3;- Specified by:
hasConnectionPropertiesin 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:
getConnectionPropertiesin interfaceRouteAction.HashPolicyOrBuilder- Returns:
- The connectionProperties.
-
getConnectionPropertiesOrBuilder
Connection properties hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.ConnectionProperties connection_properties = 3;- Specified by:
getConnectionPropertiesOrBuilderin interfaceRouteAction.HashPolicyOrBuilder
-
hasQueryParameter
public boolean hasQueryParameter()Query parameter hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.QueryParameter query_parameter = 5;- Specified by:
hasQueryParameterin 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:
getQueryParameterin interfaceRouteAction.HashPolicyOrBuilder- Returns:
- The queryParameter.
-
getQueryParameterOrBuilder
Query parameter hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.QueryParameter query_parameter = 5;- Specified by:
getQueryParameterOrBuilderin interfaceRouteAction.HashPolicyOrBuilder
-
hasFilterState
public boolean hasFilterState()Filter state hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.FilterState filter_state = 6;- Specified by:
hasFilterStatein 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:
getFilterStatein interfaceRouteAction.HashPolicyOrBuilder- Returns:
- The filterState.
-
getFilterStateOrBuilder
Filter state hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.FilterState filter_state = 6;- Specified by:
getFilterStateOrBuilderin 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:
getTerminalin interfaceRouteAction.HashPolicyOrBuilder- Returns:
- The terminal.
-
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 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:
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 RouteAction.HashPolicy.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
-