Class ExponentialHistogramDataPoint.Buckets.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
-
- io.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ExponentialHistogramDataPoint.BucketsOrBuilder,Cloneable
- Enclosing class:
- ExponentialHistogramDataPoint.Buckets
public static final class ExponentialHistogramDataPoint.Buckets.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExponentialHistogramDataPoint.Buckets.Builder> implements ExponentialHistogramDataPoint.BucketsOrBuilder
Buckets are a set of bucket counts, encoded in a contiguous array of counts.
Protobuf typeopentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExponentialHistogramDataPoint.Buckets.BuilderaddAllBucketCounts(Iterable<? extends Long> values)Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i).ExponentialHistogramDataPoint.Buckets.BuilderaddBucketCounts(long value)Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i).ExponentialHistogramDataPoint.Buckets.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExponentialHistogramDataPoint.Bucketsbuild()ExponentialHistogramDataPoint.BucketsbuildPartial()ExponentialHistogramDataPoint.Buckets.Builderclear()ExponentialHistogramDataPoint.Buckets.BuilderclearBucketCounts()Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i).ExponentialHistogramDataPoint.Buckets.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ExponentialHistogramDataPoint.Buckets.BuilderclearOffset()Offset is the bucket index of the first entry in the bucket_counts array.ExponentialHistogramDataPoint.Buckets.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ExponentialHistogramDataPoint.Buckets.Builderclone()longgetBucketCounts(int index)Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i).intgetBucketCountsCount()Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i).List<Long>getBucketCountsList()Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i).ExponentialHistogramDataPoint.BucketsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetOffset()Offset is the bucket index of the first entry in the bucket_counts array.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ExponentialHistogramDataPoint.Buckets.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ExponentialHistogramDataPoint.Buckets.BuildermergeFrom(com.google.protobuf.Message other)ExponentialHistogramDataPoint.Buckets.BuildermergeFrom(ExponentialHistogramDataPoint.Buckets other)ExponentialHistogramDataPoint.Buckets.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ExponentialHistogramDataPoint.Buckets.BuildersetBucketCounts(int index, long value)Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i).ExponentialHistogramDataPoint.Buckets.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExponentialHistogramDataPoint.Buckets.BuildersetOffset(int value)Offset is the bucket index of the first entry in the bucket_counts array.ExponentialHistogramDataPoint.Buckets.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ExponentialHistogramDataPoint.Buckets.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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<ExponentialHistogramDataPoint.Buckets.Builder>
-
clear
public ExponentialHistogramDataPoint.Buckets.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<ExponentialHistogramDataPoint.Buckets.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<ExponentialHistogramDataPoint.Buckets.Builder>
-
getDefaultInstanceForType
public ExponentialHistogramDataPoint.Buckets getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExponentialHistogramDataPoint.Buckets build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExponentialHistogramDataPoint.Buckets buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExponentialHistogramDataPoint.Buckets.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<ExponentialHistogramDataPoint.Buckets.Builder>
-
setField
public ExponentialHistogramDataPoint.Buckets.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<ExponentialHistogramDataPoint.Buckets.Builder>
-
clearField
public ExponentialHistogramDataPoint.Buckets.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
-
clearOneof
public ExponentialHistogramDataPoint.Buckets.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
-
setRepeatedField
public ExponentialHistogramDataPoint.Buckets.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<ExponentialHistogramDataPoint.Buckets.Builder>
-
addRepeatedField
public ExponentialHistogramDataPoint.Buckets.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<ExponentialHistogramDataPoint.Buckets.Builder>
-
mergeFrom
public ExponentialHistogramDataPoint.Buckets.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
-
mergeFrom
public ExponentialHistogramDataPoint.Buckets.Builder mergeFrom(ExponentialHistogramDataPoint.Buckets other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
-
mergeFrom
public ExponentialHistogramDataPoint.Buckets.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<ExponentialHistogramDataPoint.Buckets.Builder>- Throws:
IOException
-
getOffset
public int getOffset()
Offset is the bucket index of the first entry in the bucket_counts array. Note: This uses a varint encoding as a simple form of compression.
sint32 offset = 1;- Specified by:
getOffsetin interfaceExponentialHistogramDataPoint.BucketsOrBuilder- Returns:
- The offset.
-
setOffset
public ExponentialHistogramDataPoint.Buckets.Builder setOffset(int value)
Offset is the bucket index of the first entry in the bucket_counts array. Note: This uses a varint encoding as a simple form of compression.
sint32 offset = 1;- Parameters:
value- The offset to set.- Returns:
- This builder for chaining.
-
clearOffset
public ExponentialHistogramDataPoint.Buckets.Builder clearOffset()
Offset is the bucket index of the first entry in the bucket_counts array. Note: This uses a varint encoding as a simple form of compression.
sint32 offset = 1;- Returns:
- This builder for chaining.
-
getBucketCountsList
public List<Long> getBucketCountsList()
Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i). count[i] is the count of values greater than or equal to base^(offset+i) and less than base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding.
repeated uint64 bucket_counts = 2;- Specified by:
getBucketCountsListin interfaceExponentialHistogramDataPoint.BucketsOrBuilder- Returns:
- A list containing the bucketCounts.
-
getBucketCountsCount
public int getBucketCountsCount()
Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i). count[i] is the count of values greater than or equal to base^(offset+i) and less than base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding.
repeated uint64 bucket_counts = 2;- Specified by:
getBucketCountsCountin interfaceExponentialHistogramDataPoint.BucketsOrBuilder- Returns:
- The count of bucketCounts.
-
getBucketCounts
public long getBucketCounts(int index)
Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i). count[i] is the count of values greater than or equal to base^(offset+i) and less than base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding.
repeated uint64 bucket_counts = 2;- Specified by:
getBucketCountsin interfaceExponentialHistogramDataPoint.BucketsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The bucketCounts at the given index.
-
setBucketCounts
public ExponentialHistogramDataPoint.Buckets.Builder setBucketCounts(int index, long value)
Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i). count[i] is the count of values greater than or equal to base^(offset+i) and less than base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding.
repeated uint64 bucket_counts = 2;- Parameters:
index- The index to set the value at.value- The bucketCounts to set.- Returns:
- This builder for chaining.
-
addBucketCounts
public ExponentialHistogramDataPoint.Buckets.Builder addBucketCounts(long value)
Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i). count[i] is the count of values greater than or equal to base^(offset+i) and less than base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding.
repeated uint64 bucket_counts = 2;- Parameters:
value- The bucketCounts to add.- Returns:
- This builder for chaining.
-
addAllBucketCounts
public ExponentialHistogramDataPoint.Buckets.Builder addAllBucketCounts(Iterable<? extends Long> values)
Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i). count[i] is the count of values greater than or equal to base^(offset+i) and less than base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding.
repeated uint64 bucket_counts = 2;- Parameters:
values- The bucketCounts to add.- Returns:
- This builder for chaining.
-
clearBucketCounts
public ExponentialHistogramDataPoint.Buckets.Builder clearBucketCounts()
Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i). count[i] is the count of values greater than or equal to base^(offset+i) and less than base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding.
repeated uint64 bucket_counts = 2;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExponentialHistogramDataPoint.Buckets.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
-
mergeUnknownFields
public final ExponentialHistogramDataPoint.Buckets.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
-
-