Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::CreateDocumentRequest.
The request for Firestore.CreateDocument.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#collection_id
def collection_id() -> ::String
-
(::String) — Required. The collection ID, relative to
parent
, to list. For example:chatrooms
.
#collection_id=
def collection_id=(value) -> ::String
-
value (::String) — Required. The collection ID, relative to
parent
, to list. For example:chatrooms
.
-
(::String) — Required. The collection ID, relative to
parent
, to list. For example:chatrooms
.
#document
def document() -> ::Google::Cloud::Firestore::V1::Document
-
(::Google::Cloud::Firestore::V1::Document) — Required. The document to create.
name
must not be set.
#document=
def document=(value) -> ::Google::Cloud::Firestore::V1::Document
-
value (::Google::Cloud::Firestore::V1::Document) — Required. The document to create.
name
must not be set.
-
(::Google::Cloud::Firestore::V1::Document) — Required. The document to create.
name
must not be set.
#document_id
def document_id() -> ::String
-
(::String) — The client-assigned document ID to use for this document.
Optional. If not specified, an ID will be assigned by the service.
#document_id=
def document_id=(value) -> ::String
-
value (::String) — The client-assigned document ID to use for this document.
Optional. If not specified, an ID will be assigned by the service.
-
(::String) — The client-assigned document ID to use for this document.
Optional. If not specified, an ID will be assigned by the service.
#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.
#parent
def parent() -> ::String
-
(::String) — Required. The parent resource. For example:
projects/{project_id}/databases/{database_id}/documents
orprojects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}
#parent=
def parent=(value) -> ::String
-
value (::String) — Required. The parent resource. For example:
projects/{project_id}/databases/{database_id}/documents
orprojects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}
-
(::String) — Required. The parent resource. For example:
projects/{project_id}/databases/{database_id}/documents
orprojects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}