public static final class TcpProxy.WeightedCluster.ClusterWeight extends com.google.protobuf.GeneratedMessageV3 implements TcpProxy.WeightedCluster.ClusterWeightOrBuilder
envoy.extensions.filters.network.tcp_proxy.v4alpha.TcpProxy.WeightedCluster.ClusterWeight| Modifier and Type | Class and Description |
|---|---|
static class |
TcpProxy.WeightedCluster.ClusterWeight.Builder
Protobuf type
envoy.extensions.filters.network.tcp_proxy.v4alpha.TcpProxy.WeightedCluster.ClusterWeight |
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 |
METADATA_MATCH_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
WEIGHT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static TcpProxy.WeightedCluster.ClusterWeight |
getDefaultInstance() |
TcpProxy.WeightedCluster.ClusterWeight |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Metadata |
getMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer.
|
MetadataOrBuilder |
getMetadataMatchOrBuilder()
Optional endpoint metadata match criteria used by the subset load balancer.
|
String |
getName()
Name of the upstream cluster.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the upstream cluster.
|
com.google.protobuf.Parser<TcpProxy.WeightedCluster.ClusterWeight> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getWeight()
When a request matches the route, the choice of an upstream cluster is
determined by its weight.
|
int |
hashCode() |
boolean |
hasMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TcpProxy.WeightedCluster.ClusterWeight.Builder |
newBuilder() |
static TcpProxy.WeightedCluster.ClusterWeight.Builder |
newBuilder(TcpProxy.WeightedCluster.ClusterWeight prototype) |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
newBuilderForType() |
protected TcpProxy.WeightedCluster.ClusterWeight.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseDelimitedFrom(InputStream input) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseFrom(byte[] data) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseFrom(ByteBuffer data) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseFrom(com.google.protobuf.ByteString data) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseFrom(InputStream input) |
static TcpProxy.WeightedCluster.ClusterWeight |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TcpProxy.WeightedCluster.ClusterWeight> |
parser() |
TcpProxy.WeightedCluster.ClusterWeight.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 NAME_FIELD_NUMBER
public static final int WEIGHT_FIELD_NUMBER
public static final int METADATA_MATCH_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 String getName()
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }getName in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }getNameBytes in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilderpublic int getWeight()
When a request matches the route, the choice of an upstream cluster is determined by its weight. The sum of weights across all entries in the clusters array determines the total weight.
uint32 weight = 2 [(.validate.rules) = { ... }getWeight in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilderpublic boolean hasMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`TcpProxy.metadata_match <envoy_api_field_extensions.filters.network.tcp_proxy.v4alpha.TcpProxy.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.config.core.v4alpha.Metadata metadata_match = 3;hasMetadataMatch in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilderpublic Metadata getMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`TcpProxy.metadata_match <envoy_api_field_extensions.filters.network.tcp_proxy.v4alpha.TcpProxy.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.config.core.v4alpha.Metadata metadata_match = 3;getMetadataMatch in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilderpublic MetadataOrBuilder getMetadataMatchOrBuilder()
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`TcpProxy.metadata_match <envoy_api_field_extensions.filters.network.tcp_proxy.v4alpha.TcpProxy.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.config.core.v4alpha.Metadata metadata_match = 3;getMetadataMatchOrBuilder in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilderpublic 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 TcpProxy.WeightedCluster.ClusterWeight parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TcpProxy.WeightedCluster.ClusterWeight parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TcpProxy.WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TcpProxy.WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TcpProxy.WeightedCluster.ClusterWeight parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TcpProxy.WeightedCluster.ClusterWeight parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TcpProxy.WeightedCluster.ClusterWeight parseFrom(InputStream input) throws IOException
IOExceptionpublic static TcpProxy.WeightedCluster.ClusterWeight parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TcpProxy.WeightedCluster.ClusterWeight parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TcpProxy.WeightedCluster.ClusterWeight parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TcpProxy.WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TcpProxy.WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TcpProxy.WeightedCluster.ClusterWeight.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TcpProxy.WeightedCluster.ClusterWeight.Builder newBuilder()
public static TcpProxy.WeightedCluster.ClusterWeight.Builder newBuilder(TcpProxy.WeightedCluster.ClusterWeight prototype)
public TcpProxy.WeightedCluster.ClusterWeight.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TcpProxy.WeightedCluster.ClusterWeight.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TcpProxy.WeightedCluster.ClusterWeight getDefaultInstance()
public static com.google.protobuf.Parser<TcpProxy.WeightedCluster.ClusterWeight> parser()
public com.google.protobuf.Parser<TcpProxy.WeightedCluster.ClusterWeight> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TcpProxy.WeightedCluster.ClusterWeight getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.