Class ExponentialHistogramDataPoint.Buckets.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ExponentialHistogramDataPoint.Buckets.Builder> implements ExponentialHistogramDataPoint.BucketsOrBuilder
 Buckets are a set of bucket counts, encoded in a contiguous array
 of counts.
 
Protobuf type opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllBucketCounts(Iterable<? extends Long> values)
    bucket_counts is an array of count values, where bucket_counts[i] carries the count of the bucket at index (offset+i). bucket_counts[i] is the count of values greater than base^(offset+i) and less than or equal to base^(offset+i+1).
    addBucketCounts(long value)
    bucket_counts is an array of count values, where bucket_counts[i] carries the count of the bucket at index (offset+i). bucket_counts[i] is the count of values greater than base^(offset+i) and less than or equal to base^(offset+i+1).
     
     
     
    bucket_counts is an array of count values, where bucket_counts[i] carries the count of the bucket at index (offset+i). bucket_counts[i] is the count of values greater than base^(offset+i) and less than or equal to base^(offset+i+1).
    Offset is the bucket index of the first entry in the bucket_counts array.
    long
    getBucketCounts(int index)
    bucket_counts is an array of count values, where bucket_counts[i] carries the count of the bucket at index (offset+i). bucket_counts[i] is the count of values greater than base^(offset+i) and less than or equal to base^(offset+i+1).
    int
    bucket_counts is an array of count values, where bucket_counts[i] carries the count of the bucket at index (offset+i). bucket_counts[i] is the count of values greater than base^(offset+i) and less than or equal to base^(offset+i+1).
    bucket_counts is an array of count values, where bucket_counts[i] carries the count of the bucket at index (offset+i). bucket_counts[i] is the count of values greater than base^(offset+i) and less than or equal to base^(offset+i+1).
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    Offset is the bucket index of the first entry in the bucket_counts array.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    setBucketCounts(int index, long value)
    bucket_counts is an array of count values, where bucket_counts[i] carries the count of the bucket at index (offset+i). bucket_counts[i] is the count of values greater than base^(offset+i) and less than or equal to base^(offset+i+1).
    setOffset(int value)
    Offset is the bucket index of the first entry in the bucket_counts array.

    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, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ExponentialHistogramDataPoint.Buckets.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
    • mergeFrom

    • isInitialized

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

      public ExponentialHistogramDataPoint.Buckets.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<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:
      getOffset in interface ExponentialHistogramDataPoint.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

       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()
       bucket_counts is an array of count values, where bucket_counts[i] carries
       the count of the bucket at index (offset+i). bucket_counts[i] is the count
       of values greater than base^(offset+i) and less than or equal to
       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:
      getBucketCountsList in interface ExponentialHistogramDataPoint.BucketsOrBuilder
      Returns:
      A list containing the bucketCounts.
    • getBucketCountsCount

      public int getBucketCountsCount()
       bucket_counts is an array of count values, where bucket_counts[i] carries
       the count of the bucket at index (offset+i). bucket_counts[i] is the count
       of values greater than base^(offset+i) and less than or equal to
       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:
      getBucketCountsCount in interface ExponentialHistogramDataPoint.BucketsOrBuilder
      Returns:
      The count of bucketCounts.
    • getBucketCounts

      public long getBucketCounts(int index)
       bucket_counts is an array of count values, where bucket_counts[i] carries
       the count of the bucket at index (offset+i). bucket_counts[i] is the count
       of values greater than base^(offset+i) and less than or equal to
       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:
      getBucketCounts in interface ExponentialHistogramDataPoint.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)
       bucket_counts is an array of count values, where bucket_counts[i] carries
       the count of the bucket at index (offset+i). bucket_counts[i] is the count
       of values greater than base^(offset+i) and less than or equal to
       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)
       bucket_counts is an array of count values, where bucket_counts[i] carries
       the count of the bucket at index (offset+i). bucket_counts[i] is the count
       of values greater than base^(offset+i) and less than or equal to
       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)
       bucket_counts is an array of count values, where bucket_counts[i] carries
       the count of the bucket at index (offset+i). bucket_counts[i] is the count
       of values greater than base^(offset+i) and less than or equal to
       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

       bucket_counts is an array of count values, where bucket_counts[i] carries
       the count of the bucket at index (offset+i). bucket_counts[i] is the count
       of values greater than base^(offset+i) and less than or equal to
       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.