Cloud PubSub V1 Client - Class ListTopicSubscriptionsResponse (1.46.5)

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

Response for the ListTopicSubscriptions method.

Generated from protobuf message google.pubsub.v1.ListTopicSubscriptionsResponse

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ subscriptions array

The names of subscriptions attached to the topic specified in 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 ListTopicSubscriptionsRequest to get more subscriptions.

getSubscriptions

The names of subscriptions attached to the topic specified in the request.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSubscriptions

The names of subscriptions attached to the topic specified in the request.

Parameter
NameDescription
var string[]
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 ListTopicSubscriptionsRequest 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 ListTopicSubscriptionsRequest to get more subscriptions.

Parameter
NameDescription
var string
Returns
TypeDescription
$this