Class Aggregation.Histogram.Builder (0.34.0)

public static final class Aggregation.Histogram.Builder extends GeneratedMessageV3.Builder<Aggregation.Histogram.Builder> implements Aggregation.HistogramOrBuilder

Histogram of bucketed assets counts by field value.

Protobuf type google.cloud.migrationcenter.v1.Aggregation.Histogram

Static Methods

getDescriptor()

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

Methods

addAllLowerBounds(Iterable<? extends Double> values)

public Aggregation.Histogram.Builder addAllLowerBounds(Iterable<? extends Double> values)

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

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

The lowerBounds to add.

Returns
Type Description
Aggregation.Histogram.Builder

This builder for chaining.

addLowerBounds(double value)

public Aggregation.Histogram.Builder addLowerBounds(double value)

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Parameter
Name Description
value double

The lowerBounds to add.

Returns
Type Description
Aggregation.Histogram.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Aggregation.Histogram build()
Returns
Type Description
Aggregation.Histogram

buildPartial()

public Aggregation.Histogram buildPartial()
Returns
Type Description
Aggregation.Histogram

clear()

public Aggregation.Histogram.Builder clear()
Returns
Type Description
Aggregation.Histogram.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLowerBounds()

public Aggregation.Histogram.Builder clearLowerBounds()

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Returns
Type Description
Aggregation.Histogram.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Aggregation.Histogram.Builder clone()
Returns
Type Description
Aggregation.Histogram.Builder
Overrides

getDefaultInstanceForType()

public Aggregation.Histogram getDefaultInstanceForType()
Returns
Type Description
Aggregation.Histogram

getDescriptorForType()

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

getLowerBounds(int index)

public double getLowerBounds(int index)

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
double

The lowerBounds at the given index.

getLowerBoundsCount()

public int getLowerBoundsCount()

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Returns
Type Description
int

The count of lowerBounds.

getLowerBoundsList()

public List<Double> getLowerBoundsList()

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Returns
Type Description
List<Double>

A list containing the lowerBounds.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Aggregation.Histogram other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLowerBounds(int index, double value)

public Aggregation.Histogram.Builder setLowerBounds(int index, double value)

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Parameters
Name Description
index int

The index to set the value at.

value double

The lowerBounds to set.

Returns
Type Description
Aggregation.Histogram.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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