Class LocalityLbEndpoints.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
- io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpoints.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LocalityLbEndpointsOrBuilder,Cloneable
- Enclosing class:
- LocalityLbEndpoints
public static final class LocalityLbEndpoints.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder> implements LocalityLbEndpointsOrBuilder
A group of endpoints belonging to a Locality. One can have multiple LocalityLbEndpoints for a locality, but this is generally only done if the different groups need to have different load balancing weights or different priorities. [#next-free-field: 7]
Protobuf typeenvoy.api.v2.endpoint.LocalityLbEndpoints
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalityLbEndpoints.BuilderaddAllLbEndpoints(Iterable<? extends LbEndpoint> values)The group of endpoints belonging to the locality specified.LocalityLbEndpoints.BuilderaddLbEndpoints(int index, LbEndpoint value)The group of endpoints belonging to the locality specified.LocalityLbEndpoints.BuilderaddLbEndpoints(int index, LbEndpoint.Builder builderForValue)The group of endpoints belonging to the locality specified.LocalityLbEndpoints.BuilderaddLbEndpoints(LbEndpoint value)The group of endpoints belonging to the locality specified.LocalityLbEndpoints.BuilderaddLbEndpoints(LbEndpoint.Builder builderForValue)The group of endpoints belonging to the locality specified.LbEndpoint.BuilderaddLbEndpointsBuilder()The group of endpoints belonging to the locality specified.LbEndpoint.BuilderaddLbEndpointsBuilder(int index)The group of endpoints belonging to the locality specified.LocalityLbEndpoints.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LocalityLbEndpointsbuild()LocalityLbEndpointsbuildPartial()LocalityLbEndpoints.Builderclear()LocalityLbEndpoints.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LocalityLbEndpoints.BuilderclearLbEndpoints()The group of endpoints belonging to the locality specified.LocalityLbEndpoints.BuilderclearLoadBalancingWeight()Optional: Per priority/region/zone/sub_zone weight; at least 1.LocalityLbEndpoints.BuilderclearLocality()Identifies location of where the upstream hosts run.LocalityLbEndpoints.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LocalityLbEndpoints.BuilderclearPriority()Optional: the priority for this LocalityLbEndpoints.LocalityLbEndpoints.BuilderclearProximity()Optional: Per locality proximity value which indicates how close this locality is from the source locality.LocalityLbEndpoints.Builderclone()LocalityLbEndpointsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()LbEndpointgetLbEndpoints(int index)The group of endpoints belonging to the locality specified.LbEndpoint.BuildergetLbEndpointsBuilder(int index)The group of endpoints belonging to the locality specified.List<LbEndpoint.Builder>getLbEndpointsBuilderList()The group of endpoints belonging to the locality specified.intgetLbEndpointsCount()The group of endpoints belonging to the locality specified.List<LbEndpoint>getLbEndpointsList()The group of endpoints belonging to the locality specified.LbEndpointOrBuildergetLbEndpointsOrBuilder(int index)The group of endpoints belonging to the locality specified.List<? extends LbEndpointOrBuilder>getLbEndpointsOrBuilderList()The group of endpoints belonging to the locality specified.com.google.protobuf.UInt32ValuegetLoadBalancingWeight()Optional: Per priority/region/zone/sub_zone weight; at least 1.com.google.protobuf.UInt32Value.BuildergetLoadBalancingWeightBuilder()Optional: Per priority/region/zone/sub_zone weight; at least 1.com.google.protobuf.UInt32ValueOrBuildergetLoadBalancingWeightOrBuilder()Optional: Per priority/region/zone/sub_zone weight; at least 1.LocalitygetLocality()Identifies location of where the upstream hosts run.Locality.BuildergetLocalityBuilder()Identifies location of where the upstream hosts run.LocalityOrBuildergetLocalityOrBuilder()Identifies location of where the upstream hosts run.intgetPriority()Optional: the priority for this LocalityLbEndpoints.com.google.protobuf.UInt32ValuegetProximity()Optional: Per locality proximity value which indicates how close this locality is from the source locality.com.google.protobuf.UInt32Value.BuildergetProximityBuilder()Optional: Per locality proximity value which indicates how close this locality is from the source locality.com.google.protobuf.UInt32ValueOrBuildergetProximityOrBuilder()Optional: Per locality proximity value which indicates how close this locality is from the source locality.booleanhasLoadBalancingWeight()Optional: Per priority/region/zone/sub_zone weight; at least 1.booleanhasLocality()Identifies location of where the upstream hosts run.booleanhasProximity()Optional: Per locality proximity value which indicates how close this locality is from the source locality.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LocalityLbEndpoints.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LocalityLbEndpoints.BuildermergeFrom(com.google.protobuf.Message other)LocalityLbEndpoints.BuildermergeFrom(LocalityLbEndpoints other)LocalityLbEndpoints.BuildermergeLoadBalancingWeight(com.google.protobuf.UInt32Value value)Optional: Per priority/region/zone/sub_zone weight; at least 1.LocalityLbEndpoints.BuildermergeLocality(Locality value)Identifies location of where the upstream hosts run.LocalityLbEndpoints.BuildermergeProximity(com.google.protobuf.UInt32Value value)Optional: Per locality proximity value which indicates how close this locality is from the source locality.LocalityLbEndpoints.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LocalityLbEndpoints.BuilderremoveLbEndpoints(int index)The group of endpoints belonging to the locality specified.LocalityLbEndpoints.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LocalityLbEndpoints.BuildersetLbEndpoints(int index, LbEndpoint value)The group of endpoints belonging to the locality specified.LocalityLbEndpoints.BuildersetLbEndpoints(int index, LbEndpoint.Builder builderForValue)The group of endpoints belonging to the locality specified.LocalityLbEndpoints.BuildersetLoadBalancingWeight(com.google.protobuf.UInt32Value value)Optional: Per priority/region/zone/sub_zone weight; at least 1.LocalityLbEndpoints.BuildersetLoadBalancingWeight(com.google.protobuf.UInt32Value.Builder builderForValue)Optional: Per priority/region/zone/sub_zone weight; at least 1.LocalityLbEndpoints.BuildersetLocality(Locality value)Identifies location of where the upstream hosts run.LocalityLbEndpoints.BuildersetLocality(Locality.Builder builderForValue)Identifies location of where the upstream hosts run.LocalityLbEndpoints.BuildersetPriority(int value)Optional: the priority for this LocalityLbEndpoints.LocalityLbEndpoints.BuildersetProximity(com.google.protobuf.UInt32Value value)Optional: Per locality proximity value which indicates how close this locality is from the source locality.LocalityLbEndpoints.BuildersetProximity(com.google.protobuf.UInt32Value.Builder builderForValue)Optional: Per locality proximity value which indicates how close this locality is from the source locality.LocalityLbEndpoints.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LocalityLbEndpoints.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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<LocalityLbEndpoints.Builder>
-
clear
public LocalityLbEndpoints.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<LocalityLbEndpoints.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<LocalityLbEndpoints.Builder>
-
getDefaultInstanceForType
public LocalityLbEndpoints getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocalityLbEndpoints build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocalityLbEndpoints buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocalityLbEndpoints.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<LocalityLbEndpoints.Builder>
-
setField
public LocalityLbEndpoints.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<LocalityLbEndpoints.Builder>
-
clearField
public LocalityLbEndpoints.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
clearOneof
public LocalityLbEndpoints.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
setRepeatedField
public LocalityLbEndpoints.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<LocalityLbEndpoints.Builder>
-
addRepeatedField
public LocalityLbEndpoints.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<LocalityLbEndpoints.Builder>
-
mergeFrom
public LocalityLbEndpoints.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalityLbEndpoints.Builder>
-
mergeFrom
public LocalityLbEndpoints.Builder mergeFrom(LocalityLbEndpoints other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
mergeFrom
public LocalityLbEndpoints.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<LocalityLbEndpoints.Builder>- Throws:
IOException
-
hasLocality
public boolean hasLocality()
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;- Specified by:
hasLocalityin interfaceLocalityLbEndpointsOrBuilder- Returns:
- Whether the locality field is set.
-
getLocality
public Locality getLocality()
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;- Specified by:
getLocalityin interfaceLocalityLbEndpointsOrBuilder- Returns:
- The locality.
-
setLocality
public LocalityLbEndpoints.Builder setLocality(Locality value)
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;
-
setLocality
public LocalityLbEndpoints.Builder setLocality(Locality.Builder builderForValue)
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;
-
mergeLocality
public LocalityLbEndpoints.Builder mergeLocality(Locality value)
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;
-
clearLocality
public LocalityLbEndpoints.Builder clearLocality()
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;
-
getLocalityBuilder
public Locality.Builder getLocalityBuilder()
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;
-
getLocalityOrBuilder
public LocalityOrBuilder getLocalityOrBuilder()
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;- Specified by:
getLocalityOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpointsList
public List<LbEndpoint> getLbEndpointsList()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsListin interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpointsCount
public int getLbEndpointsCount()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsCountin interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpoints
public LbEndpoint getLbEndpoints(int index)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsin interfaceLocalityLbEndpointsOrBuilder
-
setLbEndpoints
public LocalityLbEndpoints.Builder setLbEndpoints(int index, LbEndpoint value)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
setLbEndpoints
public LocalityLbEndpoints.Builder setLbEndpoints(int index, LbEndpoint.Builder builderForValue)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
addLbEndpoints
public LocalityLbEndpoints.Builder addLbEndpoints(LbEndpoint value)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
addLbEndpoints
public LocalityLbEndpoints.Builder addLbEndpoints(int index, LbEndpoint value)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
addLbEndpoints
public LocalityLbEndpoints.Builder addLbEndpoints(LbEndpoint.Builder builderForValue)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
addLbEndpoints
public LocalityLbEndpoints.Builder addLbEndpoints(int index, LbEndpoint.Builder builderForValue)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
addAllLbEndpoints
public LocalityLbEndpoints.Builder addAllLbEndpoints(Iterable<? extends LbEndpoint> values)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
clearLbEndpoints
public LocalityLbEndpoints.Builder clearLbEndpoints()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
removeLbEndpoints
public LocalityLbEndpoints.Builder removeLbEndpoints(int index)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
getLbEndpointsBuilder
public LbEndpoint.Builder getLbEndpointsBuilder(int index)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
getLbEndpointsOrBuilder
public LbEndpointOrBuilder getLbEndpointsOrBuilder(int index)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpointsOrBuilderList
public List<? extends LbEndpointOrBuilder> getLbEndpointsOrBuilderList()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsOrBuilderListin interfaceLocalityLbEndpointsOrBuilder
-
addLbEndpointsBuilder
public LbEndpoint.Builder addLbEndpointsBuilder()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
addLbEndpointsBuilder
public LbEndpoint.Builder addLbEndpointsBuilder(int index)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
getLbEndpointsBuilderList
public List<LbEndpoint.Builder> getLbEndpointsBuilderList()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;
-
hasLoadBalancingWeight
public boolean hasLoadBalancingWeight()
Optional: Per priority/region/zone/sub_zone weight; at least 1. The load balancing weight for a locality is divided by the sum of the weights of all localities at the same priority level to produce the effective percentage of traffic for the locality. The sum of the weights of all localities at the same priority level must not exceed uint32_t maximal value (4294967295). Locality weights are only considered when :ref:`locality weighted load balancing <arch_overview_load_balancing_locality_weighted_lb>` is configured. These weights are ignored otherwise. If no weights are specified when locality weighted load balancing is enabled, the locality is assigned no load.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }- Specified by:
hasLoadBalancingWeightin interfaceLocalityLbEndpointsOrBuilder- Returns:
- Whether the loadBalancingWeight field is set.
-
getLoadBalancingWeight
public com.google.protobuf.UInt32Value getLoadBalancingWeight()
Optional: Per priority/region/zone/sub_zone weight; at least 1. The load balancing weight for a locality is divided by the sum of the weights of all localities at the same priority level to produce the effective percentage of traffic for the locality. The sum of the weights of all localities at the same priority level must not exceed uint32_t maximal value (4294967295). Locality weights are only considered when :ref:`locality weighted load balancing <arch_overview_load_balancing_locality_weighted_lb>` is configured. These weights are ignored otherwise. If no weights are specified when locality weighted load balancing is enabled, the locality is assigned no load.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }- Specified by:
getLoadBalancingWeightin interfaceLocalityLbEndpointsOrBuilder- Returns:
- The loadBalancingWeight.
-
setLoadBalancingWeight
public LocalityLbEndpoints.Builder setLoadBalancingWeight(com.google.protobuf.UInt32Value value)
Optional: Per priority/region/zone/sub_zone weight; at least 1. The load balancing weight for a locality is divided by the sum of the weights of all localities at the same priority level to produce the effective percentage of traffic for the locality. The sum of the weights of all localities at the same priority level must not exceed uint32_t maximal value (4294967295). Locality weights are only considered when :ref:`locality weighted load balancing <arch_overview_load_balancing_locality_weighted_lb>` is configured. These weights are ignored otherwise. If no weights are specified when locality weighted load balancing is enabled, the locality is assigned no load.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }
-
setLoadBalancingWeight
public LocalityLbEndpoints.Builder setLoadBalancingWeight(com.google.protobuf.UInt32Value.Builder builderForValue)
Optional: Per priority/region/zone/sub_zone weight; at least 1. The load balancing weight for a locality is divided by the sum of the weights of all localities at the same priority level to produce the effective percentage of traffic for the locality. The sum of the weights of all localities at the same priority level must not exceed uint32_t maximal value (4294967295). Locality weights are only considered when :ref:`locality weighted load balancing <arch_overview_load_balancing_locality_weighted_lb>` is configured. These weights are ignored otherwise. If no weights are specified when locality weighted load balancing is enabled, the locality is assigned no load.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }
-
mergeLoadBalancingWeight
public LocalityLbEndpoints.Builder mergeLoadBalancingWeight(com.google.protobuf.UInt32Value value)
Optional: Per priority/region/zone/sub_zone weight; at least 1. The load balancing weight for a locality is divided by the sum of the weights of all localities at the same priority level to produce the effective percentage of traffic for the locality. The sum of the weights of all localities at the same priority level must not exceed uint32_t maximal value (4294967295). Locality weights are only considered when :ref:`locality weighted load balancing <arch_overview_load_balancing_locality_weighted_lb>` is configured. These weights are ignored otherwise. If no weights are specified when locality weighted load balancing is enabled, the locality is assigned no load.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }
-
clearLoadBalancingWeight
public LocalityLbEndpoints.Builder clearLoadBalancingWeight()
Optional: Per priority/region/zone/sub_zone weight; at least 1. The load balancing weight for a locality is divided by the sum of the weights of all localities at the same priority level to produce the effective percentage of traffic for the locality. The sum of the weights of all localities at the same priority level must not exceed uint32_t maximal value (4294967295). Locality weights are only considered when :ref:`locality weighted load balancing <arch_overview_load_balancing_locality_weighted_lb>` is configured. These weights are ignored otherwise. If no weights are specified when locality weighted load balancing is enabled, the locality is assigned no load.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }
-
getLoadBalancingWeightBuilder
public com.google.protobuf.UInt32Value.Builder getLoadBalancingWeightBuilder()
Optional: Per priority/region/zone/sub_zone weight; at least 1. The load balancing weight for a locality is divided by the sum of the weights of all localities at the same priority level to produce the effective percentage of traffic for the locality. The sum of the weights of all localities at the same priority level must not exceed uint32_t maximal value (4294967295). Locality weights are only considered when :ref:`locality weighted load balancing <arch_overview_load_balancing_locality_weighted_lb>` is configured. These weights are ignored otherwise. If no weights are specified when locality weighted load balancing is enabled, the locality is assigned no load.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }
-
getLoadBalancingWeightOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getLoadBalancingWeightOrBuilder()
Optional: Per priority/region/zone/sub_zone weight; at least 1. The load balancing weight for a locality is divided by the sum of the weights of all localities at the same priority level to produce the effective percentage of traffic for the locality. The sum of the weights of all localities at the same priority level must not exceed uint32_t maximal value (4294967295). Locality weights are only considered when :ref:`locality weighted load balancing <arch_overview_load_balancing_locality_weighted_lb>` is configured. These weights are ignored otherwise. If no weights are specified when locality weighted load balancing is enabled, the locality is assigned no load.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }- Specified by:
getLoadBalancingWeightOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
getPriority
public int getPriority()
Optional: the priority for this LocalityLbEndpoints. If unspecified this will default to the highest priority (0). Under usual circumstances, Envoy will only select endpoints for the highest priority (0). In the event all endpoints for a particular priority are unavailable/unhealthy, Envoy will fail over to selecting endpoints for the next highest priority group. Priorities should range from 0 (highest) to N (lowest) without skipping.
uint32 priority = 5 [(.validate.rules) = { ... }- Specified by:
getPriorityin interfaceLocalityLbEndpointsOrBuilder- Returns:
- The priority.
-
setPriority
public LocalityLbEndpoints.Builder setPriority(int value)
Optional: the priority for this LocalityLbEndpoints. If unspecified this will default to the highest priority (0). Under usual circumstances, Envoy will only select endpoints for the highest priority (0). In the event all endpoints for a particular priority are unavailable/unhealthy, Envoy will fail over to selecting endpoints for the next highest priority group. Priorities should range from 0 (highest) to N (lowest) without skipping.
uint32 priority = 5 [(.validate.rules) = { ... }- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
public LocalityLbEndpoints.Builder clearPriority()
Optional: the priority for this LocalityLbEndpoints. If unspecified this will default to the highest priority (0). Under usual circumstances, Envoy will only select endpoints for the highest priority (0). In the event all endpoints for a particular priority are unavailable/unhealthy, Envoy will fail over to selecting endpoints for the next highest priority group. Priorities should range from 0 (highest) to N (lowest) without skipping.
uint32 priority = 5 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
hasProximity
public boolean hasProximity()
Optional: Per locality proximity value which indicates how close this locality is from the source locality. This value only provides ordering information (lower the value, closer it is to the source locality). This will be consumed by load balancing schemes that need proximity order to determine where to route the requests. [#not-implemented-hide:]
.google.protobuf.UInt32Value proximity = 6;- Specified by:
hasProximityin interfaceLocalityLbEndpointsOrBuilder- Returns:
- Whether the proximity field is set.
-
getProximity
public com.google.protobuf.UInt32Value getProximity()
Optional: Per locality proximity value which indicates how close this locality is from the source locality. This value only provides ordering information (lower the value, closer it is to the source locality). This will be consumed by load balancing schemes that need proximity order to determine where to route the requests. [#not-implemented-hide:]
.google.protobuf.UInt32Value proximity = 6;- Specified by:
getProximityin interfaceLocalityLbEndpointsOrBuilder- Returns:
- The proximity.
-
setProximity
public LocalityLbEndpoints.Builder setProximity(com.google.protobuf.UInt32Value value)
Optional: Per locality proximity value which indicates how close this locality is from the source locality. This value only provides ordering information (lower the value, closer it is to the source locality). This will be consumed by load balancing schemes that need proximity order to determine where to route the requests. [#not-implemented-hide:]
.google.protobuf.UInt32Value proximity = 6;
-
setProximity
public LocalityLbEndpoints.Builder setProximity(com.google.protobuf.UInt32Value.Builder builderForValue)
Optional: Per locality proximity value which indicates how close this locality is from the source locality. This value only provides ordering information (lower the value, closer it is to the source locality). This will be consumed by load balancing schemes that need proximity order to determine where to route the requests. [#not-implemented-hide:]
.google.protobuf.UInt32Value proximity = 6;
-
mergeProximity
public LocalityLbEndpoints.Builder mergeProximity(com.google.protobuf.UInt32Value value)
Optional: Per locality proximity value which indicates how close this locality is from the source locality. This value only provides ordering information (lower the value, closer it is to the source locality). This will be consumed by load balancing schemes that need proximity order to determine where to route the requests. [#not-implemented-hide:]
.google.protobuf.UInt32Value proximity = 6;
-
clearProximity
public LocalityLbEndpoints.Builder clearProximity()
Optional: Per locality proximity value which indicates how close this locality is from the source locality. This value only provides ordering information (lower the value, closer it is to the source locality). This will be consumed by load balancing schemes that need proximity order to determine where to route the requests. [#not-implemented-hide:]
.google.protobuf.UInt32Value proximity = 6;
-
getProximityBuilder
public com.google.protobuf.UInt32Value.Builder getProximityBuilder()
Optional: Per locality proximity value which indicates how close this locality is from the source locality. This value only provides ordering information (lower the value, closer it is to the source locality). This will be consumed by load balancing schemes that need proximity order to determine where to route the requests. [#not-implemented-hide:]
.google.protobuf.UInt32Value proximity = 6;
-
getProximityOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getProximityOrBuilder()
Optional: Per locality proximity value which indicates how close this locality is from the source locality. This value only provides ordering information (lower the value, closer it is to the source locality). This will be consumed by load balancing schemes that need proximity order to determine where to route the requests. [#not-implemented-hide:]
.google.protobuf.UInt32Value proximity = 6;- Specified by:
getProximityOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
setUnknownFields
public final LocalityLbEndpoints.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
mergeUnknownFields
public final LocalityLbEndpoints.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
-