Package io.prometheus.client
Class Metrics.Histogram.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
- io.prometheus.client.Metrics.Histogram.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Metrics.HistogramOrBuilder,Cloneable
- Enclosing class:
- Metrics.Histogram
public static final class Metrics.Histogram.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder> implements Metrics.HistogramOrBuilder
Protobuf typeio.prometheus.client.Histogram
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Metrics.Histogram.BuilderaddAllBucket(Iterable<? extends Metrics.Bucket> values)Buckets for the conventional histogram.Metrics.Histogram.BuilderaddAllNegativeCount(Iterable<? extends Double> values)Absolute count of each bucket.Metrics.Histogram.BuilderaddAllNegativeDelta(Iterable<? extends Long> values)Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.Metrics.Histogram.BuilderaddAllNegativeSpan(Iterable<? extends Metrics.BucketSpan> values)Negative buckets for the native histogram.Metrics.Histogram.BuilderaddAllPositiveCount(Iterable<? extends Double> values)Absolute count of each bucket.Metrics.Histogram.BuilderaddAllPositiveDelta(Iterable<? extends Long> values)Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.Metrics.Histogram.BuilderaddAllPositiveSpan(Iterable<? extends Metrics.BucketSpan> values)Positive buckets for the native histogram.Metrics.Histogram.BuilderaddBucket(int index, Metrics.Bucket value)Buckets for the conventional histogram.Metrics.Histogram.BuilderaddBucket(int index, Metrics.Bucket.Builder builderForValue)Buckets for the conventional histogram.Metrics.Histogram.BuilderaddBucket(Metrics.Bucket value)Buckets for the conventional histogram.Metrics.Histogram.BuilderaddBucket(Metrics.Bucket.Builder builderForValue)Buckets for the conventional histogram.Metrics.Bucket.BuilderaddBucketBuilder()Buckets for the conventional histogram.Metrics.Bucket.BuilderaddBucketBuilder(int index)Buckets for the conventional histogram.Metrics.Histogram.BuilderaddNegativeCount(double value)Absolute count of each bucket.Metrics.Histogram.BuilderaddNegativeDelta(long value)Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.Metrics.Histogram.BuilderaddNegativeSpan(int index, Metrics.BucketSpan value)Negative buckets for the native histogram.Metrics.Histogram.BuilderaddNegativeSpan(int index, Metrics.BucketSpan.Builder builderForValue)Negative buckets for the native histogram.Metrics.Histogram.BuilderaddNegativeSpan(Metrics.BucketSpan value)Negative buckets for the native histogram.Metrics.Histogram.BuilderaddNegativeSpan(Metrics.BucketSpan.Builder builderForValue)Negative buckets for the native histogram.Metrics.BucketSpan.BuilderaddNegativeSpanBuilder()Negative buckets for the native histogram.Metrics.BucketSpan.BuilderaddNegativeSpanBuilder(int index)Negative buckets for the native histogram.Metrics.Histogram.BuilderaddPositiveCount(double value)Absolute count of each bucket.Metrics.Histogram.BuilderaddPositiveDelta(long value)Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.Metrics.Histogram.BuilderaddPositiveSpan(int index, Metrics.BucketSpan value)Positive buckets for the native histogram.Metrics.Histogram.BuilderaddPositiveSpan(int index, Metrics.BucketSpan.Builder builderForValue)Positive buckets for the native histogram.Metrics.Histogram.BuilderaddPositiveSpan(Metrics.BucketSpan value)Positive buckets for the native histogram.Metrics.Histogram.BuilderaddPositiveSpan(Metrics.BucketSpan.Builder builderForValue)Positive buckets for the native histogram.Metrics.BucketSpan.BuilderaddPositiveSpanBuilder()Positive buckets for the native histogram.Metrics.BucketSpan.BuilderaddPositiveSpanBuilder(int index)Positive buckets for the native histogram.Metrics.Histogram.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Metrics.Histogrambuild()Metrics.HistogrambuildPartial()Metrics.Histogram.Builderclear()Metrics.Histogram.BuilderclearBucket()Buckets for the conventional histogram.Metrics.Histogram.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Metrics.Histogram.BuilderclearNegativeCount()Absolute count of each bucket.Metrics.Histogram.BuilderclearNegativeDelta()Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.Metrics.Histogram.BuilderclearNegativeSpan()Negative buckets for the native histogram.Metrics.Histogram.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Metrics.Histogram.BuilderclearPositiveCount()Absolute count of each bucket.Metrics.Histogram.BuilderclearPositiveDelta()Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.Metrics.Histogram.BuilderclearPositiveSpan()Positive buckets for the native histogram.Metrics.Histogram.BuilderclearSampleCount()optional uint64 sample_count = 1;Metrics.Histogram.BuilderclearSampleCountFloat()Overrides sample_count if > 0.Metrics.Histogram.BuilderclearSampleSum()optional double sample_sum = 2;Metrics.Histogram.BuilderclearSchema()schema defines the bucket schema.Metrics.Histogram.BuilderclearZeroCount()Count in zero bucket.Metrics.Histogram.BuilderclearZeroCountFloat()Overrides sb_zero_count if > 0.Metrics.Histogram.BuilderclearZeroThreshold()Breadth of the zero bucket.Metrics.Histogram.Builderclone()Metrics.BucketgetBucket(int index)Buckets for the conventional histogram.Metrics.Bucket.BuildergetBucketBuilder(int index)Buckets for the conventional histogram.List<Metrics.Bucket.Builder>getBucketBuilderList()Buckets for the conventional histogram.intgetBucketCount()Buckets for the conventional histogram.List<Metrics.Bucket>getBucketList()Buckets for the conventional histogram.Metrics.BucketOrBuildergetBucketOrBuilder(int index)Buckets for the conventional histogram.List<? extends Metrics.BucketOrBuilder>getBucketOrBuilderList()Buckets for the conventional histogram.Metrics.HistogramgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()doublegetNegativeCount(int index)Absolute count of each bucket.intgetNegativeCountCount()Absolute count of each bucket.List<Double>getNegativeCountList()Absolute count of each bucket.longgetNegativeDelta(int index)Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.intgetNegativeDeltaCount()Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.List<Long>getNegativeDeltaList()Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.Metrics.BucketSpangetNegativeSpan(int index)Negative buckets for the native histogram.Metrics.BucketSpan.BuildergetNegativeSpanBuilder(int index)Negative buckets for the native histogram.List<Metrics.BucketSpan.Builder>getNegativeSpanBuilderList()Negative buckets for the native histogram.intgetNegativeSpanCount()Negative buckets for the native histogram.List<Metrics.BucketSpan>getNegativeSpanList()Negative buckets for the native histogram.Metrics.BucketSpanOrBuildergetNegativeSpanOrBuilder(int index)Negative buckets for the native histogram.List<? extends Metrics.BucketSpanOrBuilder>getNegativeSpanOrBuilderList()Negative buckets for the native histogram.doublegetPositiveCount(int index)Absolute count of each bucket.intgetPositiveCountCount()Absolute count of each bucket.List<Double>getPositiveCountList()Absolute count of each bucket.longgetPositiveDelta(int index)Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.intgetPositiveDeltaCount()Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.List<Long>getPositiveDeltaList()Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.Metrics.BucketSpangetPositiveSpan(int index)Positive buckets for the native histogram.Metrics.BucketSpan.BuildergetPositiveSpanBuilder(int index)Positive buckets for the native histogram.List<Metrics.BucketSpan.Builder>getPositiveSpanBuilderList()Positive buckets for the native histogram.intgetPositiveSpanCount()Positive buckets for the native histogram.List<Metrics.BucketSpan>getPositiveSpanList()Positive buckets for the native histogram.Metrics.BucketSpanOrBuildergetPositiveSpanOrBuilder(int index)Positive buckets for the native histogram.List<? extends Metrics.BucketSpanOrBuilder>getPositiveSpanOrBuilderList()Positive buckets for the native histogram.longgetSampleCount()optional uint64 sample_count = 1;doublegetSampleCountFloat()Overrides sample_count if > 0.doublegetSampleSum()optional double sample_sum = 2;intgetSchema()schema defines the bucket schema.longgetZeroCount()Count in zero bucket.doublegetZeroCountFloat()Overrides sb_zero_count if > 0.doublegetZeroThreshold()Breadth of the zero bucket.booleanhasSampleCount()optional uint64 sample_count = 1;booleanhasSampleCountFloat()Overrides sample_count if > 0.booleanhasSampleSum()optional double sample_sum = 2;booleanhasSchema()schema defines the bucket schema.booleanhasZeroCount()Count in zero bucket.booleanhasZeroCountFloat()Overrides sb_zero_count if > 0.booleanhasZeroThreshold()Breadth of the zero bucket.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Metrics.Histogram.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Metrics.Histogram.BuildermergeFrom(com.google.protobuf.Message other)Metrics.Histogram.BuildermergeFrom(Metrics.Histogram other)Metrics.Histogram.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Metrics.Histogram.BuilderremoveBucket(int index)Buckets for the conventional histogram.Metrics.Histogram.BuilderremoveNegativeSpan(int index)Negative buckets for the native histogram.Metrics.Histogram.BuilderremovePositiveSpan(int index)Positive buckets for the native histogram.Metrics.Histogram.BuildersetBucket(int index, Metrics.Bucket value)Buckets for the conventional histogram.Metrics.Histogram.BuildersetBucket(int index, Metrics.Bucket.Builder builderForValue)Buckets for the conventional histogram.Metrics.Histogram.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Metrics.Histogram.BuildersetNegativeCount(int index, double value)Absolute count of each bucket.Metrics.Histogram.BuildersetNegativeDelta(int index, long value)Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.Metrics.Histogram.BuildersetNegativeSpan(int index, Metrics.BucketSpan value)Negative buckets for the native histogram.Metrics.Histogram.BuildersetNegativeSpan(int index, Metrics.BucketSpan.Builder builderForValue)Negative buckets for the native histogram.Metrics.Histogram.BuildersetPositiveCount(int index, double value)Absolute count of each bucket.Metrics.Histogram.BuildersetPositiveDelta(int index, long value)Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.Metrics.Histogram.BuildersetPositiveSpan(int index, Metrics.BucketSpan value)Positive buckets for the native histogram.Metrics.Histogram.BuildersetPositiveSpan(int index, Metrics.BucketSpan.Builder builderForValue)Positive buckets for the native histogram.Metrics.Histogram.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Metrics.Histogram.BuildersetSampleCount(long value)optional uint64 sample_count = 1;Metrics.Histogram.BuildersetSampleCountFloat(double value)Overrides sample_count if > 0.Metrics.Histogram.BuildersetSampleSum(double value)optional double sample_sum = 2;Metrics.Histogram.BuildersetSchema(int value)schema defines the bucket schema.Metrics.Histogram.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Metrics.Histogram.BuildersetZeroCount(long value)Count in zero bucket.Metrics.Histogram.BuildersetZeroCountFloat(double value)Overrides sb_zero_count if > 0.Metrics.Histogram.BuildersetZeroThreshold(double value)Breadth of the zero bucket.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
clear
public Metrics.Histogram.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
getDefaultInstanceForType
public Metrics.Histogram getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Metrics.Histogram build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Metrics.Histogram buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Metrics.Histogram.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
setField
public Metrics.Histogram.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
clearField
public Metrics.Histogram.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
clearOneof
public Metrics.Histogram.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
setRepeatedField
public Metrics.Histogram.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
addRepeatedField
public Metrics.Histogram.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
mergeFrom
public Metrics.Histogram.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Metrics.Histogram.Builder>
-
mergeFrom
public Metrics.Histogram.Builder mergeFrom(Metrics.Histogram other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
mergeFrom
public Metrics.Histogram.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Metrics.Histogram.Builder>- Throws:
IOException
-
hasSampleCount
public boolean hasSampleCount()
optional uint64 sample_count = 1;- Specified by:
hasSampleCountin interfaceMetrics.HistogramOrBuilder- Returns:
- Whether the sampleCount field is set.
-
getSampleCount
public long getSampleCount()
optional uint64 sample_count = 1;- Specified by:
getSampleCountin interfaceMetrics.HistogramOrBuilder- Returns:
- The sampleCount.
-
setSampleCount
public Metrics.Histogram.Builder setSampleCount(long value)
optional uint64 sample_count = 1;- Parameters:
value- The sampleCount to set.- Returns:
- This builder for chaining.
-
clearSampleCount
public Metrics.Histogram.Builder clearSampleCount()
optional uint64 sample_count = 1;- Returns:
- This builder for chaining.
-
hasSampleCountFloat
public boolean hasSampleCountFloat()
Overrides sample_count if > 0.
optional double sample_count_float = 4;- Specified by:
hasSampleCountFloatin interfaceMetrics.HistogramOrBuilder- Returns:
- Whether the sampleCountFloat field is set.
-
getSampleCountFloat
public double getSampleCountFloat()
Overrides sample_count if > 0.
optional double sample_count_float = 4;- Specified by:
getSampleCountFloatin interfaceMetrics.HistogramOrBuilder- Returns:
- The sampleCountFloat.
-
setSampleCountFloat
public Metrics.Histogram.Builder setSampleCountFloat(double value)
Overrides sample_count if > 0.
optional double sample_count_float = 4;- Parameters:
value- The sampleCountFloat to set.- Returns:
- This builder for chaining.
-
clearSampleCountFloat
public Metrics.Histogram.Builder clearSampleCountFloat()
Overrides sample_count if > 0.
optional double sample_count_float = 4;- Returns:
- This builder for chaining.
-
hasSampleSum
public boolean hasSampleSum()
optional double sample_sum = 2;- Specified by:
hasSampleSumin interfaceMetrics.HistogramOrBuilder- Returns:
- Whether the sampleSum field is set.
-
getSampleSum
public double getSampleSum()
optional double sample_sum = 2;- Specified by:
getSampleSumin interfaceMetrics.HistogramOrBuilder- Returns:
- The sampleSum.
-
setSampleSum
public Metrics.Histogram.Builder setSampleSum(double value)
optional double sample_sum = 2;- Parameters:
value- The sampleSum to set.- Returns:
- This builder for chaining.
-
clearSampleSum
public Metrics.Histogram.Builder clearSampleSum()
optional double sample_sum = 2;- Returns:
- This builder for chaining.
-
getBucketList
public List<Metrics.Bucket> getBucketList()
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;- Specified by:
getBucketListin interfaceMetrics.HistogramOrBuilder
-
getBucketCount
public int getBucketCount()
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;- Specified by:
getBucketCountin interfaceMetrics.HistogramOrBuilder
-
getBucket
public Metrics.Bucket getBucket(int index)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;- Specified by:
getBucketin interfaceMetrics.HistogramOrBuilder
-
setBucket
public Metrics.Histogram.Builder setBucket(int index, Metrics.Bucket value)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
setBucket
public Metrics.Histogram.Builder setBucket(int index, Metrics.Bucket.Builder builderForValue)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
addBucket
public Metrics.Histogram.Builder addBucket(Metrics.Bucket value)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
addBucket
public Metrics.Histogram.Builder addBucket(int index, Metrics.Bucket value)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
addBucket
public Metrics.Histogram.Builder addBucket(Metrics.Bucket.Builder builderForValue)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
addBucket
public Metrics.Histogram.Builder addBucket(int index, Metrics.Bucket.Builder builderForValue)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
addAllBucket
public Metrics.Histogram.Builder addAllBucket(Iterable<? extends Metrics.Bucket> values)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
clearBucket
public Metrics.Histogram.Builder clearBucket()
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
removeBucket
public Metrics.Histogram.Builder removeBucket(int index)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
getBucketBuilder
public Metrics.Bucket.Builder getBucketBuilder(int index)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
getBucketOrBuilder
public Metrics.BucketOrBuilder getBucketOrBuilder(int index)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;- Specified by:
getBucketOrBuilderin interfaceMetrics.HistogramOrBuilder
-
getBucketOrBuilderList
public List<? extends Metrics.BucketOrBuilder> getBucketOrBuilderList()
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;- Specified by:
getBucketOrBuilderListin interfaceMetrics.HistogramOrBuilder
-
addBucketBuilder
public Metrics.Bucket.Builder addBucketBuilder()
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
addBucketBuilder
public Metrics.Bucket.Builder addBucketBuilder(int index)
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
getBucketBuilderList
public List<Metrics.Bucket.Builder> getBucketBuilderList()
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;
-
hasSchema
public boolean hasSchema()
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.
optional sint32 schema = 5;- Specified by:
hasSchemain interfaceMetrics.HistogramOrBuilder- Returns:
- Whether the schema field is set.
-
getSchema
public int getSchema()
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.
optional sint32 schema = 5;- Specified by:
getSchemain interfaceMetrics.HistogramOrBuilder- Returns:
- The schema.
-
setSchema
public Metrics.Histogram.Builder setSchema(int value)
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.
optional sint32 schema = 5;- Parameters:
value- The schema to set.- Returns:
- This builder for chaining.
-
clearSchema
public Metrics.Histogram.Builder clearSchema()
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.
optional sint32 schema = 5;- Returns:
- This builder for chaining.
-
hasZeroThreshold
public boolean hasZeroThreshold()
Breadth of the zero bucket.
optional double zero_threshold = 6;- Specified by:
hasZeroThresholdin interfaceMetrics.HistogramOrBuilder- Returns:
- Whether the zeroThreshold field is set.
-
getZeroThreshold
public double getZeroThreshold()
Breadth of the zero bucket.
optional double zero_threshold = 6;- Specified by:
getZeroThresholdin interfaceMetrics.HistogramOrBuilder- Returns:
- The zeroThreshold.
-
setZeroThreshold
public Metrics.Histogram.Builder setZeroThreshold(double value)
Breadth of the zero bucket.
optional double zero_threshold = 6;- Parameters:
value- The zeroThreshold to set.- Returns:
- This builder for chaining.
-
clearZeroThreshold
public Metrics.Histogram.Builder clearZeroThreshold()
Breadth of the zero bucket.
optional double zero_threshold = 6;- Returns:
- This builder for chaining.
-
hasZeroCount
public boolean hasZeroCount()
Count in zero bucket.
optional uint64 zero_count = 7;- Specified by:
hasZeroCountin interfaceMetrics.HistogramOrBuilder- Returns:
- Whether the zeroCount field is set.
-
getZeroCount
public long getZeroCount()
Count in zero bucket.
optional uint64 zero_count = 7;- Specified by:
getZeroCountin interfaceMetrics.HistogramOrBuilder- Returns:
- The zeroCount.
-
setZeroCount
public Metrics.Histogram.Builder setZeroCount(long value)
Count in zero bucket.
optional uint64 zero_count = 7;- Parameters:
value- The zeroCount to set.- Returns:
- This builder for chaining.
-
clearZeroCount
public Metrics.Histogram.Builder clearZeroCount()
Count in zero bucket.
optional uint64 zero_count = 7;- Returns:
- This builder for chaining.
-
hasZeroCountFloat
public boolean hasZeroCountFloat()
Overrides sb_zero_count if > 0.
optional double zero_count_float = 8;- Specified by:
hasZeroCountFloatin interfaceMetrics.HistogramOrBuilder- Returns:
- Whether the zeroCountFloat field is set.
-
getZeroCountFloat
public double getZeroCountFloat()
Overrides sb_zero_count if > 0.
optional double zero_count_float = 8;- Specified by:
getZeroCountFloatin interfaceMetrics.HistogramOrBuilder- Returns:
- The zeroCountFloat.
-
setZeroCountFloat
public Metrics.Histogram.Builder setZeroCountFloat(double value)
Overrides sb_zero_count if > 0.
optional double zero_count_float = 8;- Parameters:
value- The zeroCountFloat to set.- Returns:
- This builder for chaining.
-
clearZeroCountFloat
public Metrics.Histogram.Builder clearZeroCountFloat()
Overrides sb_zero_count if > 0.
optional double zero_count_float = 8;- Returns:
- This builder for chaining.
-
getNegativeSpanList
public List<Metrics.BucketSpan> getNegativeSpanList()
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;- Specified by:
getNegativeSpanListin interfaceMetrics.HistogramOrBuilder
-
getNegativeSpanCount
public int getNegativeSpanCount()
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;- Specified by:
getNegativeSpanCountin interfaceMetrics.HistogramOrBuilder
-
getNegativeSpan
public Metrics.BucketSpan getNegativeSpan(int index)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;- Specified by:
getNegativeSpanin interfaceMetrics.HistogramOrBuilder
-
setNegativeSpan
public Metrics.Histogram.Builder setNegativeSpan(int index, Metrics.BucketSpan value)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
setNegativeSpan
public Metrics.Histogram.Builder setNegativeSpan(int index, Metrics.BucketSpan.Builder builderForValue)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
addNegativeSpan
public Metrics.Histogram.Builder addNegativeSpan(Metrics.BucketSpan value)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
addNegativeSpan
public Metrics.Histogram.Builder addNegativeSpan(int index, Metrics.BucketSpan value)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
addNegativeSpan
public Metrics.Histogram.Builder addNegativeSpan(Metrics.BucketSpan.Builder builderForValue)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
addNegativeSpan
public Metrics.Histogram.Builder addNegativeSpan(int index, Metrics.BucketSpan.Builder builderForValue)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
addAllNegativeSpan
public Metrics.Histogram.Builder addAllNegativeSpan(Iterable<? extends Metrics.BucketSpan> values)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
clearNegativeSpan
public Metrics.Histogram.Builder clearNegativeSpan()
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
removeNegativeSpan
public Metrics.Histogram.Builder removeNegativeSpan(int index)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
getNegativeSpanBuilder
public Metrics.BucketSpan.Builder getNegativeSpanBuilder(int index)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
getNegativeSpanOrBuilder
public Metrics.BucketSpanOrBuilder getNegativeSpanOrBuilder(int index)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;- Specified by:
getNegativeSpanOrBuilderin interfaceMetrics.HistogramOrBuilder
-
getNegativeSpanOrBuilderList
public List<? extends Metrics.BucketSpanOrBuilder> getNegativeSpanOrBuilderList()
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;- Specified by:
getNegativeSpanOrBuilderListin interfaceMetrics.HistogramOrBuilder
-
addNegativeSpanBuilder
public Metrics.BucketSpan.Builder addNegativeSpanBuilder()
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
addNegativeSpanBuilder
public Metrics.BucketSpan.Builder addNegativeSpanBuilder(int index)
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
getNegativeSpanBuilderList
public List<Metrics.BucketSpan.Builder> getNegativeSpanBuilderList()
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;
-
getNegativeDeltaList
public List<Long> getNegativeDeltaList()
Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_delta = 10;- Specified by:
getNegativeDeltaListin interfaceMetrics.HistogramOrBuilder- Returns:
- A list containing the negativeDelta.
-
getNegativeDeltaCount
public int getNegativeDeltaCount()
Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_delta = 10;- Specified by:
getNegativeDeltaCountin interfaceMetrics.HistogramOrBuilder- Returns:
- The count of negativeDelta.
-
getNegativeDelta
public long getNegativeDelta(int index)
Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_delta = 10;- Specified by:
getNegativeDeltain interfaceMetrics.HistogramOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The negativeDelta at the given index.
-
setNegativeDelta
public Metrics.Histogram.Builder setNegativeDelta(int index, long value)
Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_delta = 10;- Parameters:
index- The index to set the value at.value- The negativeDelta to set.- Returns:
- This builder for chaining.
-
addNegativeDelta
public Metrics.Histogram.Builder addNegativeDelta(long value)
Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_delta = 10;- Parameters:
value- The negativeDelta to add.- Returns:
- This builder for chaining.
-
addAllNegativeDelta
public Metrics.Histogram.Builder addAllNegativeDelta(Iterable<? extends Long> values)
Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_delta = 10;- Parameters:
values- The negativeDelta to add.- Returns:
- This builder for chaining.
-
clearNegativeDelta
public Metrics.Histogram.Builder clearNegativeDelta()
Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_delta = 10;- Returns:
- This builder for chaining.
-
getNegativeCountList
public List<Double> getNegativeCountList()
Absolute count of each bucket.
repeated double negative_count = 11;- Specified by:
getNegativeCountListin interfaceMetrics.HistogramOrBuilder- Returns:
- A list containing the negativeCount.
-
getNegativeCountCount
public int getNegativeCountCount()
Absolute count of each bucket.
repeated double negative_count = 11;- Specified by:
getNegativeCountCountin interfaceMetrics.HistogramOrBuilder- Returns:
- The count of negativeCount.
-
getNegativeCount
public double getNegativeCount(int index)
Absolute count of each bucket.
repeated double negative_count = 11;- Specified by:
getNegativeCountin interfaceMetrics.HistogramOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The negativeCount at the given index.
-
setNegativeCount
public Metrics.Histogram.Builder setNegativeCount(int index, double value)
Absolute count of each bucket.
repeated double negative_count = 11;- Parameters:
index- The index to set the value at.value- The negativeCount to set.- Returns:
- This builder for chaining.
-
addNegativeCount
public Metrics.Histogram.Builder addNegativeCount(double value)
Absolute count of each bucket.
repeated double negative_count = 11;- Parameters:
value- The negativeCount to add.- Returns:
- This builder for chaining.
-
addAllNegativeCount
public Metrics.Histogram.Builder addAllNegativeCount(Iterable<? extends Double> values)
Absolute count of each bucket.
repeated double negative_count = 11;- Parameters:
values- The negativeCount to add.- Returns:
- This builder for chaining.
-
clearNegativeCount
public Metrics.Histogram.Builder clearNegativeCount()
Absolute count of each bucket.
repeated double negative_count = 11;- Returns:
- This builder for chaining.
-
getPositiveSpanList
public List<Metrics.BucketSpan> getPositiveSpanList()
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;- Specified by:
getPositiveSpanListin interfaceMetrics.HistogramOrBuilder
-
getPositiveSpanCount
public int getPositiveSpanCount()
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;- Specified by:
getPositiveSpanCountin interfaceMetrics.HistogramOrBuilder
-
getPositiveSpan
public Metrics.BucketSpan getPositiveSpan(int index)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;- Specified by:
getPositiveSpanin interfaceMetrics.HistogramOrBuilder
-
setPositiveSpan
public Metrics.Histogram.Builder setPositiveSpan(int index, Metrics.BucketSpan value)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
setPositiveSpan
public Metrics.Histogram.Builder setPositiveSpan(int index, Metrics.BucketSpan.Builder builderForValue)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
addPositiveSpan
public Metrics.Histogram.Builder addPositiveSpan(Metrics.BucketSpan value)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
addPositiveSpan
public Metrics.Histogram.Builder addPositiveSpan(int index, Metrics.BucketSpan value)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
addPositiveSpan
public Metrics.Histogram.Builder addPositiveSpan(Metrics.BucketSpan.Builder builderForValue)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
addPositiveSpan
public Metrics.Histogram.Builder addPositiveSpan(int index, Metrics.BucketSpan.Builder builderForValue)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
addAllPositiveSpan
public Metrics.Histogram.Builder addAllPositiveSpan(Iterable<? extends Metrics.BucketSpan> values)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
clearPositiveSpan
public Metrics.Histogram.Builder clearPositiveSpan()
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
removePositiveSpan
public Metrics.Histogram.Builder removePositiveSpan(int index)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
getPositiveSpanBuilder
public Metrics.BucketSpan.Builder getPositiveSpanBuilder(int index)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
getPositiveSpanOrBuilder
public Metrics.BucketSpanOrBuilder getPositiveSpanOrBuilder(int index)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;- Specified by:
getPositiveSpanOrBuilderin interfaceMetrics.HistogramOrBuilder
-
getPositiveSpanOrBuilderList
public List<? extends Metrics.BucketSpanOrBuilder> getPositiveSpanOrBuilderList()
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;- Specified by:
getPositiveSpanOrBuilderListin interfaceMetrics.HistogramOrBuilder
-
addPositiveSpanBuilder
public Metrics.BucketSpan.Builder addPositiveSpanBuilder()
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
addPositiveSpanBuilder
public Metrics.BucketSpan.Builder addPositiveSpanBuilder(int index)
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
getPositiveSpanBuilderList
public List<Metrics.BucketSpan.Builder> getPositiveSpanBuilderList()
Positive buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;
-
getPositiveDeltaList
public List<Long> getPositiveDeltaList()
Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_delta = 13;- Specified by:
getPositiveDeltaListin interfaceMetrics.HistogramOrBuilder- Returns:
- A list containing the positiveDelta.
-
getPositiveDeltaCount
public int getPositiveDeltaCount()
Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_delta = 13;- Specified by:
getPositiveDeltaCountin interfaceMetrics.HistogramOrBuilder- Returns:
- The count of positiveDelta.
-
getPositiveDelta
public long getPositiveDelta(int index)
Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_delta = 13;- Specified by:
getPositiveDeltain interfaceMetrics.HistogramOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The positiveDelta at the given index.
-
setPositiveDelta
public Metrics.Histogram.Builder setPositiveDelta(int index, long value)
Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_delta = 13;- Parameters:
index- The index to set the value at.value- The positiveDelta to set.- Returns:
- This builder for chaining.
-
addPositiveDelta
public Metrics.Histogram.Builder addPositiveDelta(long value)
Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_delta = 13;- Parameters:
value- The positiveDelta to add.- Returns:
- This builder for chaining.
-
addAllPositiveDelta
public Metrics.Histogram.Builder addAllPositiveDelta(Iterable<? extends Long> values)
Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_delta = 13;- Parameters:
values- The positiveDelta to add.- Returns:
- This builder for chaining.
-
clearPositiveDelta
public Metrics.Histogram.Builder clearPositiveDelta()
Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_delta = 13;- Returns:
- This builder for chaining.
-
getPositiveCountList
public List<Double> getPositiveCountList()
Absolute count of each bucket.
repeated double positive_count = 14;- Specified by:
getPositiveCountListin interfaceMetrics.HistogramOrBuilder- Returns:
- A list containing the positiveCount.
-
getPositiveCountCount
public int getPositiveCountCount()
Absolute count of each bucket.
repeated double positive_count = 14;- Specified by:
getPositiveCountCountin interfaceMetrics.HistogramOrBuilder- Returns:
- The count of positiveCount.
-
getPositiveCount
public double getPositiveCount(int index)
Absolute count of each bucket.
repeated double positive_count = 14;- Specified by:
getPositiveCountin interfaceMetrics.HistogramOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The positiveCount at the given index.
-
setPositiveCount
public Metrics.Histogram.Builder setPositiveCount(int index, double value)
Absolute count of each bucket.
repeated double positive_count = 14;- Parameters:
index- The index to set the value at.value- The positiveCount to set.- Returns:
- This builder for chaining.
-
addPositiveCount
public Metrics.Histogram.Builder addPositiveCount(double value)
Absolute count of each bucket.
repeated double positive_count = 14;- Parameters:
value- The positiveCount to add.- Returns:
- This builder for chaining.
-
addAllPositiveCount
public Metrics.Histogram.Builder addAllPositiveCount(Iterable<? extends Double> values)
Absolute count of each bucket.
repeated double positive_count = 14;- Parameters:
values- The positiveCount to add.- Returns:
- This builder for chaining.
-
clearPositiveCount
public Metrics.Histogram.Builder clearPositiveCount()
Absolute count of each bucket.
repeated double positive_count = 14;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Metrics.Histogram.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
mergeUnknownFields
public final Metrics.Histogram.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Metrics.Histogram.Builder>
-
-