Class LocalityLbConfig.ZoneAwareLbConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
io.envoyproxy.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LocalityLbConfig.ZoneAwareLbConfigOrBuilder,Cloneable
- Enclosing class:
- LocalityLbConfig.ZoneAwareLbConfig
public static final class LocalityLbConfig.ZoneAwareLbConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
implements LocalityLbConfig.ZoneAwareLbConfigOrBuilder
Configuration for :ref:`zone aware routing <arch_overview_load_balancing_zone_aware_routing>`. [#next-free-field: 7]Protobuf type
envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()If set to true, Envoy will not consider any hosts when the cluster is in :ref:`panic mode<arch_overview_load_balancing_panic_threshold>`.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Deprecated.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.force_locality_direct_routing is deprecated..envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5;Determines how locality percentages are computed: - HEALTHY_HOSTS_NUM: proportional to the count of healthy hostsConfigures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf set to true, Envoy will not consider any hosts when the cluster is in :ref:`panic mode<arch_overview_load_balancing_panic_threshold>`.booleanDeprecated.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.force_locality_direct_routing is deprecated..envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5;.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5;.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5;Determines how locality percentages are computed: - HEALTHY_HOSTS_NUM: proportional to the count of healthy hostsintDetermines how locality percentages are computed: - HEALTHY_HOSTS_NUM: proportional to the count of healthy hostscom.google.protobuf.UInt64ValueConfigures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured.com.google.protobuf.UInt64Value.BuilderConfigures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured.com.google.protobuf.UInt64ValueOrBuilderConfigures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured.Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured.Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured.Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured.boolean.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5;booleanConfigures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured.booleanConfigures percentage of requests that will be considered for zone aware routing if zone aware routing is configured.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal boolean.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMinClusterSize(com.google.protobuf.UInt64Value value) Configures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured.mergeRoutingEnabled(Percent value) Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setFailTrafficOnPanic(boolean value) If set to true, Envoy will not consider any hosts when the cluster is in :ref:`panic mode<arch_overview_load_balancing_panic_threshold>`.setForceLocalityDirectRouting(boolean value) Deprecated.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.force_locality_direct_routing is deprecated..envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5;.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5;Determines how locality percentages are computed: - HEALTHY_HOSTS_NUM: proportional to the count of healthy hostssetLocalityBasisValue(int value) Determines how locality percentages are computed: - HEALTHY_HOSTS_NUM: proportional to the count of healthy hostssetMinClusterSize(com.google.protobuf.UInt64Value value) Configures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured.setMinClusterSize(com.google.protobuf.UInt64Value.Builder builderForValue) Configures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRoutingEnabled(Percent value) Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured.setRoutingEnabled(Percent.Builder builderForValue) Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
setField
public LocalityLbConfig.ZoneAwareLbConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
clearField
public LocalityLbConfig.ZoneAwareLbConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
clearOneof
public LocalityLbConfig.ZoneAwareLbConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
setRepeatedField
public LocalityLbConfig.ZoneAwareLbConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
addRepeatedField
public LocalityLbConfig.ZoneAwareLbConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
mergeFrom
public LocalityLbConfig.ZoneAwareLbConfig.Builder mergeFrom(LocalityLbConfig.ZoneAwareLbConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
mergeFrom
public LocalityLbConfig.ZoneAwareLbConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>- Throws:
IOException
-
hasRoutingEnabled
public boolean hasRoutingEnabled()Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured. If not specified, the default is 100%. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.envoy.type.v3.Percent routing_enabled = 1;- Specified by:
hasRoutingEnabledin interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder- Returns:
- Whether the routingEnabled field is set.
-
getRoutingEnabled
Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured. If not specified, the default is 100%. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.envoy.type.v3.Percent routing_enabled = 1;- Specified by:
getRoutingEnabledin interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder- Returns:
- The routingEnabled.
-
setRoutingEnabled
Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured. If not specified, the default is 100%. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.envoy.type.v3.Percent routing_enabled = 1; -
setRoutingEnabled
public LocalityLbConfig.ZoneAwareLbConfig.Builder setRoutingEnabled(Percent.Builder builderForValue) Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured. If not specified, the default is 100%. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.envoy.type.v3.Percent routing_enabled = 1; -
mergeRoutingEnabled
Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured. If not specified, the default is 100%. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.envoy.type.v3.Percent routing_enabled = 1; -
clearRoutingEnabled
Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured. If not specified, the default is 100%. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.envoy.type.v3.Percent routing_enabled = 1; -
getRoutingEnabledBuilder
Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured. If not specified, the default is 100%. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.envoy.type.v3.Percent routing_enabled = 1; -
getRoutingEnabledOrBuilder
Configures percentage of requests that will be considered for zone aware routing if zone aware routing is configured. If not specified, the default is 100%. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.envoy.type.v3.Percent routing_enabled = 1;- Specified by:
getRoutingEnabledOrBuilderin interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder
-
hasMinClusterSize
public boolean hasMinClusterSize()Configures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured. If not specified, the default is 6. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.google.protobuf.UInt64Value min_cluster_size = 2;- Specified by:
hasMinClusterSizein interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder- Returns:
- Whether the minClusterSize field is set.
-
getMinClusterSize
public com.google.protobuf.UInt64Value getMinClusterSize()Configures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured. If not specified, the default is 6. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.google.protobuf.UInt64Value min_cluster_size = 2;- Specified by:
getMinClusterSizein interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder- Returns:
- The minClusterSize.
-
setMinClusterSize
public LocalityLbConfig.ZoneAwareLbConfig.Builder setMinClusterSize(com.google.protobuf.UInt64Value value) Configures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured. If not specified, the default is 6. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.google.protobuf.UInt64Value min_cluster_size = 2; -
setMinClusterSize
public LocalityLbConfig.ZoneAwareLbConfig.Builder setMinClusterSize(com.google.protobuf.UInt64Value.Builder builderForValue) Configures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured. If not specified, the default is 6. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.google.protobuf.UInt64Value min_cluster_size = 2; -
mergeMinClusterSize
public LocalityLbConfig.ZoneAwareLbConfig.Builder mergeMinClusterSize(com.google.protobuf.UInt64Value value) Configures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured. If not specified, the default is 6. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.google.protobuf.UInt64Value min_cluster_size = 2; -
clearMinClusterSize
Configures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured. If not specified, the default is 6. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.google.protobuf.UInt64Value min_cluster_size = 2; -
getMinClusterSizeBuilder
public com.google.protobuf.UInt64Value.Builder getMinClusterSizeBuilder()Configures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured. If not specified, the default is 6. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.google.protobuf.UInt64Value min_cluster_size = 2; -
getMinClusterSizeOrBuilder
public com.google.protobuf.UInt64ValueOrBuilder getMinClusterSizeOrBuilder()Configures minimum upstream cluster size required for zone aware routing If upstream cluster size is less than specified, zone aware routing is not performed even if zone aware routing is configured. If not specified, the default is 6. * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
.google.protobuf.UInt64Value min_cluster_size = 2;- Specified by:
getMinClusterSizeOrBuilderin interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder
-
getFailTrafficOnPanic
public boolean getFailTrafficOnPanic()If set to true, Envoy will not consider any hosts when the cluster is in :ref:`panic mode<arch_overview_load_balancing_panic_threshold>`. Instead, the cluster will fail all requests as if all hosts are unhealthy. This can help avoid potentially overwhelming a failing service.
bool fail_traffic_on_panic = 3;- Specified by:
getFailTrafficOnPanicin interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder- Returns:
- The failTrafficOnPanic.
-
setFailTrafficOnPanic
If set to true, Envoy will not consider any hosts when the cluster is in :ref:`panic mode<arch_overview_load_balancing_panic_threshold>`. Instead, the cluster will fail all requests as if all hosts are unhealthy. This can help avoid potentially overwhelming a failing service.
bool fail_traffic_on_panic = 3;- Parameters:
value- The failTrafficOnPanic to set.- Returns:
- This builder for chaining.
-
clearFailTrafficOnPanic
If set to true, Envoy will not consider any hosts when the cluster is in :ref:`panic mode<arch_overview_load_balancing_panic_threshold>`. Instead, the cluster will fail all requests as if all hosts are unhealthy. This can help avoid potentially overwhelming a failing service.
bool fail_traffic_on_panic = 3;- Returns:
- This builder for chaining.
-
getForceLocalityDirectRouting
Deprecated.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.force_locality_direct_routing is deprecated. See envoy/extensions/load_balancing_policies/common/v3/common.proto;l=74If set to true, Envoy will force LocalityDirect routing if a local locality exists.
bool force_locality_direct_routing = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getForceLocalityDirectRoutingin interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder- Returns:
- The forceLocalityDirectRouting.
-
setForceLocalityDirectRouting
@Deprecated public LocalityLbConfig.ZoneAwareLbConfig.Builder setForceLocalityDirectRouting(boolean value) Deprecated.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.force_locality_direct_routing is deprecated. See envoy/extensions/load_balancing_policies/common/v3/common.proto;l=74If set to true, Envoy will force LocalityDirect routing if a local locality exists.
bool force_locality_direct_routing = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Parameters:
value- The forceLocalityDirectRouting to set.- Returns:
- This builder for chaining.
-
clearForceLocalityDirectRouting
Deprecated.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.force_locality_direct_routing is deprecated. See envoy/extensions/load_balancing_policies/common/v3/common.proto;l=74If set to true, Envoy will force LocalityDirect routing if a local locality exists.
bool force_locality_direct_routing = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Returns:
- This builder for chaining.
-
hasForceLocalZone
public boolean hasForceLocalZone().envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5;- Specified by:
hasForceLocalZonein interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder- Returns:
- Whether the forceLocalZone field is set.
-
getForceLocalZone
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5;- Specified by:
getForceLocalZonein interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder- Returns:
- The forceLocalZone.
-
setForceLocalZone
public LocalityLbConfig.ZoneAwareLbConfig.Builder setForceLocalZone(LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone value) .envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5; -
setForceLocalZone
public LocalityLbConfig.ZoneAwareLbConfig.Builder setForceLocalZone(LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone.Builder builderForValue) .envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5; -
mergeForceLocalZone
public LocalityLbConfig.ZoneAwareLbConfig.Builder mergeForceLocalZone(LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone value) .envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5; -
clearForceLocalZone
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5; -
getForceLocalZoneBuilder
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5; -
getForceLocalZoneOrBuilder
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone force_local_zone = 5;- Specified by:
getForceLocalZoneOrBuilderin interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder
-
getLocalityBasisValue
public int getLocalityBasisValue()Determines how locality percentages are computed: - HEALTHY_HOSTS_NUM: proportional to the count of healthy hosts. - HEALTHY_HOSTS_WEIGHT: proportional to the weights of healthy hosts. Default value is HEALTHY_HOSTS_NUM if unset.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.LocalityBasis locality_basis = 6;- Specified by:
getLocalityBasisValuein interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder- Returns:
- The enum numeric value on the wire for localityBasis.
-
setLocalityBasisValue
Determines how locality percentages are computed: - HEALTHY_HOSTS_NUM: proportional to the count of healthy hosts. - HEALTHY_HOSTS_WEIGHT: proportional to the weights of healthy hosts. Default value is HEALTHY_HOSTS_NUM if unset.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.LocalityBasis locality_basis = 6;- Parameters:
value- The enum numeric value on the wire for localityBasis to set.- Returns:
- This builder for chaining.
-
getLocalityBasis
Determines how locality percentages are computed: - HEALTHY_HOSTS_NUM: proportional to the count of healthy hosts. - HEALTHY_HOSTS_WEIGHT: proportional to the weights of healthy hosts. Default value is HEALTHY_HOSTS_NUM if unset.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.LocalityBasis locality_basis = 6;- Specified by:
getLocalityBasisin interfaceLocalityLbConfig.ZoneAwareLbConfigOrBuilder- Returns:
- The localityBasis.
-
setLocalityBasis
public LocalityLbConfig.ZoneAwareLbConfig.Builder setLocalityBasis(LocalityLbConfig.ZoneAwareLbConfig.LocalityBasis value) Determines how locality percentages are computed: - HEALTHY_HOSTS_NUM: proportional to the count of healthy hosts. - HEALTHY_HOSTS_WEIGHT: proportional to the weights of healthy hosts. Default value is HEALTHY_HOSTS_NUM if unset.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.LocalityBasis locality_basis = 6;- Parameters:
value- The localityBasis to set.- Returns:
- This builder for chaining.
-
clearLocalityBasis
Determines how locality percentages are computed: - HEALTHY_HOSTS_NUM: proportional to the count of healthy hosts. - HEALTHY_HOSTS_WEIGHT: proportional to the weights of healthy hosts. Default value is HEALTHY_HOSTS_NUM if unset.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.LocalityBasis locality_basis = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final LocalityLbConfig.ZoneAwareLbConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-
mergeUnknownFields
public final LocalityLbConfig.ZoneAwareLbConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbConfig.ZoneAwareLbConfig.Builder>
-