Cloud PubSub V1 Client - Class DeleteTopicRequest (1.45.2)

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

Request for the DeleteTopic method.

Generated from protobuf message google.pubsub.v1.DeleteTopicRequest

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ topic string

Required. Name of the topic to delete. Format is projects/{project}/topics/{topic}.

getTopic

Required. Name of the topic to delete.

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

Returns
TypeDescription
string

setTopic

Required. Name of the topic to delete.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
topic string

Required. Name of the topic to delete. Format is projects/{project}/topics/{topic}. Please see Google\Cloud\PubSub\V1\PublisherClient::topicName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\PubSub\V1\DeleteTopicRequest