Package prometheus

Class Types.Histogram.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Types.Histogram.Builder>
prometheus.Types.Histogram.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Types.HistogramOrBuilder
Enclosing class:
Types.Histogram

public static final class Types.Histogram.Builder extends com.google.protobuf.GeneratedMessage.Builder<Types.Histogram.Builder> implements Types.HistogramOrBuilder
 A native histogram, also known as a sparse histogram.
 Original design doc:
 https://docs.google.com/document/d/1cLNv3aufPZb3fNfaJgdaRBZsInZKKIHo9E6HinJVbpM/edit
 The appendix of this design doc also explains the concept of float
 histograms. This Histogram message can represent both, the usual
 integer histogram as well as a float histogram.
 
Protobuf type prometheus.Histogram
  • 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<Types.Histogram.Builder>
    • clear

      public Types.Histogram.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.GeneratedMessage.Builder<Types.Histogram.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<Types.Histogram.Builder>
    • getDefaultInstanceForType

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

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

      public Types.Histogram buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public Types.Histogram.Builder mergeFrom(Types.Histogram other)
    • isInitialized

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

      public Types.Histogram.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<Types.Histogram.Builder>
      Throws:
      IOException
    • getCountCase

      public Types.Histogram.CountCase getCountCase()
      Specified by:
      getCountCase in interface Types.HistogramOrBuilder
    • clearCount

      public Types.Histogram.Builder clearCount()
    • getZeroCountCase

      public Types.Histogram.ZeroCountCase getZeroCountCase()
      Specified by:
      getZeroCountCase in interface Types.HistogramOrBuilder
    • clearZeroCount

      public Types.Histogram.Builder clearZeroCount()
    • hasCountInt

      public boolean hasCountInt()
      uint64 count_int = 1;
      Specified by:
      hasCountInt in interface Types.HistogramOrBuilder
      Returns:
      Whether the countInt field is set.
    • getCountInt

      public long getCountInt()
      uint64 count_int = 1;
      Specified by:
      getCountInt in interface Types.HistogramOrBuilder
      Returns:
      The countInt.
    • setCountInt

      public Types.Histogram.Builder setCountInt(long value)
      uint64 count_int = 1;
      Parameters:
      value - The countInt to set.
      Returns:
      This builder for chaining.
    • clearCountInt

      public Types.Histogram.Builder clearCountInt()
      uint64 count_int = 1;
      Returns:
      This builder for chaining.
    • hasCountFloat

      public boolean hasCountFloat()
      double count_float = 2;
      Specified by:
      hasCountFloat in interface Types.HistogramOrBuilder
      Returns:
      Whether the countFloat field is set.
    • getCountFloat

      public double getCountFloat()
      double count_float = 2;
      Specified by:
      getCountFloat in interface Types.HistogramOrBuilder
      Returns:
      The countFloat.
    • setCountFloat

      public Types.Histogram.Builder setCountFloat(double value)
      double count_float = 2;
      Parameters:
      value - The countFloat to set.
      Returns:
      This builder for chaining.
    • clearCountFloat

      public Types.Histogram.Builder clearCountFloat()
      double count_float = 2;
      Returns:
      This builder for chaining.
    • getSum

      public double getSum()
       Sum of observations in the histogram.
       
      double sum = 3;
      Specified by:
      getSum in interface Types.HistogramOrBuilder
      Returns:
      The sum.
    • setSum

      public Types.Histogram.Builder setSum(double value)
       Sum of observations in the histogram.
       
      double sum = 3;
      Parameters:
      value - The sum to set.
      Returns:
      This builder for chaining.
    • clearSum

      public Types.Histogram.Builder clearSum()
       Sum of observations in the histogram.
       
      double sum = 3;
      Returns:
      This builder for chaining.
    • getSchema

      public int getSchema()
       The schema defines the bucket schema. Currently, valid numbers
       are -4 <= n <= 8. They are all for base-2 bucket schemas, where 1
       is a bucket boundary in each case, and then each power of two is
       divided into 2^n logarithmic buckets. Or in other words, each
       bucket boundary is the previous boundary times 2^(2^-n). In the
       future, more bucket schemas may be added using numbers < -4 or >
       8.
       
      sint32 schema = 4;
      Specified by:
      getSchema in interface Types.HistogramOrBuilder
      Returns:
      The schema.
    • setSchema

      public Types.Histogram.Builder setSchema(int value)
       The schema defines the bucket schema. Currently, valid numbers
       are -4 <= n <= 8. They are all for base-2 bucket schemas, where 1
       is a bucket boundary in each case, and then each power of two is
       divided into 2^n logarithmic buckets. Or in other words, each
       bucket boundary is the previous boundary times 2^(2^-n). In the
       future, more bucket schemas may be added using numbers < -4 or >
       8.
       
      sint32 schema = 4;
      Parameters:
      value - The schema to set.
      Returns:
      This builder for chaining.
    • clearSchema

      public Types.Histogram.Builder clearSchema()
       The schema defines the bucket schema. Currently, valid numbers
       are -4 <= n <= 8. They are all for base-2 bucket schemas, where 1
       is a bucket boundary in each case, and then each power of two is
       divided into 2^n logarithmic buckets. Or in other words, each
       bucket boundary is the previous boundary times 2^(2^-n). In the
       future, more bucket schemas may be added using numbers < -4 or >
       8.
       
      sint32 schema = 4;
      Returns:
      This builder for chaining.
    • getZeroThreshold

      public double getZeroThreshold()
       Breadth of the zero bucket.
       
      double zero_threshold = 5;
      Specified by:
      getZeroThreshold in interface Types.HistogramOrBuilder
      Returns:
      The zeroThreshold.
    • setZeroThreshold

      public Types.Histogram.Builder setZeroThreshold(double value)
       Breadth of the zero bucket.
       
      double zero_threshold = 5;
      Parameters:
      value - The zeroThreshold to set.
      Returns:
      This builder for chaining.
    • clearZeroThreshold

      public Types.Histogram.Builder clearZeroThreshold()
       Breadth of the zero bucket.
       
      double zero_threshold = 5;
      Returns:
      This builder for chaining.
    • hasZeroCountInt

      public boolean hasZeroCountInt()
      uint64 zero_count_int = 6;
      Specified by:
      hasZeroCountInt in interface Types.HistogramOrBuilder
      Returns:
      Whether the zeroCountInt field is set.
    • getZeroCountInt

      public long getZeroCountInt()
      uint64 zero_count_int = 6;
      Specified by:
      getZeroCountInt in interface Types.HistogramOrBuilder
      Returns:
      The zeroCountInt.
    • setZeroCountInt

      public Types.Histogram.Builder setZeroCountInt(long value)
      uint64 zero_count_int = 6;
      Parameters:
      value - The zeroCountInt to set.
      Returns:
      This builder for chaining.
    • clearZeroCountInt

      public Types.Histogram.Builder clearZeroCountInt()
      uint64 zero_count_int = 6;
      Returns:
      This builder for chaining.
    • hasZeroCountFloat

      public boolean hasZeroCountFloat()
      double zero_count_float = 7;
      Specified by:
      hasZeroCountFloat in interface Types.HistogramOrBuilder
      Returns:
      Whether the zeroCountFloat field is set.
    • getZeroCountFloat

      public double getZeroCountFloat()
      double zero_count_float = 7;
      Specified by:
      getZeroCountFloat in interface Types.HistogramOrBuilder
      Returns:
      The zeroCountFloat.
    • setZeroCountFloat

      public Types.Histogram.Builder setZeroCountFloat(double value)
      double zero_count_float = 7;
      Parameters:
      value - The zeroCountFloat to set.
      Returns:
      This builder for chaining.
    • clearZeroCountFloat

      public Types.Histogram.Builder clearZeroCountFloat()
      double zero_count_float = 7;
      Returns:
      This builder for chaining.
    • getNegativeSpansList

      public List<Types.BucketSpan> getNegativeSpansList()
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
      Specified by:
      getNegativeSpansList in interface Types.HistogramOrBuilder
    • getNegativeSpansCount

      public int getNegativeSpansCount()
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
      Specified by:
      getNegativeSpansCount in interface Types.HistogramOrBuilder
    • getNegativeSpans

      public Types.BucketSpan getNegativeSpans(int index)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
      Specified by:
      getNegativeSpans in interface Types.HistogramOrBuilder
    • setNegativeSpans

      public Types.Histogram.Builder setNegativeSpans(int index, Types.BucketSpan value)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • setNegativeSpans

      public Types.Histogram.Builder setNegativeSpans(int index, Types.BucketSpan.Builder builderForValue)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • addNegativeSpans

      public Types.Histogram.Builder addNegativeSpans(Types.BucketSpan value)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • addNegativeSpans

      public Types.Histogram.Builder addNegativeSpans(int index, Types.BucketSpan value)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • addNegativeSpans

      public Types.Histogram.Builder addNegativeSpans(Types.BucketSpan.Builder builderForValue)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • addNegativeSpans

      public Types.Histogram.Builder addNegativeSpans(int index, Types.BucketSpan.Builder builderForValue)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • addAllNegativeSpans

      public Types.Histogram.Builder addAllNegativeSpans(Iterable<? extends Types.BucketSpan> values)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • clearNegativeSpans

      public Types.Histogram.Builder clearNegativeSpans()
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • removeNegativeSpans

      public Types.Histogram.Builder removeNegativeSpans(int index)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • getNegativeSpansBuilder

      public Types.BucketSpan.Builder getNegativeSpansBuilder(int index)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • getNegativeSpansOrBuilder

      public Types.BucketSpanOrBuilder getNegativeSpansOrBuilder(int index)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
      Specified by:
      getNegativeSpansOrBuilder in interface Types.HistogramOrBuilder
    • getNegativeSpansOrBuilderList

      public List<? extends Types.BucketSpanOrBuilder> getNegativeSpansOrBuilderList()
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
      Specified by:
      getNegativeSpansOrBuilderList in interface Types.HistogramOrBuilder
    • addNegativeSpansBuilder

      public Types.BucketSpan.Builder addNegativeSpansBuilder()
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • addNegativeSpansBuilder

      public Types.BucketSpan.Builder addNegativeSpansBuilder(int index)
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • getNegativeSpansBuilderList

      public List<Types.BucketSpan.Builder> getNegativeSpansBuilderList()
       Negative Buckets.
       
      repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];
    • getNegativeDeltasList

      public List<Long> getNegativeDeltasList()
       Use either "negative_deltas" or "negative_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 negative_deltas = 9;
      Specified by:
      getNegativeDeltasList in interface Types.HistogramOrBuilder
      Returns:
      A list containing the negativeDeltas.
    • getNegativeDeltasCount

      public int getNegativeDeltasCount()
       Use either "negative_deltas" or "negative_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 negative_deltas = 9;
      Specified by:
      getNegativeDeltasCount in interface Types.HistogramOrBuilder
      Returns:
      The count of negativeDeltas.
    • getNegativeDeltas

      public long getNegativeDeltas(int index)
       Use either "negative_deltas" or "negative_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 negative_deltas = 9;
      Specified by:
      getNegativeDeltas in interface Types.HistogramOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The negativeDeltas at the given index.
    • setNegativeDeltas

      public Types.Histogram.Builder setNegativeDeltas(int index, long value)
       Use either "negative_deltas" or "negative_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 negative_deltas = 9;
      Parameters:
      index - The index to set the value at.
      value - The negativeDeltas to set.
      Returns:
      This builder for chaining.
    • addNegativeDeltas

      public Types.Histogram.Builder addNegativeDeltas(long value)
       Use either "negative_deltas" or "negative_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 negative_deltas = 9;
      Parameters:
      value - The negativeDeltas to add.
      Returns:
      This builder for chaining.
    • addAllNegativeDeltas

      public Types.Histogram.Builder addAllNegativeDeltas(Iterable<? extends Long> values)
       Use either "negative_deltas" or "negative_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 negative_deltas = 9;
      Parameters:
      values - The negativeDeltas to add.
      Returns:
      This builder for chaining.
    • clearNegativeDeltas

      public Types.Histogram.Builder clearNegativeDeltas()
       Use either "negative_deltas" or "negative_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 negative_deltas = 9;
      Returns:
      This builder for chaining.
    • getNegativeCountsList

      public List<Double> getNegativeCountsList()
       Absolute count of each bucket.
       
      repeated double negative_counts = 10;
      Specified by:
      getNegativeCountsList in interface Types.HistogramOrBuilder
      Returns:
      A list containing the negativeCounts.
    • getNegativeCountsCount

      public int getNegativeCountsCount()
       Absolute count of each bucket.
       
      repeated double negative_counts = 10;
      Specified by:
      getNegativeCountsCount in interface Types.HistogramOrBuilder
      Returns:
      The count of negativeCounts.
    • getNegativeCounts

      public double getNegativeCounts(int index)
       Absolute count of each bucket.
       
      repeated double negative_counts = 10;
      Specified by:
      getNegativeCounts in interface Types.HistogramOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The negativeCounts at the given index.
    • setNegativeCounts

      public Types.Histogram.Builder setNegativeCounts(int index, double value)
       Absolute count of each bucket.
       
      repeated double negative_counts = 10;
      Parameters:
      index - The index to set the value at.
      value - The negativeCounts to set.
      Returns:
      This builder for chaining.
    • addNegativeCounts

      public Types.Histogram.Builder addNegativeCounts(double value)
       Absolute count of each bucket.
       
      repeated double negative_counts = 10;
      Parameters:
      value - The negativeCounts to add.
      Returns:
      This builder for chaining.
    • addAllNegativeCounts

      public Types.Histogram.Builder addAllNegativeCounts(Iterable<? extends Double> values)
       Absolute count of each bucket.
       
      repeated double negative_counts = 10;
      Parameters:
      values - The negativeCounts to add.
      Returns:
      This builder for chaining.
    • clearNegativeCounts

      public Types.Histogram.Builder clearNegativeCounts()
       Absolute count of each bucket.
       
      repeated double negative_counts = 10;
      Returns:
      This builder for chaining.
    • getPositiveSpansList

      public List<Types.BucketSpan> getPositiveSpansList()
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
      Specified by:
      getPositiveSpansList in interface Types.HistogramOrBuilder
    • getPositiveSpansCount

      public int getPositiveSpansCount()
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
      Specified by:
      getPositiveSpansCount in interface Types.HistogramOrBuilder
    • getPositiveSpans

      public Types.BucketSpan getPositiveSpans(int index)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
      Specified by:
      getPositiveSpans in interface Types.HistogramOrBuilder
    • setPositiveSpans

      public Types.Histogram.Builder setPositiveSpans(int index, Types.BucketSpan value)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • setPositiveSpans

      public Types.Histogram.Builder setPositiveSpans(int index, Types.BucketSpan.Builder builderForValue)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • addPositiveSpans

      public Types.Histogram.Builder addPositiveSpans(Types.BucketSpan value)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • addPositiveSpans

      public Types.Histogram.Builder addPositiveSpans(int index, Types.BucketSpan value)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • addPositiveSpans

      public Types.Histogram.Builder addPositiveSpans(Types.BucketSpan.Builder builderForValue)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • addPositiveSpans

      public Types.Histogram.Builder addPositiveSpans(int index, Types.BucketSpan.Builder builderForValue)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • addAllPositiveSpans

      public Types.Histogram.Builder addAllPositiveSpans(Iterable<? extends Types.BucketSpan> values)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • clearPositiveSpans

      public Types.Histogram.Builder clearPositiveSpans()
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • removePositiveSpans

      public Types.Histogram.Builder removePositiveSpans(int index)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • getPositiveSpansBuilder

      public Types.BucketSpan.Builder getPositiveSpansBuilder(int index)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • getPositiveSpansOrBuilder

      public Types.BucketSpanOrBuilder getPositiveSpansOrBuilder(int index)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
      Specified by:
      getPositiveSpansOrBuilder in interface Types.HistogramOrBuilder
    • getPositiveSpansOrBuilderList

      public List<? extends Types.BucketSpanOrBuilder> getPositiveSpansOrBuilderList()
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
      Specified by:
      getPositiveSpansOrBuilderList in interface Types.HistogramOrBuilder
    • addPositiveSpansBuilder

      public Types.BucketSpan.Builder addPositiveSpansBuilder()
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • addPositiveSpansBuilder

      public Types.BucketSpan.Builder addPositiveSpansBuilder(int index)
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • getPositiveSpansBuilderList

      public List<Types.BucketSpan.Builder> getPositiveSpansBuilderList()
       Positive Buckets.
       
      repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];
    • getPositiveDeltasList

      public List<Long> getPositiveDeltasList()
       Use either "positive_deltas" or "positive_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 positive_deltas = 12;
      Specified by:
      getPositiveDeltasList in interface Types.HistogramOrBuilder
      Returns:
      A list containing the positiveDeltas.
    • getPositiveDeltasCount

      public int getPositiveDeltasCount()
       Use either "positive_deltas" or "positive_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 positive_deltas = 12;
      Specified by:
      getPositiveDeltasCount in interface Types.HistogramOrBuilder
      Returns:
      The count of positiveDeltas.
    • getPositiveDeltas

      public long getPositiveDeltas(int index)
       Use either "positive_deltas" or "positive_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 positive_deltas = 12;
      Specified by:
      getPositiveDeltas in interface Types.HistogramOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The positiveDeltas at the given index.
    • setPositiveDeltas

      public Types.Histogram.Builder setPositiveDeltas(int index, long value)
       Use either "positive_deltas" or "positive_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 positive_deltas = 12;
      Parameters:
      index - The index to set the value at.
      value - The positiveDeltas to set.
      Returns:
      This builder for chaining.
    • addPositiveDeltas

      public Types.Histogram.Builder addPositiveDeltas(long value)
       Use either "positive_deltas" or "positive_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 positive_deltas = 12;
      Parameters:
      value - The positiveDeltas to add.
      Returns:
      This builder for chaining.
    • addAllPositiveDeltas

      public Types.Histogram.Builder addAllPositiveDeltas(Iterable<? extends Long> values)
       Use either "positive_deltas" or "positive_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 positive_deltas = 12;
      Parameters:
      values - The positiveDeltas to add.
      Returns:
      This builder for chaining.
    • clearPositiveDeltas

      public Types.Histogram.Builder clearPositiveDeltas()
       Use either "positive_deltas" or "positive_counts", the former for
       regular histograms with integer counts, the latter for float
       histograms.
       
      repeated sint64 positive_deltas = 12;
      Returns:
      This builder for chaining.
    • getPositiveCountsList

      public List<Double> getPositiveCountsList()
       Absolute count of each bucket.
       
      repeated double positive_counts = 13;
      Specified by:
      getPositiveCountsList in interface Types.HistogramOrBuilder
      Returns:
      A list containing the positiveCounts.
    • getPositiveCountsCount

      public int getPositiveCountsCount()
       Absolute count of each bucket.
       
      repeated double positive_counts = 13;
      Specified by:
      getPositiveCountsCount in interface Types.HistogramOrBuilder
      Returns:
      The count of positiveCounts.
    • getPositiveCounts

      public double getPositiveCounts(int index)
       Absolute count of each bucket.
       
      repeated double positive_counts = 13;
      Specified by:
      getPositiveCounts in interface Types.HistogramOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The positiveCounts at the given index.
    • setPositiveCounts

      public Types.Histogram.Builder setPositiveCounts(int index, double value)
       Absolute count of each bucket.
       
      repeated double positive_counts = 13;
      Parameters:
      index - The index to set the value at.
      value - The positiveCounts to set.
      Returns:
      This builder for chaining.
    • addPositiveCounts

      public Types.Histogram.Builder addPositiveCounts(double value)
       Absolute count of each bucket.
       
      repeated double positive_counts = 13;
      Parameters:
      value - The positiveCounts to add.
      Returns:
      This builder for chaining.
    • addAllPositiveCounts

      public Types.Histogram.Builder addAllPositiveCounts(Iterable<? extends Double> values)
       Absolute count of each bucket.
       
      repeated double positive_counts = 13;
      Parameters:
      values - The positiveCounts to add.
      Returns:
      This builder for chaining.
    • clearPositiveCounts

      public Types.Histogram.Builder clearPositiveCounts()
       Absolute count of each bucket.
       
      repeated double positive_counts = 13;
      Returns:
      This builder for chaining.
    • getResetHintValue

      public int getResetHintValue()
      .prometheus.Histogram.ResetHint reset_hint = 14;
      Specified by:
      getResetHintValue in interface Types.HistogramOrBuilder
      Returns:
      The enum numeric value on the wire for resetHint.
    • setResetHintValue

      public Types.Histogram.Builder setResetHintValue(int value)
      .prometheus.Histogram.ResetHint reset_hint = 14;
      Parameters:
      value - The enum numeric value on the wire for resetHint to set.
      Returns:
      This builder for chaining.
    • getResetHint

      public Types.Histogram.ResetHint getResetHint()
      .prometheus.Histogram.ResetHint reset_hint = 14;
      Specified by:
      getResetHint in interface Types.HistogramOrBuilder
      Returns:
      The resetHint.
    • setResetHint

      .prometheus.Histogram.ResetHint reset_hint = 14;
      Parameters:
      value - The resetHint to set.
      Returns:
      This builder for chaining.
    • clearResetHint

      public Types.Histogram.Builder clearResetHint()
      .prometheus.Histogram.ResetHint reset_hint = 14;
      Returns:
      This builder for chaining.
    • getTimestamp

      public long getTimestamp()
       timestamp is in ms format, see model/timestamp/timestamp.go for
       conversion from time.Time to Prometheus timestamp.
       
      int64 timestamp = 15;
      Specified by:
      getTimestamp in interface Types.HistogramOrBuilder
      Returns:
      The timestamp.
    • setTimestamp

      public Types.Histogram.Builder setTimestamp(long value)
       timestamp is in ms format, see model/timestamp/timestamp.go for
       conversion from time.Time to Prometheus timestamp.
       
      int64 timestamp = 15;
      Parameters:
      value - The timestamp to set.
      Returns:
      This builder for chaining.
    • clearTimestamp

      public Types.Histogram.Builder clearTimestamp()
       timestamp is in ms format, see model/timestamp/timestamp.go for
       conversion from time.Time to Prometheus timestamp.
       
      int64 timestamp = 15;
      Returns:
      This builder for chaining.
    • getCustomValuesList

      public List<Double> getCustomValuesList()
       custom_values are not part of the specification, DO NOT use in remote write clients.
       Used only for converting from OpenTelemetry to Prometheus internally.
       
      repeated double custom_values = 16;
      Specified by:
      getCustomValuesList in interface Types.HistogramOrBuilder
      Returns:
      A list containing the customValues.
    • getCustomValuesCount

      public int getCustomValuesCount()
       custom_values are not part of the specification, DO NOT use in remote write clients.
       Used only for converting from OpenTelemetry to Prometheus internally.
       
      repeated double custom_values = 16;
      Specified by:
      getCustomValuesCount in interface Types.HistogramOrBuilder
      Returns:
      The count of customValues.
    • getCustomValues

      public double getCustomValues(int index)
       custom_values are not part of the specification, DO NOT use in remote write clients.
       Used only for converting from OpenTelemetry to Prometheus internally.
       
      repeated double custom_values = 16;
      Specified by:
      getCustomValues in interface Types.HistogramOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The customValues at the given index.
    • setCustomValues

      public Types.Histogram.Builder setCustomValues(int index, double value)
       custom_values are not part of the specification, DO NOT use in remote write clients.
       Used only for converting from OpenTelemetry to Prometheus internally.
       
      repeated double custom_values = 16;
      Parameters:
      index - The index to set the value at.
      value - The customValues to set.
      Returns:
      This builder for chaining.
    • addCustomValues

      public Types.Histogram.Builder addCustomValues(double value)
       custom_values are not part of the specification, DO NOT use in remote write clients.
       Used only for converting from OpenTelemetry to Prometheus internally.
       
      repeated double custom_values = 16;
      Parameters:
      value - The customValues to add.
      Returns:
      This builder for chaining.
    • addAllCustomValues

      public Types.Histogram.Builder addAllCustomValues(Iterable<? extends Double> values)
       custom_values are not part of the specification, DO NOT use in remote write clients.
       Used only for converting from OpenTelemetry to Prometheus internally.
       
      repeated double custom_values = 16;
      Parameters:
      values - The customValues to add.
      Returns:
      This builder for chaining.
    • clearCustomValues

      public Types.Histogram.Builder clearCustomValues()
       custom_values are not part of the specification, DO NOT use in remote write clients.
       Used only for converting from OpenTelemetry to Prometheus internally.
       
      repeated double custom_values = 16;
      Returns:
      This builder for chaining.