Class LbEndpoint
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class LbEndpoint
extends com.google.protobuf.GeneratedMessage
implements LbEndpointOrBuilder
An Endpoint that Envoy can route traffic to. [#next-free-field: 6]Protobuf type
envoy.config.endpoint.v3.LbEndpoint- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn Endpoint that Envoy can route traffic to.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final LbEndpointstatic final intstatic final intstatic final intprivate intprivate Objectprivate intstatic final intprivate com.google.protobuf.UInt32Valueprivate byteprivate Metadatastatic final intprivate static final com.google.protobuf.Parser<LbEndpoint> private static final longFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateLbEndpoint(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LbEndpointstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor.envoy.config.endpoint.v3.Endpoint endpoint = 1;[#not-implemented-hide:]com.google.protobuf.ByteString[#not-implemented-hide:].envoy.config.endpoint.v3.Endpoint endpoint = 1;Optional health status when known and supplied by EDS server.intOptional health status when known and supplied by EDS server.com.google.protobuf.UInt32ValueThe optional load balancing weight of the upstream host; at least 1.com.google.protobuf.UInt32ValueOrBuilderThe optional load balancing weight of the upstream host; at least 1.The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.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> intboolean.envoy.config.endpoint.v3.Endpoint endpoint = 1;boolean[#not-implemented-hide:]inthashCode()booleanThe optional load balancing weight of the upstream host; at least 1.booleanThe 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.GeneratedMessage.FieldAccessorTablefinal booleanstatic LbEndpoint.Builderstatic LbEndpoint.BuildernewBuilder(LbEndpoint prototype) protected LbEndpoint.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
hostIdentifierCase_
private int hostIdentifierCase_ -
hostIdentifier_
-
ENDPOINT_FIELD_NUMBER
public static final int ENDPOINT_FIELD_NUMBER- See Also:
-
ENDPOINT_NAME_FIELD_NUMBER
public static final int ENDPOINT_NAME_FIELD_NUMBER- See Also:
-
HEALTH_STATUS_FIELD_NUMBER
public static final int HEALTH_STATUS_FIELD_NUMBER- See Also:
-
healthStatus_
private int healthStatus_ -
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
metadata_
-
LOAD_BALANCING_WEIGHT_FIELD_NUMBER
public static final int LOAD_BALANCING_WEIGHT_FIELD_NUMBER- See Also:
-
loadBalancingWeight_
private com.google.protobuf.UInt32Value loadBalancingWeight_ -
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
LbEndpoint
private LbEndpoint(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
LbEndpoint
private LbEndpoint()
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
.envoy.config.endpoint.v3.Endpoint endpoint = 1;- Specified by:
getEndpointin interfaceLbEndpointOrBuilder- Returns:
- The endpoint.
-
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
[#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
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
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
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static LbEndpoint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static LbEndpoint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static LbEndpoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LbEndpoint.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-