Cloud Firestore V1beta1 Client - Class ListenResponse (1.27.3)

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

The response for Firestore.Listen.

Generated from protobuf message google.firestore.v1beta1.ListenResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ target_change Google\Cloud\Firestore\V1beta1\TargetChange

Targets have changed.

↳ document_change Google\Cloud\Firestore\V1beta1\DocumentChange

A Document has changed.

↳ document_delete Google\Cloud\Firestore\V1beta1\DocumentDelete

A Document has been deleted.

↳ document_remove Google\Cloud\Firestore\V1beta1\DocumentRemove

A Document has been removed from a target (because it is no longer relevant to that target).

↳ filter Google\Cloud\Firestore\V1beta1\ExistenceFilter

A filter to apply to the set of documents previously returned for the given target. Returned when documents may have been removed from the given target, but the exact documents are unknown.

getTargetChange

Targets have changed.

Returns
TypeDescription
Google\Cloud\Firestore\V1beta1\TargetChange

setTargetChange

Targets have changed.

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

getDocumentChange

A Document has changed.

Returns
TypeDescription
Google\Cloud\Firestore\V1beta1\DocumentChange

setDocumentChange

A Document has changed.

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

getDocumentDelete

A Document has been deleted.

Returns
TypeDescription
Google\Cloud\Firestore\V1beta1\DocumentDelete

setDocumentDelete

A Document has been deleted.

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

getDocumentRemove

A Document has been removed from a target (because it is no longer relevant to that target).

Returns
TypeDescription
Google\Cloud\Firestore\V1beta1\DocumentRemove

setDocumentRemove

A Document has been removed from a target (because it is no longer relevant to that target).

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

getFilter

A filter to apply to the set of documents previously returned for the given target.

Returned when documents may have been removed from the given target, but the exact documents are unknown.

Returns
TypeDescription
Google\Cloud\Firestore\V1beta1\ExistenceFilter

setFilter

A filter to apply to the set of documents previously returned for the given target.

Returned when documents may have been removed from the given target, but the exact documents are unknown.

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

getResponseType

Returns
TypeDescription
string