Cloud PubSub V1 Client - Class ListTopicSnapshotsResponse (2.8.1)

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

Response for the ListTopicSnapshots method.

Generated from protobuf message google.pubsub.v1.ListTopicSnapshotsResponse

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ snapshots array

Optional. The names of the snapshots that match the request.

↳ next_page_token string

Optional. If not empty, indicates that there may be more snapshots that match the request; this value should be passed in a new ListTopicSnapshotsRequest to get more snapshots.

getSnapshots

Optional. The names of the snapshots that match the request.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSnapshots

Optional. The names of the snapshots that match the request.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getNextPageToken

Optional. If not empty, indicates that there may be more snapshots that match the request; this value should be passed in a new ListTopicSnapshotsRequest to get more snapshots.

Returns
Type Description
string

setNextPageToken

Optional. If not empty, indicates that there may be more snapshots that match the request; this value should be passed in a new ListTopicSnapshotsRequest to get more snapshots.

Parameter
Name Description
var string
Returns
Type Description
$this