Cloud PubSub V1 Client - Class ListTopicSubscriptionsResponse (1.39.3)

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

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.

Generated from protobuf field repeated string subscriptions = 1 [(.google.api.resource_reference) = {

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSubscriptions

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

Generated from protobuf field repeated string subscriptions = 1 [(.google.api.resource_reference) = {

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.

Generated from protobuf field string next_page_token = 2;

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.

Generated from protobuf field string next_page_token = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this