public static final class TcpProxy.WeightedCluster.ClusterWeight.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder> implements TcpProxy.WeightedCluster.ClusterWeightOrBuilder
envoy.extensions.filters.network.tcp_proxy.v4alpha.TcpProxy.WeightedCluster.ClusterWeight| Modifier and Type | Method and Description |
|---|---|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TcpProxy.WeightedCluster.ClusterWeight |
build() |
TcpProxy.WeightedCluster.ClusterWeight |
buildPartial() |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
clear() |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
clearMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer.
|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
clearName()
Name of the upstream cluster.
|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
clearWeight()
When a request matches the route, the choice of an upstream cluster is
determined by its weight.
|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
clone() |
TcpProxy.WeightedCluster.ClusterWeight |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Metadata |
getMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer.
|
Metadata.Builder |
getMetadataMatchBuilder()
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.
|
int |
getWeight()
When a request matches the route, the choice of an upstream cluster is
determined by its weight.
|
boolean |
hasMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
mergeFrom(com.google.protobuf.Message other) |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
mergeFrom(TcpProxy.WeightedCluster.ClusterWeight other) |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
mergeMetadataMatch(Metadata value)
Optional endpoint metadata match criteria used by the subset load balancer.
|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
setMetadataMatch(Metadata.Builder builderForValue)
Optional endpoint metadata match criteria used by the subset load balancer.
|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
setMetadataMatch(Metadata value)
Optional endpoint metadata match criteria used by the subset load balancer.
|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
setName(String value)
Name of the upstream cluster.
|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the upstream cluster.
|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TcpProxy.WeightedCluster.ClusterWeight.Builder |
setWeight(int value)
When a request matches the route, the choice of an upstream cluster is
determined by its weight.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public TcpProxy.WeightedCluster.ClusterWeight.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public TcpProxy.WeightedCluster.ClusterWeight getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TcpProxy.WeightedCluster.ClusterWeight build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TcpProxy.WeightedCluster.ClusterWeight buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TcpProxy.WeightedCluster.ClusterWeight.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public TcpProxy.WeightedCluster.ClusterWeight.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public TcpProxy.WeightedCluster.ClusterWeight.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public TcpProxy.WeightedCluster.ClusterWeight.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public TcpProxy.WeightedCluster.ClusterWeight.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public TcpProxy.WeightedCluster.ClusterWeight.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public TcpProxy.WeightedCluster.ClusterWeight.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public TcpProxy.WeightedCluster.ClusterWeight.Builder mergeFrom(TcpProxy.WeightedCluster.ClusterWeight other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public TcpProxy.WeightedCluster.ClusterWeight.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>IOExceptionpublic 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 TcpProxy.WeightedCluster.ClusterWeight.Builder setName(String value)
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.ClusterWeight.Builder clearName()
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.ClusterWeight.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }public 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 TcpProxy.WeightedCluster.ClusterWeight.Builder setWeight(int value)
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) = { ... }public TcpProxy.WeightedCluster.ClusterWeight.Builder clearWeight()
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) = { ... }public 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 TcpProxy.WeightedCluster.ClusterWeight.Builder setMetadataMatch(Metadata value)
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;public TcpProxy.WeightedCluster.ClusterWeight.Builder setMetadataMatch(Metadata.Builder builderForValue)
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;public TcpProxy.WeightedCluster.ClusterWeight.Builder mergeMetadataMatch(Metadata value)
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;public TcpProxy.WeightedCluster.ClusterWeight.Builder clearMetadataMatch()
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;public Metadata.Builder getMetadataMatchBuilder()
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;public 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 TcpProxy.WeightedCluster.ClusterWeight.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>public final TcpProxy.WeightedCluster.ClusterWeight.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.