Class: Google::Cloud::Firestore::V1::CreateDocumentRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/firestore/v1/firestore.rb

Overview

The request for Firestore.CreateDocument.

Instance Attribute Summary collapse

Instance Attribute Details

#collection_id::String

Returns 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.



131
132
133
134
# File 'proto_docs/google/firestore/v1/firestore.rb', line 131

class CreateDocumentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#document::Google::Cloud::Firestore::V1::Document

Returns Required. The document to create. name must not be set.

Returns:



131
132
133
134
# File 'proto_docs/google/firestore/v1/firestore.rb', line 131

class CreateDocumentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#document_id::String

Returns 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.



131
132
133
134
# File 'proto_docs/google/firestore/v1/firestore.rb', line 131

class CreateDocumentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#mask::Google::Cloud::Firestore::V1::DocumentMask

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



131
132
133
134
# File 'proto_docs/google/firestore/v1/firestore.rb', line 131

class CreateDocumentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#parent::String

Returns 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}



131
132
133
134
# File 'proto_docs/google/firestore/v1/firestore.rb', line 131

class CreateDocumentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end