Reference documentation and code samples for the Cloud PubSub V1 Client class DeleteTopicRequest.
Request for theDeleteTopicmethod.
Generated from protobuf messagegoogle.pubsub.v1.DeleteTopicRequest
Namespace
Google \ Cloud \ PubSub \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ topic
string
Required. Name of the topic to delete. Format isprojects/{project}/topics/{topic}.
getTopic
Required. Name of the topic to delete.
Format isprojects/{project}/topics/{topic}.
Returns
Type
Description
string
setTopic
Required. Name of the topic to delete.
Format isprojects/{project}/topics/{topic}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
topic
string
Required. Name of the topic to delete.
Format isprojects/{project}/topics/{topic}. Please seeGoogle\Cloud\PubSub\V1\PublisherClient::topicName()for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,[]]