# Cloud Firestore V1 API - Class Google::Cloud::Firestore::V1::DocumentDelete (v2.4.0)

2.4.0 (latest) 2.3.0 2.2.1 2.1.1 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.8 Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::DocumentDelete.

A [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Document "Google::Cloud::Firestore::V1::Document (class)") has been deleted.


May be the result of multiple [writes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Write "Google::Cloud::Firestore::V1::Write (class)"), including
updates, the last of which deleted the
[Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Document "Google::Cloud::Firestore::V1::Document (class)").

<br />

Multiple [DocumentDelete](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-DocumentDelete "Google::Cloud::Firestore::V1::DocumentDelete (class)") messages may be
returned for the same logical delete, if multiple targets are affected.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #document

    def document() -> ::String

**Returns**

- (::String) --- The resource name of the [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Document "Google::Cloud::Firestore::V1::Document (class)") that was deleted.

### #document=

    def document=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name of the [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Document "Google::Cloud::Firestore::V1::Document (class)") that was deleted.
**Returns**

- (::String) --- The resource name of the [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Document "Google::Cloud::Firestore::V1::Document (class)") that was deleted.

### #read_time

    def read_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Protobuf-Timestamp)) --- The read timestamp at which the delete was observed.


  Greater or equal to the `commit_time` of the delete.

### #read_time=

    def read_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Protobuf-Timestamp)) --- The read timestamp at which the delete was observed.


  Greater or equal to the `commit_time` of the delete.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Protobuf-Timestamp)) --- The read timestamp at which the delete was observed.


  Greater or equal to the `commit_time` of the delete.

### #removed_target_ids

    def removed_target_ids() -> ::Array<::Integer>

**Returns**

- (::Array\<::Integer\>) --- A set of target IDs for targets that previously matched this entity.

### #removed_target_ids=

    def removed_target_ids=(value) -> ::Array<::Integer>

**Parameter**

- **value** (::Array\<::Integer\>) --- A set of target IDs for targets that previously matched this entity.
**Returns**

- (::Array\<::Integer\>) --- A set of target IDs for targets that previously matched this entity.