Class ConsistentHashLoadBalancerSettings.Builder

    • Method Detail

      • 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.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.GeneratedMessageV3.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

        public ConsistentHashLoadBalancerSettings 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashLoadBalancerSettings.Builder>
      • 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.
      • 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

        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;
      • 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;
        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.
      • 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 to HEADER_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 to HEADER_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 to HEADER_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.