Class AggregationResult.Histogram.Builder (0.29.0)

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

The result of a bucketed histogram aggregation.

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

Static Methods

getDescriptor()

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

Methods

addAllBuckets(Iterable<? extends AggregationResult.Histogram.Bucket> values)

public AggregationResult.Histogram.Builder addAllBuckets(Iterable<? extends AggregationResult.Histogram.Bucket> values)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket>
Returns
Type Description
AggregationResult.Histogram.Builder

addBuckets(AggregationResult.Histogram.Bucket value)

public AggregationResult.Histogram.Builder addBuckets(AggregationResult.Histogram.Bucket value)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameter
Name Description
value AggregationResult.Histogram.Bucket
Returns
Type Description
AggregationResult.Histogram.Builder

addBuckets(AggregationResult.Histogram.Bucket.Builder builderForValue)

public AggregationResult.Histogram.Builder addBuckets(AggregationResult.Histogram.Bucket.Builder builderForValue)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameter
Name Description
builderForValue AggregationResult.Histogram.Bucket.Builder
Returns
Type Description
AggregationResult.Histogram.Builder

addBuckets(int index, AggregationResult.Histogram.Bucket value)

public AggregationResult.Histogram.Builder addBuckets(int index, AggregationResult.Histogram.Bucket value)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameters
Name Description
index int
value AggregationResult.Histogram.Bucket
Returns
Type Description
AggregationResult.Histogram.Builder

addBuckets(int index, AggregationResult.Histogram.Bucket.Builder builderForValue)

public AggregationResult.Histogram.Builder addBuckets(int index, AggregationResult.Histogram.Bucket.Builder builderForValue)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameters
Name Description
index int
builderForValue AggregationResult.Histogram.Bucket.Builder
Returns
Type Description
AggregationResult.Histogram.Builder

addBucketsBuilder()

public AggregationResult.Histogram.Bucket.Builder addBucketsBuilder()

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

addBucketsBuilder(int index)

public AggregationResult.Histogram.Bucket.Builder addBucketsBuilder(int index)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearBuckets()

public AggregationResult.Histogram.Builder clearBuckets()

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Returns
Type Description
AggregationResult.Histogram.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBuckets(int index)

public AggregationResult.Histogram.Bucket getBuckets(int index)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResult.Histogram.Bucket

getBucketsBuilder(int index)

public AggregationResult.Histogram.Bucket.Builder getBucketsBuilder(int index)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

getBucketsBuilderList()

public List<AggregationResult.Histogram.Bucket.Builder> getBucketsBuilderList()

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Returns
Type Description
List<Builder>

getBucketsCount()

public int getBucketsCount()

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Returns
Type Description
int

getBucketsList()

public List<AggregationResult.Histogram.Bucket> getBucketsList()

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Returns
Type Description
List<Bucket>

getBucketsOrBuilder(int index)

public AggregationResult.Histogram.BucketOrBuilder getBucketsOrBuilder(int index)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResult.Histogram.BucketOrBuilder

getBucketsOrBuilderList()

public List<? extends AggregationResult.Histogram.BucketOrBuilder> getBucketsOrBuilderList()

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Returns
Type Description
List<? extends com.google.cloud.migrationcenter.v1.AggregationResult.Histogram.BucketOrBuilder>

getDefaultInstanceForType()

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

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AggregationResult.Histogram other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBuckets(int index)

public AggregationResult.Histogram.Builder removeBuckets(int index)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResult.Histogram.Builder

setBuckets(int index, AggregationResult.Histogram.Bucket value)

public AggregationResult.Histogram.Builder setBuckets(int index, AggregationResult.Histogram.Bucket value)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameters
Name Description
index int
value AggregationResult.Histogram.Bucket
Returns
Type Description
AggregationResult.Histogram.Builder

setBuckets(int index, AggregationResult.Histogram.Bucket.Builder builderForValue)

public AggregationResult.Histogram.Builder setBuckets(int index, AggregationResult.Histogram.Bucket.Builder builderForValue)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameters
Name Description
index int
builderForValue AggregationResult.Histogram.Bucket.Builder
Returns
Type Description
AggregationResult.Histogram.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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