Class: Google::Firestore::V1beta1::DocumentChange

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/write.rb

Overview

A Document has changed.

May be the result of multiple writes, including deletes, that ultimately resulted in a new value for the Document.

Multiple DocumentChange messages may be returned for the same logical change, if multiple targets are affected.

Instance Attribute Summary collapse

Instance Attribute Details

#documentGoogle::Firestore::V1beta1::Document

Returns The new state of the Document.

If +mask+ is set, contains only fields that were updated or added.

Returns:



140
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/write.rb', line 140

class DocumentChange; end

#removed_target_idsArray<Integer>

Returns A set of target IDs for targets that no longer match this document.

Returns:

  • (Array<Integer>)

    A set of target IDs for targets that no longer match this document.



140
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/write.rb', line 140

class DocumentChange; end

#target_idsArray<Integer>

Returns A set of target IDs of targets that match this document.

Returns:

  • (Array<Integer>)

    A set of target IDs of targets that match this document.



140
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/write.rb', line 140

class DocumentChange; end