Package com.google.firestore.v1
Interface RunAggregationQueryRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RunAggregationQueryRequest,RunAggregationQueryRequest.Builder
public interface RunAggregationQueryRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.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.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.TimestampExecutes the query at the given timestamp.com.google.protobuf.TimestampOrBuilderExecutes the query at the given timestamp.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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getParent
String 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];- Returns:
- The parent.
-
getParentBytes
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];- Returns:
- The bytes for parent.
-
hasStructuredAggregationQuery
boolean hasStructuredAggregationQuery()An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;- Returns:
- Whether the structuredAggregationQuery field is set.
-
getStructuredAggregationQuery
StructuredAggregationQuery getStructuredAggregationQuery()An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;- Returns:
- The structuredAggregationQuery.
-
getStructuredAggregationQueryOrBuilder
StructuredAggregationQueryOrBuilder getStructuredAggregationQueryOrBuilder()An aggregation query.
.google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2; -
hasTransaction
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;- Returns:
- Whether the transaction field is set.
-
getTransaction
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;- Returns:
- The transaction.
-
hasNewTransaction
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;- Returns:
- Whether the newTransaction field is set.
-
getNewTransaction
TransactionOptions 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;- Returns:
- The newTransaction.
-
getNewTransactionOrBuilder
TransactionOptionsOrBuilder 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; -
hasReadTime
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;- Returns:
- Whether the readTime field is set.
-
getReadTime
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;- Returns:
- The readTime.
-
getReadTimeOrBuilder
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; -
hasExplainOptions
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];- Returns:
- Whether the explainOptions field is set.
-
getExplainOptions
ExplainOptions 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];- Returns:
- The explainOptions.
-
getExplainOptionsOrBuilder
ExplainOptionsOrBuilder 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]; -
getQueryTypeCase
RunAggregationQueryRequest.QueryTypeCase getQueryTypeCase() -
getConsistencySelectorCase
RunAggregationQueryRequest.ConsistencySelectorCase getConsistencySelectorCase()
-