Class Aggregation.Histogram.Builder (0.11.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
TypeDescription
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
NameDescription
valuesIterable<? extends java.lang.Double>

The lowerBounds to add.

Returns
TypeDescription
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
NameDescription
valuedouble

The lowerBounds to add.

Returns
TypeDescription
Aggregation.Histogram.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Aggregation.Histogram build()
Returns
TypeDescription
Aggregation.Histogram

buildPartial()

public Aggregation.Histogram buildPartial()
Returns
TypeDescription
Aggregation.Histogram

clear()

public Aggregation.Histogram.Builder clear()
Returns
TypeDescription
Aggregation.Histogram.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Aggregation.Histogram.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Aggregation.Histogram.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Aggregation.Histogram.Builder clone()
Returns
TypeDescription
Aggregation.Histogram.Builder
Overrides

getDefaultInstanceForType()

public Aggregation.Histogram getDefaultInstanceForType()
Returns
TypeDescription
Aggregation.Histogram

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<Double>

A list containing the lowerBounds.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Aggregation.Histogram other)

public Aggregation.Histogram.Builder mergeFrom(Aggregation.Histogram other)
Parameter
NameDescription
otherAggregation.Histogram
Returns
TypeDescription
Aggregation.Histogram.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Aggregation.Histogram.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Aggregation.Histogram.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Aggregation.Histogram.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valuedouble

The lowerBounds to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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