Class ExponentialHistogramDataPoint.Buckets
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ExponentialHistogramDataPoint.BucketsOrBuilder,Serializable
- Enclosing class:
- ExponentialHistogramDataPoint
public static final class ExponentialHistogramDataPoint.Buckets extends com.google.protobuf.GeneratedMessageV3 implements ExponentialHistogramDataPoint.BucketsOrBuilder
Buckets are a set of bucket counts, encoded in a contiguous array of counts.
Protobuf typeopentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExponentialHistogramDataPoint.Buckets.BuilderBuckets are a set of bucket counts, encoded in a contiguous array of counts.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBUCKET_COUNTS_FIELD_NUMBERstatic intOFFSET_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)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).static ExponentialHistogramDataPoint.BucketsgetDefaultInstance()ExponentialHistogramDataPoint.BucketsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetOffset()Offset is the bucket index of the first entry in the bucket_counts array.com.google.protobuf.Parser<ExponentialHistogramDataPoint.Buckets>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ExponentialHistogramDataPoint.Buckets.BuildernewBuilder()static ExponentialHistogramDataPoint.Buckets.BuildernewBuilder(ExponentialHistogramDataPoint.Buckets prototype)ExponentialHistogramDataPoint.Buckets.BuildernewBuilderForType()protected ExponentialHistogramDataPoint.Buckets.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ExponentialHistogramDataPoint.BucketsparseDelimitedFrom(InputStream input)static ExponentialHistogramDataPoint.BucketsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExponentialHistogramDataPoint.BucketsparseFrom(byte[] data)static ExponentialHistogramDataPoint.BucketsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExponentialHistogramDataPoint.BucketsparseFrom(com.google.protobuf.ByteString data)static ExponentialHistogramDataPoint.BucketsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExponentialHistogramDataPoint.BucketsparseFrom(com.google.protobuf.CodedInputStream input)static ExponentialHistogramDataPoint.BucketsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExponentialHistogramDataPoint.BucketsparseFrom(InputStream input)static ExponentialHistogramDataPoint.BucketsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExponentialHistogramDataPoint.BucketsparseFrom(ByteBuffer data)static ExponentialHistogramDataPoint.BucketsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ExponentialHistogramDataPoint.Buckets>parser()ExponentialHistogramDataPoint.Buckets.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
OFFSET_FIELD_NUMBER
public static final int OFFSET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUCKET_COUNTS_FIELD_NUMBER
public static final int BUCKET_COUNTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ExponentialHistogramDataPoint.Buckets parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExponentialHistogramDataPoint.Buckets parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExponentialHistogramDataPoint.Buckets parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExponentialHistogramDataPoint.Buckets parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExponentialHistogramDataPoint.Buckets parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExponentialHistogramDataPoint.Buckets parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExponentialHistogramDataPoint.Buckets parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExponentialHistogramDataPoint.Buckets parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExponentialHistogramDataPoint.Buckets parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExponentialHistogramDataPoint.Buckets parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ExponentialHistogramDataPoint.Buckets parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExponentialHistogramDataPoint.Buckets parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ExponentialHistogramDataPoint.Buckets.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ExponentialHistogramDataPoint.Buckets.Builder newBuilder()
-
newBuilder
public static ExponentialHistogramDataPoint.Buckets.Builder newBuilder(ExponentialHistogramDataPoint.Buckets prototype)
-
toBuilder
public ExponentialHistogramDataPoint.Buckets.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ExponentialHistogramDataPoint.Buckets.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ExponentialHistogramDataPoint.Buckets getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ExponentialHistogramDataPoint.Buckets> parser()
-
getParserForType
public com.google.protobuf.Parser<ExponentialHistogramDataPoint.Buckets> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ExponentialHistogramDataPoint.Buckets getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-