Class Aggregation.Builder (0.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Aggregation build()
Returns
TypeDescription
Aggregation

buildPartial()

public Aggregation buildPartial()
Returns
TypeDescription
Aggregation

clear()

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

clearAggregationFunction()

public Aggregation.Builder clearAggregationFunction()
Returns
TypeDescription
Aggregation.Builder

clearCount()

public Aggregation.Builder clearCount()

Count the number of matching objects.

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

Returns
TypeDescription
Aggregation.Builder

clearField()

public Aggregation.Builder clearField()

The name of the field on which to aggregate.

string field = 1;

Returns
TypeDescription
Aggregation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHistogram()

public Aggregation.Builder clearHistogram()

Creates a bucketed histogram of field values.

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

Returns
TypeDescription
Aggregation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSum()

public Aggregation.Builder clearSum()

Sum over a numeric field.

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

Returns
TypeDescription
Aggregation.Builder

clone()

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

getAggregationFunctionCase()

public Aggregation.AggregationFunctionCase getAggregationFunctionCase()
Returns
TypeDescription
Aggregation.AggregationFunctionCase

getCount()

public Aggregation.Count getCount()

Count the number of matching objects.

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

Returns
TypeDescription
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
TypeDescription
Aggregation.Count.Builder

getCountOrBuilder()

public Aggregation.CountOrBuilder getCountOrBuilder()

Count the number of matching objects.

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

Returns
TypeDescription
Aggregation.CountOrBuilder

getDefaultInstanceForType()

public Aggregation getDefaultInstanceForType()
Returns
TypeDescription
Aggregation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getField()

public String getField()

The name of the field on which to aggregate.

string field = 1;

Returns
TypeDescription
String

The field.

getFieldBytes()

public ByteString getFieldBytes()

The name of the field on which to aggregate.

string field = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Aggregation.FrequencyOrBuilder

getHistogram()

public Aggregation.Histogram getHistogram()

Creates a bucketed histogram of field values.

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

Returns
TypeDescription
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
TypeDescription
Aggregation.Histogram.Builder

getHistogramOrBuilder()

public Aggregation.HistogramOrBuilder getHistogramOrBuilder()

Creates a bucketed histogram of field values.

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

Returns
TypeDescription
Aggregation.HistogramOrBuilder

getSum()

public Aggregation.Sum getSum()

Sum over a numeric field.

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

Returns
TypeDescription
Aggregation.Sum

The sum.

getSumBuilder()

public Aggregation.Sum.Builder getSumBuilder()

Sum over a numeric field.

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

Returns
TypeDescription
Aggregation.Sum.Builder

getSumOrBuilder()

public Aggregation.SumOrBuilder getSumOrBuilder()

Sum over a numeric field.

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

Returns
TypeDescription
Aggregation.SumOrBuilder

hasCount()

public boolean hasCount()

Count the number of matching objects.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the sum field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAggregation.Count
Returns
TypeDescription
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
NameDescription
valueAggregation.Frequency
Returns
TypeDescription
Aggregation.Builder

mergeFrom(Aggregation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Aggregation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueAggregation.Histogram
Returns
TypeDescription
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
NameDescription
valueAggregation.Sum
Returns
TypeDescription
Aggregation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Aggregation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAggregation.Count
Returns
TypeDescription
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
NameDescription
builderForValueAggregation.Count.Builder
Returns
TypeDescription
Aggregation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The field to set.

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

The bytes for field to set.

Returns
TypeDescription
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
NameDescription
valueAggregation.Frequency
Returns
TypeDescription
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
NameDescription
builderForValueAggregation.Frequency.Builder
Returns
TypeDescription
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
NameDescription
valueAggregation.Histogram
Returns
TypeDescription
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
NameDescription
builderForValueAggregation.Histogram.Builder
Returns
TypeDescription
Aggregation.Builder

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

public Aggregation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueAggregation.Sum
Returns
TypeDescription
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
NameDescription
builderForValueAggregation.Sum.Builder
Returns
TypeDescription
Aggregation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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