Package com.google.datastore.v1
Interface AggregationQuery.AggregationOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AggregationQuery.Aggregation
,AggregationQuery.Aggregation.Builder
- Enclosing class:
- AggregationQuery
public static interface AggregationQuery.AggregationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAlias()
Optional.com.google.protobuf.ByteString
getAliasBytes()
Optional.AggregationQuery.Aggregation.Avg
getAvg()
Average aggregator.AggregationQuery.Aggregation.AvgOrBuilder
getAvgOrBuilder()
Average aggregator.AggregationQuery.Aggregation.Count
getCount()
Count aggregator.AggregationQuery.Aggregation.CountOrBuilder
getCountOrBuilder()
Count aggregator.AggregationQuery.Aggregation.OperatorCase
getOperatorCase()
AggregationQuery.Aggregation.Sum
getSum()
Sum aggregator.AggregationQuery.Aggregation.SumOrBuilder
getSumOrBuilder()
Sum aggregator.boolean
hasAvg()
Average aggregator.boolean
hasCount()
Count aggregator.boolean
hasSum()
Sum aggregator.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasCount
boolean hasCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
- Returns:
- Whether the count field is set.
-
getCount
AggregationQuery.Aggregation.Count getCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
- Returns:
- The count.
-
getCountOrBuilder
AggregationQuery.Aggregation.CountOrBuilder getCountOrBuilder()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
-
hasSum
boolean hasSum()
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
- Returns:
- Whether the sum field is set.
-
getSum
AggregationQuery.Aggregation.Sum getSum()
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
- Returns:
- The sum.
-
getSumOrBuilder
AggregationQuery.Aggregation.SumOrBuilder getSumOrBuilder()
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
-
hasAvg
boolean hasAvg()
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
- Returns:
- Whether the avg field is set.
-
getAvg
AggregationQuery.Aggregation.Avg getAvg()
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
- Returns:
- The avg.
-
getAvgOrBuilder
AggregationQuery.Aggregation.AvgOrBuilder getAvgOrBuilder()
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
-
getAlias
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];
- Returns:
- The alias.
-
getAliasBytes
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];
- Returns:
- The bytes for alias.
-
getOperatorCase
AggregationQuery.Aggregation.OperatorCase getOperatorCase()
-
-