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