Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::RunAggregationQueryRequest.
The request for Firestore.RunAggregationQuery.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#explain_options
def explain_options() -> ::Google::Cloud::Firestore::V1::ExplainOptions- (::Google::Cloud::Firestore::V1::ExplainOptions) — Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
#explain_options=
def explain_options=(value) -> ::Google::Cloud::Firestore::V1::ExplainOptions- value (::Google::Cloud::Firestore::V1::ExplainOptions) — Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
- (::Google::Cloud::Firestore::V1::ExplainOptions) — Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.
#new_transaction
def new_transaction() -> ::Google::Cloud::Firestore::V1::TransactionOptions-
(::Google::Cloud::Firestore::V1::TransactionOptions) — 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.
Note: The following fields are mutually exclusive:
new_transaction,transaction,read_time. If a field in that set is populated, all other fields in the set will automatically be cleared.
#new_transaction=
def new_transaction=(value) -> ::Google::Cloud::Firestore::V1::TransactionOptions-
value (::Google::Cloud::Firestore::V1::TransactionOptions) — 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.
Note: The following fields are mutually exclusive:
new_transaction,transaction,read_time. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Firestore::V1::TransactionOptions) — 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.
Note: The following fields are mutually exclusive:
new_transaction,transaction,read_time. If a field in that set is populated, all other fields in the set will automatically be cleared.
#parent
def parent() -> ::String-
(::String) — Required. The parent resource name. In the format:
projects/{project_id}/databases/{database_id}/documentsorprojects/{project_id}/databases/{database_id}/documents/{document_path}. For example:projects/my-project/databases/my-database/documentsorprojects/my-project/databases/my-database/documents/chatrooms/my-chatroom
#parent=
def parent=(value) -> ::String-
value (::String) — Required. The parent resource name. In the format:
projects/{project_id}/databases/{database_id}/documentsorprojects/{project_id}/databases/{database_id}/documents/{document_path}. For example:projects/my-project/databases/my-database/documentsorprojects/my-project/databases/my-database/documents/chatrooms/my-chatroom
-
(::String) — Required. The parent resource name. In the format:
projects/{project_id}/databases/{database_id}/documentsorprojects/{project_id}/databases/{database_id}/documents/{document_path}. For example:projects/my-project/databases/my-database/documentsorprojects/my-project/databases/my-database/documents/chatrooms/my-chatroom
#read_time
def read_time() -> ::Google::Protobuf::Timestamp-
(::Google::Protobuf::Timestamp) — 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.
Note: The following fields are mutually exclusive:
read_time,transaction,new_transaction. If a field in that set is populated, all other fields in the set will automatically be cleared.
#read_time=
def read_time=(value) -> ::Google::Protobuf::Timestamp-
value (::Google::Protobuf::Timestamp) — 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.
Note: The following fields are mutually exclusive:
read_time,transaction,new_transaction. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Timestamp) — 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.
Note: The following fields are mutually exclusive:
read_time,transaction,new_transaction. If a field in that set is populated, all other fields in the set will automatically be cleared.
#structured_aggregation_query
def structured_aggregation_query() -> ::Google::Cloud::Firestore::V1::StructuredAggregationQuery- (::Google::Cloud::Firestore::V1::StructuredAggregationQuery) — An aggregation query.
#structured_aggregation_query=
def structured_aggregation_query=(value) -> ::Google::Cloud::Firestore::V1::StructuredAggregationQuery- value (::Google::Cloud::Firestore::V1::StructuredAggregationQuery) — An aggregation query.
- (::Google::Cloud::Firestore::V1::StructuredAggregationQuery) — An aggregation query.
#transaction
def transaction() -> ::String-
(::String) — Run the aggregation within an already active transaction.
The value here is the opaque transaction ID to execute the query in.
Note: The following fields are mutually exclusive:
transaction,new_transaction,read_time. If a field in that set is populated, all other fields in the set will automatically be cleared.
#transaction=
def transaction=(value) -> ::String-
value (::String) — Run the aggregation within an already active transaction.
The value here is the opaque transaction ID to execute the query in.
Note: The following fields are mutually exclusive:
transaction,new_transaction,read_time. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Run the aggregation within an already active transaction.
The value here is the opaque transaction ID to execute the query in.
Note: The following fields are mutually exclusive:
transaction,new_transaction,read_time. If a field in that set is populated, all other fields in the set will automatically be cleared.