Class LocalityLbEndpoints.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpoints.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LocalityLbEndpointsOrBuilder,Cloneable
- Enclosing class:
- LocalityLbEndpoints
public static final class LocalityLbEndpoints.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
implements LocalityLbEndpointsOrBuilder
A group of endpoints belonging to a Locality. One can have multiple LocalityLbEndpoints for a locality, but this is generally only done if the different groups need to have different load balancing weights or different priorities. [#next-free-field: 7]Protobuf type
envoy.api.v2.endpoint.LocalityLbEndpoints-
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.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The group of endpoints belonging to the locality specified.Optional: Per priority/region/zone/sub_zone weight; at least 1.Identifies location of where the upstream hosts run.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Optional: the priority for this LocalityLbEndpoints.Optional: Per locality proximity value which indicates how close this locality is from the source locality.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLbEndpoints(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.intThe group of endpoints belonging to the locality specified.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.com.google.protobuf.UInt32ValueOptional: Per priority/region/zone/sub_zone weight; at least 1.com.google.protobuf.UInt32Value.BuilderOptional: Per priority/region/zone/sub_zone weight; at least 1.com.google.protobuf.UInt32ValueOrBuilderOptional: 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.Identifies location of where the upstream hosts run.intOptional: the priority for this LocalityLbEndpoints.com.google.protobuf.UInt32ValueOptional: Per locality proximity value which indicates how close this locality is from the source locality.com.google.protobuf.UInt32Value.BuilderOptional: Per locality proximity value which indicates how close this locality is from the source locality.com.google.protobuf.UInt32ValueOrBuilderOptional: Per locality proximity value which indicates how close this locality is from the source locality.booleanOptional: Per priority/region/zone/sub_zone weight; at least 1.booleanIdentifies location of where the upstream hosts run.booleanOptional: Per locality proximity value which indicates how close this locality is from the source locality.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(LocalityLbEndpoints other) 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.mergeProximity(com.google.protobuf.UInt32Value value) Optional: Per locality proximity value which indicates how close this locality is from the source locality.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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.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.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.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
setField
public LocalityLbEndpoints.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
clearField
public LocalityLbEndpoints.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
clearOneof
public LocalityLbEndpoints.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
setRepeatedField
public LocalityLbEndpoints.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
addRepeatedField
public LocalityLbEndpoints.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalityLbEndpoints.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
mergeFrom
public LocalityLbEndpoints.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalityLbEndpoints.Builder>- Throws:
IOException
-
hasLocality
public boolean hasLocality()Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;- Specified by:
hasLocalityin interfaceLocalityLbEndpointsOrBuilder- Returns:
- Whether the locality field is set.
-
getLocality
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;- Specified by:
getLocalityin interfaceLocalityLbEndpointsOrBuilder- Returns:
- The locality.
-
setLocality
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1; -
setLocality
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1; -
mergeLocality
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1; -
clearLocality
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1; -
getLocalityBuilder
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1; -
getLocalityOrBuilder
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;- Specified by:
getLocalityOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpointsList
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsListin interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpointsCount
public int getLbEndpointsCount()The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsCountin interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpoints
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsin interfaceLocalityLbEndpointsOrBuilder
-
setLbEndpoints
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
setLbEndpoints
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
addLbEndpoints
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
addLbEndpoints
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
addLbEndpoints
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
addLbEndpoints
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
addAllLbEndpoints
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
clearLbEndpoints
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
removeLbEndpoints
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
getLbEndpointsBuilder
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
getLbEndpointsOrBuilder
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
getLbEndpointsOrBuilderList
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;- Specified by:
getLbEndpointsOrBuilderListin interfaceLocalityLbEndpointsOrBuilder
-
addLbEndpointsBuilder
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
addLbEndpointsBuilder
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
getLbEndpointsBuilderList
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2; -
hasLoadBalancingWeight
public boolean hasLoadBalancingWeight()Optional: Per priority/region/zone/sub_zone weight; at least 1. The load balancing weight for a locality is divided by the sum of the weights of all localities at the same priority level to produce the effective percentage of traffic for the locality. The sum of the weights of all localities at the same priority level must not exceed uint32_t maximal value (4294967295). Locality weights are only considered when :ref:`locality weighted load balancing <arch_overview_load_balancing_locality_weighted_lb>` is configured. These weights are ignored otherwise. If no weights are specified when locality weighted load balancing is enabled, the locality is assigned no load.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }- Specified by:
hasLoadBalancingWeightin interfaceLocalityLbEndpointsOrBuilder- Returns:
- Whether the loadBalancingWeight field is set.
-
getLoadBalancingWeight
public com.google.protobuf.UInt32Value getLoadBalancingWeight()Optional: Per priority/region/zone/sub_zone weight; at least 1. The load balancing weight for a locality is divided by the sum of the weights of all localities at the same priority level to produce the effective percentage of traffic for the locality. The sum of the weights of all localities at the same priority level must not exceed uint32_t maximal value (4294967295). Locality weights are only considered when :ref:`locality weighted load balancing <arch_overview_load_balancing_locality_weighted_lb>` is configured. These weights are ignored otherwise. If no weights are specified when locality weighted load balancing is enabled, the locality is assigned no load.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }- Specified by:
getLoadBalancingWeightin interfaceLocalityLbEndpointsOrBuilder- Returns:
- The loadBalancingWeight.
-
setLoadBalancingWeight
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:
getLoadBalancingWeightOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
getPriority
public int getPriority()Optional: the priority for this LocalityLbEndpoints. If unspecified this will default to the highest priority (0). Under usual circumstances, Envoy will only select endpoints for the highest priority (0). In the event all endpoints for a particular priority are unavailable/unhealthy, Envoy will fail over to selecting endpoints for the next highest priority group. Priorities should range from 0 (highest) to N (lowest) without skipping.
uint32 priority = 5 [(.validate.rules) = { ... }- Specified by:
getPriorityin interfaceLocalityLbEndpointsOrBuilder- Returns:
- The priority.
-
setPriority
Optional: the priority for this LocalityLbEndpoints. If unspecified this will default to the highest priority (0). Under usual circumstances, Envoy will only select endpoints for the highest priority (0). In the event all endpoints for a particular priority are unavailable/unhealthy, Envoy will fail over to selecting endpoints for the next highest priority group. Priorities should range from 0 (highest) to N (lowest) without skipping.
uint32 priority = 5 [(.validate.rules) = { ... }- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
Optional: the priority for this LocalityLbEndpoints. If unspecified this will default to the highest priority (0). Under usual circumstances, Envoy will only select endpoints for the highest priority (0). In the event all endpoints for a particular priority are unavailable/unhealthy, Envoy will fail over to selecting endpoints for the next highest priority group. Priorities should range from 0 (highest) to N (lowest) without skipping.
uint32 priority = 5 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
hasProximity
public boolean hasProximity()Optional: Per locality proximity value which indicates how close this locality is from the source locality. This value only provides ordering information (lower the value, closer it is to the source locality). This will be consumed by load balancing schemes that need proximity order to determine where to route the requests. [#not-implemented-hide:]
.google.protobuf.UInt32Value proximity = 6;- Specified by:
hasProximityin interfaceLocalityLbEndpointsOrBuilder- Returns:
- Whether the proximity field is set.
-
getProximity
public com.google.protobuf.UInt32Value getProximity()Optional: Per locality proximity value which indicates how close this locality is from the source locality. This value only provides ordering information (lower the value, closer it is to the source locality). This will be consumed by load balancing schemes that need proximity order to determine where to route the requests. [#not-implemented-hide:]
.google.protobuf.UInt32Value proximity = 6;- Specified by:
getProximityin interfaceLocalityLbEndpointsOrBuilder- Returns:
- The proximity.
-
setProximity
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:
getProximityOrBuilderin interfaceLocalityLbEndpointsOrBuilder
-
setUnknownFields
public final LocalityLbEndpoints.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-
mergeUnknownFields
public final LocalityLbEndpoints.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityLbEndpoints.Builder>
-