Class Aggregation.Builder (0.26.0)

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

Message describing an aggregation. The message includes the aggregation type, parameters, and the field on which to perform the aggregation.

Protobuf type google.cloud.migrationcenter.v1.Aggregation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Aggregation build()
Returns
Type Description
Aggregation

buildPartial()

public Aggregation buildPartial()
Returns
Type Description
Aggregation

clear()

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

clearAggregationFunction()

public Aggregation.Builder clearAggregationFunction()
Returns
Type Description
Aggregation.Builder

clearCount()

public Aggregation.Builder clearCount()

Count the number of matching objects.

.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;

Returns
Type Description
Aggregation.Builder

clearField()

public Aggregation.Builder clearField()

The name of the field on which to aggregate.

string field = 1;

Returns
Type Description
Aggregation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFrequency()

public Aggregation.Builder clearFrequency()

Creates a frequency distribution of all field values.

.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;

Returns
Type Description
Aggregation.Builder

clearHistogram()

public Aggregation.Builder clearHistogram()

Creates a bucketed histogram of field values.

.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;

Returns
Type Description
Aggregation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSum()

public Aggregation.Builder clearSum()

Sum over a numeric field.

.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;

Returns
Type Description
Aggregation.Builder

clone()

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

getAggregationFunctionCase()

public Aggregation.AggregationFunctionCase getAggregationFunctionCase()
Returns
Type Description
Aggregation.AggregationFunctionCase

getCount()

public Aggregation.Count getCount()

Count the number of matching objects.

.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;

Returns
Type Description
Aggregation.Count

The count.

getCountBuilder()

public Aggregation.Count.Builder getCountBuilder()

Count the number of matching objects.

.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;

Returns
Type Description
Aggregation.Count.Builder

getCountOrBuilder()

public Aggregation.CountOrBuilder getCountOrBuilder()

Count the number of matching objects.

.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;

Returns
Type Description
Aggregation.CountOrBuilder

getDefaultInstanceForType()

public Aggregation getDefaultInstanceForType()
Returns
Type Description
Aggregation

getDescriptorForType()

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

getField()

public String getField()

The name of the field on which to aggregate.

string field = 1;

Returns
Type Description
String

The field.

getFieldBytes()

public ByteString getFieldBytes()

The name of the field on which to aggregate.

string field = 1;

Returns
Type Description
ByteString

The bytes for field.

getFrequency()

public Aggregation.Frequency getFrequency()

Creates a frequency distribution of all field values.

.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;

Returns
Type Description
Aggregation.Frequency

The frequency.

getFrequencyBuilder()

public Aggregation.Frequency.Builder getFrequencyBuilder()

Creates a frequency distribution of all field values.

.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;

Returns
Type Description
Aggregation.Frequency.Builder

getFrequencyOrBuilder()

public Aggregation.FrequencyOrBuilder getFrequencyOrBuilder()

Creates a frequency distribution of all field values.

.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;

Returns
Type Description
Aggregation.FrequencyOrBuilder

getHistogram()

public Aggregation.Histogram getHistogram()

Creates a bucketed histogram of field values.

.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;

Returns
Type Description
Aggregation.Histogram

The histogram.

getHistogramBuilder()

public Aggregation.Histogram.Builder getHistogramBuilder()

Creates a bucketed histogram of field values.

.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;

Returns
Type Description
Aggregation.Histogram.Builder

getHistogramOrBuilder()

public Aggregation.HistogramOrBuilder getHistogramOrBuilder()

Creates a bucketed histogram of field values.

.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;

Returns
Type Description
Aggregation.HistogramOrBuilder

getSum()

public Aggregation.Sum getSum()

Sum over a numeric field.

.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;

Returns
Type Description
Aggregation.Sum

The sum.

getSumBuilder()

public Aggregation.Sum.Builder getSumBuilder()

Sum over a numeric field.

.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;

Returns
Type Description
Aggregation.Sum.Builder

getSumOrBuilder()

public Aggregation.SumOrBuilder getSumOrBuilder()

Sum over a numeric field.

.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;

Returns
Type Description
Aggregation.SumOrBuilder

hasCount()

public boolean hasCount()

Count the number of matching objects.

.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;

Returns
Type Description
boolean

Whether the count field is set.

hasFrequency()

public boolean hasFrequency()

Creates a frequency distribution of all field values.

.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;

Returns
Type Description
boolean

Whether the frequency field is set.

hasHistogram()

public boolean hasHistogram()

Creates a bucketed histogram of field values.

.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;

Returns
Type Description
boolean

Whether the histogram field is set.

hasSum()

public boolean hasSum()

Sum over a numeric field.

.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;

Returns
Type Description
boolean

Whether the sum field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCount(Aggregation.Count value)

public Aggregation.Builder mergeCount(Aggregation.Count value)

Count the number of matching objects.

.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;

Parameter
Name Description
value Aggregation.Count
Returns
Type Description
Aggregation.Builder

mergeFrequency(Aggregation.Frequency value)

public Aggregation.Builder mergeFrequency(Aggregation.Frequency value)

Creates a frequency distribution of all field values.

.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;

Parameter
Name Description
value Aggregation.Frequency
Returns
Type Description
Aggregation.Builder

mergeFrom(Aggregation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHistogram(Aggregation.Histogram value)

public Aggregation.Builder mergeHistogram(Aggregation.Histogram value)

Creates a bucketed histogram of field values.

.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;

Parameter
Name Description
value Aggregation.Histogram
Returns
Type Description
Aggregation.Builder

mergeSum(Aggregation.Sum value)

public Aggregation.Builder mergeSum(Aggregation.Sum value)

Sum over a numeric field.

.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;

Parameter
Name Description
value Aggregation.Sum
Returns
Type Description
Aggregation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCount(Aggregation.Count value)

public Aggregation.Builder setCount(Aggregation.Count value)

Count the number of matching objects.

.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;

Parameter
Name Description
value Aggregation.Count
Returns
Type Description
Aggregation.Builder

setCount(Aggregation.Count.Builder builderForValue)

public Aggregation.Builder setCount(Aggregation.Count.Builder builderForValue)

Count the number of matching objects.

.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;

Parameter
Name Description
builderForValue Aggregation.Count.Builder
Returns
Type Description
Aggregation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setField(String value)

public Aggregation.Builder setField(String value)

The name of the field on which to aggregate.

string field = 1;

Parameter
Name Description
value String

The field to set.

Returns
Type Description
Aggregation.Builder

This builder for chaining.

setFieldBytes(ByteString value)

public Aggregation.Builder setFieldBytes(ByteString value)

The name of the field on which to aggregate.

string field = 1;

Parameter
Name Description
value ByteString

The bytes for field to set.

Returns
Type Description
Aggregation.Builder

This builder for chaining.

setFrequency(Aggregation.Frequency value)

public Aggregation.Builder setFrequency(Aggregation.Frequency value)

Creates a frequency distribution of all field values.

.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;

Parameter
Name Description
value Aggregation.Frequency
Returns
Type Description
Aggregation.Builder

setFrequency(Aggregation.Frequency.Builder builderForValue)

public Aggregation.Builder setFrequency(Aggregation.Frequency.Builder builderForValue)

Creates a frequency distribution of all field values.

.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;

Parameter
Name Description
builderForValue Aggregation.Frequency.Builder
Returns
Type Description
Aggregation.Builder

setHistogram(Aggregation.Histogram value)

public Aggregation.Builder setHistogram(Aggregation.Histogram value)

Creates a bucketed histogram of field values.

.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;

Parameter
Name Description
value Aggregation.Histogram
Returns
Type Description
Aggregation.Builder

setHistogram(Aggregation.Histogram.Builder builderForValue)

public Aggregation.Builder setHistogram(Aggregation.Histogram.Builder builderForValue)

Creates a bucketed histogram of field values.

.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;

Parameter
Name Description
builderForValue Aggregation.Histogram.Builder
Returns
Type Description
Aggregation.Builder

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

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

setSum(Aggregation.Sum value)

public Aggregation.Builder setSum(Aggregation.Sum value)

Sum over a numeric field.

.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;

Parameter
Name Description
value Aggregation.Sum
Returns
Type Description
Aggregation.Builder

setSum(Aggregation.Sum.Builder builderForValue)

public Aggregation.Builder setSum(Aggregation.Sum.Builder builderForValue)

Sum over a numeric field.

.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;

Parameter
Name Description
builderForValue Aggregation.Sum.Builder
Returns
Type Description
Aggregation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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