Cloud PubSub V1 Client - Class UpdateSubscriptionRequest (1.39.3)

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

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.

Generated from protobuf field .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

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

hasSubscription

clearSubscription

setSubscription

Required. The updated subscription object.

Generated from protobuf field .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];

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.

Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

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.

Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

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