Class AggregationResult.Builder (0.25.0)

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

Message describing a result of an aggregation.

Protobuf type google.cloud.migrationcenter.v1.AggregationResult

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AggregationResult build()
Returns
Type Description
AggregationResult

buildPartial()

public AggregationResult buildPartial()
Returns
Type Description
AggregationResult

clear()

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

clearCount()

public AggregationResult.Builder clearCount()

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

Returns
Type Description
AggregationResult.Builder

clearField()

public AggregationResult.Builder clearField()

string field = 1;

Returns
Type Description
AggregationResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFrequency()

public AggregationResult.Builder clearFrequency()

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

Returns
Type Description
AggregationResult.Builder

clearHistogram()

public AggregationResult.Builder clearHistogram()

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

Returns
Type Description
AggregationResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResult()

public AggregationResult.Builder clearResult()
Returns
Type Description
AggregationResult.Builder

clearSum()

public AggregationResult.Builder clearSum()

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

Returns
Type Description
AggregationResult.Builder

clone()

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

getCount()

public AggregationResult.Count getCount()

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

Returns
Type Description
AggregationResult.Count

The count.

getCountBuilder()

public AggregationResult.Count.Builder getCountBuilder()

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

Returns
Type Description
AggregationResult.Count.Builder

getCountOrBuilder()

public AggregationResult.CountOrBuilder getCountOrBuilder()

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

Returns
Type Description
AggregationResult.CountOrBuilder

getDefaultInstanceForType()

public AggregationResult getDefaultInstanceForType()
Returns
Type Description
AggregationResult

getDescriptorForType()

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

getField()

public String getField()

string field = 1;

Returns
Type Description
String

The field.

getFieldBytes()

public ByteString getFieldBytes()

string field = 1;

Returns
Type Description
ByteString

The bytes for field.

getFrequency()

public AggregationResult.Frequency getFrequency()

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

Returns
Type Description
AggregationResult.Frequency

The frequency.

getFrequencyBuilder()

public AggregationResult.Frequency.Builder getFrequencyBuilder()

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

Returns
Type Description
AggregationResult.Frequency.Builder

getFrequencyOrBuilder()

public AggregationResult.FrequencyOrBuilder getFrequencyOrBuilder()

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

Returns
Type Description
AggregationResult.FrequencyOrBuilder

getHistogram()

public AggregationResult.Histogram getHistogram()

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

Returns
Type Description
AggregationResult.Histogram

The histogram.

getHistogramBuilder()

public AggregationResult.Histogram.Builder getHistogramBuilder()

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

Returns
Type Description
AggregationResult.Histogram.Builder

getHistogramOrBuilder()

public AggregationResult.HistogramOrBuilder getHistogramOrBuilder()

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

Returns
Type Description
AggregationResult.HistogramOrBuilder

getResultCase()

public AggregationResult.ResultCase getResultCase()
Returns
Type Description
AggregationResult.ResultCase

getSum()

public AggregationResult.Sum getSum()

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

Returns
Type Description
AggregationResult.Sum

The sum.

getSumBuilder()

public AggregationResult.Sum.Builder getSumBuilder()

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

Returns
Type Description
AggregationResult.Sum.Builder

getSumOrBuilder()

public AggregationResult.SumOrBuilder getSumOrBuilder()

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

Returns
Type Description
AggregationResult.SumOrBuilder

hasCount()

public boolean hasCount()

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

Returns
Type Description
boolean

Whether the count field is set.

hasFrequency()

public boolean hasFrequency()

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

Returns
Type Description
boolean

Whether the frequency field is set.

hasHistogram()

public boolean hasHistogram()

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

Returns
Type Description
boolean

Whether the histogram field is set.

hasSum()

public boolean hasSum()

.google.cloud.migrationcenter.v1.AggregationResult.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(AggregationResult.Count value)

public AggregationResult.Builder mergeCount(AggregationResult.Count value)

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

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

mergeFrequency(AggregationResult.Frequency value)

public AggregationResult.Builder mergeFrequency(AggregationResult.Frequency value)

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

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

mergeFrom(AggregationResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHistogram(AggregationResult.Histogram value)

public AggregationResult.Builder mergeHistogram(AggregationResult.Histogram value)

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

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

mergeSum(AggregationResult.Sum value)

public AggregationResult.Builder mergeSum(AggregationResult.Sum value)

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCount(AggregationResult.Count value)

public AggregationResult.Builder setCount(AggregationResult.Count value)

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

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

setCount(AggregationResult.Count.Builder builderForValue)

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

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setField(String value)

public AggregationResult.Builder setField(String value)

string field = 1;

Parameter
Name Description
value String

The field to set.

Returns
Type Description
AggregationResult.Builder

This builder for chaining.

setFieldBytes(ByteString value)

public AggregationResult.Builder setFieldBytes(ByteString value)

string field = 1;

Parameter
Name Description
value ByteString

The bytes for field to set.

Returns
Type Description
AggregationResult.Builder

This builder for chaining.

setFrequency(AggregationResult.Frequency value)

public AggregationResult.Builder setFrequency(AggregationResult.Frequency value)

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

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

setFrequency(AggregationResult.Frequency.Builder builderForValue)

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

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

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

setHistogram(AggregationResult.Histogram value)

public AggregationResult.Builder setHistogram(AggregationResult.Histogram value)

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

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

setHistogram(AggregationResult.Histogram.Builder builderForValue)

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

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

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

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

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

setSum(AggregationResult.Sum value)

public AggregationResult.Builder setSum(AggregationResult.Sum value)

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

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

setSum(AggregationResult.Sum.Builder builderForValue)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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