Cloud PubSub V1 Client - Class ListSnapshotsResponse (1.50.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
NameDescription
data array

Optional. Data for populating the Message object.

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

The resulting snapshots.

↳ next_page_token string

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

getSnapshots

The resulting snapshots.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSnapshots

The resulting snapshots.

Parameter
NameDescription
var array<Google\Cloud\PubSub\V1\Snapshot>
Returns
TypeDescription
$this

getNextPageToken

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

Returns
TypeDescription
string

setNextPageToken

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this