Cloud PubSub V1 Client - Class DeleteSubscriptionRequest (2.19.1)Stay organized with collectionsSave and categorize content based on your preferences.
Reference documentation and code samples for the Cloud PubSub V1 Client class DeleteSubscriptionRequest.
Request for the DeleteSubscription method.
Generated from protobuf messagegoogle.pubsub.v1.DeleteSubscriptionRequest
Namespace
Google \ Cloud \ PubSub \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ subscription
string
Required. The subscription to delete. Format isprojects/{project}/subscriptions/{sub}.
getSubscription
Required. The subscription to delete.
Format isprojects/{project}/subscriptions/{sub}.
Returns
Type
Description
string
setSubscription
Required. The subscription to delete.
Format isprojects/{project}/subscriptions/{sub}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
subscription
string
Required. The subscription to delete.
Format isprojects/{project}/subscriptions/{sub}. Please seeSubscriberClient::subscriptionName()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 2026-03-18 UTC."],[],[]]