Class TcpProxy.WeightedCluster.ClusterWeight.Builder

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

public static final class TcpProxy.WeightedCluster.ClusterWeight.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder> implements TcpProxy.WeightedCluster.ClusterWeightOrBuilder
Protobuf type envoy.config.filter.network.tcp_proxy.v2.TcpProxy.WeightedCluster.ClusterWeight
  • 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.ClusterWeight.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.ClusterWeight.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.ClusterWeight.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • 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.ClusterWeight.Builder>
    • setField

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

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

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

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

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

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

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

      public String getName()
       Name of the upstream cluster.
       
      string name = 1 [(.validate.rules) = { ... }
      Specified by:
      getName in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the upstream cluster.
       
      string name = 1 [(.validate.rules) = { ... }
      Specified by:
      getNameBytes in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilder
      Returns:
      The bytes for name.
    • setName

       Name of the upstream cluster.
       
      string name = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Name of the upstream cluster.
       
      string name = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public TcpProxy.WeightedCluster.ClusterWeight.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the upstream cluster.
       
      string name = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getWeight

      public int getWeight()
       When a request matches the route, the choice of an upstream cluster is
       determined by its weight. The sum of weights across all entries in the
       clusters array determines the total weight.
       
      uint32 weight = 2 [(.validate.rules) = { ... }
      Specified by:
      getWeight in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilder
      Returns:
      The weight.
    • setWeight

      public TcpProxy.WeightedCluster.ClusterWeight.Builder setWeight(int value)
       When a request matches the route, the choice of an upstream cluster is
       determined by its weight. The sum of weights across all entries in the
       clusters array determines the total weight.
       
      uint32 weight = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The weight to set.
      Returns:
      This builder for chaining.
    • clearWeight

       When a request matches the route, the choice of an upstream cluster is
       determined by its weight. The sum of weights across all entries in the
       clusters array determines the total weight.
       
      uint32 weight = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • hasMetadataMatch

      public boolean hasMetadataMatch()
       Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints
       in the upstream cluster with metadata matching what is set in this field will be considered
       for load balancing. Note that this will be merged with what's provided in
       :ref:`TcpProxy.metadata_match
       <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values
       here taking precedence. The filter name should be specified as *envoy.lb*.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
      Specified by:
      hasMetadataMatch in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilder
      Returns:
      Whether the metadataMatch field is set.
    • getMetadataMatch

      public Metadata getMetadataMatch()
       Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints
       in the upstream cluster with metadata matching what is set in this field will be considered
       for load balancing. Note that this will be merged with what's provided in
       :ref:`TcpProxy.metadata_match
       <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values
       here taking precedence. The filter name should be specified as *envoy.lb*.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
      Specified by:
      getMetadataMatch in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilder
      Returns:
      The metadataMatch.
    • setMetadataMatch

       Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints
       in the upstream cluster with metadata matching what is set in this field will be considered
       for load balancing. Note that this will be merged with what's provided in
       :ref:`TcpProxy.metadata_match
       <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values
       here taking precedence. The filter name should be specified as *envoy.lb*.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
    • setMetadataMatch

      public TcpProxy.WeightedCluster.ClusterWeight.Builder setMetadataMatch(Metadata.Builder builderForValue)
       Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints
       in the upstream cluster with metadata matching what is set in this field will be considered
       for load balancing. Note that this will be merged with what's provided in
       :ref:`TcpProxy.metadata_match
       <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values
       here taking precedence. The filter name should be specified as *envoy.lb*.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
    • mergeMetadataMatch

      public TcpProxy.WeightedCluster.ClusterWeight.Builder mergeMetadataMatch(Metadata value)
       Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints
       in the upstream cluster with metadata matching what is set in this field will be considered
       for load balancing. Note that this will be merged with what's provided in
       :ref:`TcpProxy.metadata_match
       <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values
       here taking precedence. The filter name should be specified as *envoy.lb*.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
    • clearMetadataMatch

       Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints
       in the upstream cluster with metadata matching what is set in this field will be considered
       for load balancing. Note that this will be merged with what's provided in
       :ref:`TcpProxy.metadata_match
       <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values
       here taking precedence. The filter name should be specified as *envoy.lb*.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
    • getMetadataMatchBuilder

      public Metadata.Builder getMetadataMatchBuilder()
       Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints
       in the upstream cluster with metadata matching what is set in this field will be considered
       for load balancing. Note that this will be merged with what's provided in
       :ref:`TcpProxy.metadata_match
       <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values
       here taking precedence. The filter name should be specified as *envoy.lb*.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
    • getMetadataMatchOrBuilder

      public MetadataOrBuilder getMetadataMatchOrBuilder()
       Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints
       in the upstream cluster with metadata matching what is set in this field will be considered
       for load balancing. Note that this will be merged with what's provided in
       :ref:`TcpProxy.metadata_match
       <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values
       here taking precedence. The filter name should be specified as *envoy.lb*.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
      Specified by:
      getMetadataMatchOrBuilder in interface TcpProxy.WeightedCluster.ClusterWeightOrBuilder
    • setUnknownFields

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

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