Class LbEndpoint
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.config.endpoint.v3.LbEndpoint
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LbEndpointOrBuilder,Serializable
public final class LbEndpoint extends com.google.protobuf.GeneratedMessageV3 implements LbEndpointOrBuilder
An Endpoint that Envoy can route traffic to. [#next-free-field: 6]
Protobuf typeenvoy.config.endpoint.v3.LbEndpoint- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLbEndpoint.BuilderAn Endpoint that Envoy can route traffic to.static classLbEndpoint.HostIdentifierCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intENDPOINT_FIELD_NUMBERstatic intENDPOINT_NAME_FIELD_NUMBERstatic intHEALTH_STATUS_FIELD_NUMBERstatic intLOAD_BALANCING_WEIGHT_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static LbEndpointgetDefaultInstance()LbEndpointgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()EndpointgetEndpoint().envoy.config.endpoint.v3.Endpoint endpoint = 1;StringgetEndpointName()[#not-implemented-hide:]com.google.protobuf.ByteStringgetEndpointNameBytes()[#not-implemented-hide:]EndpointOrBuildergetEndpointOrBuilder().envoy.config.endpoint.v3.Endpoint endpoint = 1;HealthStatusgetHealthStatus()Optional health status when known and supplied by EDS server.intgetHealthStatusValue()Optional health status when known and supplied by EDS server.LbEndpoint.HostIdentifierCasegetHostIdentifierCase()com.google.protobuf.UInt32ValuegetLoadBalancingWeight()The optional load balancing weight of the upstream host; at least 1.com.google.protobuf.UInt32ValueOrBuildergetLoadBalancingWeightOrBuilder()The optional load balancing weight of the upstream host; at least 1.MetadatagetMetadata()The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.MetadataOrBuildergetMetadataOrBuilder()The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.com.google.protobuf.Parser<LbEndpoint>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasEndpoint().envoy.config.endpoint.v3.Endpoint endpoint = 1;booleanhasEndpointName()[#not-implemented-hide:]inthashCode()booleanhasLoadBalancingWeight()The optional load balancing weight of the upstream host; at least 1.booleanhasMetadata()The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static LbEndpoint.BuildernewBuilder()static LbEndpoint.BuildernewBuilder(LbEndpoint prototype)LbEndpoint.BuildernewBuilderForType()protected LbEndpoint.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static LbEndpointparseDelimitedFrom(InputStream input)static LbEndpointparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LbEndpointparseFrom(byte[] data)static LbEndpointparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LbEndpointparseFrom(com.google.protobuf.ByteString data)static LbEndpointparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LbEndpointparseFrom(com.google.protobuf.CodedInputStream input)static LbEndpointparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LbEndpointparseFrom(InputStream input)static LbEndpointparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LbEndpointparseFrom(ByteBuffer data)static LbEndpointparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<LbEndpoint>parser()LbEndpoint.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ENDPOINT_FIELD_NUMBER
public static final int ENDPOINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENDPOINT_NAME_FIELD_NUMBER
public static final int ENDPOINT_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEALTH_STATUS_FIELD_NUMBER
public static final int HEALTH_STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOAD_BALANCING_WEIGHT_FIELD_NUMBER
public static final int LOAD_BALANCING_WEIGHT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getHostIdentifierCase
public LbEndpoint.HostIdentifierCase getHostIdentifierCase()
- Specified by:
getHostIdentifierCasein interfaceLbEndpointOrBuilder
-
hasEndpoint
public boolean hasEndpoint()
.envoy.config.endpoint.v3.Endpoint endpoint = 1;- Specified by:
hasEndpointin interfaceLbEndpointOrBuilder- Returns:
- Whether the endpoint field is set.
-
getEndpoint
public Endpoint getEndpoint()
.envoy.config.endpoint.v3.Endpoint endpoint = 1;- Specified by:
getEndpointin interfaceLbEndpointOrBuilder- Returns:
- The endpoint.
-
getEndpointOrBuilder
public EndpointOrBuilder getEndpointOrBuilder()
.envoy.config.endpoint.v3.Endpoint endpoint = 1;- Specified by:
getEndpointOrBuilderin interfaceLbEndpointOrBuilder
-
hasEndpointName
public boolean hasEndpointName()
[#not-implemented-hide:]
string endpoint_name = 5;- Specified by:
hasEndpointNamein interfaceLbEndpointOrBuilder- Returns:
- Whether the endpointName field is set.
-
getEndpointName
public String getEndpointName()
[#not-implemented-hide:]
string endpoint_name = 5;- Specified by:
getEndpointNamein interfaceLbEndpointOrBuilder- Returns:
- The endpointName.
-
getEndpointNameBytes
public com.google.protobuf.ByteString getEndpointNameBytes()
[#not-implemented-hide:]
string endpoint_name = 5;- Specified by:
getEndpointNameBytesin interfaceLbEndpointOrBuilder- Returns:
- The bytes for endpointName.
-
getHealthStatusValue
public int getHealthStatusValue()
Optional health status when known and supplied by EDS server.
.envoy.config.core.v3.HealthStatus health_status = 2;- Specified by:
getHealthStatusValuein interfaceLbEndpointOrBuilder- Returns:
- The enum numeric value on the wire for healthStatus.
-
getHealthStatus
public HealthStatus getHealthStatus()
Optional health status when known and supplied by EDS server.
.envoy.config.core.v3.HealthStatus health_status = 2;- Specified by:
getHealthStatusin interfaceLbEndpointOrBuilder- Returns:
- The healthStatus.
-
hasMetadata
public boolean hasMetadata()
The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as ``envoy.lb``. An example boolean key-value pair is ``canary``, providing the optional canary status of the upstream host. This may be matched against in a route's :ref:`RouteAction <envoy_v3_api_msg_config.route.v3.RouteAction>` metadata_match field to subset the endpoints considered in cluster load balancing.
.envoy.config.core.v3.Metadata metadata = 3;- Specified by:
hasMetadatain interfaceLbEndpointOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public Metadata getMetadata()
The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as ``envoy.lb``. An example boolean key-value pair is ``canary``, providing the optional canary status of the upstream host. This may be matched against in a route's :ref:`RouteAction <envoy_v3_api_msg_config.route.v3.RouteAction>` metadata_match field to subset the endpoints considered in cluster load balancing.
.envoy.config.core.v3.Metadata metadata = 3;- Specified by:
getMetadatain interfaceLbEndpointOrBuilder- Returns:
- The metadata.
-
getMetadataOrBuilder
public MetadataOrBuilder getMetadataOrBuilder()
The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as ``envoy.lb``. An example boolean key-value pair is ``canary``, providing the optional canary status of the upstream host. This may be matched against in a route's :ref:`RouteAction <envoy_v3_api_msg_config.route.v3.RouteAction>` metadata_match field to subset the endpoints considered in cluster load balancing.
.envoy.config.core.v3.Metadata metadata = 3;- Specified by:
getMetadataOrBuilderin interfaceLbEndpointOrBuilder
-
hasLoadBalancingWeight
public boolean hasLoadBalancingWeight()
The optional load balancing weight of the upstream host; at least 1. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, will be treated as 1. The sum of the weights of all endpoints in the endpoint's locality must not exceed uint32_t maximal value (4294967295).
.google.protobuf.UInt32Value load_balancing_weight = 4 [(.validate.rules) = { ... }- Specified by:
hasLoadBalancingWeightin interfaceLbEndpointOrBuilder- Returns:
- Whether the loadBalancingWeight field is set.
-
getLoadBalancingWeight
public com.google.protobuf.UInt32Value getLoadBalancingWeight()
The optional load balancing weight of the upstream host; at least 1. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, will be treated as 1. The sum of the weights of all endpoints in the endpoint's locality must not exceed uint32_t maximal value (4294967295).
.google.protobuf.UInt32Value load_balancing_weight = 4 [(.validate.rules) = { ... }- Specified by:
getLoadBalancingWeightin interfaceLbEndpointOrBuilder- Returns:
- The loadBalancingWeight.
-
getLoadBalancingWeightOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getLoadBalancingWeightOrBuilder()
The optional load balancing weight of the upstream host; at least 1. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, will be treated as 1. The sum of the weights of all endpoints in the endpoint's locality must not exceed uint32_t maximal value (4294967295).
.google.protobuf.UInt32Value load_balancing_weight = 4 [(.validate.rules) = { ... }- Specified by:
getLoadBalancingWeightOrBuilderin interfaceLbEndpointOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static LbEndpoint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LbEndpoint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LbEndpoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LbEndpoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LbEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LbEndpoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LbEndpoint parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LbEndpoint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LbEndpoint parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LbEndpoint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static LbEndpoint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LbEndpoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public LbEndpoint.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static LbEndpoint.Builder newBuilder()
-
newBuilder
public static LbEndpoint.Builder newBuilder(LbEndpoint prototype)
-
toBuilder
public LbEndpoint.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LbEndpoint.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static LbEndpoint getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<LbEndpoint> parser()
-
getParserForType
public com.google.protobuf.Parser<LbEndpoint> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public LbEndpoint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-