Class ConsistentHashLoadBalancerSettings

    • Field Detail

      • HTTP_COOKIE_FIELD_NUMBER

        public static final int HTTP_COOKIE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HTTP_HEADER_NAME_FIELD_NUMBER

        public static final int HTTP_HEADER_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MINIMUM_RING_SIZE_FIELD_NUMBER

        public static final int MINIMUM_RING_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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

        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;
        Specified by:
        getHttpCookie in interface ConsistentHashLoadBalancerSettingsOrBuilder
        Returns:
        The httpCookie.
      • 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;
        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 to HEADER_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 to HEADER_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 to HEADER_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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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,
                                                                   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
      • newBuilderForType

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

        public ConsistentHashLoadBalancerSettings.Builder 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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