Class LocalityLbEndpoints.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<LocalityLbEndpoints.Builder>
-
- io.envoyproxy.envoy.config.endpoint.v3.LocalityLbEndpoints.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LocalityLbEndpointsOrBuilder,java.lang.Cloneable
- Enclosing class:
- LocalityLbEndpoints
public static final class LocalityLbEndpoints.Builder extends com.google.protobuf.GeneratedMessage.Builder<LocalityLbEndpoints.Builder> implements LocalityLbEndpointsOrBuilder
A group of endpoints belonging to a Locality. One can have multiple LocalityLbEndpoints for a locality, but only if they have different priorities. [#next-free-field: 10]
Protobuf typeenvoy.config.endpoint.v3.LocalityLbEndpoints
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private java.lang.ObjectlbConfig_private intlbConfigCase_private java.util.List<LbEndpoint>lbEndpoints_private com.google.protobuf.RepeatedFieldBuilder<LbEndpoint,LbEndpoint.Builder,LbEndpointOrBuilder>lbEndpointsBuilder_private com.google.protobuf.SingleFieldBuilder<LedsClusterLocalityConfig,LedsClusterLocalityConfig.Builder,LedsClusterLocalityConfigOrBuilder>ledsClusterLocalityConfigBuilder_private com.google.protobuf.SingleFieldBuilder<LocalityLbEndpoints.LbEndpointList,LocalityLbEndpoints.LbEndpointList.Builder,LocalityLbEndpoints.LbEndpointListOrBuilder>loadBalancerEndpointsBuilder_private com.google.protobuf.UInt32ValueloadBalancingWeight_private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder>loadBalancingWeightBuilder_private Localitylocality_private com.google.protobuf.SingleFieldBuilder<Locality,Locality.Builder,LocalityOrBuilder>localityBuilder_private Metadatametadata_private com.google.protobuf.SingleFieldBuilder<Metadata,Metadata.Builder,MetadataOrBuilder>metadataBuilder_private intpriority_private com.google.protobuf.UInt32Valueproximity_private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder>proximityBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalityLbEndpoints.BuilderaddAllLbEndpoints(java.lang.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.LocalityLbEndpointsbuild()LocalityLbEndpointsbuildPartial()private voidbuildPartial0(LocalityLbEndpoints result)private voidbuildPartialOneofs(LocalityLbEndpoints result)private voidbuildPartialRepeatedFields(LocalityLbEndpoints result)LocalityLbEndpoints.Builderclear()LocalityLbEndpoints.BuilderclearLbConfig()LocalityLbEndpoints.BuilderclearLbEndpoints()The group of endpoints belonging to the locality specified.LocalityLbEndpoints.BuilderclearLedsClusterLocalityConfig()LEDS Configuration for the current locality.LocalityLbEndpoints.BuilderclearLoadBalancerEndpoints()The group of endpoints belonging to the locality.LocalityLbEndpoints.BuilderclearLoadBalancingWeight()Optional: Per priority/region/zone/sub_zone weight; at least 1.LocalityLbEndpoints.BuilderclearLocality()Identifies location of where the upstream hosts run.LocalityLbEndpoints.BuilderclearMetadata()Metadata to provide additional information about the locality endpoints in aggregate.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.private voidensureLbEndpointsIsMutable()LocalityLbEndpointsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()LocalityLbEndpoints.LbConfigCasegetLbConfigCase()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.java.util.List<LbEndpoint.Builder>getLbEndpointsBuilderList()The group of endpoints belonging to the locality specified.intgetLbEndpointsCount()The group of endpoints belonging to the locality specified.private com.google.protobuf.RepeatedFieldBuilder<LbEndpoint,LbEndpoint.Builder,LbEndpointOrBuilder>getLbEndpointsFieldBuilder()java.util.List<LbEndpoint>getLbEndpointsList()The group of endpoints belonging to the locality specified.LbEndpointOrBuildergetLbEndpointsOrBuilder(int index)The group of endpoints belonging to the locality specified.java.util.List<? extends LbEndpointOrBuilder>getLbEndpointsOrBuilderList()The group of endpoints belonging to the locality specified.LedsClusterLocalityConfiggetLedsClusterLocalityConfig()LEDS Configuration for the current locality.LedsClusterLocalityConfig.BuildergetLedsClusterLocalityConfigBuilder()LEDS Configuration for the current locality.private com.google.protobuf.SingleFieldBuilder<LedsClusterLocalityConfig,LedsClusterLocalityConfig.Builder,LedsClusterLocalityConfigOrBuilder>getLedsClusterLocalityConfigFieldBuilder()LEDS Configuration for the current locality.LedsClusterLocalityConfigOrBuildergetLedsClusterLocalityConfigOrBuilder()LEDS Configuration for the current locality.LocalityLbEndpoints.LbEndpointListgetLoadBalancerEndpoints()The group of endpoints belonging to the locality.LocalityLbEndpoints.LbEndpointList.BuildergetLoadBalancerEndpointsBuilder()The group of endpoints belonging to the locality.private com.google.protobuf.SingleFieldBuilder<LocalityLbEndpoints.LbEndpointList,LocalityLbEndpoints.LbEndpointList.Builder,LocalityLbEndpoints.LbEndpointListOrBuilder>getLoadBalancerEndpointsFieldBuilder()The group of endpoints belonging to the locality.LocalityLbEndpoints.LbEndpointListOrBuildergetLoadBalancerEndpointsOrBuilder()The group of endpoints belonging to the locality.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.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder>getLoadBalancingWeightFieldBuilder()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.private com.google.protobuf.SingleFieldBuilder<Locality,Locality.Builder,LocalityOrBuilder>getLocalityFieldBuilder()Identifies location of where the upstream hosts run.LocalityOrBuildergetLocalityOrBuilder()Identifies location of where the upstream hosts run.MetadatagetMetadata()Metadata to provide additional information about the locality endpoints in aggregate.Metadata.BuildergetMetadataBuilder()Metadata to provide additional information about the locality endpoints in aggregate.private com.google.protobuf.SingleFieldBuilder<Metadata,Metadata.Builder,MetadataOrBuilder>getMetadataFieldBuilder()Metadata to provide additional information about the locality endpoints in aggregate.MetadataOrBuildergetMetadataOrBuilder()Metadata to provide additional information about the locality endpoints in aggregate.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.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder>getProximityFieldBuilder()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.booleanhasLedsClusterLocalityConfig()LEDS Configuration for the current locality.booleanhasLoadBalancerEndpoints()The group of endpoints belonging to the locality.booleanhasLoadBalancingWeight()Optional: Per priority/region/zone/sub_zone weight; at least 1.booleanhasLocality()Identifies location of where the upstream hosts run.booleanhasMetadata()Metadata to provide additional information about the locality endpoints in aggregate.booleanhasProximity()Optional: Per locality proximity value which indicates how close this locality is from the source locality.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()LocalityLbEndpoints.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LocalityLbEndpoints.BuildermergeFrom(com.google.protobuf.Message other)LocalityLbEndpoints.BuildermergeFrom(LocalityLbEndpoints other)LocalityLbEndpoints.BuildermergeLedsClusterLocalityConfig(LedsClusterLocalityConfig value)LEDS Configuration for the current locality.LocalityLbEndpoints.BuildermergeLoadBalancerEndpoints(LocalityLbEndpoints.LbEndpointList value)The group of endpoints belonging to the locality.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.BuildermergeMetadata(Metadata value)Metadata to provide additional information about the locality endpoints in aggregate.LocalityLbEndpoints.BuildermergeProximity(com.google.protobuf.UInt32Value value)Optional: Per locality proximity value which indicates how close this locality is from the source locality.LocalityLbEndpoints.BuilderremoveLbEndpoints(int index)The group of endpoints belonging to the locality specified.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.BuildersetLedsClusterLocalityConfig(LedsClusterLocalityConfig value)LEDS Configuration for the current locality.LocalityLbEndpoints.BuildersetLedsClusterLocalityConfig(LedsClusterLocalityConfig.Builder builderForValue)LEDS Configuration for the current locality.LocalityLbEndpoints.BuildersetLoadBalancerEndpoints(LocalityLbEndpoints.LbEndpointList value)The group of endpoints belonging to the locality.LocalityLbEndpoints.BuildersetLoadBalancerEndpoints(LocalityLbEndpoints.LbEndpointList.Builder builderForValue)The group of endpoints belonging to the locality.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.BuildersetMetadata(Metadata value)Metadata to provide additional information about the locality endpoints in aggregate.LocalityLbEndpoints.BuildersetMetadata(Metadata.Builder builderForValue)Metadata to provide additional information about the locality endpoints in aggregate.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.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, 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
-
-
-
-
Field Detail
-
lbConfigCase_
private int lbConfigCase_
-
lbConfig_
private java.lang.Object lbConfig_
-
bitField0_
private int bitField0_
-
locality_
private Locality locality_
-
localityBuilder_
private com.google.protobuf.SingleFieldBuilder<Locality,Locality.Builder,LocalityOrBuilder> localityBuilder_
-
metadata_
private Metadata metadata_
-
metadataBuilder_
private com.google.protobuf.SingleFieldBuilder<Metadata,Metadata.Builder,MetadataOrBuilder> metadataBuilder_
-
lbEndpoints_
private java.util.List<LbEndpoint> lbEndpoints_
-
lbEndpointsBuilder_
private com.google.protobuf.RepeatedFieldBuilder<LbEndpoint,LbEndpoint.Builder,LbEndpointOrBuilder> lbEndpointsBuilder_
-
loadBalancerEndpointsBuilder_
private com.google.protobuf.SingleFieldBuilder<LocalityLbEndpoints.LbEndpointList,LocalityLbEndpoints.LbEndpointList.Builder,LocalityLbEndpoints.LbEndpointListOrBuilder> loadBalancerEndpointsBuilder_
-
ledsClusterLocalityConfigBuilder_
private com.google.protobuf.SingleFieldBuilder<LedsClusterLocalityConfig,LedsClusterLocalityConfig.Builder,LedsClusterLocalityConfigOrBuilder> ledsClusterLocalityConfigBuilder_
-
loadBalancingWeight_
private com.google.protobuf.UInt32Value loadBalancingWeight_
-
loadBalancingWeightBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder> loadBalancingWeightBuilder_
-
priority_
private int priority_
-
proximity_
private com.google.protobuf.UInt32Value proximity_
-
proximityBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder> proximityBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LocalityLbEndpoints.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
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.GeneratedMessage.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.GeneratedMessage.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
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(LocalityLbEndpoints result)
-
buildPartial0
private void buildPartial0(LocalityLbEndpoints result)
-
buildPartialOneofs
private void buildPartialOneofs(LocalityLbEndpoints result)
-
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.GeneratedMessage.Builder<LocalityLbEndpoints.Builder>
-
mergeFrom
public LocalityLbEndpoints.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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:
java.io.IOException
-
getLbConfigCase
public LocalityLbEndpoints.LbConfigCase getLbConfigCase()
- Specified by:
getLbConfigCasein interfaceLocalityLbEndpointsOrBuilder
-
clearLbConfig
public LocalityLbEndpoints.Builder clearLbConfig()
-
hasLocality
public boolean hasLocality()
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.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.config.core.v3.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.config.core.v3.Locality locality = 1;
-
setLocality
public LocalityLbEndpoints.Builder setLocality(Locality.Builder builderForValue)
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
-
mergeLocality
public LocalityLbEndpoints.Builder mergeLocality(Locality value)
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
-
clearLocality
public LocalityLbEndpoints.Builder clearLocality()
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
-
getLocalityBuilder
public Locality.Builder getLocalityBuilder()
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
-
getLocalityOrBuilder
public LocalityOrBuilder getLocalityOrBuilder()
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;- Specified by:
getLocalityOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
getLocalityFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Locality,Locality.Builder,LocalityOrBuilder> getLocalityFieldBuilder()
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
-
hasMetadata
public boolean hasMetadata()
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;- Specified by:
hasMetadatain interfaceLocalityLbEndpointsOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public Metadata getMetadata()
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;- Specified by:
getMetadatain interfaceLocalityLbEndpointsOrBuilder- Returns:
- The metadata.
-
setMetadata
public LocalityLbEndpoints.Builder setMetadata(Metadata value)
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
setMetadata
public LocalityLbEndpoints.Builder setMetadata(Metadata.Builder builderForValue)
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
mergeMetadata
public LocalityLbEndpoints.Builder mergeMetadata(Metadata value)
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
clearMetadata
public LocalityLbEndpoints.Builder clearMetadata()
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
getMetadataBuilder
public Metadata.Builder getMetadataBuilder()
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
getMetadataOrBuilder
public MetadataOrBuilder getMetadataOrBuilder()
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;- Specified by:
getMetadataOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
getMetadataFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Metadata,Metadata.Builder,MetadataOrBuilder> getMetadataFieldBuilder()
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
ensureLbEndpointsIsMutable
private void ensureLbEndpointsIsMutable()
-
getLbEndpointsList
public java.util.List<LbEndpoint> getLbEndpointsList()
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsListin interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpointsCount
public int getLbEndpointsCount()
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsCountin interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpoints
public LbEndpoint getLbEndpoints(int index)
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.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. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
setLbEndpoints
public LocalityLbEndpoints.Builder setLbEndpoints(int index, LbEndpoint.Builder builderForValue)
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
addLbEndpoints
public LocalityLbEndpoints.Builder addLbEndpoints(LbEndpoint value)
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
addLbEndpoints
public LocalityLbEndpoints.Builder addLbEndpoints(int index, LbEndpoint value)
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
addLbEndpoints
public LocalityLbEndpoints.Builder addLbEndpoints(LbEndpoint.Builder builderForValue)
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
addLbEndpoints
public LocalityLbEndpoints.Builder addLbEndpoints(int index, LbEndpoint.Builder builderForValue)
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
addAllLbEndpoints
public LocalityLbEndpoints.Builder addAllLbEndpoints(java.lang.Iterable<? extends LbEndpoint> values)
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
clearLbEndpoints
public LocalityLbEndpoints.Builder clearLbEndpoints()
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
removeLbEndpoints
public LocalityLbEndpoints.Builder removeLbEndpoints(int index)
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
getLbEndpointsBuilder
public LbEndpoint.Builder getLbEndpointsBuilder(int index)
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
getLbEndpointsOrBuilder
public LbEndpointOrBuilder getLbEndpointsOrBuilder(int index)
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpointsOrBuilderList
public java.util.List<? extends LbEndpointOrBuilder> getLbEndpointsOrBuilderList()
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsOrBuilderListin interfaceLocalityLbEndpointsOrBuilder
-
addLbEndpointsBuilder
public LbEndpoint.Builder addLbEndpointsBuilder()
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
addLbEndpointsBuilder
public LbEndpoint.Builder addLbEndpointsBuilder(int index)
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
getLbEndpointsBuilderList
public java.util.List<LbEndpoint.Builder> getLbEndpointsBuilderList()
The group of endpoints belonging to the locality specified. [#comment:TODO(adisuissa): Once LEDS is implemented this field needs to be deprecated and replaced by ``load_balancer_endpoints``.]
repeated .envoy.config.endpoint.v3.LbEndpoint lb_endpoints = 2;
-
getLbEndpointsFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<LbEndpoint,LbEndpoint.Builder,LbEndpointOrBuilder> getLbEndpointsFieldBuilder()
-
hasLoadBalancerEndpoints
public boolean hasLoadBalancerEndpoints()
The group of endpoints belonging to the locality. [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field needs to be deprecated.]
.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;- Specified by:
hasLoadBalancerEndpointsin interfaceLocalityLbEndpointsOrBuilder- Returns:
- Whether the loadBalancerEndpoints field is set.
-
getLoadBalancerEndpoints
public LocalityLbEndpoints.LbEndpointList getLoadBalancerEndpoints()
The group of endpoints belonging to the locality. [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field needs to be deprecated.]
.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;- Specified by:
getLoadBalancerEndpointsin interfaceLocalityLbEndpointsOrBuilder- Returns:
- The loadBalancerEndpoints.
-
setLoadBalancerEndpoints
public LocalityLbEndpoints.Builder setLoadBalancerEndpoints(LocalityLbEndpoints.LbEndpointList value)
The group of endpoints belonging to the locality. [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field needs to be deprecated.]
.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;
-
setLoadBalancerEndpoints
public LocalityLbEndpoints.Builder setLoadBalancerEndpoints(LocalityLbEndpoints.LbEndpointList.Builder builderForValue)
The group of endpoints belonging to the locality. [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field needs to be deprecated.]
.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;
-
mergeLoadBalancerEndpoints
public LocalityLbEndpoints.Builder mergeLoadBalancerEndpoints(LocalityLbEndpoints.LbEndpointList value)
The group of endpoints belonging to the locality. [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field needs to be deprecated.]
.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;
-
clearLoadBalancerEndpoints
public LocalityLbEndpoints.Builder clearLoadBalancerEndpoints()
The group of endpoints belonging to the locality. [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field needs to be deprecated.]
.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;
-
getLoadBalancerEndpointsBuilder
public LocalityLbEndpoints.LbEndpointList.Builder getLoadBalancerEndpointsBuilder()
The group of endpoints belonging to the locality. [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field needs to be deprecated.]
.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;
-
getLoadBalancerEndpointsOrBuilder
public LocalityLbEndpoints.LbEndpointListOrBuilder getLoadBalancerEndpointsOrBuilder()
The group of endpoints belonging to the locality. [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field needs to be deprecated.]
.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;- Specified by:
getLoadBalancerEndpointsOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
getLoadBalancerEndpointsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<LocalityLbEndpoints.LbEndpointList,LocalityLbEndpoints.LbEndpointList.Builder,LocalityLbEndpoints.LbEndpointListOrBuilder> getLoadBalancerEndpointsFieldBuilder()
The group of endpoints belonging to the locality. [#comment:TODO(adisuissa): Once LEDS is implemented the ``lb_endpoints`` field needs to be deprecated.]
.envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList load_balancer_endpoints = 7;
-
hasLedsClusterLocalityConfig
public boolean hasLedsClusterLocalityConfig()
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;- Specified by:
hasLedsClusterLocalityConfigin interfaceLocalityLbEndpointsOrBuilder- Returns:
- Whether the ledsClusterLocalityConfig field is set.
-
getLedsClusterLocalityConfig
public LedsClusterLocalityConfig getLedsClusterLocalityConfig()
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;- Specified by:
getLedsClusterLocalityConfigin interfaceLocalityLbEndpointsOrBuilder- Returns:
- The ledsClusterLocalityConfig.
-
setLedsClusterLocalityConfig
public LocalityLbEndpoints.Builder setLedsClusterLocalityConfig(LedsClusterLocalityConfig value)
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
-
setLedsClusterLocalityConfig
public LocalityLbEndpoints.Builder setLedsClusterLocalityConfig(LedsClusterLocalityConfig.Builder builderForValue)
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
-
mergeLedsClusterLocalityConfig
public LocalityLbEndpoints.Builder mergeLedsClusterLocalityConfig(LedsClusterLocalityConfig value)
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
-
clearLedsClusterLocalityConfig
public LocalityLbEndpoints.Builder clearLedsClusterLocalityConfig()
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
-
getLedsClusterLocalityConfigBuilder
public LedsClusterLocalityConfig.Builder getLedsClusterLocalityConfigBuilder()
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
-
getLedsClusterLocalityConfigOrBuilder
public LedsClusterLocalityConfigOrBuilder getLedsClusterLocalityConfigOrBuilder()
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;- Specified by:
getLedsClusterLocalityConfigOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
getLedsClusterLocalityConfigFieldBuilder
private com.google.protobuf.SingleFieldBuilder<LedsClusterLocalityConfig,LedsClusterLocalityConfig.Builder,LedsClusterLocalityConfigOrBuilder> getLedsClusterLocalityConfigFieldBuilder()
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
-
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
-
getLoadBalancingWeightFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder> getLoadBalancingWeightFieldBuilder()
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) = { ... }
-
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 that enough endpoints for a particular priority are unavailable/unhealthy, Envoy will fail over to selecting endpoints for the next highest priority group. Read more at :ref:`priority levels <arch_overview_load_balancing_priority_levels>`. 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 that enough endpoints for a particular priority are unavailable/unhealthy, Envoy will fail over to selecting endpoints for the next highest priority group. Read more at :ref:`priority levels <arch_overview_load_balancing_priority_levels>`. 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 that enough endpoints for a particular priority are unavailable/unhealthy, Envoy will fail over to selecting endpoints for the next highest priority group. Read more at :ref:`priority levels <arch_overview_load_balancing_priority_levels>`. 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
-
getProximityFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder> getProximityFieldBuilder()
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;
-
-