Cloud Firestore V1 API - Class Google::Cloud::Firestore::V1::CreateDocumentRequest (v0.6.0)

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
Returns
  • (::String) — Required. The collection ID, relative to parent, to list. For example: chatrooms.

#collection_id=

def collection_id=(value) -> ::String
Parameter
  • value (::String) — Required. The collection ID, relative to parent, to list. For example: chatrooms.
Returns
  • (::String) — Required. The collection ID, relative to parent, to list. For example: chatrooms.

#document

def document() -> ::Google::Cloud::Firestore::V1::Document
Returns

#document=

def document=(value) -> ::Google::Cloud::Firestore::V1::Document
Parameter
Returns

#document_id

def document_id() -> ::String
Returns
  • (::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
Parameter
  • value (::String) — The client-assigned document ID to use for this document.

    Optional. If not specified, an ID will be assigned by the service.

Returns
  • (::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
Returns

#mask=

def mask=(value) -> ::Google::Cloud::Firestore::V1::DocumentMask
Parameter
  • 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.

Returns

#parent

def parent() -> ::String
Returns
  • (::String) — Required. The parent resource. For example: projects/{project_id}/databases/{database_id}/documents or projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — Required. The parent resource. For example: projects/{project_id}/databases/{database_id}/documents or projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}
Returns
  • (::String) — Required. The parent resource. For example: projects/{project_id}/databases/{database_id}/documents or projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}