public static final class AggregationQuery.Builder extends GeneratedMessageV3.Builder<AggregationQuery.Builder> implements AggregationQueryOrBuilder
Datastore query for running an aggregation over a
Query.
Protobuf type google.datastore.v1.AggregationQuery
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAggregations(AggregationQuery.Aggregation value)
public AggregationQuery.Builder addAggregations(AggregationQuery.Aggregation value)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
addAggregations(AggregationQuery.Aggregation.Builder builderForValue)
public AggregationQuery.Builder addAggregations(AggregationQuery.Aggregation.Builder builderForValue)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
addAggregations(int index, AggregationQuery.Aggregation value)
public AggregationQuery.Builder addAggregations(int index, AggregationQuery.Aggregation value)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
addAggregations(int index, AggregationQuery.Aggregation.Builder builderForValue)
public AggregationQuery.Builder addAggregations(int index, AggregationQuery.Aggregation.Builder builderForValue)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
addAggregationsBuilder()
public AggregationQuery.Aggregation.Builder addAggregationsBuilder()
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
addAggregationsBuilder(int index)
public AggregationQuery.Aggregation.Builder addAggregationsBuilder(int index)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
addAllAggregations(Iterable<? extends AggregationQuery.Aggregation> values)
public AggregationQuery.Builder addAllAggregations(Iterable<? extends AggregationQuery.Aggregation> values)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
values | Iterable<? extends com.google.datastore.v1.AggregationQuery.Aggregation>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AggregationQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AggregationQuery build()
Returns
buildPartial()
public AggregationQuery buildPartial()
Returns
clear()
public AggregationQuery.Builder clear()
Returns
Overrides
clearAggregations()
public AggregationQuery.Builder clearAggregations()
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
clearField(Descriptors.FieldDescriptor field)
public AggregationQuery.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNestedQuery()
public AggregationQuery.Builder clearNestedQuery()
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AggregationQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearQueryType()
public AggregationQuery.Builder clearQueryType()
Returns
clone()
public AggregationQuery.Builder clone()
Returns
Overrides
getAggregations(int index)
public AggregationQuery.Aggregation getAggregations(int index)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getAggregationsBuilder(int index)
public AggregationQuery.Aggregation.Builder getAggregationsBuilder(int index)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getAggregationsBuilderList()
public List<AggregationQuery.Aggregation.Builder> getAggregationsBuilderList()
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getAggregationsCount()
public int getAggregationsCount()
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getAggregationsList()
public List<AggregationQuery.Aggregation> getAggregationsList()
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getAggregationsOrBuilder(int index)
public AggregationQuery.AggregationOrBuilder getAggregationsOrBuilder(int index)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getAggregationsOrBuilderList()
public List<? extends AggregationQuery.AggregationOrBuilder> getAggregationsOrBuilderList()
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
List<? extends com.google.datastore.v1.AggregationQuery.AggregationOrBuilder> | |
getDefaultInstanceForType()
public AggregationQuery getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNestedQuery()
public Query getNestedQuery()
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
Returns
Type | Description |
Query | The nestedQuery.
|
getNestedQueryBuilder()
public Query.Builder getNestedQueryBuilder()
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
Returns
getNestedQueryOrBuilder()
public QueryOrBuilder getNestedQueryOrBuilder()
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
Returns
getQueryTypeCase()
public AggregationQuery.QueryTypeCase getQueryTypeCase()
Returns
hasNestedQuery()
public boolean hasNestedQuery()
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
Returns
Type | Description |
boolean | Whether the nestedQuery field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AggregationQuery other)
public AggregationQuery.Builder mergeFrom(AggregationQuery other)
Parameter
Returns
public AggregationQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AggregationQuery.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeNestedQuery(Query value)
public AggregationQuery.Builder mergeNestedQuery(Query value)
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
Parameter
Name | Description |
value | Query
|
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AggregationQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeAggregations(int index)
public AggregationQuery.Builder removeAggregations(int index)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
setAggregations(int index, AggregationQuery.Aggregation value)
public AggregationQuery.Builder setAggregations(int index, AggregationQuery.Aggregation value)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
setAggregations(int index, AggregationQuery.Aggregation.Builder builderForValue)
public AggregationQuery.Builder setAggregations(int index, AggregationQuery.Aggregation.Builder builderForValue)
Optional. Series of aggregations to apply over the results of the
nested_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AggregationQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNestedQuery(Query value)
public AggregationQuery.Builder setNestedQuery(Query value)
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
Parameter
Name | Description |
value | Query
|
Returns
setNestedQuery(Query.Builder builderForValue)
public AggregationQuery.Builder setNestedQuery(Query.Builder builderForValue)
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AggregationQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AggregationQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides