Package com.google.firestore.v1
Class RunAggregationQueryRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
com.google.firestore.v1.RunAggregationQueryRequest.Builder
- All Implemented Interfaces:
RunAggregationQueryRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RunAggregationQueryRequest
public static final class RunAggregationQueryRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
implements RunAggregationQueryRequestOrBuilder
The request for [Firestore.RunAggregationQuery][google.firestore.v1.Firestore.RunAggregationQuery].Protobuf type
google.firestore.v1.RunAggregationQueryRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Optional.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Starts a new transaction as part of the query, defaulting to read-only.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Required.Executes the query at the given timestamp.An aggregation query.Run the aggregation within an already active transaction.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Starts a new transaction as part of the query, defaulting to read-only.Starts a new transaction as part of the query, defaulting to read-only.Starts a new transaction as part of the query, defaulting to read-only.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.TimestampExecutes the query at the given timestamp.com.google.protobuf.Timestamp.BuilderExecutes the query at the given timestamp.com.google.protobuf.TimestampOrBuilderExecutes the query at the given timestamp.An aggregation query.An aggregation query.An aggregation query.com.google.protobuf.ByteStringRun the aggregation within an already active transaction.booleanOptional.booleanStarts a new transaction as part of the query, defaulting to read-only.booleanExecutes the query at the given timestamp.booleanAn aggregation query.booleanRun the aggregation within an already active transaction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanOptional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Starts a new transaction as part of the query, defaulting to read-only.mergeReadTime(com.google.protobuf.Timestamp value) Executes the query at the given timestamp.An aggregation query.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setExplainOptions(ExplainOptions value) Optional.setExplainOptions(ExplainOptions.Builder builderForValue) Optional.Starts a new transaction as part of the query, defaulting to read-only.setNewTransaction(TransactionOptions.Builder builderForValue) Starts a new transaction as part of the query, defaulting to read-only.Required.setParentBytes(com.google.protobuf.ByteString value) Required.setReadTime(com.google.protobuf.Timestamp value) Executes the query at the given timestamp.setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) Executes the query at the given timestamp.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) An aggregation query.setStructuredAggregationQuery(StructuredAggregationQuery.Builder builderForValue) An aggregation query.setTransaction(com.google.protobuf.ByteString value) Run the aggregation within an already active transaction.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.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.GeneratedMessageV3.Builder<RunAggregationQueryRequest.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
-
setField
public RunAggregationQueryRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
-
clearField
public RunAggregationQueryRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
-
clearOneof
public RunAggregationQueryRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
-
setRepeatedField
public RunAggregationQueryRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
-
addRepeatedField
public RunAggregationQueryRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RunAggregationQueryRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
-
mergeFrom
public RunAggregationQueryRequest.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<RunAggregationQueryRequest.Builder>- Throws:
IOException
-
getQueryTypeCase
- Specified by:
getQueryTypeCasein interfaceRunAggregationQueryRequestOrBuilder
-
clearQueryType
-
getConsistencySelectorCase
- Specified by:
getConsistencySelectorCasein interfaceRunAggregationQueryRequestOrBuilder
-
clearConsistencySelector
-
getParent
Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParentin interfaceRunAggregationQueryRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParentBytesin interfaceRunAggregationQueryRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setParentBytes
Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasStructuredAggregationQuery
public boolean hasStructuredAggregationQuery()An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;- Specified by:
hasStructuredAggregationQueryin interfaceRunAggregationQueryRequestOrBuilder- Returns:
- Whether the structuredAggregationQuery field is set.
-
getStructuredAggregationQuery
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;- Specified by:
getStructuredAggregationQueryin interfaceRunAggregationQueryRequestOrBuilder- Returns:
- The structuredAggregationQuery.
-
setStructuredAggregationQuery
public RunAggregationQueryRequest.Builder setStructuredAggregationQuery(StructuredAggregationQuery value) An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2; -
setStructuredAggregationQuery
public RunAggregationQueryRequest.Builder setStructuredAggregationQuery(StructuredAggregationQuery.Builder builderForValue) An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2; -
mergeStructuredAggregationQuery
public RunAggregationQueryRequest.Builder mergeStructuredAggregationQuery(StructuredAggregationQuery value) An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2; -
clearStructuredAggregationQuery
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2; -
getStructuredAggregationQueryBuilder
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2; -
getStructuredAggregationQueryOrBuilder
An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;- Specified by:
getStructuredAggregationQueryOrBuilderin interfaceRunAggregationQueryRequestOrBuilder
-
hasTransaction
public boolean hasTransaction()Run the aggregation within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 4;- Specified by:
hasTransactionin interfaceRunAggregationQueryRequestOrBuilder- Returns:
- Whether the transaction field is set.
-
getTransaction
public com.google.protobuf.ByteString getTransaction()Run the aggregation within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 4;- Specified by:
getTransactionin interfaceRunAggregationQueryRequestOrBuilder- Returns:
- The transaction.
-
setTransaction
Run the aggregation within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 4;- Parameters:
value- The transaction to set.- Returns:
- This builder for chaining.
-
clearTransaction
Run the aggregation within an already active transaction. The value here is the opaque transaction ID to execute the query in.
bytes transaction = 4;- Returns:
- This builder for chaining.
-
hasNewTransaction
public boolean hasNewTransaction()Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;- Specified by:
hasNewTransactionin interfaceRunAggregationQueryRequestOrBuilder- Returns:
- Whether the newTransaction field is set.
-
getNewTransaction
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;- Specified by:
getNewTransactionin interfaceRunAggregationQueryRequestOrBuilder- Returns:
- The newTransaction.
-
setNewTransaction
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5; -
setNewTransaction
public RunAggregationQueryRequest.Builder setNewTransaction(TransactionOptions.Builder builderForValue) Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5; -
mergeNewTransaction
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5; -
clearNewTransaction
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5; -
getNewTransactionBuilder
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5; -
getNewTransactionOrBuilder
Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.
.google.firestore.v1.TransactionOptions new_transaction = 5;- Specified by:
getNewTransactionOrBuilderin interfaceRunAggregationQueryRequestOrBuilder
-
hasReadTime
public boolean hasReadTime()Executes the query at the given timestamp. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 6;- Specified by:
hasReadTimein interfaceRunAggregationQueryRequestOrBuilder- Returns:
- Whether the readTime field is set.
-
getReadTime
public com.google.protobuf.Timestamp getReadTime()Executes the query at the given timestamp. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 6;- Specified by:
getReadTimein interfaceRunAggregationQueryRequestOrBuilder- Returns:
- The readTime.
-
setReadTime
Executes the query at the given timestamp. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 6; -
setReadTime
public RunAggregationQueryRequest.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) Executes the query at the given timestamp. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 6; -
mergeReadTime
Executes the query at the given timestamp. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 6; -
clearReadTime
Executes the query at the given timestamp. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 6; -
getReadTimeBuilder
public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()Executes the query at the given timestamp. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 6; -
getReadTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()Executes the query at the given timestamp. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 6;- Specified by:
getReadTimeOrBuilderin interfaceRunAggregationQueryRequestOrBuilder
-
hasExplainOptions
public boolean hasExplainOptions()Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasExplainOptionsin interfaceRunAggregationQueryRequestOrBuilder- Returns:
- Whether the explainOptions field is set.
-
getExplainOptions
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExplainOptionsin interfaceRunAggregationQueryRequestOrBuilder- Returns:
- The explainOptions.
-
setExplainOptions
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL]; -
setExplainOptions
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL]; -
mergeExplainOptions
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL]; -
clearExplainOptions
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getExplainOptionsBuilder
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getExplainOptionsOrBuilder
Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
.google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExplainOptionsOrBuilderin interfaceRunAggregationQueryRequestOrBuilder
-
setUnknownFields
public final RunAggregationQueryRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
-
mergeUnknownFields
public final RunAggregationQueryRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryRequest.Builder>
-