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()
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];
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];
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];
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];
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];
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 |
---|
Name | Description |
index | int
|
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AggregationQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AggregationQuery build()
buildPartial()
public AggregationQuery buildPartial()
clear()
public AggregationQuery.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public AggregationQuery.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNestedQuery()
public AggregationQuery.Builder clearNestedQuery()
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public AggregationQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearQueryType()
public AggregationQuery.Builder clearQueryType()
clone()
public AggregationQuery.Builder clone()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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];
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 |
---|
Type | Description |
int | |
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];
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 |
---|
Name | Description |
index | int
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
getNestedQueryOrBuilder()
public QueryOrBuilder getNestedQueryOrBuilder()
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
getQueryTypeCase()
public AggregationQuery.QueryTypeCase getQueryTypeCase()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AggregationQuery other)
public AggregationQuery.Builder mergeFrom(AggregationQuery other)
public AggregationQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AggregationQuery.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AggregationQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public AggregationQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
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
|
setNestedQuery(Query.Builder builderForValue)
public AggregationQuery.Builder setNestedQuery(Query.Builder builderForValue)
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AggregationQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AggregationQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides