Cloud PubSub V1 Client - Class DetachSubscriptionRequest (1.47.0)

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

Request for the DetachSubscription method.

Generated from protobuf message google.pubsub.v1.DetachSubscriptionRequest

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 detach. Format is projects/{project}/subscriptions/{subscription}.

getSubscription

Required. The subscription to detach.

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

Returns
TypeDescription
string

setSubscription

Required. The subscription to detach.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this