Cloud PubSub V1 Client - Class ListSnapshotsResponse (2.3.0)

Reference documentation and code samples for the Cloud PubSub V1 Client class ListSnapshotsResponse.

Response for the ListSnapshots method.

Generated from protobuf message google.pubsub.v1.ListSnapshotsResponse

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ snapshots array<Google\Cloud\PubSub\V1\Snapshot>

Optional. The resulting snapshots.

↳ next_page_token string

Optional. If not empty, indicates that there may be more snapshot that match the request; this value should be passed in a new ListSnapshotsRequest.

getSnapshots

Optional. The resulting snapshots.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSnapshots

Optional. The resulting snapshots.

Parameter
Name Description
var array<Google\Cloud\PubSub\V1\Snapshot>
Returns
Type Description
$this

getNextPageToken

Optional. If not empty, indicates that there may be more snapshot that match the request; this value should be passed in a new ListSnapshotsRequest.

Returns
Type Description
string

setNextPageToken

Optional. If not empty, indicates that there may be more snapshot that match the request; this value should be passed in a new ListSnapshotsRequest.

Parameter
Name Description
var string
Returns
Type Description
$this