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