Class AggregationResult.Histogram.Builder (0.17.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket>
Returns
TypeDescription
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
NameDescription
valueAggregationResult.Histogram.Bucket
Returns
TypeDescription
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
NameDescription
builderForValueAggregationResult.Histogram.Bucket.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAggregationResult.Histogram.Bucket
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAggregationResult.Histogram.Bucket.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public AggregationResult.Histogram.Builder clear()
Returns
TypeDescription
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
TypeDescription
AggregationResult.Histogram.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AggregationResult.Histogram.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.migrationcenter.v1.AggregationResult.Histogram.BucketOrBuilder>

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AggregationResult.Histogram other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

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