Cloud PubSub V1 Client - Class DeleteSubscriptionRequest (1.50.0)

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

Request for the DeleteSubscription method.

Generated from protobuf message google.pubsub.v1.DeleteSubscriptionRequest

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ subscription string

Required. The subscription to delete. Format is projects/{project}/subscriptions/{sub}.

getSubscription

Required. The subscription to delete.

Format is projects/{project}/subscriptions/{sub}.

Returns
TypeDescription
string

setSubscription

Required. The subscription to delete.

Format is projects/{project}/subscriptions/{sub}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
subscription string

Required. The subscription to delete. Format is projects/{project}/subscriptions/{sub}. Please see Google\Cloud\PubSub\V1\SubscriberClient::subscriptionName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\PubSub\V1\DeleteSubscriptionRequest