public static final class WeightedCluster.ClusterWeight extends com.google.protobuf.GeneratedMessageV3 implements WeightedCluster.ClusterWeightOrBuilder
envoy.extensions.filters.network.thrift_proxy.v4alpha.WeightedCluster.ClusterWeight| Modifier and Type | Class and Description |
|---|---|
static class |
WeightedCluster.ClusterWeight.Builder
Protobuf type
envoy.extensions.filters.network.thrift_proxy.v4alpha.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 WeightedCluster.ClusterWeight |
getDefaultInstance() |
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<WeightedCluster.ClusterWeight> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
com.google.protobuf.UInt32Value |
getWeight()
When a request matches the route, the choice of an upstream cluster is determined by its
weight.
|
com.google.protobuf.UInt32ValueOrBuilder |
getWeightOrBuilder()
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.
|
boolean |
hasWeight()
When a request matches the route, the choice of an upstream cluster is determined by its
weight.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static WeightedCluster.ClusterWeight.Builder |
newBuilder() |
static WeightedCluster.ClusterWeight.Builder |
newBuilder(WeightedCluster.ClusterWeight prototype) |
WeightedCluster.ClusterWeight.Builder |
newBuilderForType() |
protected WeightedCluster.ClusterWeight.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static WeightedCluster.ClusterWeight |
parseDelimitedFrom(InputStream input) |
static WeightedCluster.ClusterWeight |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WeightedCluster.ClusterWeight |
parseFrom(byte[] data) |
static WeightedCluster.ClusterWeight |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WeightedCluster.ClusterWeight |
parseFrom(ByteBuffer data) |
static WeightedCluster.ClusterWeight |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WeightedCluster.ClusterWeight |
parseFrom(com.google.protobuf.ByteString data) |
static WeightedCluster.ClusterWeight |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WeightedCluster.ClusterWeight |
parseFrom(com.google.protobuf.CodedInputStream input) |
static WeightedCluster.ClusterWeight |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WeightedCluster.ClusterWeight |
parseFrom(InputStream input) |
static WeightedCluster.ClusterWeight |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<WeightedCluster.ClusterWeight> |
parser() |
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 WeightedCluster.ClusterWeightOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }getNameBytes in interface WeightedCluster.ClusterWeightOrBuilderpublic boolean hasWeight()
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.
.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }hasWeight in interface WeightedCluster.ClusterWeightOrBuilderpublic com.google.protobuf.UInt32Value 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.
.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }getWeight in interface WeightedCluster.ClusterWeightOrBuilderpublic com.google.protobuf.UInt32ValueOrBuilder getWeightOrBuilder()
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.
.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }getWeightOrBuilder in interface 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, combined with what's provided in :ref:`RouteAction's metadata_match <envoy_api_field_extensions.filters.network.thrift_proxy.v4alpha.RouteAction.metadata_match>`, will be considered. Values here will take precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.config.core.v4alpha.Metadata metadata_match = 3;hasMetadataMatch in interface 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, combined with what's provided in :ref:`RouteAction's metadata_match <envoy_api_field_extensions.filters.network.thrift_proxy.v4alpha.RouteAction.metadata_match>`, will be considered. Values here will take precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.config.core.v4alpha.Metadata metadata_match = 3;getMetadataMatch in interface 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, combined with what's provided in :ref:`RouteAction's metadata_match <envoy_api_field_extensions.filters.network.thrift_proxy.v4alpha.RouteAction.metadata_match>`, will be considered. Values here will take precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.config.core.v4alpha.Metadata metadata_match = 3;getMetadataMatchOrBuilder in interface 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 WeightedCluster.ClusterWeight parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedCluster.ClusterWeight parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedCluster.ClusterWeight parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedCluster.ClusterWeight parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedCluster.ClusterWeight parseFrom(InputStream input) throws IOException
IOExceptionpublic static WeightedCluster.ClusterWeight parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WeightedCluster.ClusterWeight parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static WeightedCluster.ClusterWeight parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic WeightedCluster.ClusterWeight.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static WeightedCluster.ClusterWeight.Builder newBuilder()
public static WeightedCluster.ClusterWeight.Builder newBuilder(WeightedCluster.ClusterWeight prototype)
public WeightedCluster.ClusterWeight.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected WeightedCluster.ClusterWeight.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static WeightedCluster.ClusterWeight getDefaultInstance()
public static com.google.protobuf.Parser<WeightedCluster.ClusterWeight> parser()
public com.google.protobuf.Parser<WeightedCluster.ClusterWeight> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public WeightedCluster.ClusterWeight getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.