public static final class TcpProxy.WeightedCluster.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.Builder> implements TcpProxy.WeightedClusterOrBuilder
Allows for specification of multiple upstream clusters along with weights that indicate the percentage of traffic to be forwarded to each cluster. The router selects an upstream cluster based on these weights.Protobuf type
envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster| Modifier and Type | Method and Description |
|---|---|
TcpProxy.WeightedCluster.Builder |
addAllClusters(Iterable<? extends TcpProxy.WeightedCluster.ClusterWeight> values)
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.Builder |
addClusters(int index,
TcpProxy.WeightedCluster.ClusterWeight.Builder builderForValue)
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.Builder |
addClusters(int index,
TcpProxy.WeightedCluster.ClusterWeight value)
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.Builder |
addClusters(TcpProxy.WeightedCluster.ClusterWeight.Builder builderForValue)
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.Builder |
addClusters(TcpProxy.WeightedCluster.ClusterWeight value)
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
addClustersBuilder()
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
addClustersBuilder(int index)
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TcpProxy.WeightedCluster |
build() |
TcpProxy.WeightedCluster |
buildPartial() |
TcpProxy.WeightedCluster.Builder |
clear() |
TcpProxy.WeightedCluster.Builder |
clearClusters()
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TcpProxy.WeightedCluster.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TcpProxy.WeightedCluster.Builder |
clone() |
TcpProxy.WeightedCluster.ClusterWeight |
getClusters(int index)
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.ClusterWeight.Builder |
getClustersBuilder(int index)
Specifies one or more upstream clusters associated with the route.
|
List<TcpProxy.WeightedCluster.ClusterWeight.Builder> |
getClustersBuilderList()
Specifies one or more upstream clusters associated with the route.
|
int |
getClustersCount()
Specifies one or more upstream clusters associated with the route.
|
List<TcpProxy.WeightedCluster.ClusterWeight> |
getClustersList()
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.ClusterWeightOrBuilder |
getClustersOrBuilder(int index)
Specifies one or more upstream clusters associated with the route.
|
List<? extends TcpProxy.WeightedCluster.ClusterWeightOrBuilder> |
getClustersOrBuilderList()
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TcpProxy.WeightedCluster.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TcpProxy.WeightedCluster.Builder |
mergeFrom(com.google.protobuf.Message other) |
TcpProxy.WeightedCluster.Builder |
mergeFrom(TcpProxy.WeightedCluster other) |
TcpProxy.WeightedCluster.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TcpProxy.WeightedCluster.Builder |
removeClusters(int index)
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.Builder |
setClusters(int index,
TcpProxy.WeightedCluster.ClusterWeight.Builder builderForValue)
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.Builder |
setClusters(int index,
TcpProxy.WeightedCluster.ClusterWeight value)
Specifies one or more upstream clusters associated with the route.
|
TcpProxy.WeightedCluster.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TcpProxy.WeightedCluster.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TcpProxy.WeightedCluster.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.Builder>public TcpProxy.WeightedCluster.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.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.Builder>public TcpProxy.WeightedCluster getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TcpProxy.WeightedCluster build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TcpProxy.WeightedCluster buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TcpProxy.WeightedCluster.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.Builder>public TcpProxy.WeightedCluster.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.Builder>public TcpProxy.WeightedCluster.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.Builder>public TcpProxy.WeightedCluster.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.Builder>public TcpProxy.WeightedCluster.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.Builder>public TcpProxy.WeightedCluster.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.Builder>public TcpProxy.WeightedCluster.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TcpProxy.WeightedCluster.Builder>public TcpProxy.WeightedCluster.Builder mergeFrom(TcpProxy.WeightedCluster other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.Builder>public TcpProxy.WeightedCluster.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.Builder>IOExceptionpublic List<TcpProxy.WeightedCluster.ClusterWeight> getClustersList()
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }getClustersList in interface TcpProxy.WeightedClusterOrBuilderpublic int getClustersCount()
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }getClustersCount in interface TcpProxy.WeightedClusterOrBuilderpublic TcpProxy.WeightedCluster.ClusterWeight getClusters(int index)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }getClusters in interface TcpProxy.WeightedClusterOrBuilderpublic TcpProxy.WeightedCluster.Builder setClusters(int index, TcpProxy.WeightedCluster.ClusterWeight value)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.Builder setClusters(int index, TcpProxy.WeightedCluster.ClusterWeight.Builder builderForValue)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.Builder addClusters(TcpProxy.WeightedCluster.ClusterWeight value)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.Builder addClusters(int index, TcpProxy.WeightedCluster.ClusterWeight value)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.Builder addClusters(TcpProxy.WeightedCluster.ClusterWeight.Builder builderForValue)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.Builder addClusters(int index, TcpProxy.WeightedCluster.ClusterWeight.Builder builderForValue)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.Builder addAllClusters(Iterable<? extends TcpProxy.WeightedCluster.ClusterWeight> values)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.Builder clearClusters()
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.Builder removeClusters(int index)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.ClusterWeight.Builder getClustersBuilder(int index)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.ClusterWeightOrBuilder getClustersOrBuilder(int index)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }getClustersOrBuilder in interface TcpProxy.WeightedClusterOrBuilderpublic List<? extends TcpProxy.WeightedCluster.ClusterWeightOrBuilder> getClustersOrBuilderList()
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }getClustersOrBuilderList in interface TcpProxy.WeightedClusterOrBuilderpublic TcpProxy.WeightedCluster.ClusterWeight.Builder addClustersBuilder()
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public TcpProxy.WeightedCluster.ClusterWeight.Builder addClustersBuilder(int index)
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public List<TcpProxy.WeightedCluster.ClusterWeight.Builder> getClustersBuilderList()
Specifies one or more upstream clusters associated with the route.
repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }public final TcpProxy.WeightedCluster.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.Builder>public final TcpProxy.WeightedCluster.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.