public static final class DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder> implements DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service.Protobuf type
istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLBgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeFrom(DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>IOExceptionpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HashKeyCase getHashKeyCase()
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearHashKey()
public boolean hasHttpHeaderName()
Hash based on a specific HTTP header.
string http_header_name = 1;hasHttpHeaderName 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic String getHttpHeaderName()
Hash based on a specific HTTP header.
string http_header_name = 1;getHttpHeaderName 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic com.google.protobuf.ByteString getHttpHeaderNameBytes()
Hash based on a specific HTTP header.
string http_header_name = 1;getHttpHeaderNameBytes 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpHeaderName(String value)
Hash based on a specific HTTP header.
string http_header_name = 1;value - The httpHeaderName to set.public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearHttpHeaderName()
Hash based on a specific HTTP header.
string http_header_name = 1;public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpHeaderNameBytes(com.google.protobuf.ByteString value)
Hash based on a specific HTTP header.
string http_header_name = 1;value - The bytes for httpHeaderName to set.public boolean hasHttpCookie()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;hasHttpCookie 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie getHttpCookie()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;getHttpCookie 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpCookie(DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie value)
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpCookie(DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie.Builder builderForValue)
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeHttpCookie(DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie value)
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearHttpCookie()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie.Builder getHttpCookieBuilder()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookieOrBuilder getHttpCookieOrBuilder()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;public boolean hasUseSourceIp()
Hash based on the source IP address.
bool use_source_ip = 3;hasUseSourceIp 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic boolean getUseSourceIp()
Hash based on the source IP address.
bool use_source_ip = 3;getUseSourceIp 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setUseSourceIp(boolean value)
Hash based on the source IP address.
bool use_source_ip = 3;value - The useSourceIp to set.public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearUseSourceIp()
Hash based on the source IP address.
bool use_source_ip = 3;public boolean hasHttpQueryParameterName()
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;hasHttpQueryParameterName 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic String getHttpQueryParameterName()
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;getHttpQueryParameterName 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic com.google.protobuf.ByteString getHttpQueryParameterNameBytes()
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;getHttpQueryParameterNameBytes 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpQueryParameterName(String value)
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;value - The httpQueryParameterName to set.public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearHttpQueryParameterName()
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpQueryParameterNameBytes(com.google.protobuf.ByteString value)
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;value - The bytes for httpQueryParameterName to set.public long getMinimumRingSize()
The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
uint64 minimum_ring_size = 4;getMinimumRingSize 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setMinimumRingSize(long value)
The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
uint64 minimum_ring_size = 4;value - The minimumRingSize to set.public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearMinimumRingSize()
The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
uint64 minimum_ring_size = 4;public final DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>public final DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.