类 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
istio.networking.v1alpha3.DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder,Cloneable
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.ConsistentHashLB-
方法概要
修饰符和类型方法说明addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Hash based on HTTP cookie.Hash based on a specific HTTP header.Hash based on a specific HTTP query parameter.The minimum number of virtual nodes to use for the hash ring.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Hash based on the source IP address.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorHash based on HTTP cookie.Hash based on HTTP cookie.Hash based on HTTP cookie.Hash based on a specific HTTP header.com.google.protobuf.ByteStringHash based on a specific HTTP header.Hash based on a specific HTTP query parameter.com.google.protobuf.ByteStringHash based on a specific HTTP query parameter.longThe minimum number of virtual nodes to use for the hash ring.booleanHash based on the source IP address.booleanHash based on HTTP cookie.booleanHash based on a specific HTTP header.booleanHash based on a specific HTTP query parameter.booleanHash based on the source IP address.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Hash based on HTTP cookie.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Hash based on HTTP cookie.setHttpCookie(DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie.Builder builderForValue) Hash based on HTTP cookie.setHttpHeaderName(String value) Hash based on a specific HTTP header.setHttpHeaderNameBytes(com.google.protobuf.ByteString value) Hash based on a specific HTTP header.setHttpQueryParameterName(String value) Hash based on a specific HTTP query parameter.setHttpQueryParameterNameBytes(com.google.protobuf.ByteString value) Hash based on a specific HTTP query parameter.setMinimumRingSize(long value) The minimum number of virtual nodes to use for the hash ring.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUseSourceIp(boolean value) Hash based on the source IP address.从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException从接口继承的方法 com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- 指定者:
getDescriptorForType在接口中com.google.protobuf.Message.Builder- 指定者:
getDescriptorForType在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getDescriptorForType在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
setField
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
clearField
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
clearOneof
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
setRepeatedField
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
addRepeatedField
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
mergeFrom
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeFrom(com.google.protobuf.Message other) - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
mergeFrom
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>- 抛出:
IOException
-
getHashKeyCase
-
clearHashKey
-
hasHttpHeaderName
public boolean hasHttpHeaderName()Hash based on a specific HTTP header.
string http_header_name = 1;- 指定者:
hasHttpHeaderName在接口中DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder- 返回:
- Whether the httpHeaderName field is set.
-
getHttpHeaderName
Hash based on a specific HTTP header.
string http_header_name = 1;- 指定者:
getHttpHeaderName在接口中DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder- 返回:
- The httpHeaderName.
-
getHttpHeaderNameBytes
public com.google.protobuf.ByteString getHttpHeaderNameBytes()Hash based on a specific HTTP header.
string http_header_name = 1;- 指定者:
getHttpHeaderNameBytes在接口中DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder- 返回:
- The bytes for httpHeaderName.
-
setHttpHeaderName
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpHeaderName(String value) Hash based on a specific HTTP header.
string http_header_name = 1;- 参数:
value- The httpHeaderName to set.- 返回:
- This builder for chaining.
-
clearHttpHeaderName
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearHttpHeaderName()Hash based on a specific HTTP header.
string http_header_name = 1;- 返回:
- This builder for chaining.
-
setHttpHeaderNameBytes
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.- 返回:
- This builder for chaining.
-
hasHttpCookie
public boolean hasHttpCookie()Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;- 指定者:
hasHttpCookie在接口中DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder- 返回:
- Whether the httpCookie field is set.
-
getHttpCookie
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;- 指定者:
getHttpCookie在接口中DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder- 返回:
- The httpCookie.
-
setHttpCookie
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setHttpCookie(DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie value) Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2; -
setHttpCookie
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; -
mergeHttpCookie
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; -
clearHttpCookie
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2; -
getHttpCookieBuilder
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie.Builder getHttpCookieBuilder()Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2; -
getHttpCookieOrBuilder
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookieOrBuilder getHttpCookieOrBuilder()Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2; -
hasUseSourceIp
public boolean hasUseSourceIp()Hash based on the source IP address.
bool use_source_ip = 3;- 指定者:
hasUseSourceIp在接口中DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder- 返回:
- Whether the useSourceIp field is set.
-
getUseSourceIp
public boolean getUseSourceIp()Hash based on the source IP address.
bool use_source_ip = 3;- 指定者:
getUseSourceIp在接口中DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder- 返回:
- The useSourceIp.
-
setUseSourceIp
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setUseSourceIp(boolean value) Hash based on the source IP address.
bool use_source_ip = 3;- 参数:
value- The useSourceIp to set.- 返回:
- This builder for chaining.
-
clearUseSourceIp
Hash based on the source IP address.
bool use_source_ip = 3;- 返回:
- This builder for chaining.
-
hasHttpQueryParameterName
public boolean hasHttpQueryParameterName()Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;- 指定者:
hasHttpQueryParameterName在接口中DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder- 返回:
- Whether the httpQueryParameterName field is set.
-
getHttpQueryParameterName
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;- 指定者:
getHttpQueryParameterName在接口中DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder- 返回:
- The httpQueryParameterName.
-
getHttpQueryParameterNameBytes
public com.google.protobuf.ByteString getHttpQueryParameterNameBytes()Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;- 指定者:
getHttpQueryParameterNameBytes在接口中DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder- 返回:
- The bytes for httpQueryParameterName.
-
setHttpQueryParameterName
public 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.- 返回:
- This builder for chaining.
-
clearHttpQueryParameterName
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder clearHttpQueryParameterName()Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;- 返回:
- This builder for chaining.
-
setHttpQueryParameterNameBytes
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.- 返回:
- This builder for chaining.
-
getMinimumRingSize
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.ConsistentHashLBOrBuilder- 返回:
- The minimumRingSize.
-
setMinimumRingSize
public 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.- 返回:
- This builder for chaining.
-
clearMinimumRingSize
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;- 返回:
- This builder for chaining.
-
setUnknownFields
public final DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-
mergeUnknownFields
public final DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder>
-