Class WeightedCluster.ClusterWeight.Builder

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

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

      public 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

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

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

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

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

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

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

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

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

      public String getName()
       Name of the upstream cluster.
       
      string name = 1 [(.validate.rules) = { ... }
      Specified by:
      getName in interface 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 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 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.
    • hasWeight

      public boolean hasWeight()
       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.
       
      .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
      Specified by:
      hasWeight in interface WeightedCluster.ClusterWeightOrBuilder
      Returns:
      Whether the weight field is set.
    • getWeight

      public com.google.protobuf.UInt32Value 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.
       
      .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
      Specified by:
      getWeight in interface WeightedCluster.ClusterWeightOrBuilder
      Returns:
      The weight.
    • setWeight

      public WeightedCluster.ClusterWeight.Builder setWeight(com.google.protobuf.UInt32Value 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.
       
      .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
    • setWeight

      public WeightedCluster.ClusterWeight.Builder setWeight(com.google.protobuf.UInt32Value.Builder builderForValue)
       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.
       
      .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
    • mergeWeight

      public WeightedCluster.ClusterWeight.Builder mergeWeight(com.google.protobuf.UInt32Value 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.
       
      .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
    • 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.
       
      .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
    • getWeightBuilder

      public com.google.protobuf.UInt32Value.Builder getWeightBuilder()
       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.
       
      .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
    • getWeightOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getWeightOrBuilder()
       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.
       
      .google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
      Specified by:
      getWeightOrBuilder in interface WeightedCluster.ClusterWeightOrBuilder
    • 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, combined with what's
       provided in :ref:`RouteAction's metadata_match
       <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
       will be considered. Values here will take precedence. Keys and values should be provided
       under the "envoy.lb" metadata key.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
      Specified by:
      hasMetadataMatch in interface 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, combined with what's
       provided in :ref:`RouteAction's metadata_match
       <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
       will be considered. Values here will take precedence. Keys and values should be provided
       under the "envoy.lb" metadata key.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
      Specified by:
      getMetadataMatch in interface WeightedCluster.ClusterWeightOrBuilder
      Returns:
      The metadataMatch.
    • setMetadataMatch

      public WeightedCluster.ClusterWeight.Builder setMetadataMatch(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, combined with what's
       provided in :ref:`RouteAction's metadata_match
       <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
       will be considered. Values here will take precedence. Keys and values should be provided
       under the "envoy.lb" metadata key.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
    • setMetadataMatch

      public 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, combined with what's
       provided in :ref:`RouteAction's metadata_match
       <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
       will be considered. Values here will take precedence. Keys and values should be provided
       under the "envoy.lb" metadata key.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
    • mergeMetadataMatch

      public 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, combined with what's
       provided in :ref:`RouteAction's metadata_match
       <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
       will be considered. Values here will take precedence. Keys and values should be provided
       under the "envoy.lb" metadata key.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
    • clearMetadataMatch

      public WeightedCluster.ClusterWeight.Builder 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, combined with what's
       provided in :ref:`RouteAction's metadata_match
       <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
       will be considered. Values here will take precedence. Keys and values should be provided
       under the "envoy.lb" metadata key.
       
      .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, combined with what's
       provided in :ref:`RouteAction's metadata_match
       <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
       will be considered. Values here will take precedence. Keys and values should be provided
       under the "envoy.lb" metadata key.
       
      .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, combined with what's
       provided in :ref:`RouteAction's metadata_match
       <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`,
       will be considered. Values here will take precedence. Keys and values should be provided
       under the "envoy.lb" metadata key.
       
      .envoy.api.v2.core.Metadata metadata_match = 3;
      Specified by:
      getMetadataMatchOrBuilder in interface WeightedCluster.ClusterWeightOrBuilder
    • setUnknownFields

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

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