# Cloud Firestore V1 API - Class Google::Cloud::Firestore::V1::DocumentRemove (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::DocumentRemove.

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 removed from the view of
the targets.


Sent if the document is no longer relevant to a target and is out of view.
Can be sent instead of a DocumentDelete or a DocumentChange if the server
can not send the new value of the document.

<br />

Multiple [DocumentRemove](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-DocumentRemove "Google::Cloud::Firestore::V1::DocumentRemove (class)") messages may be
returned for the same logical write or 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 has gone out of view.

### #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 has gone out of view.
**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 has gone out of view.

### #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 remove was observed.


  Greater or equal to the `commit_time` of the change/delete/remove.

### #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 remove was observed.


  Greater or equal to the `commit_time` of the change/delete/remove.
**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 remove was observed.


  Greater or equal to the `commit_time` of the change/delete/remove.

### #removed_target_ids

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

**Returns**

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

### #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 document.
**Returns**

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