Class AggregationResult.Histogram.Bucket.Builder (0.65.0)

public static final class AggregationResult.Histogram.Bucket.Builder extends GeneratedMessage.Builder<AggregationResult.Histogram.Bucket.Builder> implements AggregationResult.Histogram.BucketOrBuilder

A histogram bucket with a lower and upper bound, and a count of items with a field value between those bounds. The lower bound is inclusive and the upper bound is exclusive. Lower bound may be -infinity and upper bound may be infinity.

Protobuf type google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket

Static Methods

getDescriptor()

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

Methods

build()

public AggregationResult.Histogram.Bucket build()
Returns
Type Description
AggregationResult.Histogram.Bucket

buildPartial()

public AggregationResult.Histogram.Bucket buildPartial()
Returns
Type Description
AggregationResult.Histogram.Bucket

clear()

public AggregationResult.Histogram.Bucket.Builder clear()
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder
Overrides

clearCount()

public AggregationResult.Histogram.Bucket.Builder clearCount()

Count of items in the bucket.

int64 count = 3;

Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

This builder for chaining.

clearLowerBound()

public AggregationResult.Histogram.Bucket.Builder clearLowerBound()

Lower bound - inclusive.

double lower_bound = 1;

Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

This builder for chaining.

clearUpperBound()

public AggregationResult.Histogram.Bucket.Builder clearUpperBound()

Upper bound - exclusive.

double upper_bound = 2;

Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

This builder for chaining.

getCount()

public long getCount()

Count of items in the bucket.

int64 count = 3;

Returns
Type Description
long

The count.

getDefaultInstanceForType()

public AggregationResult.Histogram.Bucket getDefaultInstanceForType()
Returns
Type Description
AggregationResult.Histogram.Bucket

getDescriptorForType()

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

getLowerBound()

public double getLowerBound()

Lower bound - inclusive.

double lower_bound = 1;

Returns
Type Description
double

The lowerBound.

getUpperBound()

public double getUpperBound()

Upper bound - exclusive.

double upper_bound = 2;

Returns
Type Description
double

The upperBound.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AggregationResult.Histogram.Bucket other)

public AggregationResult.Histogram.Bucket.Builder mergeFrom(AggregationResult.Histogram.Bucket other)
Parameter
Name Description
other AggregationResult.Histogram.Bucket
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AggregationResult.Histogram.Bucket.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder
Overrides

setCount(long value)

public AggregationResult.Histogram.Bucket.Builder setCount(long value)

Count of items in the bucket.

int64 count = 3;

Parameter
Name Description
value long

The count to set.

Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

This builder for chaining.

setLowerBound(double value)

public AggregationResult.Histogram.Bucket.Builder setLowerBound(double value)

Lower bound - inclusive.

double lower_bound = 1;

Parameter
Name Description
value double

The lowerBound to set.

Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

This builder for chaining.

setUpperBound(double value)

public AggregationResult.Histogram.Bucket.Builder setUpperBound(double value)

Upper bound - exclusive.

double upper_bound = 2;

Parameter
Name Description
value double

The upperBound to set.

Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

This builder for chaining.