Class DurationHistogram.Builder (1.10.0)

public static final class DurationHistogram.Builder extends GeneratedMessageV3.Builder<DurationHistogram.Builder> implements DurationHistogramOrBuilder

Histogram representation for query duration measurements in milliseconds.

Protobuf type google.cloud.bigquery.jdbc.telemetry.v1.DurationHistogram

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBucketCounts(Iterable<? extends Long> values)

public DurationHistogram.Builder addAllBucketCounts(Iterable<? extends Long> values)

Count of items in each bucket.

repeated int64 bucket_counts = 1;

Parameter
Name Description
values Iterable<? extends java.lang.Long>

The bucketCounts to add.

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

addAllExplicitBounds(Iterable<? extends Double> values)

public DurationHistogram.Builder addAllExplicitBounds(Iterable<? extends Double> values)

Upper bounds for each bucket in milliseconds.

repeated double explicit_bounds = 2;

Parameter
Name Description
values Iterable<? extends java.lang.Double>

The explicitBounds to add.

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

addBucketCounts(long value)

public DurationHistogram.Builder addBucketCounts(long value)

Count of items in each bucket.

repeated int64 bucket_counts = 1;

Parameter
Name Description
value long

The bucketCounts to add.

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

addExplicitBounds(double value)

public DurationHistogram.Builder addExplicitBounds(double value)

Upper bounds for each bucket in milliseconds.

repeated double explicit_bounds = 2;

Parameter
Name Description
value double

The explicitBounds to add.

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DurationHistogram.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DurationHistogram.Builder
Overrides

build()

public DurationHistogram build()
Returns
Type Description
DurationHistogram

buildPartial()

public DurationHistogram buildPartial()
Returns
Type Description
DurationHistogram

clear()

public DurationHistogram.Builder clear()
Returns
Type Description
DurationHistogram.Builder
Overrides

clearBucketCounts()

public DurationHistogram.Builder clearBucketCounts()

Count of items in each bucket.

repeated int64 bucket_counts = 1;

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

clearCount()

public DurationHistogram.Builder clearCount()

Total count of recorded duration events.

int64 count = 3;

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

clearExplicitBounds()

public DurationHistogram.Builder clearExplicitBounds()

Upper bounds for each bucket in milliseconds.

repeated double explicit_bounds = 2;

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DurationHistogram.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DurationHistogram.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DurationHistogram.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DurationHistogram.Builder
Overrides

clearSum()

public DurationHistogram.Builder clearSum()

Cumulative sum of recorded durations in milliseconds.

double sum = 4;

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

clone()

public DurationHistogram.Builder clone()
Returns
Type Description
DurationHistogram.Builder
Overrides

getBucketCounts(int index)

public long getBucketCounts(int index)

Count of items in each bucket.

repeated int64 bucket_counts = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

The bucketCounts at the given index.

getBucketCountsCount()

public int getBucketCountsCount()

Count of items in each bucket.

repeated int64 bucket_counts = 1;

Returns
Type Description
int

The count of bucketCounts.

getBucketCountsList()

public List<Long> getBucketCountsList()

Count of items in each bucket.

repeated int64 bucket_counts = 1;

Returns
Type Description
List<Long>

A list containing the bucketCounts.

getCount()

public long getCount()

Total count of recorded duration events.

int64 count = 3;

Returns
Type Description
long

The count.

getDefaultInstanceForType()

public DurationHistogram getDefaultInstanceForType()
Returns
Type Description
DurationHistogram

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExplicitBounds(int index)

public double getExplicitBounds(int index)

Upper bounds for each bucket in milliseconds.

repeated double explicit_bounds = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
double

The explicitBounds at the given index.

getExplicitBoundsCount()

public int getExplicitBoundsCount()

Upper bounds for each bucket in milliseconds.

repeated double explicit_bounds = 2;

Returns
Type Description
int

The count of explicitBounds.

getExplicitBoundsList()

public List<Double> getExplicitBoundsList()

Upper bounds for each bucket in milliseconds.

repeated double explicit_bounds = 2;

Returns
Type Description
List<Double>

A list containing the explicitBounds.

getSum()

public double getSum()

Cumulative sum of recorded durations in milliseconds.

double sum = 4;

Returns
Type Description
double

The sum.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DurationHistogram other)

public DurationHistogram.Builder mergeFrom(DurationHistogram other)
Parameter
Name Description
other DurationHistogram
Returns
Type Description
DurationHistogram.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DurationHistogram.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DurationHistogram.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DurationHistogram.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DurationHistogram.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DurationHistogram.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DurationHistogram.Builder
Overrides

setBucketCounts(int index, long value)

public DurationHistogram.Builder setBucketCounts(int index, long value)

Count of items in each bucket.

repeated int64 bucket_counts = 1;

Parameters
Name Description
index int

The index to set the value at.

value long

The bucketCounts to set.

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

setCount(long value)

public DurationHistogram.Builder setCount(long value)

Total count of recorded duration events.

int64 count = 3;

Parameter
Name Description
value long

The count to set.

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

setExplicitBounds(int index, double value)

public DurationHistogram.Builder setExplicitBounds(int index, double value)

Upper bounds for each bucket in milliseconds.

repeated double explicit_bounds = 2;

Parameters
Name Description
index int

The index to set the value at.

value double

The explicitBounds to set.

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DurationHistogram.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DurationHistogram.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DurationHistogram.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DurationHistogram.Builder
Overrides

setSum(double value)

public DurationHistogram.Builder setSum(double value)

Cumulative sum of recorded durations in milliseconds.

double sum = 4;

Parameter
Name Description
value double

The sum to set.

Returns
Type Description
DurationHistogram.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DurationHistogram.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DurationHistogram.Builder
Overrides