Class HistogramBucketSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HistogramBucketSettings.Builder>
com.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettings.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HistogramBucketSettingsOrBuilder, Cloneable
Enclosing class:
HistogramBucketSettings

public static final class HistogramBucketSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder> implements HistogramBucketSettingsOrBuilder
 Specifies a matcher for stats and the buckets that matching stats should use.
 
Protobuf type envoy.config.metrics.v3.HistogramBucketSettings
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • 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.GeneratedMessage.Builder<HistogramBucketSettings.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.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
    • getDefaultInstanceForType

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

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

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

      private void buildPartial0(HistogramBucketSettings result)
    • mergeFrom

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

    • isInitialized

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

      public HistogramBucketSettings.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<HistogramBucketSettings.Builder>
      Throws:
      IOException
    • hasMatch

      public boolean hasMatch()
       The stats that this rule applies to. The match is applied to the original stat name
       before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
       
      .envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
      Specified by:
      hasMatch in interface HistogramBucketSettingsOrBuilder
      Returns:
      Whether the match field is set.
    • getMatch

      public StringMatcher getMatch()
       The stats that this rule applies to. The match is applied to the original stat name
       before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
       
      .envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
      Specified by:
      getMatch in interface HistogramBucketSettingsOrBuilder
      Returns:
      The match.
    • setMatch

       The stats that this rule applies to. The match is applied to the original stat name
       before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
       
      .envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
    • setMatch

      public HistogramBucketSettings.Builder setMatch(StringMatcher.Builder builderForValue)
       The stats that this rule applies to. The match is applied to the original stat name
       before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
       
      .envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
    • mergeMatch

       The stats that this rule applies to. The match is applied to the original stat name
       before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
       
      .envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
    • clearMatch

      public HistogramBucketSettings.Builder clearMatch()
       The stats that this rule applies to. The match is applied to the original stat name
       before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
       
      .envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
    • getMatchBuilder

      public StringMatcher.Builder getMatchBuilder()
       The stats that this rule applies to. The match is applied to the original stat name
       before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
       
      .envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
    • getMatchOrBuilder

      public StringMatcherOrBuilder getMatchOrBuilder()
       The stats that this rule applies to. The match is applied to the original stat name
       before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
       
      .envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
      Specified by:
      getMatchOrBuilder in interface HistogramBucketSettingsOrBuilder
    • internalGetMatchFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<StringMatcher,StringMatcher.Builder,StringMatcherOrBuilder> internalGetMatchFieldBuilder()
       The stats that this rule applies to. The match is applied to the original stat name
       before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
       
      .envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
    • ensureBucketsIsMutable

      private void ensureBucketsIsMutable()
    • ensureBucketsIsMutable

      private void ensureBucketsIsMutable(int capacity)
    • getBucketsList

      public List<Double> getBucketsList()
       Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique.
       The order of the buckets does not matter.
       
      repeated double buckets = 2 [(.validate.rules) = { ... }
      Specified by:
      getBucketsList in interface HistogramBucketSettingsOrBuilder
      Returns:
      A list containing the buckets.
    • getBucketsCount

      public int getBucketsCount()
       Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique.
       The order of the buckets does not matter.
       
      repeated double buckets = 2 [(.validate.rules) = { ... }
      Specified by:
      getBucketsCount in interface HistogramBucketSettingsOrBuilder
      Returns:
      The count of buckets.
    • getBuckets

      public double getBuckets(int index)
       Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique.
       The order of the buckets does not matter.
       
      repeated double buckets = 2 [(.validate.rules) = { ... }
      Specified by:
      getBuckets in interface HistogramBucketSettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The buckets at the given index.
    • setBuckets

      public HistogramBucketSettings.Builder setBuckets(int index, double value)
       Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique.
       The order of the buckets does not matter.
       
      repeated double buckets = 2 [(.validate.rules) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The buckets to set.
      Returns:
      This builder for chaining.
    • addBuckets

      public HistogramBucketSettings.Builder addBuckets(double value)
       Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique.
       The order of the buckets does not matter.
       
      repeated double buckets = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The buckets to add.
      Returns:
      This builder for chaining.
    • addAllBuckets

      public HistogramBucketSettings.Builder addAllBuckets(Iterable<? extends Double> values)
       Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique.
       The order of the buckets does not matter.
       
      repeated double buckets = 2 [(.validate.rules) = { ... }
      Parameters:
      values - The buckets to add.
      Returns:
      This builder for chaining.
    • clearBuckets

      public HistogramBucketSettings.Builder clearBuckets()
       Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique.
       The order of the buckets does not matter.
       
      repeated double buckets = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.