public static final class EndpointOuterClass.LocalityLbEndpoints extends com.google.protobuf.GeneratedMessageV3 implements EndpointOuterClass.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.Protobuf type
envoy.api.v2.endpoint.LocalityLbEndpoints| Modifier and Type | Class and Description |
|---|---|
static class |
EndpointOuterClass.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| 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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static EndpointOuterClass.LocalityLbEndpoints |
getDefaultInstance() |
EndpointOuterClass.LocalityLbEndpoints |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
EndpointOuterClass.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<EndpointOuterClass.LbEndpoint> |
getLbEndpointsList()
The group of endpoints belonging to the locality specified.
|
EndpointOuterClass.LbEndpointOrBuilder |
getLbEndpointsOrBuilder(int index)
The group of endpoints belonging to the locality specified.
|
List<? extends EndpointOuterClass.LbEndpointOrBuilder> |
getLbEndpointsOrBuilderList()
The group of endpoints belonging to the locality specified.
|
com.google.protobuf.UInt32Value |
getLoadBalancingWeight()
Optional: Per priority/region/zone/sub_zone weight - range 1-128.
|
com.google.protobuf.UInt32ValueOrBuilder |
getLoadBalancingWeightOrBuilder()
Optional: Per priority/region/zone/sub_zone weight - range 1-128.
|
Base.Locality |
getLocality()
Identifies location of where the upstream hosts run.
|
Base.LocalityOrBuilder |
getLocalityOrBuilder()
Identifies location of where the upstream hosts run.
|
com.google.protobuf.Parser<EndpointOuterClass.LocalityLbEndpoints> |
getParserForType() |
int |
getPriority()
Optional: the priority for this LocalityLbEndpoints.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasLoadBalancingWeight()
Optional: Per priority/region/zone/sub_zone weight - range 1-128.
|
boolean |
hasLocality()
Identifies location of where the upstream hosts run.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static EndpointOuterClass.LocalityLbEndpoints.Builder |
newBuilder() |
static EndpointOuterClass.LocalityLbEndpoints.Builder |
newBuilder(EndpointOuterClass.LocalityLbEndpoints prototype) |
EndpointOuterClass.LocalityLbEndpoints.Builder |
newBuilderForType() |
protected EndpointOuterClass.LocalityLbEndpoints.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static EndpointOuterClass.LocalityLbEndpoints |
parseDelimitedFrom(InputStream input) |
static EndpointOuterClass.LocalityLbEndpoints |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EndpointOuterClass.LocalityLbEndpoints |
parseFrom(byte[] data) |
static EndpointOuterClass.LocalityLbEndpoints |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EndpointOuterClass.LocalityLbEndpoints |
parseFrom(ByteBuffer data) |
static EndpointOuterClass.LocalityLbEndpoints |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EndpointOuterClass.LocalityLbEndpoints |
parseFrom(com.google.protobuf.ByteString data) |
static EndpointOuterClass.LocalityLbEndpoints |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EndpointOuterClass.LocalityLbEndpoints |
parseFrom(com.google.protobuf.CodedInputStream input) |
static EndpointOuterClass.LocalityLbEndpoints |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EndpointOuterClass.LocalityLbEndpoints |
parseFrom(InputStream input) |
static EndpointOuterClass.LocalityLbEndpoints |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<EndpointOuterClass.LocalityLbEndpoints> |
parser() |
EndpointOuterClass.LocalityLbEndpoints.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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 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 EndpointOuterClass.LocalityLbEndpointsOrBuilderpublic Base.Locality getLocality()
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;getLocality in interface EndpointOuterClass.LocalityLbEndpointsOrBuilderpublic Base.LocalityOrBuilder getLocalityOrBuilder()
Identifies location of where the upstream hosts run.
.envoy.api.v2.core.Locality locality = 1;getLocalityOrBuilder in interface EndpointOuterClass.LocalityLbEndpointsOrBuilderpublic List<EndpointOuterClass.LbEndpoint> getLbEndpointsList()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2 [(.gogoproto.nullable) = false];getLbEndpointsList in interface EndpointOuterClass.LocalityLbEndpointsOrBuilderpublic List<? extends EndpointOuterClass.LbEndpointOrBuilder> getLbEndpointsOrBuilderList()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2 [(.gogoproto.nullable) = false];getLbEndpointsOrBuilderList in interface EndpointOuterClass.LocalityLbEndpointsOrBuilderpublic int getLbEndpointsCount()
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2 [(.gogoproto.nullable) = false];getLbEndpointsCount in interface EndpointOuterClass.LocalityLbEndpointsOrBuilderpublic EndpointOuterClass.LbEndpoint getLbEndpoints(int index)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2 [(.gogoproto.nullable) = false];getLbEndpoints in interface EndpointOuterClass.LocalityLbEndpointsOrBuilderpublic EndpointOuterClass.LbEndpointOrBuilder getLbEndpointsOrBuilder(int index)
The group of endpoints belonging to the locality specified.
repeated .envoy.api.v2.endpoint.LbEndpoint lb_endpoints = 2 [(.gogoproto.nullable) = false];getLbEndpointsOrBuilder in interface EndpointOuterClass.LocalityLbEndpointsOrBuilderpublic boolean hasLoadBalancingWeight()
Optional: Per priority/region/zone/sub_zone weight - range 1-128. 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. 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 specificed when locality weighted load balancing is enabled, the cluster is assumed to have a weight of 1. .. attention:: The limit of 128 is somewhat arbitrary, but is applied due to performance concerns with the current implementation and can be removed when `this issue <https://github.com/envoyproxy/envoy/issues/1285>`_ is fixed.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }hasLoadBalancingWeight in interface EndpointOuterClass.LocalityLbEndpointsOrBuilderpublic com.google.protobuf.UInt32Value getLoadBalancingWeight()
Optional: Per priority/region/zone/sub_zone weight - range 1-128. 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. 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 specificed when locality weighted load balancing is enabled, the cluster is assumed to have a weight of 1. .. attention:: The limit of 128 is somewhat arbitrary, but is applied due to performance concerns with the current implementation and can be removed when `this issue <https://github.com/envoyproxy/envoy/issues/1285>`_ is fixed.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }getLoadBalancingWeight in interface EndpointOuterClass.LocalityLbEndpointsOrBuilderpublic com.google.protobuf.UInt32ValueOrBuilder getLoadBalancingWeightOrBuilder()
Optional: Per priority/region/zone/sub_zone weight - range 1-128. 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. 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 specificed when locality weighted load balancing is enabled, the cluster is assumed to have a weight of 1. .. attention:: The limit of 128 is somewhat arbitrary, but is applied due to performance concerns with the current implementation and can be removed when `this issue <https://github.com/envoyproxy/envoy/issues/1285>`_ is fixed.
.google.protobuf.UInt32Value load_balancing_weight = 3 [(.validate.rules) = { ... }getLoadBalancingWeightOrBuilder in interface EndpointOuterClass.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 EndpointOuterClass.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 EndpointOuterClass.LocalityLbEndpoints parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EndpointOuterClass.LocalityLbEndpoints parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EndpointOuterClass.LocalityLbEndpoints parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EndpointOuterClass.LocalityLbEndpoints parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EndpointOuterClass.LocalityLbEndpoints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EndpointOuterClass.LocalityLbEndpoints parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EndpointOuterClass.LocalityLbEndpoints parseFrom(InputStream input) throws IOException
IOExceptionpublic static EndpointOuterClass.LocalityLbEndpoints parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EndpointOuterClass.LocalityLbEndpoints parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static EndpointOuterClass.LocalityLbEndpoints parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EndpointOuterClass.LocalityLbEndpoints parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static EndpointOuterClass.LocalityLbEndpoints parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic EndpointOuterClass.LocalityLbEndpoints.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static EndpointOuterClass.LocalityLbEndpoints.Builder newBuilder()
public static EndpointOuterClass.LocalityLbEndpoints.Builder newBuilder(EndpointOuterClass.LocalityLbEndpoints prototype)
public EndpointOuterClass.LocalityLbEndpoints.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected EndpointOuterClass.LocalityLbEndpoints.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static EndpointOuterClass.LocalityLbEndpoints getDefaultInstance()
public static com.google.protobuf.Parser<EndpointOuterClass.LocalityLbEndpoints> parser()
public com.google.protobuf.Parser<EndpointOuterClass.LocalityLbEndpoints> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public EndpointOuterClass.LocalityLbEndpoints getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 The Envoy Project. All rights reserved.