Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::RunQueryRequest.
The request for Firestore.RunQuery.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#new_transaction
def new_transaction() -> ::Google::Cloud::Firestore::V1::TransactionOptions
Returns
- (::Google::Cloud::Firestore::V1::TransactionOptions) — Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream.
#new_transaction=
def new_transaction=(value) -> ::Google::Cloud::Firestore::V1::TransactionOptions
Parameter
- value (::Google::Cloud::Firestore::V1::TransactionOptions) — Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream.
Returns
- (::Google::Cloud::Firestore::V1::TransactionOptions) — Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream.
#parent
def parent() -> ::String
Returns
-
(::String) — Required. The parent resource name. In the format:
projects/{project_id}/databases/{database_id}/documents
orprojects/{project_id}/databases/{database_id}/documents/{document_path}
. For example:projects/my-project/databases/my-database/documents
orprojects/my-project/databases/my-database/documents/chatrooms/my-chatroom
#parent=
def parent=(value) -> ::String
Parameter
-
value (::String) — Required. The parent resource name. In the format:
projects/{project_id}/databases/{database_id}/documents
orprojects/{project_id}/databases/{database_id}/documents/{document_path}
. For example:projects/my-project/databases/my-database/documents
orprojects/my-project/databases/my-database/documents/chatrooms/my-chatroom
Returns
-
(::String) — Required. The parent resource name. In the format:
projects/{project_id}/databases/{database_id}/documents
orprojects/{project_id}/databases/{database_id}/documents/{document_path}
. For example:projects/my-project/databases/my-database/documents
orprojects/my-project/databases/my-database/documents/chatrooms/my-chatroom
#read_time
def read_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Reads documents as they were at the given time. This may not be older than 270 seconds.
#read_time=
def read_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — Reads documents as they were at the given time. This may not be older than 270 seconds.
Returns
- (::Google::Protobuf::Timestamp) — Reads documents as they were at the given time. This may not be older than 270 seconds.
#structured_query
def structured_query() -> ::Google::Cloud::Firestore::V1::StructuredQuery
Returns
- (::Google::Cloud::Firestore::V1::StructuredQuery) — A structured query.
#structured_query=
def structured_query=(value) -> ::Google::Cloud::Firestore::V1::StructuredQuery
Parameter
- value (::Google::Cloud::Firestore::V1::StructuredQuery) — A structured query.
Returns
- (::Google::Cloud::Firestore::V1::StructuredQuery) — A structured query.
#transaction
def transaction() -> ::String
Returns
-
(::String) — Run the query within an already active transaction.
The value here is the opaque transaction ID to execute the query in.
#transaction=
def transaction=(value) -> ::String
Parameter
-
value (::String) — Run the query within an already active transaction.
The value here is the opaque transaction ID to execute the query in.
Returns
-
(::String) — Run the query within an already active transaction.
The value here is the opaque transaction ID to execute the query in.