Class AggregationResult.Histogram.Bucket.Builder (0.28.0)

public static final class AggregationResult.Histogram.Bucket.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

public AggregationResult.Histogram.Bucket.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public AggregationResult.Histogram.Bucket.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AggregationResult.Histogram.Bucket.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final AggregationResult.Histogram.Bucket.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder
Overrides

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.