Package com.google.firestore.v1
Class StructuredAggregationQuery.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StructuredAggregationQuery.Builder>
com.google.firestore.v1.StructuredAggregationQuery.Builder
- All Implemented Interfaces:
StructuredAggregationQueryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StructuredAggregationQuery
public static final class StructuredAggregationQuery.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StructuredAggregationQuery.Builder>
implements StructuredAggregationQueryOrBuilder
Firestore query for running an aggregation over a [StructuredQuery][google.firestore.v1.StructuredQuery].Protobuf type
google.firestore.v1.StructuredAggregationQuery-
Method Summary
Modifier and TypeMethodDescriptionaddAggregations(int index, StructuredAggregationQuery.Aggregation value) Optional.addAggregations(int index, StructuredAggregationQuery.Aggregation.Builder builderForValue) Optional.Optional.addAggregations(StructuredAggregationQuery.Aggregation.Builder builderForValue) Optional.Optional.addAggregationsBuilder(int index) Optional.addAllAggregations(Iterable<? extends StructuredAggregationQuery.Aggregation> values) Optional.build()clear()Optional.Nested structured query.getAggregations(int index) Optional.getAggregationsBuilder(int index) Optional.Optional.intOptional.Optional.getAggregationsOrBuilder(int index) Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorNested structured query.Nested structured query.Nested structured query.booleanNested structured query.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Nested structured query.removeAggregations(int index) Optional.setAggregations(int index, StructuredAggregationQuery.Aggregation value) Optional.setAggregations(int index, StructuredAggregationQuery.Aggregation.Builder builderForValue) Optional.Nested structured query.setStructuredQuery(StructuredQuery.Builder builderForValue) Nested structured query.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StructuredAggregationQuery.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StructuredAggregationQuery.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.GeneratedMessage.Builder<StructuredAggregationQuery.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StructuredAggregationQuery.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StructuredAggregationQuery.Builder>
-
mergeFrom
public StructuredAggregationQuery.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<StructuredAggregationQuery.Builder>- Throws:
IOException
-
getQueryTypeCase
- Specified by:
getQueryTypeCasein interfaceStructuredAggregationQueryOrBuilder
-
clearQueryType
-
hasStructuredQuery
public boolean hasStructuredQuery()Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1;- Specified by:
hasStructuredQueryin interfaceStructuredAggregationQueryOrBuilder- Returns:
- Whether the structuredQuery field is set.
-
getStructuredQuery
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1;- Specified by:
getStructuredQueryin interfaceStructuredAggregationQueryOrBuilder- Returns:
- The structuredQuery.
-
setStructuredQuery
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1; -
setStructuredQuery
public StructuredAggregationQuery.Builder setStructuredQuery(StructuredQuery.Builder builderForValue) Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1; -
mergeStructuredQuery
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1; -
clearStructuredQuery
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1; -
getStructuredQueryBuilder
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1; -
getStructuredQueryOrBuilder
Nested structured query.
.google.firestore.v1.StructuredQuery structured_query = 1;- Specified by:
getStructuredQueryOrBuilderin interfaceStructuredAggregationQueryOrBuilder
-
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];- Specified by:
getAggregationsListin interfaceStructuredAggregationQueryOrBuilder
-
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];- Specified by:
getAggregationsCountin interfaceStructuredAggregationQueryOrBuilder
-
getAggregations
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];- Specified by:
getAggregationsin interfaceStructuredAggregationQueryOrBuilder
-
setAggregations
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]; -
setAggregations
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]; -
addAggregations
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]; -
addAggregations
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]; -
addAggregations
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]; -
addAggregations
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]; -
addAllAggregations
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]; -
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]; -
removeAggregations
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]; -
getAggregationsBuilder
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]; -
getAggregationsOrBuilder
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];- Specified by:
getAggregationsOrBuilderin interfaceStructuredAggregationQueryOrBuilder
-
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];- Specified by:
getAggregationsOrBuilderListin interfaceStructuredAggregationQueryOrBuilder
-
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]; -
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]; -
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];
-