Class Aggregation (0.6.0)

public final class Aggregation extends GeneratedMessageV3 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 Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

FIELD_FIELD_NUMBER

public static final int FIELD_FIELD_NUMBER
Field Value
TypeDescription
int

FREQUENCY_FIELD_NUMBER

public static final int FREQUENCY_FIELD_NUMBER
Field Value
TypeDescription
int

HISTOGRAM_FIELD_NUMBER

public static final int HISTOGRAM_FIELD_NUMBER
Field Value
TypeDescription
int

SUM_FIELD_NUMBER

public static final int SUM_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Aggregation getDefaultInstance()
Returns
TypeDescription
Aggregation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Aggregation.Builder newBuilder()
Returns
TypeDescription
Aggregation.Builder

newBuilder(Aggregation prototype)

public static Aggregation.Builder newBuilder(Aggregation prototype)
Parameter
NameDescription
prototypeAggregation
Returns
TypeDescription
Aggregation.Builder

parseDelimitedFrom(InputStream input)

public static Aggregation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Aggregation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Aggregation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Aggregation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Aggregation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Aggregation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Aggregation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Aggregation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Aggregation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Aggregation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Aggregation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Aggregation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Aggregation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Aggregation> parser()
Returns
TypeDescription
Parser<Aggregation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

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.

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.

getHistogramOrBuilder()

public Aggregation.HistogramOrBuilder getHistogramOrBuilder()

Creates a bucketed histogram of field values.

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

Returns
TypeDescription
Aggregation.HistogramOrBuilder

getParserForType()

public Parser<Aggregation> getParserForType()
Returns
TypeDescription
Parser<Aggregation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSum()

public Aggregation.Sum getSum()

Sum over a numeric field.

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

Returns
TypeDescription
Aggregation.Sum

The sum.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Aggregation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Aggregation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException