Class TcpProxy.WeightedCluster.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.Builder>
io.envoyproxy.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TcpProxy.WeightedClusterOrBuilder, Cloneable
Enclosing class:
TcpProxy.WeightedCluster

public static final class TcpProxy.WeightedCluster.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.Builder> implements TcpProxy.WeightedClusterOrBuilder
 Allows specification of multiple upstream clusters along with weights indicating the percentage of
 traffic forwarded to each cluster. The cluster selection is based on these weights.
 
Protobuf type envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.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<TcpProxy.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<TcpProxy.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<TcpProxy.WeightedCluster.Builder>
    • getDefaultInstanceForType

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

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

      public TcpProxy.WeightedCluster buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<TcpProxy.WeightedCluster.Builder>
    • setField

      public TcpProxy.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<TcpProxy.WeightedCluster.Builder>
    • clearField

      public TcpProxy.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<TcpProxy.WeightedCluster.Builder>
    • clearOneof

      public TcpProxy.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<TcpProxy.WeightedCluster.Builder>
    • setRepeatedField

      public TcpProxy.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<TcpProxy.WeightedCluster.Builder>
    • addRepeatedField

      public TcpProxy.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<TcpProxy.WeightedCluster.Builder>
    • mergeFrom

      public TcpProxy.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<TcpProxy.WeightedCluster.Builder>
    • mergeFrom

    • isInitialized

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

      public TcpProxy.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<TcpProxy.WeightedCluster.Builder>
      Throws:
      IOException
    • getClustersList

      public List<TcpProxy.WeightedCluster.ClusterWeight> getClustersList()
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
      Specified by:
      getClustersList in interface TcpProxy.WeightedClusterOrBuilder
    • getClustersCount

      public int getClustersCount()
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
      Specified by:
      getClustersCount in interface TcpProxy.WeightedClusterOrBuilder
    • getClusters

      public TcpProxy.WeightedCluster.ClusterWeight getClusters(int index)
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
      Specified by:
      getClusters in interface TcpProxy.WeightedClusterOrBuilder
    • setClusters

       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • setClusters

      public TcpProxy.WeightedCluster.Builder setClusters(int index, TcpProxy.WeightedCluster.ClusterWeight.Builder builderForValue)
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • addClusters

       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • addClusters

       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • addClusters

       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • addClusters

      public TcpProxy.WeightedCluster.Builder addClusters(int index, TcpProxy.WeightedCluster.ClusterWeight.Builder builderForValue)
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • addAllClusters

       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • clearClusters

      public TcpProxy.WeightedCluster.Builder clearClusters()
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • removeClusters

      public TcpProxy.WeightedCluster.Builder removeClusters(int index)
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • getClustersBuilder

      public TcpProxy.WeightedCluster.ClusterWeight.Builder getClustersBuilder(int index)
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • getClustersOrBuilder

      public TcpProxy.WeightedCluster.ClusterWeightOrBuilder getClustersOrBuilder(int index)
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
      Specified by:
      getClustersOrBuilder in interface TcpProxy.WeightedClusterOrBuilder
    • getClustersOrBuilderList

      public List<? extends TcpProxy.WeightedCluster.ClusterWeightOrBuilder> getClustersOrBuilderList()
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
      Specified by:
      getClustersOrBuilderList in interface TcpProxy.WeightedClusterOrBuilder
    • addClustersBuilder

       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • addClustersBuilder

      public TcpProxy.WeightedCluster.ClusterWeight.Builder addClustersBuilder(int index)
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • getClustersBuilderList

      public List<TcpProxy.WeightedCluster.ClusterWeight.Builder> getClustersBuilderList()
       Specifies the upstream clusters associated with this configuration.
       
      repeated .envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.WeightedCluster.ClusterWeight clusters = 1 [(.validate.rules) = { ... }
    • setUnknownFields

      public final TcpProxy.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<TcpProxy.WeightedCluster.Builder>
    • mergeUnknownFields

      public final TcpProxy.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<TcpProxy.WeightedCluster.Builder>