Cloud PubSub V1 Client - Class UpdateSubscriptionRequest (1.44.0)

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

Request for the UpdateSubscription method.

Generated from protobuf message google.pubsub.v1.UpdateSubscriptionRequest

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ subscription Google\Cloud\PubSub\V1\Subscription

Required. The updated subscription object.

↳ update_mask Google\Protobuf\FieldMask

Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.

getSubscription

Required. The updated subscription object.

Returns
TypeDescription
Google\Cloud\PubSub\V1\Subscription|null

hasSubscription

clearSubscription

setSubscription

Required. The updated subscription object.

Parameter
NameDescription
var Google\Cloud\PubSub\V1\Subscription
Returns
TypeDescription
$this

getUpdateMask

Required. Indicates which fields in the provided subscription to update.

Must be specified and non-empty.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. Indicates which fields in the provided subscription to update.

Must be specified and non-empty.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
subscription Google\Cloud\PubSub\V1\Subscription

Required. The updated subscription object.

updateMask Google\Protobuf\FieldMask

Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.

Returns
TypeDescription
Google\Cloud\PubSub\V1\UpdateSubscriptionRequest