Cloud Firestore V1beta1 Client - Class DeleteDocumentRequest (1.39.0)

Reference documentation and code samples for the Cloud Firestore V1beta1 Client class DeleteDocumentRequest.

The request for Firestore.DeleteDocument.

Generated from protobuf message google.firestore.v1beta1.DeleteDocumentRequest

Namespace

Google \ Cloud \ Firestore \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The resource name of the Document to delete. In the format: projects/{project_id}/databases/{database_id}/documents/{document_path}.

↳ current_document Google\Cloud\Firestore\V1beta1\Precondition

An optional precondition on the document. The request will fail if this is set and not met by the target document.

getName

Required. The resource name of the Document to delete. In the format: projects/{project_id}/databases/{database_id}/documents/{document_path}.

Returns
TypeDescription
string

setName

Required. The resource name of the Document to delete. In the format: projects/{project_id}/databases/{database_id}/documents/{document_path}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCurrentDocument

An optional precondition on the document.

The request will fail if this is set and not met by the target document.

Returns
TypeDescription
Google\Cloud\Firestore\V1beta1\Precondition

setCurrentDocument

An optional precondition on the document.

The request will fail if this is set and not met by the target document.

Parameter
NameDescription
var Google\Cloud\Firestore\V1beta1\Precondition
Returns
TypeDescription
$this