Cloud PubSub V1 Client - Class UpdateSubscriptionRequest (2.8.2)

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
Name Description
data array

Optional. Data for populating the Message object.

↳ subscription 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
Type Description
Subscription|null

hasSubscription

clearSubscription

setSubscription

Required. The updated subscription object.

Parameter
Name Description
var Subscription
Returns
Type Description
$this

getUpdateMask

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

Must be specified and non-empty.

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

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

Must be specified and non-empty.

Parameter
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
subscription 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
Type Description
UpdateSubscriptionRequest