public final class LocalityLbEndpoints extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
LocalityLbEndpoints.Builder
A group of endpoints belonging to a Locality.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
LB_ENDPOINTS_FIELD_NUMBER |
static int |
LOAD_BALANCING_WEIGHT_FIELD_NUMBER |
static int |
LOCALITY_FIELD_NUMBER |
static int |
PRIORITY_FIELD_NUMBER |
static int |
PROXIMITY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static LocalityLbEndpoints |
getDefaultInstance() |
LocalityLbEndpoints |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
LbEndpoint |
getLbEndpoints(int index)
The group of endpoints belonging to the locality specified.
|
int |
getLbEndpointsCount()
The group of endpoints belonging to the locality specified.
|
List<LbEndpoint> |
getLbEndpointsList()
The group of endpoints belonging to the locality specified.
|
LbEndpointOrBuilder |
getLbEndpointsOrBuilder(int index)
The group of endpoints belonging to the locality specified.
|
List<? extends LbEndpointOrBuilder> |
getLbEndpointsOrBuilderList()
The group of endpoints belonging to the locality specified.
|
com.google.protobuf.UInt32Value |
getLoadBalancingWeight()
Optional: Per priority/region/zone/sub_zone weight; at least 1.
|
com.google.protobuf.UInt32ValueOrBuilder |
getLoadBalancingWeightOrBuilder()
Optional: Per priority/region/zone/sub_zone weight; at least 1.
|
Locality |
getLocality()
Identifies location of where the upstream hosts run.
|
LocalityOrBuilder |
getLocalityOrBuilder()
Identifies location of where the upstream hosts run.
|
com.google.protobuf.Parser<LocalityLbEndpoints> |
getParserForType() |
int |
getPriority()
Optional: the priority for this LocalityLbEndpoints.
|
com.google.protobuf.UInt32Value |
getProximity()
Optional: Per locality proximity value which indicates how close this
locality is from the source locality.
|
com.google.protobuf.UInt32ValueOrBuilder |
getProximityOrBuilder()
Optional: Per locality proximity value which indicates how close this
locality is from the source locality.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasLoadBalancingWeight()
Optional: Per priority/region/zone/sub_zone weight; at least 1.
|
boolean |
hasLocality()
Identifies location of where the upstream hosts run.
|
boolean |
hasProximity()
Optional: Per locality proximity value which indicates how close this
locality is from the source locality.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static LocalityLbEndpoints.Builder |
newBuilder() |
static LocalityLbEndpoints.Builder |
newBuilder(LocalityLbEndpoints prototype) |
LocalityLbEndpoints.Builder |
newBuilderForType() |
protected LocalityLbEndpoints.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LocalityLbEndpoints |
parseDelimitedFrom(InputStream input) |
static LocalityLbEndpoints |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LocalityLbEndpoints |
parseFrom(byte[] data) |
static LocalityLbEndpoints |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LocalityLbEndpoints |
parseFrom(ByteBuffer data) |
static LocalityLbEndpoints |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LocalityLbEndpoints |
parseFrom(com.google.protobuf.ByteString data) |
static LocalityLbEndpoints |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LocalityLbEndpoints |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LocalityLbEndpoints |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LocalityLbEndpoints |
parseFrom(InputStream input) |
static LocalityLbEndpoints |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LocalityLbEndpoints> |
parser() |
LocalityLbEndpoints.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int LOCALITY_FIELD_NUMBER
public static final int LB_ENDPOINTS_FIELD_NUMBER
public static final int LOAD_BALANCING_WEIGHT_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
public static final int PROXIMITY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasLocality()
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;hasLocality in interface LocalityLbEndpointsOrBuilderpublic Locality getLocality()
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;getLocality in interface LocalityLbEndpointsOrBuilderpublic LocalityOrBuilder getLocalityOrBuilder()
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;getLocalityOrBuilder in interface LocalityLbEndpointsOrBuilderpublic List<LbEndpoint> getLbEndpointsList()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;getLbEndpointsList in interface LocalityLbEndpointsOrBuilderpublic List<? extends LbEndpointOrBuilder> getLbEndpointsOrBuilderList()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;getLbEndpointsOrBuilderList in interface LocalityLbEndpointsOrBuilderpublic int getLbEndpointsCount()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;getLbEndpointsCount in interface LocalityLbEndpointsOrBuilderpublic LbEndpoint getLbEndpoints(int index)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;getLbEndpoints in interface LocalityLbEndpointsOrBuilderpublic LbEndpointOrBuilder getLbEndpointsOrBuilder(int index)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2;getLbEndpointsOrBuilder in interface LocalityLbEndpointsOrBuilderpublic 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) = { ... }hasLoadBalancingWeight in interface LocalityLbEndpointsOrBuilderpublic 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) = { ... }getLoadBalancingWeight in interface LocalityLbEndpointsOrBuilderpublic 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) = { ... }getLoadBalancingWeightOrBuilder in interface LocalityLbEndpointsOrBuilderpublic 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) = { ... }getPriority in interface LocalityLbEndpointsOrBuilderpublic 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;hasProximity in interface LocalityLbEndpointsOrBuilderpublic 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;getProximity in interface LocalityLbEndpointsOrBuilderpublic 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;getProximityOrBuilder in interface LocalityLbEndpointsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static LocalityLbEndpoints parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalityLbEndpoints parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalityLbEndpoints parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalityLbEndpoints parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalityLbEndpoints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalityLbEndpoints parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LocalityLbEndpoints parseFrom(InputStream input) throws IOException
IOExceptionpublic static LocalityLbEndpoints parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LocalityLbEndpoints parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static LocalityLbEndpoints parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LocalityLbEndpoints parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static LocalityLbEndpoints parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic LocalityLbEndpoints.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LocalityLbEndpoints.Builder newBuilder()
public static LocalityLbEndpoints.Builder newBuilder(LocalityLbEndpoints prototype)
public LocalityLbEndpoints.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LocalityLbEndpoints.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static LocalityLbEndpoints getDefaultInstance()
public static com.google.protobuf.Parser<LocalityLbEndpoints> parser()
public com.google.protobuf.Parser<LocalityLbEndpoints> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public LocalityLbEndpoints getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.