Class Aggregation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Aggregation.Builder>
com.google.cloud.migrationcenter.v1.Aggregation.Builder
- All Implemented Interfaces:
AggregationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Aggregation
public static final class Aggregation.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Count the number of matching objects.The name of the field on which to aggregate.Creates a frequency distribution of all field values.Creates a bucketed histogram of field values.clearSum()Sum over a numeric field.getCount()Count the number of matching objects.Count the number of matching objects.Count the number of matching objects.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetField()The name of the field on which to aggregate.com.google.protobuf.ByteStringThe name of the field on which to aggregate.Creates a frequency distribution of all field values.Creates a frequency distribution of all field values.Creates a frequency distribution of all field values.Creates a bucketed histogram of field values.Creates a bucketed histogram of field values.Creates a bucketed histogram of field values.getSum()Sum over a numeric field.Sum over a numeric field.Sum over a numeric field.booleanhasCount()Count the number of matching objects.booleanCreates a frequency distribution of all field values.booleanCreates a bucketed histogram of field values.booleanhasSum()Sum over a numeric field.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCount(Aggregation.Count value) Count the number of matching objects.Creates a frequency distribution of all field values.mergeFrom(Aggregation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Creates a bucketed histogram of field values.mergeSum(Aggregation.Sum value) Sum over a numeric field.setCount(Aggregation.Count value) Count the number of matching objects.setCount(Aggregation.Count.Builder builderForValue) Count the number of matching objects.The name of the field on which to aggregate.setFieldBytes(com.google.protobuf.ByteString value) The name of the field on which to aggregate.Creates a frequency distribution of all field values.setFrequency(Aggregation.Frequency.Builder builderForValue) Creates a frequency distribution of all field values.Creates a bucketed histogram of field values.setHistogram(Aggregation.Histogram.Builder builderForValue) Creates a bucketed histogram of field values.setSum(Aggregation.Sum value) Sum over a numeric field.setSum(Aggregation.Sum.Builder builderForValue) Sum over a numeric field.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Aggregation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Aggregation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Aggregation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Aggregation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Aggregation.Builder>
-
mergeFrom
public Aggregation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Aggregation.Builder>- Throws:
IOException
-
getAggregationFunctionCase
- Specified by:
getAggregationFunctionCasein interfaceAggregationOrBuilder
-
clearAggregationFunction
-
getField
The name of the field on which to aggregate.
string field = 1;- Specified by:
getFieldin interfaceAggregationOrBuilder- Returns:
- The field.
-
getFieldBytes
public com.google.protobuf.ByteString getFieldBytes()The name of the field on which to aggregate.
string field = 1;- Specified by:
getFieldBytesin interfaceAggregationOrBuilder- Returns:
- The bytes for field.
-
setField
The name of the field on which to aggregate.
string field = 1;- Parameters:
value- The field to set.- Returns:
- This builder for chaining.
-
clearField
The name of the field on which to aggregate.
string field = 1;- Returns:
- This builder for chaining.
-
setFieldBytes
The name of the field on which to aggregate.
string field = 1;- Parameters:
value- The bytes for field to set.- Returns:
- This builder for chaining.
-
hasCount
public boolean hasCount()Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;- Specified by:
hasCountin interfaceAggregationOrBuilder- Returns:
- Whether the count field is set.
-
getCount
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;- Specified by:
getCountin interfaceAggregationOrBuilder- Returns:
- The count.
-
setCount
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2; -
setCount
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2; -
mergeCount
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2; -
clearCount
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2; -
getCountBuilder
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2; -
getCountOrBuilder
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;- Specified by:
getCountOrBuilderin interfaceAggregationOrBuilder
-
hasSum
public boolean hasSum()Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;- Specified by:
hasSumin interfaceAggregationOrBuilder- Returns:
- Whether the sum field is set.
-
getSum
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;- Specified by:
getSumin interfaceAggregationOrBuilder- Returns:
- The sum.
-
setSum
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3; -
setSum
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3; -
mergeSum
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3; -
clearSum
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3; -
getSumBuilder
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3; -
getSumOrBuilder
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;- Specified by:
getSumOrBuilderin interfaceAggregationOrBuilder
-
hasHistogram
public boolean hasHistogram()Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;- Specified by:
hasHistogramin interfaceAggregationOrBuilder- Returns:
- Whether the histogram field is set.
-
getHistogram
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;- Specified by:
getHistogramin interfaceAggregationOrBuilder- Returns:
- The histogram.
-
setHistogram
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4; -
setHistogram
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4; -
mergeHistogram
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4; -
clearHistogram
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4; -
getHistogramBuilder
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4; -
getHistogramOrBuilder
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;- Specified by:
getHistogramOrBuilderin interfaceAggregationOrBuilder
-
hasFrequency
public boolean hasFrequency()Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;- Specified by:
hasFrequencyin interfaceAggregationOrBuilder- Returns:
- Whether the frequency field is set.
-
getFrequency
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;- Specified by:
getFrequencyin interfaceAggregationOrBuilder- Returns:
- The frequency.
-
setFrequency
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5; -
setFrequency
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5; -
mergeFrequency
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5; -
clearFrequency
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5; -
getFrequencyBuilder
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5; -
getFrequencyOrBuilder
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;- Specified by:
getFrequencyOrBuilderin interfaceAggregationOrBuilder
-