Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::BatchGetDocumentsRequest.
The request for Firestore.BatchGetDocuments.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#database
def database() -> ::String
-
(::String) — Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
#database=
def database=(value) -> ::String
-
value (::String) — Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
-
(::String) — Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
#documents
def documents() -> ::Array<::String>
-
(::Array<::String>) — The names of the documents to retrieve. In the format:
projects/{project_id}/databases/{database_id}/documents/{document_path}
. The request will fail if any of the document is not a child resource of the givendatabase
. Duplicate names will be elided.
#documents=
def documents=(value) -> ::Array<::String>
-
value (::Array<::String>) — The names of the documents to retrieve. In the format:
projects/{project_id}/databases/{database_id}/documents/{document_path}
. The request will fail if any of the document is not a child resource of the givendatabase
. Duplicate names will be elided.
-
(::Array<::String>) — The names of the documents to retrieve. In the format:
projects/{project_id}/databases/{database_id}/documents/{document_path}
. The request will fail if any of the document is not a child resource of the givendatabase
. Duplicate names will be elided.
#mask
def mask() -> ::Google::Cloud::Firestore::V1::DocumentMask
-
(::Google::Cloud::Firestore::V1::DocumentMask) — The fields to return. If not set, returns all fields.
If a document has a field that is not present in this mask, that field will not be returned in the response.
#mask=
def mask=(value) -> ::Google::Cloud::Firestore::V1::DocumentMask
-
value (::Google::Cloud::Firestore::V1::DocumentMask) — The fields to return. If not set, returns all fields.
If a document has a field that is not present in this mask, that field will not be returned in the response.
-
(::Google::Cloud::Firestore::V1::DocumentMask) — The fields to return. If not set, returns all fields.
If a document has a field that is not present in this mask, that field will not be returned in the response.
#new_transaction
def new_transaction() -> ::Google::Cloud::Firestore::V1::TransactionOptions
- (::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
- 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.
- (::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.
#read_time
def read_time() -> ::Google::Protobuf::Timestamp
- (::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
- value (::Google::Protobuf::Timestamp) — Reads documents as they were at the given time. This may not be older than 270 seconds.
- (::Google::Protobuf::Timestamp) — Reads documents as they were at the given time. This may not be older than 270 seconds.
#transaction
def transaction() -> ::String
- (::String) — Reads documents in a transaction.
#transaction=
def transaction=(value) -> ::String
- value (::String) — Reads documents in a transaction.
- (::String) — Reads documents in a transaction.