public static final class ConsistentHashLoadBalancerSettings.Builder extends GeneratedMessageV3.Builder<ConsistentHashLoadBalancerSettings.Builder> implements ConsistentHashLoadBalancerSettingsOrBuilder
This message defines settings for a consistent hash style load balancer.
Protobuf type google.cloud.compute.v1.ConsistentHashLoadBalancerSettings
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConsistentHashLoadBalancerSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ConsistentHashLoadBalancerSettings build()
buildPartial()
public ConsistentHashLoadBalancerSettings buildPartial()
clear()
public ConsistentHashLoadBalancerSettings.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ConsistentHashLoadBalancerSettings.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearHttpCookie()
public ConsistentHashLoadBalancerSettings.Builder clearHttpCookie()
Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
public ConsistentHashLoadBalancerSettings.Builder clearHttpHeaderName()
The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
optional string http_header_name = 234798022;
clearMinimumRingSize()
public ConsistentHashLoadBalancerSettings.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.
optional int64 minimum_ring_size = 234380735;
clearOneof(Descriptors.OneofDescriptor oneof)
public ConsistentHashLoadBalancerSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ConsistentHashLoadBalancerSettings.Builder clone()
Overrides
getDefaultInstanceForType()
public ConsistentHashLoadBalancerSettings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getHttpCookie()
public ConsistentHashLoadBalancerSettingsHttpCookie getHttpCookie()
Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
getHttpCookieBuilder()
public ConsistentHashLoadBalancerSettingsHttpCookie.Builder getHttpCookieBuilder()
Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
getHttpCookieOrBuilder()
public ConsistentHashLoadBalancerSettingsHttpCookieOrBuilder getHttpCookieOrBuilder()
Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
public String getHttpHeaderName()
The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
optional string http_header_name = 234798022;
Returns |
Type |
Description |
String |
The httpHeaderName.
|
public ByteString getHttpHeaderNameBytes()
The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
optional string http_header_name = 234798022;
Returns |
Type |
Description |
ByteString |
The bytes for httpHeaderName.
|
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.
optional int64 minimum_ring_size = 234380735;
Returns |
Type |
Description |
long |
The minimumRingSize.
|
hasHttpCookie()
public boolean hasHttpCookie()
Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
Returns |
Type |
Description |
boolean |
Whether the httpCookie field is set.
|
public boolean hasHttpHeaderName()
The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
optional string http_header_name = 234798022;
Returns |
Type |
Description |
boolean |
Whether the httpHeaderName field is set.
|
hasMinimumRingSize()
public boolean hasMinimumRingSize()
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.
optional int64 minimum_ring_size = 234380735;
Returns |
Type |
Description |
boolean |
Whether the minimumRingSize field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ConsistentHashLoadBalancerSettings other)
public ConsistentHashLoadBalancerSettings.Builder mergeFrom(ConsistentHashLoadBalancerSettings other)
public ConsistentHashLoadBalancerSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ConsistentHashLoadBalancerSettings.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeHttpCookie(ConsistentHashLoadBalancerSettingsHttpCookie value)
public ConsistentHashLoadBalancerSettings.Builder mergeHttpCookie(ConsistentHashLoadBalancerSettingsHttpCookie value)
Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConsistentHashLoadBalancerSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ConsistentHashLoadBalancerSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setHttpCookie(ConsistentHashLoadBalancerSettingsHttpCookie value)
public ConsistentHashLoadBalancerSettings.Builder setHttpCookie(ConsistentHashLoadBalancerSettingsHttpCookie value)
Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
setHttpCookie(ConsistentHashLoadBalancerSettingsHttpCookie.Builder builderForValue)
public ConsistentHashLoadBalancerSettings.Builder setHttpCookie(ConsistentHashLoadBalancerSettingsHttpCookie.Builder builderForValue)
Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
public ConsistentHashLoadBalancerSettings.Builder setHttpHeaderName(String value)
The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
optional string http_header_name = 234798022;
Parameter |
Name |
Description |
value |
String
The httpHeaderName to set.
|
public ConsistentHashLoadBalancerSettings.Builder setHttpHeaderNameBytes(ByteString value)
The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
optional string http_header_name = 234798022;
Parameter |
Name |
Description |
value |
ByteString
The bytes for httpHeaderName to set.
|
setMinimumRingSize(long value)
public ConsistentHashLoadBalancerSettings.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.
optional int64 minimum_ring_size = 234380735;
Parameter |
Name |
Description |
value |
long
The minimumRingSize to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConsistentHashLoadBalancerSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ConsistentHashLoadBalancerSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides