Class AggregationResult.Histogram.Bucket.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AggregationResult.Histogram.Bucket.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder
Overrides

build()

public AggregationResult.Histogram.Bucket build()
Returns
TypeDescription
AggregationResult.Histogram.Bucket

buildPartial()

public AggregationResult.Histogram.Bucket buildPartial()
Returns
TypeDescription
AggregationResult.Histogram.Bucket

clear()

public AggregationResult.Histogram.Bucket.Builder clear()
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder
Overrides

clearCount()

public AggregationResult.Histogram.Bucket.Builder clearCount()

Count of items in the bucket.

int64 count = 3;

Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AggregationResult.Histogram.Bucket.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder
Overrides

clearLowerBound()

public AggregationResult.Histogram.Bucket.Builder clearLowerBound()

Lower bound - inclusive.

double lower_bound = 1;

Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AggregationResult.Histogram.Bucket.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder
Overrides

clearUpperBound()

public AggregationResult.Histogram.Bucket.Builder clearUpperBound()

Upper bound - exclusive.

double upper_bound = 2;

Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder

This builder for chaining.

clone()

public AggregationResult.Histogram.Bucket.Builder clone()
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder
Overrides

getCount()

public long getCount()

Count of items in the bucket.

int64 count = 3;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public AggregationResult.Histogram.Bucket getDefaultInstanceForType()
Returns
TypeDescription
AggregationResult.Histogram.Bucket

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLowerBound()

public double getLowerBound()

Lower bound - inclusive.

double lower_bound = 1;

Returns
TypeDescription
double

The lowerBound.

getUpperBound()

public double getUpperBound()

Upper bound - exclusive.

double upper_bound = 2;

Returns
TypeDescription
double

The upperBound.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AggregationResult.Histogram.Bucket other)

public AggregationResult.Histogram.Bucket.Builder mergeFrom(AggregationResult.Histogram.Bucket other)
Parameter
NameDescription
otherAggregationResult.Histogram.Bucket
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AggregationResult.Histogram.Bucket.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AggregationResult.Histogram.Bucket.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AggregationResult.Histogram.Bucket.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The count to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder
Overrides

setLowerBound(double value)

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

Lower bound - inclusive.

double lower_bound = 1;

Parameter
NameDescription
valuedouble

The lowerBound to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AggregationResult.Histogram.Bucket.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder
Overrides

setUpperBound(double value)

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

Upper bound - exclusive.

double upper_bound = 2;

Parameter
NameDescription
valuedouble

The upperBound to set.

Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder

This builder for chaining.