Cloud PubSub V1 Client - Class ListTopicsResponse (2.1.1)

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

Response for the ListTopics method.

Generated from protobuf message google.pubsub.v1.ListTopicsResponse

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ topics array<Google\Cloud\PubSub\V1\Topic>

Optional. The resulting topics.

↳ next_page_token string

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

getTopics

Optional. The resulting topics.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTopics

Optional. The resulting topics.

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

getNextPageToken

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

Returns
TypeDescription
string

setNextPageToken

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this