Cloud PubSub V1 Client - Class GetTopicRequest (1.41.3)

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

Request for the GetTopic method.

Generated from protobuf message google.pubsub.v1.GetTopicRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ topic string

Required. The name of the topic to get. Format is projects/{project}/topics/{topic}.

getTopic

Required. The name of the topic to get.

Format is projects/{project}/topics/{topic}.

Returns
TypeDescription
string

setTopic

Required. The name of the topic to get.

Format is projects/{project}/topics/{topic}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this