public static final class RouteAction.HashPolicy extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
RouteAction.HashPolicy.Builder
Specifies the route's hashing policy if the upstream cluster uses a hashing :ref:`load balancer
<arch_overview_load_balancing_types>`.
|
static class |
RouteAction.HashPolicy.ConnectionProperties
Protobuf type
envoy.config.route.v3.RouteAction.HashPolicy.ConnectionProperties |
static interface |
RouteAction.HashPolicy.ConnectionPropertiesOrBuilder |
static class |
RouteAction.HashPolicy.Cookie
Envoy supports two types of cookie affinity:
1.
|
static interface |
RouteAction.HashPolicy.CookieOrBuilder |
static class |
RouteAction.HashPolicy.FilterState
Protobuf type
envoy.config.route.v3.RouteAction.HashPolicy.FilterState |
static interface |
RouteAction.HashPolicy.FilterStateOrBuilder |
static class |
RouteAction.HashPolicy.Header
Protobuf type
envoy.config.route.v3.RouteAction.HashPolicy.Header |
static interface |
RouteAction.HashPolicy.HeaderOrBuilder |
static class |
RouteAction.HashPolicy.PolicySpecifierCase |
static class |
RouteAction.HashPolicy.QueryParameter
Protobuf type
envoy.config.route.v3.RouteAction.HashPolicy.QueryParameter |
static interface |
RouteAction.HashPolicy.QueryParameterOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_PROPERTIES_FIELD_NUMBER |
static int |
COOKIE_FIELD_NUMBER |
static int |
FILTER_STATE_FIELD_NUMBER |
static int |
HEADER_FIELD_NUMBER |
static int |
QUERY_PARAMETER_FIELD_NUMBER |
static int |
TERMINAL_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
RouteAction.HashPolicy.ConnectionProperties |
getConnectionProperties()
Connection properties hash policy.
|
RouteAction.HashPolicy.ConnectionPropertiesOrBuilder |
getConnectionPropertiesOrBuilder()
Connection properties hash policy.
|
RouteAction.HashPolicy.Cookie |
getCookie()
Cookie hash policy.
|
RouteAction.HashPolicy.CookieOrBuilder |
getCookieOrBuilder()
Cookie hash policy.
|
static RouteAction.HashPolicy |
getDefaultInstance() |
RouteAction.HashPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
RouteAction.HashPolicy.FilterState |
getFilterState()
Filter state hash policy.
|
RouteAction.HashPolicy.FilterStateOrBuilder |
getFilterStateOrBuilder()
Filter state hash policy.
|
RouteAction.HashPolicy.Header |
getHeader()
Header hash policy.
|
RouteAction.HashPolicy.HeaderOrBuilder |
getHeaderOrBuilder()
Header hash policy.
|
com.google.protobuf.Parser<RouteAction.HashPolicy> |
getParserForType() |
RouteAction.HashPolicy.PolicySpecifierCase |
getPolicySpecifierCase() |
RouteAction.HashPolicy.QueryParameter |
getQueryParameter()
Query parameter hash policy.
|
RouteAction.HashPolicy.QueryParameterOrBuilder |
getQueryParameterOrBuilder()
Query parameter hash policy.
|
int |
getSerializedSize() |
boolean |
getTerminal()
The flag that short-circuits the hash computing.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasConnectionProperties()
Connection properties hash policy.
|
boolean |
hasCookie()
Cookie hash policy.
|
boolean |
hasFilterState()
Filter state hash policy.
|
int |
hashCode() |
boolean |
hasHeader()
Header hash policy.
|
boolean |
hasQueryParameter()
Query parameter hash policy.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RouteAction.HashPolicy.Builder |
newBuilder() |
static RouteAction.HashPolicy.Builder |
newBuilder(RouteAction.HashPolicy prototype) |
RouteAction.HashPolicy.Builder |
newBuilderForType() |
protected RouteAction.HashPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
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(ByteBuffer data) |
static RouteAction.HashPolicy |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<RouteAction.HashPolicy> |
parser() |
RouteAction.HashPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int HEADER_FIELD_NUMBER
public static final int COOKIE_FIELD_NUMBER
public static final int CONNECTION_PROPERTIES_FIELD_NUMBER
public static final int QUERY_PARAMETER_FIELD_NUMBER
public static final int FILTER_STATE_FIELD_NUMBER
public static final int TERMINAL_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public RouteAction.HashPolicy.PolicySpecifierCase getPolicySpecifierCase()
getPolicySpecifierCase in interface RouteAction.HashPolicyOrBuilderpublic boolean hasHeader()
Header hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Header header = 1;hasHeader in interface RouteAction.HashPolicyOrBuilderpublic RouteAction.HashPolicy.Header getHeader()
Header hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Header header = 1;getHeader in interface RouteAction.HashPolicyOrBuilderpublic RouteAction.HashPolicy.HeaderOrBuilder getHeaderOrBuilder()
Header hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Header header = 1;getHeaderOrBuilder in interface RouteAction.HashPolicyOrBuilderpublic boolean hasCookie()
Cookie hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Cookie cookie = 2;hasCookie in interface RouteAction.HashPolicyOrBuilderpublic RouteAction.HashPolicy.Cookie getCookie()
Cookie hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Cookie cookie = 2;getCookie in interface RouteAction.HashPolicyOrBuilderpublic RouteAction.HashPolicy.CookieOrBuilder getCookieOrBuilder()
Cookie hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.Cookie cookie = 2;getCookieOrBuilder in interface RouteAction.HashPolicyOrBuilderpublic boolean hasConnectionProperties()
Connection properties hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.ConnectionProperties connection_properties = 3;hasConnectionProperties in interface RouteAction.HashPolicyOrBuilderpublic RouteAction.HashPolicy.ConnectionProperties getConnectionProperties()
Connection properties hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.ConnectionProperties connection_properties = 3;getConnectionProperties in interface RouteAction.HashPolicyOrBuilderpublic RouteAction.HashPolicy.ConnectionPropertiesOrBuilder getConnectionPropertiesOrBuilder()
Connection properties hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.ConnectionProperties connection_properties = 3;getConnectionPropertiesOrBuilder in interface RouteAction.HashPolicyOrBuilderpublic boolean hasQueryParameter()
Query parameter hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.QueryParameter query_parameter = 5;hasQueryParameter in interface RouteAction.HashPolicyOrBuilderpublic RouteAction.HashPolicy.QueryParameter getQueryParameter()
Query parameter hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.QueryParameter query_parameter = 5;getQueryParameter in interface RouteAction.HashPolicyOrBuilderpublic RouteAction.HashPolicy.QueryParameterOrBuilder getQueryParameterOrBuilder()
Query parameter hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.QueryParameter query_parameter = 5;getQueryParameterOrBuilder in interface RouteAction.HashPolicyOrBuilderpublic boolean hasFilterState()
Filter state hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.FilterState filter_state = 6;hasFilterState in interface RouteAction.HashPolicyOrBuilderpublic RouteAction.HashPolicy.FilterState getFilterState()
Filter state hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.FilterState filter_state = 6;getFilterState in interface RouteAction.HashPolicyOrBuilderpublic RouteAction.HashPolicy.FilterStateOrBuilder getFilterStateOrBuilder()
Filter state hash policy.
.envoy.config.route.v3.RouteAction.HashPolicy.FilterState filter_state = 6;getFilterStateOrBuilder in interface RouteAction.HashPolicyOrBuilderpublic 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;getTerminal in interface RouteAction.HashPolicyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RouteAction.HashPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction.HashPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction.HashPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction.HashPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction.HashPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction.HashPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction.HashPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static RouteAction.HashPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteAction.HashPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RouteAction.HashPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteAction.HashPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RouteAction.HashPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RouteAction.HashPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RouteAction.HashPolicy.Builder newBuilder()
public static RouteAction.HashPolicy.Builder newBuilder(RouteAction.HashPolicy prototype)
public RouteAction.HashPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RouteAction.HashPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RouteAction.HashPolicy getDefaultInstance()
public static com.google.protobuf.Parser<RouteAction.HashPolicy> parser()
public com.google.protobuf.Parser<RouteAction.HashPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RouteAction.HashPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.