Cloud PubSub V1 Client - Class ListSubscriptionsResponse (1.49.0)

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

Response for the ListSubscriptions method.

Generated from protobuf message google.pubsub.v1.ListSubscriptionsResponse

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ subscriptions array<Google\Cloud\PubSub\V1\Subscription>

The subscriptions that match the request.

↳ next_page_token string

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

getSubscriptions

The subscriptions that match the request.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSubscriptions

The subscriptions that match the request.

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

getNextPageToken

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

Returns
TypeDescription
string

setNextPageToken

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this