Cloud Firestore V1beta1 Client - Class ListenRequest (1.44.1)

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

A request for Firestore.Listen

Generated from protobuf message google.firestore.v1beta1.ListenRequest

Namespace

Google \ Cloud \ Firestore \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ database string

Required. The database name. In the format: projects/{project_id}/databases/{database_id}.

↳ add_target Google\Cloud\Firestore\V1beta1\Target

A target to add to this stream.

↳ remove_target int

The ID of a target to remove from this stream.

↳ labels array|Google\Protobuf\Internal\MapField

Labels associated with this target change.

getDatabase

Required. The database name. In the format: projects/{project_id}/databases/{database_id}.

Returns
Type Description
string

setDatabase

Required. The database name. In the format: projects/{project_id}/databases/{database_id}.

Parameter
Name Description
var string
Returns
Type Description
$this

getAddTarget

A target to add to this stream.

Returns
Type Description
Google\Cloud\Firestore\V1beta1\Target

setAddTarget

A target to add to this stream.

Parameter
Name Description
var Google\Cloud\Firestore\V1beta1\Target
Returns
Type Description
$this

getRemoveTarget

The ID of a target to remove from this stream.

Returns
Type Description
int

setRemoveTarget

The ID of a target to remove from this stream.

Parameter
Name Description
var int
Returns
Type Description
$this

getLabels

Labels associated with this target change.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Labels associated with this target change.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getTargetChange

Returns
Type Description
string