Package com.google.datastore.v1
Class AggregationQuery.Aggregation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
-
- com.google.datastore.v1.AggregationQuery.Aggregation.Builder
-
- All Implemented Interfaces:
AggregationQuery.AggregationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AggregationQuery.Aggregation
public static final class AggregationQuery.Aggregation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder> implements AggregationQuery.AggregationOrBuilder
Defines an aggregation that produces a single result.
Protobuf typegoogle.datastore.v1.AggregationQuery.Aggregation
-
-
Method Summary
-
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<AggregationQuery.Aggregation.Builder>
-
clear
public AggregationQuery.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<AggregationQuery.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<AggregationQuery.Aggregation.Builder>
-
getDefaultInstanceForType
public AggregationQuery.Aggregation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AggregationQuery.Aggregation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AggregationQuery.Aggregation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AggregationQuery.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<AggregationQuery.Aggregation.Builder>
-
setField
public AggregationQuery.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<AggregationQuery.Aggregation.Builder>
-
clearField
public AggregationQuery.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<AggregationQuery.Aggregation.Builder>
-
clearOneof
public AggregationQuery.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<AggregationQuery.Aggregation.Builder>
-
setRepeatedField
public AggregationQuery.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<AggregationQuery.Aggregation.Builder>
-
addRepeatedField
public AggregationQuery.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<AggregationQuery.Aggregation.Builder>
-
mergeFrom
public AggregationQuery.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<AggregationQuery.Aggregation.Builder>
-
mergeFrom
public AggregationQuery.Aggregation.Builder mergeFrom(AggregationQuery.Aggregation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
-
mergeFrom
public AggregationQuery.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<AggregationQuery.Aggregation.Builder>
- Throws:
IOException
-
getOperatorCase
public AggregationQuery.Aggregation.OperatorCase getOperatorCase()
- Specified by:
getOperatorCase
in interfaceAggregationQuery.AggregationOrBuilder
-
clearOperator
public AggregationQuery.Aggregation.Builder clearOperator()
-
hasCount
public boolean hasCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
- Specified by:
hasCount
in interfaceAggregationQuery.AggregationOrBuilder
- Returns:
- Whether the count field is set.
-
getCount
public AggregationQuery.Aggregation.Count getCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
- Specified by:
getCount
in interfaceAggregationQuery.AggregationOrBuilder
- Returns:
- The count.
-
setCount
public AggregationQuery.Aggregation.Builder setCount(AggregationQuery.Aggregation.Count value)
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
-
setCount
public AggregationQuery.Aggregation.Builder setCount(AggregationQuery.Aggregation.Count.Builder builderForValue)
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
-
mergeCount
public AggregationQuery.Aggregation.Builder mergeCount(AggregationQuery.Aggregation.Count value)
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
-
clearCount
public AggregationQuery.Aggregation.Builder clearCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
-
getCountBuilder
public AggregationQuery.Aggregation.Count.Builder getCountBuilder()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
-
getCountOrBuilder
public AggregationQuery.Aggregation.CountOrBuilder getCountOrBuilder()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
- Specified by:
getCountOrBuilder
in interfaceAggregationQuery.AggregationOrBuilder
-
hasSum
public boolean hasSum()
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
- Specified by:
hasSum
in interfaceAggregationQuery.AggregationOrBuilder
- Returns:
- Whether the sum field is set.
-
getSum
public AggregationQuery.Aggregation.Sum getSum()
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
- Specified by:
getSum
in interfaceAggregationQuery.AggregationOrBuilder
- Returns:
- The sum.
-
setSum
public AggregationQuery.Aggregation.Builder setSum(AggregationQuery.Aggregation.Sum value)
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
-
setSum
public AggregationQuery.Aggregation.Builder setSum(AggregationQuery.Aggregation.Sum.Builder builderForValue)
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
-
mergeSum
public AggregationQuery.Aggregation.Builder mergeSum(AggregationQuery.Aggregation.Sum value)
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
-
clearSum
public AggregationQuery.Aggregation.Builder clearSum()
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
-
getSumBuilder
public AggregationQuery.Aggregation.Sum.Builder getSumBuilder()
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
-
getSumOrBuilder
public AggregationQuery.Aggregation.SumOrBuilder getSumOrBuilder()
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
- Specified by:
getSumOrBuilder
in interfaceAggregationQuery.AggregationOrBuilder
-
hasAvg
public boolean hasAvg()
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
- Specified by:
hasAvg
in interfaceAggregationQuery.AggregationOrBuilder
- Returns:
- Whether the avg field is set.
-
getAvg
public AggregationQuery.Aggregation.Avg getAvg()
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
- Specified by:
getAvg
in interfaceAggregationQuery.AggregationOrBuilder
- Returns:
- The avg.
-
setAvg
public AggregationQuery.Aggregation.Builder setAvg(AggregationQuery.Aggregation.Avg value)
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
-
setAvg
public AggregationQuery.Aggregation.Builder setAvg(AggregationQuery.Aggregation.Avg.Builder builderForValue)
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
-
mergeAvg
public AggregationQuery.Aggregation.Builder mergeAvg(AggregationQuery.Aggregation.Avg value)
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
-
clearAvg
public AggregationQuery.Aggregation.Builder clearAvg()
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
-
getAvgBuilder
public AggregationQuery.Aggregation.Avg.Builder getAvgBuilder()
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
-
getAvgOrBuilder
public AggregationQuery.Aggregation.AvgOrBuilder getAvgOrBuilder()
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
- Specified by:
getAvgOrBuilder
in interfaceAggregationQuery.AggregationOrBuilder
-
getAlias
public String getAlias()
Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_<incremental_id++>`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to [entity property name][google.datastore.v1.Entity.properties] limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAlias
in interfaceAggregationQuery.AggregationOrBuilder
- Returns:
- The alias.
-
getAliasBytes
public com.google.protobuf.ByteString getAliasBytes()
Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_<incremental_id++>`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to [entity property name][google.datastore.v1.Entity.properties] limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAliasBytes
in interfaceAggregationQuery.AggregationOrBuilder
- Returns:
- The bytes for alias.
-
setAlias
public AggregationQuery.Aggregation.Builder setAlias(String value)
Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_<incremental_id++>`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to [entity property name][google.datastore.v1.Entity.properties] limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The alias to set.- Returns:
- This builder for chaining.
-
clearAlias
public AggregationQuery.Aggregation.Builder clearAlias()
Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_<incremental_id++>`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to [entity property name][google.datastore.v1.Entity.properties] limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setAliasBytes
public AggregationQuery.Aggregation.Builder setAliasBytes(com.google.protobuf.ByteString value)
Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_<incremental_id++>`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to [entity property name][google.datastore.v1.Entity.properties] limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for alias to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AggregationQuery.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<AggregationQuery.Aggregation.Builder>
-
mergeUnknownFields
public final AggregationQuery.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<AggregationQuery.Aggregation.Builder>
-
-