Class AggregationResult.Builder (0.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AggregationResult build()
Returns
TypeDescription
AggregationResult

buildPartial()

public AggregationResult buildPartial()
Returns
TypeDescription
AggregationResult

clear()

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

clearCount()

public AggregationResult.Builder clearCount()

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

Returns
TypeDescription
AggregationResult.Builder

clearField()

public AggregationResult.Builder clearField()

string field = 1;

Returns
TypeDescription
AggregationResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFrequency()

public AggregationResult.Builder clearFrequency()

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

Returns
TypeDescription
AggregationResult.Builder

clearHistogram()

public AggregationResult.Builder clearHistogram()

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

Returns
TypeDescription
AggregationResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResult()

public AggregationResult.Builder clearResult()
Returns
TypeDescription
AggregationResult.Builder

clearSum()

public AggregationResult.Builder clearSum()

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

Returns
TypeDescription
AggregationResult.Builder

clone()

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

getCount()

public AggregationResult.Count getCount()

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

Returns
TypeDescription
AggregationResult.Count

The count.

getCountBuilder()

public AggregationResult.Count.Builder getCountBuilder()

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

Returns
TypeDescription
AggregationResult.Count.Builder

getCountOrBuilder()

public AggregationResult.CountOrBuilder getCountOrBuilder()

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

Returns
TypeDescription
AggregationResult.CountOrBuilder

getDefaultInstanceForType()

public AggregationResult getDefaultInstanceForType()
Returns
TypeDescription
AggregationResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getField()

public String getField()

string field = 1;

Returns
TypeDescription
String

The field.

getFieldBytes()

public ByteString getFieldBytes()

string field = 1;

Returns
TypeDescription
ByteString

The bytes for field.

getFrequency()

public AggregationResult.Frequency getFrequency()

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

Returns
TypeDescription
AggregationResult.Frequency

The frequency.

getFrequencyBuilder()

public AggregationResult.Frequency.Builder getFrequencyBuilder()

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

Returns
TypeDescription
AggregationResult.Frequency.Builder

getFrequencyOrBuilder()

public AggregationResult.FrequencyOrBuilder getFrequencyOrBuilder()

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

Returns
TypeDescription
AggregationResult.FrequencyOrBuilder

getHistogram()

public AggregationResult.Histogram getHistogram()

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

Returns
TypeDescription
AggregationResult.Histogram

The histogram.

getHistogramBuilder()

public AggregationResult.Histogram.Builder getHistogramBuilder()

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

Returns
TypeDescription
AggregationResult.Histogram.Builder

getHistogramOrBuilder()

public AggregationResult.HistogramOrBuilder getHistogramOrBuilder()

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

Returns
TypeDescription
AggregationResult.HistogramOrBuilder

getResultCase()

public AggregationResult.ResultCase getResultCase()
Returns
TypeDescription
AggregationResult.ResultCase

getSum()

public AggregationResult.Sum getSum()

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

Returns
TypeDescription
AggregationResult.Sum

The sum.

getSumBuilder()

public AggregationResult.Sum.Builder getSumBuilder()

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

Returns
TypeDescription
AggregationResult.Sum.Builder

getSumOrBuilder()

public AggregationResult.SumOrBuilder getSumOrBuilder()

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

Returns
TypeDescription
AggregationResult.SumOrBuilder

hasCount()

public boolean hasCount()

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

Returns
TypeDescription
boolean

Whether the count field is set.

hasFrequency()

public boolean hasFrequency()

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

Returns
TypeDescription
boolean

Whether the frequency field is set.

hasHistogram()

public boolean hasHistogram()

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

Returns
TypeDescription
boolean

Whether the histogram field is set.

hasSum()

public boolean hasSum()

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

public AggregationResult.Builder mergeCount(AggregationResult.Count value)

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

Parameter
NameDescription
valueAggregationResult.Count
Returns
TypeDescription
AggregationResult.Builder

mergeFrequency(AggregationResult.Frequency value)

public AggregationResult.Builder mergeFrequency(AggregationResult.Frequency value)

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

Parameter
NameDescription
valueAggregationResult.Frequency
Returns
TypeDescription
AggregationResult.Builder

mergeFrom(AggregationResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHistogram(AggregationResult.Histogram value)

public AggregationResult.Builder mergeHistogram(AggregationResult.Histogram value)

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

Parameter
NameDescription
valueAggregationResult.Histogram
Returns
TypeDescription
AggregationResult.Builder

mergeSum(AggregationResult.Sum value)

public AggregationResult.Builder mergeSum(AggregationResult.Sum value)

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

Parameter
NameDescription
valueAggregationResult.Sum
Returns
TypeDescription
AggregationResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCount(AggregationResult.Count value)

public AggregationResult.Builder setCount(AggregationResult.Count value)

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

Parameter
NameDescription
valueAggregationResult.Count
Returns
TypeDescription
AggregationResult.Builder

setCount(AggregationResult.Count.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueAggregationResult.Count.Builder
Returns
TypeDescription
AggregationResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setField(String value)

public AggregationResult.Builder setField(String value)

string field = 1;

Parameter
NameDescription
valueString

The field to set.

Returns
TypeDescription
AggregationResult.Builder

This builder for chaining.

setFieldBytes(ByteString value)

public AggregationResult.Builder setFieldBytes(ByteString value)

string field = 1;

Parameter
NameDescription
valueByteString

The bytes for field to set.

Returns
TypeDescription
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
NameDescription
valueAggregationResult.Frequency
Returns
TypeDescription
AggregationResult.Builder

setFrequency(AggregationResult.Frequency.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueAggregationResult.Frequency.Builder
Returns
TypeDescription
AggregationResult.Builder

setHistogram(AggregationResult.Histogram value)

public AggregationResult.Builder setHistogram(AggregationResult.Histogram value)

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

Parameter
NameDescription
valueAggregationResult.Histogram
Returns
TypeDescription
AggregationResult.Builder

setHistogram(AggregationResult.Histogram.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueAggregationResult.Histogram.Builder
Returns
TypeDescription
AggregationResult.Builder

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

public AggregationResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AggregationResult.Builder
Overrides

setSum(AggregationResult.Sum value)

public AggregationResult.Builder setSum(AggregationResult.Sum value)

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

Parameter
NameDescription
valueAggregationResult.Sum
Returns
TypeDescription
AggregationResult.Builder

setSum(AggregationResult.Sum.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueAggregationResult.Sum.Builder
Returns
TypeDescription
AggregationResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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