Send feedback
Class Aggregation (0.27.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.27.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
COUNT_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER
Field Value
Type
Description
int
FIELD_FIELD_NUMBER
public static final int FIELD_FIELD_NUMBER
Field Value
Type
Description
int
FREQUENCY_FIELD_NUMBER
public static final int FREQUENCY_FIELD_NUMBER
Field Value
Type
Description
int
HISTOGRAM_FIELD_NUMBER
public static final int HISTOGRAM_FIELD_NUMBER
Field Value
Type
Description
int
SUM_FIELD_NUMBER
public static final int SUM_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Aggregation getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Aggregation . Builder newBuilder ()
newBuilder(Aggregation prototype)
public static Aggregation . Builder newBuilder ( Aggregation prototype )
public static Aggregation parseDelimitedFrom ( InputStream input )
public static Aggregation parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Aggregation parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Aggregation parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Aggregation parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Aggregation parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Aggregation parseFrom ( CodedInputStream input )
public static Aggregation parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Aggregation parseFrom ( InputStream input )
public static Aggregation parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Aggregation parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Aggregation parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Aggregation> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAggregationFunctionCase()
public Aggregation . AggregationFunctionCase getAggregationFunctionCase ()
getCount()
public Aggregation . Count getCount ()
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
getCountOrBuilder()
public Aggregation . CountOrBuilder getCountOrBuilder ()
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
getDefaultInstanceForType()
public Aggregation getDefaultInstanceForType ()
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;
getFrequencyOrBuilder()
public Aggregation . FrequencyOrBuilder getFrequencyOrBuilder ()
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
getHistogram()
public Aggregation . Histogram getHistogram ()
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
getHistogramOrBuilder()
public Aggregation . HistogramOrBuilder getHistogramOrBuilder ()
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
getParserForType()
public Parser<Aggregation> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getSum()
public Aggregation . Sum getSum ()
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
getSumOrBuilder()
public Aggregation . SumOrBuilder getSumOrBuilder ()
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
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()
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
Returns
Type
Description
boolean
Whether the sum field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Aggregation . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Aggregation . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Aggregation . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]