Class ExponentialHistogramDataPoint.Buckets.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public ExponentialHistogramDataPoint.Buckets build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ExponentialHistogramDataPoint.Buckets buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExponentialHistogramDataPoint.Buckets.Builder>
      • 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

        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:
        getBucketCountsList in interface ExponentialHistogramDataPoint.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:
        getBucketCountsCount in interface ExponentialHistogramDataPoint.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:
        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)
         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.