Class Metrics.Histogram.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Metrics.Histogram.Builder>
io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_29_3.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.GeneratedMessage.Builder<Metrics.Histogram.Builder>
implements Metrics.HistogramOrBuilder
Protobuf type
io.prometheus.client.Histogram-
Method Summary
Modifier and TypeMethodDescriptionaddAllBucket(Iterable<? extends Metrics.Bucket> values) Buckets for the conventional histogram.addAllExemplars(Iterable<? extends Metrics.Exemplar> values) Only used for native histograms.addAllNegativeCount(Iterable<? extends Double> values) Absolute count of each bucket.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.addAllNegativeSpan(Iterable<? extends Metrics.BucketSpan> values) Negative buckets for the native histogram.addAllPositiveCount(Iterable<? extends Double> values) Absolute count of each bucket.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.addAllPositiveSpan(Iterable<? extends Metrics.BucketSpan> values) Positive buckets for the native histogram.addBucket(int index, Metrics.Bucket value) Buckets for the conventional histogram.addBucket(int index, Metrics.Bucket.Builder builderForValue) Buckets for the conventional histogram.addBucket(Metrics.Bucket value) Buckets for the conventional histogram.addBucket(Metrics.Bucket.Builder builderForValue) Buckets for the conventional histogram.Buckets for the conventional histogram.addBucketBuilder(int index) Buckets for the conventional histogram.addExemplars(int index, Metrics.Exemplar value) Only used for native histograms.addExemplars(int index, Metrics.Exemplar.Builder builderForValue) Only used for native histograms.addExemplars(Metrics.Exemplar value) Only used for native histograms.addExemplars(Metrics.Exemplar.Builder builderForValue) Only used for native histograms.Only used for native histograms.addExemplarsBuilder(int index) Only used for native histograms.addNegativeCount(double value) Absolute count of each bucket.addNegativeDelta(long value) Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.addNegativeSpan(int index, Metrics.BucketSpan value) Negative buckets for the native histogram.addNegativeSpan(int index, Metrics.BucketSpan.Builder builderForValue) Negative buckets for the native histogram.Negative buckets for the native histogram.addNegativeSpan(Metrics.BucketSpan.Builder builderForValue) Negative buckets for the native histogram.Negative buckets for the native histogram.addNegativeSpanBuilder(int index) Negative buckets for the native histogram.addPositiveCount(double value) Absolute count of each bucket.addPositiveDelta(long value) Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.addPositiveSpan(int index, Metrics.BucketSpan value) Positive buckets for the native histogram.addPositiveSpan(int index, Metrics.BucketSpan.Builder builderForValue) Positive buckets for the native histogram.Positive buckets for the native histogram.addPositiveSpan(Metrics.BucketSpan.Builder builderForValue) Positive buckets for the native histogram.Positive buckets for the native histogram.addPositiveSpanBuilder(int index) Positive buckets for the native histogram.build()clear()Buckets for the conventional histogram.optional .google.protobuf.Timestamp created_timestamp = 15;Only used for native histograms.Absolute count of each bucket.Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.Negative buckets for the native histogram.Absolute count of each bucket.Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.Positive buckets for the native histogram.optional uint64 sample_count = 1;Overrides sample_count if > 0.optional double sample_sum = 2;schema defines the bucket schema.Count in zero bucket.Overrides sb_zero_count if > 0.Breadth of the zero bucket.getBucket(int index) Buckets for the conventional histogram.getBucketBuilder(int index) Buckets for the conventional histogram.Buckets for the conventional histogram.intBuckets for the conventional histogram.Buckets for the conventional histogram.getBucketOrBuilder(int index) Buckets for the conventional histogram.List<? extends Metrics.BucketOrBuilder>Buckets for the conventional histogram.com.google.protobuf.Timestampoptional .google.protobuf.Timestamp created_timestamp = 15;com.google.protobuf.Timestamp.Builderoptional .google.protobuf.Timestamp created_timestamp = 15;com.google.protobuf.TimestampOrBuilderoptional .google.protobuf.Timestamp created_timestamp = 15;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExemplars(int index) Only used for native histograms.getExemplarsBuilder(int index) Only used for native histograms.Only used for native histograms.intOnly used for native histograms.Only used for native histograms.getExemplarsOrBuilder(int index) Only used for native histograms.List<? extends Metrics.ExemplarOrBuilder>Only used for native histograms.doublegetNegativeCount(int index) Absolute count of each bucket.intAbsolute count of each bucket.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.intUse either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.Use either "negative_delta" or "negative_count", the former for regular histograms with integer counts, the latter for float histograms.getNegativeSpan(int index) Negative buckets for the native histogram.getNegativeSpanBuilder(int index) Negative buckets for the native histogram.Negative buckets for the native histogram.intNegative buckets for the native histogram.Negative buckets for the native histogram.getNegativeSpanOrBuilder(int index) Negative buckets for the native histogram.List<? extends Metrics.BucketSpanOrBuilder>Negative buckets for the native histogram.doublegetPositiveCount(int index) Absolute count of each bucket.intAbsolute count of each bucket.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.intUse either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.Use either "positive_delta" or "positive_count", the former for regular histograms with integer counts, the latter for float histograms.getPositiveSpan(int index) Positive buckets for the native histogram.getPositiveSpanBuilder(int index) Positive buckets for the native histogram.Positive buckets for the native histogram.intPositive buckets for the native histogram.Positive buckets for the native histogram.getPositiveSpanOrBuilder(int index) Positive buckets for the native histogram.List<? extends Metrics.BucketSpanOrBuilder>Positive buckets for the native histogram.longoptional uint64 sample_count = 1;doubleOverrides sample_count if > 0.doubleoptional double sample_sum = 2;intschema defines the bucket schema.longCount in zero bucket.doubleOverrides sb_zero_count if > 0.doubleBreadth of the zero bucket.booleanoptional .google.protobuf.Timestamp created_timestamp = 15;booleanoptional uint64 sample_count = 1;booleanOverrides sample_count if > 0.booleanoptional double sample_sum = 2;booleanschema defines the bucket schema.booleanCount in zero bucket.booleanOverrides sb_zero_count if > 0.booleanBreadth of the zero bucket.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreatedTimestamp(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp created_timestamp = 15;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Metrics.Histogram other) removeBucket(int index) Buckets for the conventional histogram.removeExemplars(int index) Only used for native histograms.removeNegativeSpan(int index) Negative buckets for the native histogram.removePositiveSpan(int index) Positive buckets for the native histogram.setBucket(int index, Metrics.Bucket value) Buckets for the conventional histogram.setBucket(int index, Metrics.Bucket.Builder builderForValue) Buckets for the conventional histogram.setCreatedTimestamp(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp created_timestamp = 15;setCreatedTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) optional .google.protobuf.Timestamp created_timestamp = 15;setExemplars(int index, Metrics.Exemplar value) Only used for native histograms.setExemplars(int index, Metrics.Exemplar.Builder builderForValue) Only used for native histograms.setNegativeCount(int index, double value) Absolute count of each bucket.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.setNegativeSpan(int index, Metrics.BucketSpan value) Negative buckets for the native histogram.setNegativeSpan(int index, Metrics.BucketSpan.Builder builderForValue) Negative buckets for the native histogram.setPositiveCount(int index, double value) Absolute count of each bucket.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.setPositiveSpan(int index, Metrics.BucketSpan value) Positive buckets for the native histogram.setPositiveSpan(int index, Metrics.BucketSpan.Builder builderForValue) Positive buckets for the native histogram.setSampleCount(long value) optional uint64 sample_count = 1;setSampleCountFloat(double value) Overrides sample_count if > 0.setSampleSum(double value) optional double sample_sum = 2;setSchema(int value) schema defines the bucket schema.setZeroCount(long value) Count in zero bucket.setZeroCountFloat(double value) Overrides sb_zero_count if > 0.setZeroThreshold(double value) Breadth of the zero bucket.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.Builder<Metrics.Histogram.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Metrics.Histogram.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
optional uint64 sample_count = 1;- Parameters:
value- The sampleCount to set.- Returns:
- This builder for chaining.
-
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
Overrides sample_count if > 0.
optional double sample_count_float = 4;- Parameters:
value- The sampleCountFloat to set.- Returns:
- This builder for chaining.
-
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
optional double sample_sum = 2;- Parameters:
value- The sampleSum to set.- Returns:
- This builder for chaining.
-
clearSampleSum
optional double sample_sum = 2;- Returns:
- This builder for chaining.
-
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
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;- Specified by:
getBucketin interfaceMetrics.HistogramOrBuilder
-
setBucket
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
setBucket
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
addBucket
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
addBucket
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
addBucket
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
addBucket
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
addAllBucket
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
clearBucket
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
removeBucket
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
getBucketBuilder
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
getBucketOrBuilder
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;- Specified by:
getBucketOrBuilderin interfaceMetrics.HistogramOrBuilder
-
getBucketOrBuilderList
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3;- Specified by:
getBucketOrBuilderListin interfaceMetrics.HistogramOrBuilder
-
addBucketBuilder
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
addBucketBuilder
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
getBucketBuilderList
Buckets for the conventional histogram.
repeated .io.prometheus.client.Bucket bucket = 3; -
hasCreatedTimestamp
public boolean hasCreatedTimestamp()optional .google.protobuf.Timestamp created_timestamp = 15;- Specified by:
hasCreatedTimestampin interfaceMetrics.HistogramOrBuilder- Returns:
- Whether the createdTimestamp field is set.
-
getCreatedTimestamp
public com.google.protobuf.Timestamp getCreatedTimestamp()optional .google.protobuf.Timestamp created_timestamp = 15;- Specified by:
getCreatedTimestampin interfaceMetrics.HistogramOrBuilder- Returns:
- The createdTimestamp.
-
setCreatedTimestamp
optional .google.protobuf.Timestamp created_timestamp = 15; -
setCreatedTimestamp
public Metrics.Histogram.Builder setCreatedTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) optional .google.protobuf.Timestamp created_timestamp = 15; -
mergeCreatedTimestamp
optional .google.protobuf.Timestamp created_timestamp = 15; -
clearCreatedTimestamp
optional .google.protobuf.Timestamp created_timestamp = 15; -
getCreatedTimestampBuilder
public com.google.protobuf.Timestamp.Builder getCreatedTimestampBuilder()optional .google.protobuf.Timestamp created_timestamp = 15; -
getCreatedTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreatedTimestampOrBuilder()optional .google.protobuf.Timestamp created_timestamp = 15;- Specified by:
getCreatedTimestampOrBuilderin interfaceMetrics.HistogramOrBuilder
-
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
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
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
Breadth of the zero bucket.
optional double zero_threshold = 6;- Parameters:
value- The zeroThreshold to set.- Returns:
- This builder for chaining.
-
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
Count in zero bucket.
optional uint64 zero_count = 7;- Parameters:
value- The zeroCount to set.- Returns:
- This builder for chaining.
-
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
Overrides sb_zero_count if > 0.
optional double zero_count_float = 8;- Parameters:
value- The zeroCountFloat to set.- Returns:
- This builder for chaining.
-
clearZeroCountFloat
Overrides sb_zero_count if > 0.
optional double zero_count_float = 8;- Returns:
- This builder for chaining.
-
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
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;- Specified by:
getNegativeSpanin interfaceMetrics.HistogramOrBuilder
-
setNegativeSpan
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
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9; -
addNegativeSpan
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9; -
addNegativeSpan
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
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9; -
clearNegativeSpan
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9; -
removeNegativeSpan
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9; -
getNegativeSpanBuilder
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9; -
getNegativeSpanOrBuilder
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;- Specified by:
getNegativeSpanOrBuilderin interfaceMetrics.HistogramOrBuilder
-
getNegativeSpanOrBuilderList
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9;- Specified by:
getNegativeSpanOrBuilderListin interfaceMetrics.HistogramOrBuilder
-
addNegativeSpanBuilder
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9; -
addNegativeSpanBuilder
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9; -
getNegativeSpanBuilderList
Negative buckets for the native histogram.
repeated .io.prometheus.client.BucketSpan negative_span = 9; -
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
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
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
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
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
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
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
Absolute count of each bucket.
repeated double negative_count = 11;- Parameters:
value- The negativeCount to add.- Returns:
- This builder for chaining.
-
addAllNegativeCount
Absolute count of each bucket.
repeated double negative_count = 11;- Parameters:
values- The negativeCount to add.- Returns:
- This builder for chaining.
-
clearNegativeCount
Absolute count of each bucket.
repeated double negative_count = 11;- Returns:
- This builder for chaining.
-
getPositiveSpanList
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;- Specified by:
getPositiveSpanListin interfaceMetrics.HistogramOrBuilder
-
getPositiveSpanCount
public int getPositiveSpanCount()Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;- Specified by:
getPositiveSpanCountin interfaceMetrics.HistogramOrBuilder
-
getPositiveSpan
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;- Specified by:
getPositiveSpanin interfaceMetrics.HistogramOrBuilder
-
setPositiveSpan
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic 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. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12; -
addPositiveSpan
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12; -
addPositiveSpan
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12; -
addPositiveSpan
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic 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. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12; -
addAllPositiveSpan
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12; -
clearPositiveSpan
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12; -
removePositiveSpan
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12; -
getPositiveSpanBuilder
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12; -
getPositiveSpanOrBuilder
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;- Specified by:
getPositiveSpanOrBuilderin interfaceMetrics.HistogramOrBuilder
-
getPositiveSpanOrBuilderList
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12;- Specified by:
getPositiveSpanOrBuilderListin interfaceMetrics.HistogramOrBuilder
-
addPositiveSpanBuilder
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12; -
addPositiveSpanBuilder
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12; -
getPositiveSpanBuilderList
Positive buckets for the native histogram. Use a no-op span (offset 0, length 0) for a native histogram without any observations yet and with a zero_threshold of 0. Otherwise, it would be indistinguishable from a classic histogram.
repeated .io.prometheus.client.BucketSpan positive_span = 12; -
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
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
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
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
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
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
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
Absolute count of each bucket.
repeated double positive_count = 14;- Parameters:
value- The positiveCount to add.- Returns:
- This builder for chaining.
-
addAllPositiveCount
Absolute count of each bucket.
repeated double positive_count = 14;- Parameters:
values- The positiveCount to add.- Returns:
- This builder for chaining.
-
clearPositiveCount
Absolute count of each bucket.
repeated double positive_count = 14;- Returns:
- This builder for chaining.
-
getExemplarsList
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16;- Specified by:
getExemplarsListin interfaceMetrics.HistogramOrBuilder
-
getExemplarsCount
public int getExemplarsCount()Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16;- Specified by:
getExemplarsCountin interfaceMetrics.HistogramOrBuilder
-
getExemplars
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16;- Specified by:
getExemplarsin interfaceMetrics.HistogramOrBuilder
-
setExemplars
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
setExemplars
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
addExemplars
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
addExemplars
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
addExemplars
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
addExemplars
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
addAllExemplars
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
clearExemplars
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
removeExemplars
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
getExemplarsBuilder
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
getExemplarsOrBuilder
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16;- Specified by:
getExemplarsOrBuilderin interfaceMetrics.HistogramOrBuilder
-
getExemplarsOrBuilderList
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16;- Specified by:
getExemplarsOrBuilderListin interfaceMetrics.HistogramOrBuilder
-
addExemplarsBuilder
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
addExemplarsBuilder
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16; -
getExemplarsBuilderList
Only used for native histograms. These exemplars MUST have a timestamp.
repeated .io.prometheus.client.Exemplar exemplars = 16;
-