Class ConsistentHashLoadBalancerSettings

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings
All Implemented Interfaces:
ConsistentHashLoadBalancerSettingsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ConsistentHashLoadBalancerSettings extends com.google.protobuf.GeneratedMessage implements ConsistentHashLoadBalancerSettingsOrBuilder
 This message defines settings for a consistent hash style load balancer.
 
Protobuf type google.cloud.compute.v1.ConsistentHashLoadBalancerSettings
See Also:
  • Field Details

    • HTTP_HEADER_NAME_FIELD_NUMBER

      public static final int HTTP_HEADER_NAME_FIELD_NUMBER
      See Also:
    • MINIMUM_RING_SIZE_FIELD_NUMBER

      public static final int MINIMUM_RING_SIZE_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ConsistentHashLoadBalancerSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsistentHashLoadBalancerSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsistentHashLoadBalancerSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsistentHashLoadBalancerSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsistentHashLoadBalancerSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsistentHashLoadBalancerSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsistentHashLoadBalancerSettings parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConsistentHashLoadBalancerSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConsistentHashLoadBalancerSettings parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConsistentHashLoadBalancerSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConsistentHashLoadBalancerSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConsistentHashLoadBalancerSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ConsistentHashLoadBalancerSettings.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ConsistentHashLoadBalancerSettings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ConsistentHashLoadBalancerSettings getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ConsistentHashLoadBalancerSettings> parser()
    • getParserForType

      public com.google.protobuf.Parser<ConsistentHashLoadBalancerSettings> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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