Class ConsistentHashingLbConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.Builder>
io.envoyproxy.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ConsistentHashingLbConfigOrBuilder, Cloneable
Enclosing class:
ConsistentHashingLbConfig

public static final class ConsistentHashingLbConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.Builder> implements ConsistentHashingLbConfigOrBuilder
 Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)
 
Protobuf type envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig
  • Method Details

    • 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<ConsistentHashingLbConfig.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.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.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<ConsistentHashingLbConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.Builder>
    • setField

      public ConsistentHashingLbConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.Builder>
    • clearField

      public ConsistentHashingLbConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.Builder>
    • clearOneof

      public ConsistentHashingLbConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.Builder>
    • setRepeatedField

      public ConsistentHashingLbConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.Builder>
    • addRepeatedField

      public ConsistentHashingLbConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.Builder>
    • mergeFrom

      public ConsistentHashingLbConfig.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<ConsistentHashingLbConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.Builder>
    • mergeFrom

      public ConsistentHashingLbConfig.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<ConsistentHashingLbConfig.Builder>
      Throws:
      IOException
    • getUseHostnameForHashing

      public boolean getUseHostnameForHashing()
       If set to ``true``, the cluster will use hostname instead of the resolved
       address as the key to consistently hash to an upstream host. Only valid for StrictDNS clusters with hostnames which resolve to a single IP address.
       
      bool use_hostname_for_hashing = 1;
      Specified by:
      getUseHostnameForHashing in interface ConsistentHashingLbConfigOrBuilder
      Returns:
      The useHostnameForHashing.
    • setUseHostnameForHashing

      public ConsistentHashingLbConfig.Builder setUseHostnameForHashing(boolean value)
       If set to ``true``, the cluster will use hostname instead of the resolved
       address as the key to consistently hash to an upstream host. Only valid for StrictDNS clusters with hostnames which resolve to a single IP address.
       
      bool use_hostname_for_hashing = 1;
      Parameters:
      value - The useHostnameForHashing to set.
      Returns:
      This builder for chaining.
    • clearUseHostnameForHashing

      public ConsistentHashingLbConfig.Builder clearUseHostnameForHashing()
       If set to ``true``, the cluster will use hostname instead of the resolved
       address as the key to consistently hash to an upstream host. Only valid for StrictDNS clusters with hostnames which resolve to a single IP address.
       
      bool use_hostname_for_hashing = 1;
      Returns:
      This builder for chaining.
    • hasHashBalanceFactor

      public boolean hasHashBalanceFactor()
       Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150
       no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster.
       If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200.
       Minimum is 100.
      
       Applies to both Ring Hash and Maglev load balancers.
      
       This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified
       ``hash_balance_factor``, requests to any upstream host are capped at ``hash_balance_factor/100`` times the average number of requests
       across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing
       is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify
       the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the
       cascading overflow effect when choosing the next host in the ring/table).
      
       If weights are specified on the hosts, they are respected.
      
       This is an O(N) algorithm, unlike other load balancers. Using a lower ``hash_balance_factor`` results in more hosts
       being probed, so use a higher value if you require better performance.
       
      .google.protobuf.UInt32Value hash_balance_factor = 2 [(.validate.rules) = { ... }
      Specified by:
      hasHashBalanceFactor in interface ConsistentHashingLbConfigOrBuilder
      Returns:
      Whether the hashBalanceFactor field is set.
    • getHashBalanceFactor

      public com.google.protobuf.UInt32Value getHashBalanceFactor()
       Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150
       no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster.
       If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200.
       Minimum is 100.
      
       Applies to both Ring Hash and Maglev load balancers.
      
       This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified
       ``hash_balance_factor``, requests to any upstream host are capped at ``hash_balance_factor/100`` times the average number of requests
       across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing
       is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify
       the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the
       cascading overflow effect when choosing the next host in the ring/table).
      
       If weights are specified on the hosts, they are respected.
      
       This is an O(N) algorithm, unlike other load balancers. Using a lower ``hash_balance_factor`` results in more hosts
       being probed, so use a higher value if you require better performance.
       
      .google.protobuf.UInt32Value hash_balance_factor = 2 [(.validate.rules) = { ... }
      Specified by:
      getHashBalanceFactor in interface ConsistentHashingLbConfigOrBuilder
      Returns:
      The hashBalanceFactor.
    • setHashBalanceFactor

      public ConsistentHashingLbConfig.Builder setHashBalanceFactor(com.google.protobuf.UInt32Value value)
       Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150
       no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster.
       If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200.
       Minimum is 100.
      
       Applies to both Ring Hash and Maglev load balancers.
      
       This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified
       ``hash_balance_factor``, requests to any upstream host are capped at ``hash_balance_factor/100`` times the average number of requests
       across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing
       is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify
       the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the
       cascading overflow effect when choosing the next host in the ring/table).
      
       If weights are specified on the hosts, they are respected.
      
       This is an O(N) algorithm, unlike other load balancers. Using a lower ``hash_balance_factor`` results in more hosts
       being probed, so use a higher value if you require better performance.
       
      .google.protobuf.UInt32Value hash_balance_factor = 2 [(.validate.rules) = { ... }
    • setHashBalanceFactor

      public ConsistentHashingLbConfig.Builder setHashBalanceFactor(com.google.protobuf.UInt32Value.Builder builderForValue)
       Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150
       no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster.
       If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200.
       Minimum is 100.
      
       Applies to both Ring Hash and Maglev load balancers.
      
       This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified
       ``hash_balance_factor``, requests to any upstream host are capped at ``hash_balance_factor/100`` times the average number of requests
       across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing
       is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify
       the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the
       cascading overflow effect when choosing the next host in the ring/table).
      
       If weights are specified on the hosts, they are respected.
      
       This is an O(N) algorithm, unlike other load balancers. Using a lower ``hash_balance_factor`` results in more hosts
       being probed, so use a higher value if you require better performance.
       
      .google.protobuf.UInt32Value hash_balance_factor = 2 [(.validate.rules) = { ... }
    • mergeHashBalanceFactor

      public ConsistentHashingLbConfig.Builder mergeHashBalanceFactor(com.google.protobuf.UInt32Value value)
       Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150
       no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster.
       If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200.
       Minimum is 100.
      
       Applies to both Ring Hash and Maglev load balancers.
      
       This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified
       ``hash_balance_factor``, requests to any upstream host are capped at ``hash_balance_factor/100`` times the average number of requests
       across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing
       is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify
       the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the
       cascading overflow effect when choosing the next host in the ring/table).
      
       If weights are specified on the hosts, they are respected.
      
       This is an O(N) algorithm, unlike other load balancers. Using a lower ``hash_balance_factor`` results in more hosts
       being probed, so use a higher value if you require better performance.
       
      .google.protobuf.UInt32Value hash_balance_factor = 2 [(.validate.rules) = { ... }
    • clearHashBalanceFactor

      public ConsistentHashingLbConfig.Builder clearHashBalanceFactor()
       Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150
       no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster.
       If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200.
       Minimum is 100.
      
       Applies to both Ring Hash and Maglev load balancers.
      
       This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified
       ``hash_balance_factor``, requests to any upstream host are capped at ``hash_balance_factor/100`` times the average number of requests
       across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing
       is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify
       the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the
       cascading overflow effect when choosing the next host in the ring/table).
      
       If weights are specified on the hosts, they are respected.
      
       This is an O(N) algorithm, unlike other load balancers. Using a lower ``hash_balance_factor`` results in more hosts
       being probed, so use a higher value if you require better performance.
       
      .google.protobuf.UInt32Value hash_balance_factor = 2 [(.validate.rules) = { ... }
    • getHashBalanceFactorBuilder

      public com.google.protobuf.UInt32Value.Builder getHashBalanceFactorBuilder()
       Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150
       no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster.
       If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200.
       Minimum is 100.
      
       Applies to both Ring Hash and Maglev load balancers.
      
       This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified
       ``hash_balance_factor``, requests to any upstream host are capped at ``hash_balance_factor/100`` times the average number of requests
       across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing
       is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify
       the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the
       cascading overflow effect when choosing the next host in the ring/table).
      
       If weights are specified on the hosts, they are respected.
      
       This is an O(N) algorithm, unlike other load balancers. Using a lower ``hash_balance_factor`` results in more hosts
       being probed, so use a higher value if you require better performance.
       
      .google.protobuf.UInt32Value hash_balance_factor = 2 [(.validate.rules) = { ... }
    • getHashBalanceFactorOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getHashBalanceFactorOrBuilder()
       Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150
       no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster.
       If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200.
       Minimum is 100.
      
       Applies to both Ring Hash and Maglev load balancers.
      
       This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified
       ``hash_balance_factor``, requests to any upstream host are capped at ``hash_balance_factor/100`` times the average number of requests
       across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing
       is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify
       the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the
       cascading overflow effect when choosing the next host in the ring/table).
      
       If weights are specified on the hosts, they are respected.
      
       This is an O(N) algorithm, unlike other load balancers. Using a lower ``hash_balance_factor`` results in more hosts
       being probed, so use a higher value if you require better performance.
       
      .google.protobuf.UInt32Value hash_balance_factor = 2 [(.validate.rules) = { ... }
      Specified by:
      getHashBalanceFactorOrBuilder in interface ConsistentHashingLbConfigOrBuilder
    • getHashPolicyList

      public List<RouteAction.HashPolicy> getHashPolicyList()
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
      Specified by:
      getHashPolicyList in interface ConsistentHashingLbConfigOrBuilder
    • getHashPolicyCount

      public int getHashPolicyCount()
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
      Specified by:
      getHashPolicyCount in interface ConsistentHashingLbConfigOrBuilder
    • getHashPolicy

      public RouteAction.HashPolicy getHashPolicy(int index)
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
      Specified by:
      getHashPolicy in interface ConsistentHashingLbConfigOrBuilder
    • setHashPolicy

      public ConsistentHashingLbConfig.Builder setHashPolicy(int index, RouteAction.HashPolicy value)
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • setHashPolicy

      public ConsistentHashingLbConfig.Builder setHashPolicy(int index, RouteAction.HashPolicy.Builder builderForValue)
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • addHashPolicy

        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • addHashPolicy

      public ConsistentHashingLbConfig.Builder addHashPolicy(int index, RouteAction.HashPolicy value)
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • addHashPolicy

      public ConsistentHashingLbConfig.Builder addHashPolicy(RouteAction.HashPolicy.Builder builderForValue)
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • addHashPolicy

      public ConsistentHashingLbConfig.Builder addHashPolicy(int index, RouteAction.HashPolicy.Builder builderForValue)
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • addAllHashPolicy

      public ConsistentHashingLbConfig.Builder addAllHashPolicy(Iterable<? extends RouteAction.HashPolicy> values)
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • clearHashPolicy

      public ConsistentHashingLbConfig.Builder clearHashPolicy()
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • removeHashPolicy

      public ConsistentHashingLbConfig.Builder removeHashPolicy(int index)
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • getHashPolicyBuilder

      public RouteAction.HashPolicy.Builder getHashPolicyBuilder(int index)
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • getHashPolicyOrBuilder

      public RouteAction.HashPolicyOrBuilder getHashPolicyOrBuilder(int index)
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
      Specified by:
      getHashPolicyOrBuilder in interface ConsistentHashingLbConfigOrBuilder
    • getHashPolicyOrBuilderList

      public List<? extends RouteAction.HashPolicyOrBuilder> getHashPolicyOrBuilderList()
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
      Specified by:
      getHashPolicyOrBuilderList in interface ConsistentHashingLbConfigOrBuilder
    • addHashPolicyBuilder

      public RouteAction.HashPolicy.Builder addHashPolicyBuilder()
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • addHashPolicyBuilder

      public RouteAction.HashPolicy.Builder addHashPolicyBuilder(int index)
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • getHashPolicyBuilderList

      public List<RouteAction.HashPolicy.Builder> getHashPolicyBuilderList()
        Specifies a list of hash policies to use for ring hash load balancing. If ``hash_policy`` is
       set, then
       :ref:`route level hash policy <envoy_v3_api_field_config.route.v3.RouteAction.hash_policy>`
       will be ignored.
       
      repeated .envoy.config.route.v3.RouteAction.HashPolicy hash_policy = 3;
    • setUnknownFields

      public final ConsistentHashingLbConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.Builder>
    • mergeUnknownFields

      public final ConsistentHashingLbConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConsistentHashingLbConfig.Builder>