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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ConsistentHashLoadBalancerSettings.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ConsistentHashLoadBalancerSettings.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ConsistentHashLoadBalancerSettings.Builder>
    • getDefaultInstanceForType

      public ConsistentHashLoadBalancerSettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ConsistentHashLoadBalancerSettings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ConsistentHashLoadBalancerSettings.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConsistentHashLoadBalancerSettings.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasHttpCookie in interface ConsistentHashLoadBalancerSettingsOrBuilder
      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:
      getHttpCookie in interface ConsistentHashLoadBalancerSettingsOrBuilder
      Returns:
      The httpCookie.
    • setHttpCookie

       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

       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

       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:
      getHttpCookieOrBuilder in interface ConsistentHashLoadBalancerSettingsOrBuilder
    • 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:
      hasHttpHeaderName in interface ConsistentHashLoadBalancerSettingsOrBuilder
      Returns:
      Whether the httpHeaderName field is set.
    • getHttpHeaderName

      public String 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:
      getHttpHeaderName in interface ConsistentHashLoadBalancerSettingsOrBuilder
      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:
      getHttpHeaderNameBytes in interface ConsistentHashLoadBalancerSettingsOrBuilder
      Returns:
      The bytes for httpHeaderName.
    • setHttpHeaderName

      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 toHEADER_FIELD.
       
      optional string http_header_name = 234798022;
      Parameters:
      value - The httpHeaderName to set.
      Returns:
      This builder for chaining.
    • clearHttpHeaderName

      public ConsistentHashLoadBalancerSettings.Builder 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:
      hasMinimumRingSize in interface ConsistentHashLoadBalancerSettingsOrBuilder
      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:
      getMinimumRingSize in interface ConsistentHashLoadBalancerSettingsOrBuilder
      Returns:
      The minimumRingSize.
    • setMinimumRingSize

      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;
      Parameters:
      value - The minimumRingSize to set.
      Returns:
      This builder for chaining.
    • 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;
      Returns:
      This builder for chaining.