Class LocalityLbEndpoints.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<LocalityLbEndpoints.Builder>
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
,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 type
envoy.config.endpoint.v3.LocalityLbEndpoints
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Object
private int
private List
<LbEndpoint> private com.google.protobuf.RepeatedFieldBuilder
<LbEndpoint, LbEndpoint.Builder, LbEndpointOrBuilder> private com.google.protobuf.SingleFieldBuilder
<LedsClusterLocalityConfig, LedsClusterLocalityConfig.Builder, LedsClusterLocalityConfigOrBuilder> private com.google.protobuf.SingleFieldBuilder
<LocalityLbEndpoints.LbEndpointList, LocalityLbEndpoints.LbEndpointList.Builder, LocalityLbEndpoints.LbEndpointListOrBuilder> private com.google.protobuf.UInt32Value
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> private Locality
private com.google.protobuf.SingleFieldBuilder
<Locality, Locality.Builder, LocalityOrBuilder> private Metadata
private com.google.protobuf.SingleFieldBuilder
<Metadata, Metadata.Builder, MetadataOrBuilder> private int
private com.google.protobuf.UInt32Value
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllLbEndpoints
(Iterable<? extends LbEndpoint> values) The group of endpoints belonging to the locality specified.addLbEndpoints
(int index, LbEndpoint value) The group of endpoints belonging to the locality specified.addLbEndpoints
(int index, LbEndpoint.Builder builderForValue) The group of endpoints belonging to the locality specified.addLbEndpoints
(LbEndpoint value) The group of endpoints belonging to the locality specified.addLbEndpoints
(LbEndpoint.Builder builderForValue) The group of endpoints belonging to the locality specified.The group of endpoints belonging to the locality specified.addLbEndpointsBuilder
(int index) The group of endpoints belonging to the locality specified.build()
private void
buildPartial0
(LocalityLbEndpoints result) private void
private void
clear()
The group of endpoints belonging to the locality specified.LEDS Configuration for the current locality.The group of endpoints belonging to the locality.Optional: Per priority/region/zone/sub_zone weight; at least 1.Identifies location of where the upstream hosts run.Metadata to provide additional information about the locality endpoints in aggregate.Optional: the priority for this LocalityLbEndpoints.Optional: Per locality proximity value which indicates how close this locality is from the source locality.private void
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getLbEndpoints
(int index) The group of endpoints belonging to the locality specified.getLbEndpointsBuilder
(int index) The group of endpoints belonging to the locality specified.The group of endpoints belonging to the locality specified.int
The group of endpoints belonging to the locality specified.private com.google.protobuf.RepeatedFieldBuilder
<LbEndpoint, LbEndpoint.Builder, LbEndpointOrBuilder> The group of endpoints belonging to the locality specified.getLbEndpointsOrBuilder
(int index) The group of endpoints belonging to the locality specified.List
<? extends LbEndpointOrBuilder> The group of endpoints belonging to the locality specified.LEDS Configuration for the current locality.LEDS Configuration for the current locality.private com.google.protobuf.SingleFieldBuilder
<LedsClusterLocalityConfig, LedsClusterLocalityConfig.Builder, LedsClusterLocalityConfigOrBuilder> LEDS Configuration for the current locality.LEDS Configuration for the current locality.The group of endpoints belonging to the locality.The group of endpoints belonging to the locality.private com.google.protobuf.SingleFieldBuilder
<LocalityLbEndpoints.LbEndpointList, LocalityLbEndpoints.LbEndpointList.Builder, LocalityLbEndpoints.LbEndpointListOrBuilder> The group of endpoints belonging to the locality.The group of endpoints belonging to the locality.com.google.protobuf.UInt32Value
Optional: Per priority/region/zone/sub_zone weight; at least 1.com.google.protobuf.UInt32Value.Builder
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> Optional: Per priority/region/zone/sub_zone weight; at least 1.com.google.protobuf.UInt32ValueOrBuilder
Optional: Per priority/region/zone/sub_zone weight; at least 1.Identifies location of where the upstream hosts run.Identifies location of where the upstream hosts run.private com.google.protobuf.SingleFieldBuilder
<Locality, Locality.Builder, LocalityOrBuilder> Identifies location of where the upstream hosts run.Identifies location of where the upstream hosts run.Metadata to provide additional information about the locality endpoints in aggregate.Metadata to provide additional information about the locality endpoints in aggregate.private com.google.protobuf.SingleFieldBuilder
<Metadata, Metadata.Builder, MetadataOrBuilder> Metadata to provide additional information about the locality endpoints in aggregate.Metadata to provide additional information about the locality endpoints in aggregate.int
Optional: the priority for this LocalityLbEndpoints.com.google.protobuf.UInt32Value
Optional: Per locality proximity value which indicates how close this locality is from the source locality.com.google.protobuf.UInt32Value.Builder
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> Optional: Per locality proximity value which indicates how close this locality is from the source locality.com.google.protobuf.UInt32ValueOrBuilder
Optional: Per locality proximity value which indicates how close this locality is from the source locality.boolean
LEDS Configuration for the current locality.boolean
The group of endpoints belonging to the locality.boolean
Optional: Per priority/region/zone/sub_zone weight; at least 1.boolean
Identifies location of where the upstream hosts run.boolean
Metadata to provide additional information about the locality endpoints in aggregate.boolean
Optional: Per locality proximity value which indicates how close this locality is from the source locality.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(LocalityLbEndpoints other) LEDS Configuration for the current locality.The group of endpoints belonging to the locality.mergeLoadBalancingWeight
(com.google.protobuf.UInt32Value value) Optional: Per priority/region/zone/sub_zone weight; at least 1.mergeLocality
(Locality value) Identifies location of where the upstream hosts run.mergeMetadata
(Metadata value) Metadata to provide additional information about the locality endpoints in aggregate.mergeProximity
(com.google.protobuf.UInt32Value value) Optional: Per locality proximity value which indicates how close this locality is from the source locality.removeLbEndpoints
(int index) The group of endpoints belonging to the locality specified.setLbEndpoints
(int index, LbEndpoint value) The group of endpoints belonging to the locality specified.setLbEndpoints
(int index, LbEndpoint.Builder builderForValue) The group of endpoints belonging to the locality specified.LEDS Configuration for the current locality.setLedsClusterLocalityConfig
(LedsClusterLocalityConfig.Builder builderForValue) LEDS Configuration for the current locality.The group of endpoints belonging to the locality.setLoadBalancerEndpoints
(LocalityLbEndpoints.LbEndpointList.Builder builderForValue) The group of endpoints belonging to the locality.setLoadBalancingWeight
(com.google.protobuf.UInt32Value value) Optional: Per priority/region/zone/sub_zone weight; at least 1.setLoadBalancingWeight
(com.google.protobuf.UInt32Value.Builder builderForValue) Optional: Per priority/region/zone/sub_zone weight; at least 1.setLocality
(Locality value) Identifies location of where the upstream hosts run.setLocality
(Locality.Builder builderForValue) Identifies location of where the upstream hosts run.setMetadata
(Metadata value) Metadata to provide additional information about the locality endpoints in aggregate.setMetadata
(Metadata.Builder builderForValue) Metadata to provide additional information about the locality endpoints in aggregate.setPriority
(int value) Optional: the priority for this LocalityLbEndpoints.setProximity
(com.google.protobuf.UInt32Value value) Optional: Per locality proximity value which indicates how close this locality is from the source locality.setProximity
(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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
lbConfigCase_
private int lbConfigCase_ -
lbConfig_
-
bitField0_
private int bitField0_ -
locality_
-
localityBuilder_
private com.google.protobuf.SingleFieldBuilder<Locality,Locality.Builder, localityBuilder_LocalityOrBuilder> -
metadata_
-
metadataBuilder_
private com.google.protobuf.SingleFieldBuilder<Metadata,Metadata.Builder, metadataBuilder_MetadataOrBuilder> -
lbEndpoints_
-
lbEndpointsBuilder_
private com.google.protobuf.RepeatedFieldBuilder<LbEndpoint,LbEndpoint.Builder, lbEndpointsBuilder_LbEndpointOrBuilder> -
loadBalancerEndpointsBuilder_
private com.google.protobuf.SingleFieldBuilder<LocalityLbEndpoints.LbEndpointList,LocalityLbEndpoints.LbEndpointList.Builder, loadBalancerEndpointsBuilder_LocalityLbEndpoints.LbEndpointListOrBuilder> -
ledsClusterLocalityConfigBuilder_
private com.google.protobuf.SingleFieldBuilder<LedsClusterLocalityConfig,LedsClusterLocalityConfig.Builder, ledsClusterLocalityConfigBuilder_LedsClusterLocalityConfigOrBuilder> -
loadBalancingWeight_
private com.google.protobuf.UInt32Value loadBalancingWeight_ -
loadBalancingWeightBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder, loadBalancingWeightBuilder_com.google.protobuf.UInt32ValueOrBuilder> -
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, proximityBuilder_com.google.protobuf.UInt32ValueOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<LocalityLbEndpoints.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<LocalityLbEndpoints.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<LocalityLbEndpoints.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LocalityLbEndpoints.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<LocalityLbEndpoints.Builder>
-
mergeFrom
public LocalityLbEndpoints.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LocalityLbEndpoints.Builder>
- Throws:
IOException
-
getLbConfigCase
- Specified by:
getLbConfigCase
in interfaceLocalityLbEndpointsOrBuilder
-
clearLbConfig
-
hasLocality
public boolean hasLocality()Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
- Specified by:
hasLocality
in interfaceLocalityLbEndpointsOrBuilder
- Returns:
- Whether the locality field is set.
-
getLocality
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
- Specified by:
getLocality
in interfaceLocalityLbEndpointsOrBuilder
- Returns:
- The locality.
-
setLocality
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
-
setLocality
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
-
mergeLocality
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
-
clearLocality
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
-
getLocalityBuilder
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
-
getLocalityOrBuilder
Identifies location of where the upstream hosts run.
.envoy.config.core.v3.Locality locality = 1;
- Specified by:
getLocalityOrBuilder
in interfaceLocalityLbEndpointsOrBuilder
-
getLocalityFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Locality,Locality.Builder, getLocalityFieldBuilder()LocalityOrBuilder> 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:
hasMetadata
in interfaceLocalityLbEndpointsOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
- Specified by:
getMetadata
in interfaceLocalityLbEndpointsOrBuilder
- Returns:
- The metadata.
-
setMetadata
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
setMetadata
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
mergeMetadata
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
clearMetadata
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
getMetadataBuilder
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
getMetadataOrBuilder
Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
- Specified by:
getMetadataOrBuilder
in interfaceLocalityLbEndpointsOrBuilder
-
getMetadataFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Metadata,Metadata.Builder, getMetadataFieldBuilder()MetadataOrBuilder> Metadata to provide additional information about the locality endpoints in aggregate.
.envoy.config.core.v3.Metadata metadata = 9;
-
ensureLbEndpointsIsMutable
private void ensureLbEndpointsIsMutable() -
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:
getLbEndpointsList
in 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:
getLbEndpointsCount
in interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpoints
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:
getLbEndpoints
in interfaceLocalityLbEndpointsOrBuilder
-
setLbEndpoints
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
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
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
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
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
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
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
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
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
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
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:
getLbEndpointsOrBuilder
in interfaceLocalityLbEndpointsOrBuilder
-
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:
getLbEndpointsOrBuilderList
in interfaceLocalityLbEndpointsOrBuilder
-
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
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
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, getLbEndpointsFieldBuilder()LbEndpointOrBuilder> -
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:
hasLoadBalancerEndpoints
in interfaceLocalityLbEndpointsOrBuilder
- Returns:
- Whether the loadBalancerEndpoints field is set.
-
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:
getLoadBalancerEndpoints
in 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
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
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
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:
getLoadBalancerEndpointsOrBuilder
in interfaceLocalityLbEndpointsOrBuilder
-
getLoadBalancerEndpointsFieldBuilder
private com.google.protobuf.SingleFieldBuilder<LocalityLbEndpoints.LbEndpointList,LocalityLbEndpoints.LbEndpointList.Builder, getLoadBalancerEndpointsFieldBuilder()LocalityLbEndpoints.LbEndpointListOrBuilder> 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:
hasLedsClusterLocalityConfig
in interfaceLocalityLbEndpointsOrBuilder
- Returns:
- Whether the ledsClusterLocalityConfig field is set.
-
getLedsClusterLocalityConfig
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
- Specified by:
getLedsClusterLocalityConfig
in interfaceLocalityLbEndpointsOrBuilder
- Returns:
- The ledsClusterLocalityConfig.
-
setLedsClusterLocalityConfig
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
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
-
clearLedsClusterLocalityConfig
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
-
getLedsClusterLocalityConfigBuilder
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
-
getLedsClusterLocalityConfigOrBuilder
LEDS Configuration for the current locality.
.envoy.config.endpoint.v3.LedsClusterLocalityConfig leds_cluster_locality_config = 8;
- Specified by:
getLedsClusterLocalityConfigOrBuilder
in interfaceLocalityLbEndpointsOrBuilder
-
getLedsClusterLocalityConfigFieldBuilder
private com.google.protobuf.SingleFieldBuilder<LedsClusterLocalityConfig,LedsClusterLocalityConfig.Builder, getLedsClusterLocalityConfigFieldBuilder()LedsClusterLocalityConfigOrBuilder> 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:
hasLoadBalancingWeight
in 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:
getLoadBalancingWeight
in interfaceLocalityLbEndpointsOrBuilder
- Returns:
- The loadBalancingWeight.
-
setLoadBalancingWeight
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
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
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:
getLoadBalancingWeightOrBuilder
in interfaceLocalityLbEndpointsOrBuilder
-
getLoadBalancingWeightFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder, getLoadBalancingWeightFieldBuilder()com.google.protobuf.UInt32ValueOrBuilder> 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:
getPriority
in interfaceLocalityLbEndpointsOrBuilder
- Returns:
- The priority.
-
setPriority
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
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:
hasProximity
in 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:
getProximity
in interfaceLocalityLbEndpointsOrBuilder
- Returns:
- The proximity.
-
setProximity
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
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
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:
getProximityOrBuilder
in interfaceLocalityLbEndpointsOrBuilder
-
getProximityFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder, getProximityFieldBuilder()com.google.protobuf.UInt32ValueOrBuilder> 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;
-