java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
io.envoyproxy.envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WeightedClusterOrBuilder, Cloneable
Enclosing class:
WeightedCluster

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.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
    • clear

      public WeightedCluster.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
    • getDefaultInstanceForType

      public WeightedCluster getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public WeightedCluster build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public WeightedCluster buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public WeightedCluster.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
    • setField

      public WeightedCluster.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
    • clearField

      public WeightedCluster.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
    • clearOneof

      public WeightedCluster.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
    • setRepeatedField

      public WeightedCluster.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
    • addRepeatedField

      public WeightedCluster.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
    • mergeFrom

      public WeightedCluster.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WeightedCluster.Builder>
    • mergeFrom

      public WeightedCluster.Builder mergeFrom(WeightedCluster other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
    • mergeFrom

      public WeightedCluster.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WeightedCluster.Builder>
      Throws:
      IOException
    • getClustersList

      public List<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) = { ... }
      Specified by:
      getClustersList in interface WeightedClusterOrBuilder
    • getClustersCount

      public 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) = { ... }
      Specified by:
      getClustersCount in interface WeightedClusterOrBuilder
    • getClusters

      public 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) = { ... }
      Specified by:
      getClusters in interface WeightedClusterOrBuilder
    • setClusters

      public WeightedCluster.Builder setClusters(int index, 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) = { ... }
    • setClusters

      public WeightedCluster.Builder setClusters(int index, 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) = { ... }
    • addClusters

       Specifies one or more upstream clusters associated with the route.
       
      repeated .envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • addClusters

      public WeightedCluster.Builder addClusters(int index, 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) = { ... }
    • addClusters

      public WeightedCluster.Builder addClusters(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) = { ... }
    • addClusters

      public WeightedCluster.Builder addClusters(int index, 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) = { ... }
    • addAllClusters

      public WeightedCluster.Builder addAllClusters(Iterable<? extends 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) = { ... }
    • clearClusters

      public 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) = { ... }
    • removeClusters

      public 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) = { ... }
    • getClustersBuilder

      public 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) = { ... }
    • getClustersOrBuilder

      public 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) = { ... }
      Specified by:
      getClustersOrBuilder in interface WeightedClusterOrBuilder
    • getClustersOrBuilderList

      public List<? extends 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) = { ... }
      Specified by:
      getClustersOrBuilderList in interface WeightedClusterOrBuilder
    • addClustersBuilder

      public 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) = { ... }
    • addClustersBuilder

      public 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) = { ... }
    • getClustersBuilderList

      public List<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) = { ... }
    • setUnknownFields

      public final WeightedCluster.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>
    • mergeUnknownFields

      public final WeightedCluster.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.Builder>