public static final class StructuredAggregationQuery.Builder extends GeneratedMessageV3.Builder<StructuredAggregationQuery.Builder> implements StructuredAggregationQueryOrBuilder
Firestore query for running an aggregation over a StructuredQuery.
Protobuf type google.firestore.v1.StructuredAggregationQuery
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(StructuredAggregationQuery.Aggregation value)
public StructuredAggregationQuery.Builder addAggregations(StructuredAggregationQuery.Aggregation value)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
addAggregations(StructuredAggregationQuery.Aggregation.Builder builderForValue)
public StructuredAggregationQuery.Builder addAggregations(StructuredAggregationQuery.Aggregation.Builder builderForValue)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
addAggregations(int index, StructuredAggregationQuery.Aggregation value)
public StructuredAggregationQuery.Builder addAggregations(int index, StructuredAggregationQuery.Aggregation value)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
addAggregations(int index, StructuredAggregationQuery.Aggregation.Builder builderForValue)
public StructuredAggregationQuery.Builder addAggregations(int index, StructuredAggregationQuery.Aggregation.Builder builderForValue)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
addAggregationsBuilder()
public StructuredAggregationQuery.Aggregation.Builder addAggregationsBuilder()
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
addAggregationsBuilder(int index)
public StructuredAggregationQuery.Aggregation.Builder addAggregationsBuilder(int index)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
addAllAggregations(Iterable<? extends StructuredAggregationQuery.Aggregation> values)
public StructuredAggregationQuery.Builder addAllAggregations(Iterable<? extends StructuredAggregationQuery.Aggregation> values)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
values | Iterable<? extends com.google.firestore.v1.StructuredAggregationQuery.Aggregation>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StructuredAggregationQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StructuredAggregationQuery build()
Returns
buildPartial()
public StructuredAggregationQuery buildPartial()
Returns
clear()
public StructuredAggregationQuery.Builder clear()
Returns
Overrides
clearAggregations()
public StructuredAggregationQuery.Builder clearAggregations()
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
clearField(Descriptors.FieldDescriptor field)
public StructuredAggregationQuery.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public StructuredAggregationQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearQueryType()
public StructuredAggregationQuery.Builder clearQueryType()
Returns
clearStructuredQuery()
public StructuredAggregationQuery.Builder clearStructuredQuery()
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1;
Returns
clone()
public StructuredAggregationQuery.Builder clone()
Returns
Overrides
getAggregations(int index)
public StructuredAggregationQuery.Aggregation getAggregations(int index)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getAggregationsBuilder(int index)
public StructuredAggregationQuery.Aggregation.Builder getAggregationsBuilder(int index)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getAggregationsBuilderList()
public List<StructuredAggregationQuery.Aggregation.Builder> getAggregationsBuilderList()
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getAggregationsCount()
public int getAggregationsCount()
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getAggregationsList()
public List<StructuredAggregationQuery.Aggregation> getAggregationsList()
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getAggregationsOrBuilder(int index)
public StructuredAggregationQuery.AggregationOrBuilder getAggregationsOrBuilder(int index)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getAggregationsOrBuilderList()
public List<? extends StructuredAggregationQuery.AggregationOrBuilder> getAggregationsOrBuilderList()
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
List<? extends com.google.firestore.v1.StructuredAggregationQuery.AggregationOrBuilder> | |
getDefaultInstanceForType()
public StructuredAggregationQuery getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getQueryTypeCase()
public StructuredAggregationQuery.QueryTypeCase getQueryTypeCase()
Returns
getStructuredQuery()
public StructuredQuery getStructuredQuery()
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1;
Returns
getStructuredQueryBuilder()
public StructuredQuery.Builder getStructuredQueryBuilder()
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1;
Returns
getStructuredQueryOrBuilder()
public StructuredQueryOrBuilder getStructuredQueryOrBuilder()
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1;
Returns
hasStructuredQuery()
public boolean hasStructuredQuery()
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1;
Returns
Type | Description |
boolean | Whether the structuredQuery field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(StructuredAggregationQuery other)
public StructuredAggregationQuery.Builder mergeFrom(StructuredAggregationQuery other)
Parameter
Returns
public StructuredAggregationQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StructuredAggregationQuery.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeStructuredQuery(StructuredQuery value)
public StructuredAggregationQuery.Builder mergeStructuredQuery(StructuredQuery value)
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StructuredAggregationQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeAggregations(int index)
public StructuredAggregationQuery.Builder removeAggregations(int index)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
setAggregations(int index, StructuredAggregationQuery.Aggregation value)
public StructuredAggregationQuery.Builder setAggregations(int index, StructuredAggregationQuery.Aggregation value)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
setAggregations(int index, StructuredAggregationQuery.Aggregation.Builder builderForValue)
public StructuredAggregationQuery.Builder setAggregations(int index, StructuredAggregationQuery.Aggregation.Builder builderForValue)
Optional. Series of aggregations to apply over the results of the structured_query
.
Requires:
- A minimum of one and maximum of five aggregations per query.
repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public StructuredAggregationQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StructuredAggregationQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setStructuredQuery(StructuredQuery value)
public StructuredAggregationQuery.Builder setStructuredQuery(StructuredQuery value)
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1;
Parameter
Returns
setStructuredQuery(StructuredQuery.Builder builderForValue)
public StructuredAggregationQuery.Builder setStructuredQuery(StructuredQuery.Builder builderForValue)
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final StructuredAggregationQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides