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