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 type
google.datastore.v1.AggregationQuery.Aggregation-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Optional.clearAvg()Average aggregator.Count aggregator.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clearSum()Sum aggregator.clone()getAlias()Optional.com.google.protobuf.ByteStringOptional.getAvg()Average aggregator.Average aggregator.Average aggregator.getCount()Count aggregator.Count aggregator.Count aggregator.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetSum()Sum aggregator.Sum aggregator.Sum aggregator.booleanhasAvg()Average aggregator.booleanhasCount()Count aggregator.booleanhasSum()Sum aggregator.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanAverage aggregator.Count aggregator.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Sum aggregator.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Optional.setAliasBytes(com.google.protobuf.ByteString value) Optional.Average aggregator.setAvg(AggregationQuery.Aggregation.Avg.Builder builderForValue) Average aggregator.Count aggregator.setCount(AggregationQuery.Aggregation.Count.Builder builderForValue) Count aggregator.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Sum aggregator.setSum(AggregationQuery.Aggregation.Sum.Builder builderForValue) Sum aggregator.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, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.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.GeneratedMessageV3.Builder<AggregationQuery.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
-
setField
public AggregationQuery.Aggregation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
-
clearField
public AggregationQuery.Aggregation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
-
clearOneof
public AggregationQuery.Aggregation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
-
addRepeatedField
public AggregationQuery.Aggregation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AggregationQuery.Aggregation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AggregationQuery.Aggregation.Builder>- Throws:
IOException
-
getOperatorCase
- Specified by:
getOperatorCasein interfaceAggregationQuery.AggregationOrBuilder
-
clearOperator
-
hasCount
public boolean hasCount()Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;- Specified by:
hasCountin interfaceAggregationQuery.AggregationOrBuilder- Returns:
- Whether the count field is set.
-
getCount
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;- Specified by:
getCountin interfaceAggregationQuery.AggregationOrBuilder- Returns:
- The count.
-
setCount
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
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1; -
clearCount
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1; -
getCountBuilder
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1; -
getCountOrBuilder
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;- Specified by:
getCountOrBuilderin interfaceAggregationQuery.AggregationOrBuilder
-
hasSum
public boolean hasSum()Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;- Specified by:
hasSumin interfaceAggregationQuery.AggregationOrBuilder- Returns:
- Whether the sum field is set.
-
getSum
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;- Specified by:
getSumin interfaceAggregationQuery.AggregationOrBuilder- Returns:
- The sum.
-
setSum
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
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2; -
clearSum
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2; -
getSumBuilder
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2; -
getSumOrBuilder
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;- Specified by:
getSumOrBuilderin interfaceAggregationQuery.AggregationOrBuilder
-
hasAvg
public boolean hasAvg()Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;- Specified by:
hasAvgin interfaceAggregationQuery.AggregationOrBuilder- Returns:
- Whether the avg field is set.
-
getAvg
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;- Specified by:
getAvgin interfaceAggregationQuery.AggregationOrBuilder- Returns:
- The avg.
-
setAvg
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
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3; -
clearAvg
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3; -
getAvgBuilder
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3; -
getAvgOrBuilder
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;- Specified by:
getAvgOrBuilderin interfaceAggregationQuery.AggregationOrBuilder
-
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:
getAliasin 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:
getAliasBytesin interfaceAggregationQuery.AggregationOrBuilder- Returns:
- The bytes for alias.
-
setAlias
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
-
mergeUnknownFields
public final AggregationQuery.Aggregation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
-