Class Aggregation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.cloud.migrationcenter.v1.Aggregation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Aggregation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Aggregation
build()
Aggregation
buildPartial()
Aggregation.Builder
clear()
Aggregation.Builder
clearAggregationFunction()
Aggregation.Builder
clearCount()
Count the number of matching objects.Aggregation.Builder
clearField()
The name of the field on which to aggregate.Aggregation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Aggregation.Builder
clearFrequency()
Creates a frequency distribution of all field values.Aggregation.Builder
clearHistogram()
Creates a bucketed histogram of field values.Aggregation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Aggregation.Builder
clearSum()
Sum over a numeric field.Aggregation.Builder
clone()
Aggregation.AggregationFunctionCase
getAggregationFunctionCase()
Aggregation.Count
getCount()
Count the number of matching objects.Aggregation.Count.Builder
getCountBuilder()
Count the number of matching objects.Aggregation.CountOrBuilder
getCountOrBuilder()
Count the number of matching objects.Aggregation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getField()
The name of the field on which to aggregate.com.google.protobuf.ByteString
getFieldBytes()
The name of the field on which to aggregate.Aggregation.Frequency
getFrequency()
Creates a frequency distribution of all field values.Aggregation.Frequency.Builder
getFrequencyBuilder()
Creates a frequency distribution of all field values.Aggregation.FrequencyOrBuilder
getFrequencyOrBuilder()
Creates a frequency distribution of all field values.Aggregation.Histogram
getHistogram()
Creates a bucketed histogram of field values.Aggregation.Histogram.Builder
getHistogramBuilder()
Creates a bucketed histogram of field values.Aggregation.HistogramOrBuilder
getHistogramOrBuilder()
Creates a bucketed histogram of field values.Aggregation.Sum
getSum()
Sum over a numeric field.Aggregation.Sum.Builder
getSumBuilder()
Sum over a numeric field.Aggregation.SumOrBuilder
getSumOrBuilder()
Sum over a numeric field.boolean
hasCount()
Count the number of matching objects.boolean
hasFrequency()
Creates a frequency distribution of all field values.boolean
hasHistogram()
Creates a bucketed histogram of field values.boolean
hasSum()
Sum over a numeric field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Aggregation.Builder
mergeCount(Aggregation.Count value)
Count the number of matching objects.Aggregation.Builder
mergeFrequency(Aggregation.Frequency value)
Creates a frequency distribution of all field values.Aggregation.Builder
mergeFrom(Aggregation other)
Aggregation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Aggregation.Builder
mergeFrom(com.google.protobuf.Message other)
Aggregation.Builder
mergeHistogram(Aggregation.Histogram value)
Creates a bucketed histogram of field values.Aggregation.Builder
mergeSum(Aggregation.Sum value)
Sum over a numeric field.Aggregation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Aggregation.Builder
setCount(Aggregation.Count value)
Count the number of matching objects.Aggregation.Builder
setCount(Aggregation.Count.Builder builderForValue)
Count the number of matching objects.Aggregation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Aggregation.Builder
setField(String value)
The name of the field on which to aggregate.Aggregation.Builder
setFieldBytes(com.google.protobuf.ByteString value)
The name of the field on which to aggregate.Aggregation.Builder
setFrequency(Aggregation.Frequency value)
Creates a frequency distribution of all field values.Aggregation.Builder
setFrequency(Aggregation.Frequency.Builder builderForValue)
Creates a frequency distribution of all field values.Aggregation.Builder
setHistogram(Aggregation.Histogram value)
Creates a bucketed histogram of field values.Aggregation.Builder
setHistogram(Aggregation.Histogram.Builder builderForValue)
Creates a bucketed histogram of field values.Aggregation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Aggregation.Builder
setSum(Aggregation.Sum value)
Sum over a numeric field.Aggregation.Builder
setSum(Aggregation.Sum.Builder builderForValue)
Sum over a numeric field.Aggregation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
clear
public Aggregation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
getDefaultInstanceForType
public Aggregation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Aggregation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Aggregation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Aggregation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
setField
public Aggregation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
clearField
public Aggregation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
clearOneof
public Aggregation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
setRepeatedField
public Aggregation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
addRepeatedField
public Aggregation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
mergeFrom
public Aggregation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Aggregation.Builder>
-
mergeFrom
public Aggregation.Builder mergeFrom(Aggregation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
mergeFrom
public Aggregation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Aggregation.Builder>
- Throws:
IOException
-
getAggregationFunctionCase
public Aggregation.AggregationFunctionCase getAggregationFunctionCase()
- Specified by:
getAggregationFunctionCase
in interfaceAggregationOrBuilder
-
clearAggregationFunction
public Aggregation.Builder clearAggregationFunction()
-
getField
public String getField()
The name of the field on which to aggregate.
string field = 1;
- Specified by:
getField
in 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:
getFieldBytes
in interfaceAggregationOrBuilder
- Returns:
- The bytes for field.
-
setField
public Aggregation.Builder setField(String value)
The name of the field on which to aggregate.
string field = 1;
- Parameters:
value
- The field to set.- Returns:
- This builder for chaining.
-
clearField
public Aggregation.Builder clearField()
The name of the field on which to aggregate.
string field = 1;
- Returns:
- This builder for chaining.
-
setFieldBytes
public Aggregation.Builder setFieldBytes(com.google.protobuf.ByteString value)
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:
hasCount
in interfaceAggregationOrBuilder
- Returns:
- Whether the count field is set.
-
getCount
public Aggregation.Count getCount()
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
- Specified by:
getCount
in interfaceAggregationOrBuilder
- Returns:
- The count.
-
setCount
public Aggregation.Builder setCount(Aggregation.Count value)
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
-
setCount
public Aggregation.Builder setCount(Aggregation.Count.Builder builderForValue)
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
-
mergeCount
public Aggregation.Builder mergeCount(Aggregation.Count value)
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
-
clearCount
public Aggregation.Builder clearCount()
Count the number of matching objects.
.google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
-
getCountBuilder
public Aggregation.Count.Builder getCountBuilder()
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;
- Specified by:
getCountOrBuilder
in interfaceAggregationOrBuilder
-
hasSum
public boolean hasSum()
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
- Specified by:
hasSum
in interfaceAggregationOrBuilder
- Returns:
- Whether the sum field is set.
-
getSum
public Aggregation.Sum getSum()
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
- Specified by:
getSum
in interfaceAggregationOrBuilder
- Returns:
- The sum.
-
setSum
public Aggregation.Builder setSum(Aggregation.Sum value)
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
-
setSum
public Aggregation.Builder setSum(Aggregation.Sum.Builder builderForValue)
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
-
mergeSum
public Aggregation.Builder mergeSum(Aggregation.Sum value)
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
-
clearSum
public Aggregation.Builder clearSum()
Sum over a numeric field.
.google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
-
getSumBuilder
public Aggregation.Sum.Builder getSumBuilder()
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;
- Specified by:
getSumOrBuilder
in interfaceAggregationOrBuilder
-
hasHistogram
public boolean hasHistogram()
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
- Specified by:
hasHistogram
in interfaceAggregationOrBuilder
- Returns:
- Whether the histogram field is set.
-
getHistogram
public Aggregation.Histogram getHistogram()
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
- Specified by:
getHistogram
in interfaceAggregationOrBuilder
- Returns:
- The histogram.
-
setHistogram
public Aggregation.Builder setHistogram(Aggregation.Histogram value)
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
-
setHistogram
public Aggregation.Builder setHistogram(Aggregation.Histogram.Builder builderForValue)
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
-
mergeHistogram
public Aggregation.Builder mergeHistogram(Aggregation.Histogram value)
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
-
clearHistogram
public Aggregation.Builder clearHistogram()
Creates a bucketed histogram of field values.
.google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
-
getHistogramBuilder
public Aggregation.Histogram.Builder getHistogramBuilder()
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;
- Specified by:
getHistogramOrBuilder
in interfaceAggregationOrBuilder
-
hasFrequency
public boolean hasFrequency()
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
- Specified by:
hasFrequency
in interfaceAggregationOrBuilder
- Returns:
- Whether the frequency field is set.
-
getFrequency
public Aggregation.Frequency getFrequency()
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
- Specified by:
getFrequency
in interfaceAggregationOrBuilder
- Returns:
- The frequency.
-
setFrequency
public Aggregation.Builder setFrequency(Aggregation.Frequency value)
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
-
setFrequency
public Aggregation.Builder setFrequency(Aggregation.Frequency.Builder builderForValue)
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
-
mergeFrequency
public Aggregation.Builder mergeFrequency(Aggregation.Frequency value)
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
-
clearFrequency
public Aggregation.Builder clearFrequency()
Creates a frequency distribution of all field values.
.google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
-
getFrequencyBuilder
public Aggregation.Frequency.Builder getFrequencyBuilder()
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;
- Specified by:
getFrequencyOrBuilder
in interfaceAggregationOrBuilder
-
setUnknownFields
public final Aggregation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
mergeUnknownFields
public final Aggregation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Builder>
-
-