Package com.google.cloud.compute.v1
Class ConsistentHashLoadBalancerSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConsistentHashLoadBalancerSettings.Builder>
com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings.Builder
- All Implemented Interfaces:
ConsistentHashLoadBalancerSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConsistentHashLoadBalancerSettings
public static final class ConsistentHashLoadBalancerSettings.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ConsistentHashLoadBalancerSettings.Builder>
implements ConsistentHashLoadBalancerSettingsOrBuilder
This message defines settings for a consistent hash style load balancer.Protobuf type
google.cloud.compute.v1.ConsistentHashLoadBalancerSettings-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Hash is based on HTTP Cookie.The hash based on the value of the specified header field.The minimum number of virtual nodes to use for the hash ring.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorHash is based on HTTP Cookie.Hash is based on HTTP Cookie.Hash is based on HTTP Cookie.The hash based on the value of the specified header field.com.google.protobuf.ByteStringThe hash based on the value of the specified header field.longThe minimum number of virtual nodes to use for the hash ring.booleanHash is based on HTTP Cookie.booleanThe hash based on the value of the specified header field.booleanThe minimum number of virtual nodes to use for the hash ring.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Hash is based on HTTP Cookie.Hash is based on HTTP Cookie.setHttpCookie(ConsistentHashLoadBalancerSettingsHttpCookie.Builder builderForValue) Hash is based on HTTP Cookie.setHttpHeaderName(String value) The hash based on the value of the specified header field.setHttpHeaderNameBytes(com.google.protobuf.ByteString value) The hash based on the value of the specified header field.setMinimumRingSize(long value) The minimum number of virtual nodes to use for the hash ring.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<ConsistentHashLoadBalancerSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ConsistentHashLoadBalancerSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ConsistentHashLoadBalancerSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConsistentHashLoadBalancerSettings.Builder>
-
mergeFrom
public ConsistentHashLoadBalancerSettings.Builder mergeFrom(ConsistentHashLoadBalancerSettings other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ConsistentHashLoadBalancerSettings.Builder>
-
mergeFrom
public ConsistentHashLoadBalancerSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConsistentHashLoadBalancerSettings.Builder>- Throws:
IOException
-
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;- Specified by:
hasHttpCookiein interfaceConsistentHashLoadBalancerSettingsOrBuilder- Returns:
- Whether the httpCookie field is set.
-
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;- Specified by:
getHttpCookiein interfaceConsistentHashLoadBalancerSettingsOrBuilder- Returns:
- The httpCookie.
-
setHttpCookie
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
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; -
mergeHttpCookie
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; -
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; -
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
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;- Specified by:
getHttpCookieOrBuilderin interfaceConsistentHashLoadBalancerSettingsOrBuilder
-
hasHttpHeaderName
public boolean hasHttpHeaderName()The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set toHEADER_FIELD.
optional string http_header_name = 234798022;- Specified by:
hasHttpHeaderNamein interfaceConsistentHashLoadBalancerSettingsOrBuilder- Returns:
- Whether the httpHeaderName field is set.
-
getHttpHeaderName
The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set toHEADER_FIELD.
optional string http_header_name = 234798022;- Specified by:
getHttpHeaderNamein interfaceConsistentHashLoadBalancerSettingsOrBuilder- Returns:
- The httpHeaderName.
-
getHttpHeaderNameBytes
public com.google.protobuf.ByteString getHttpHeaderNameBytes()The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set toHEADER_FIELD.
optional string http_header_name = 234798022;- Specified by:
getHttpHeaderNameBytesin interfaceConsistentHashLoadBalancerSettingsOrBuilder- Returns:
- The bytes for httpHeaderName.
-
setHttpHeaderName
The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set toHEADER_FIELD.
optional string http_header_name = 234798022;- Parameters:
value- The httpHeaderName to set.- Returns:
- This builder for chaining.
-
clearHttpHeaderName
The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set toHEADER_FIELD.
optional string http_header_name = 234798022;- Returns:
- This builder for chaining.
-
setHttpHeaderNameBytes
public ConsistentHashLoadBalancerSettings.Builder setHttpHeaderNameBytes(com.google.protobuf.ByteString value) The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set toHEADER_FIELD.
optional string http_header_name = 234798022;- Parameters:
value- The bytes for httpHeaderName to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasMinimumRingSizein interfaceConsistentHashLoadBalancerSettingsOrBuilder- Returns:
- Whether the minimumRingSize field is set.
-
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;- Specified by:
getMinimumRingSizein interfaceConsistentHashLoadBalancerSettingsOrBuilder- Returns:
- The minimumRingSize.
-
setMinimumRingSize
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;- Parameters:
value- The minimumRingSize to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-