Cloud PubSub V1 Client - Class UpdateTopicRequest (1.46.5)

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

Request for the UpdateTopic method.

Generated from protobuf message google.pubsub.v1.UpdateTopicRequest

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ topic Google\Cloud\PubSub\V1\Topic

Required. The updated topic object.

↳ update_mask Google\Protobuf\FieldMask

Required. Indicates which fields in the provided topic to update. Must be specified and non-empty. Note that if update_mask contains "message_storage_policy" but the message_storage_policy is not set in the topic provided above, then the updated value is determined by the policy configured at the project or organization level.

getTopic

Required. The updated topic object.

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

hasTopic

clearTopic

setTopic

Required. The updated topic object.

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

getUpdateMask

Required. Indicates which fields in the provided topic to update. Must be specified and non-empty. Note that if update_mask contains "message_storage_policy" but the message_storage_policy is not set in the topic provided above, then the updated value is determined by the policy configured at the project or organization level.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. Indicates which fields in the provided topic to update. Must be specified and non-empty. Note that if update_mask contains "message_storage_policy" but the message_storage_policy is not set in the topic provided above, then the updated value is determined by the policy configured at the project or organization level.

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

static::build

Parameters
NameDescription
topic Google\Cloud\PubSub\V1\Topic

Required. The updated topic object.

updateMask Google\Protobuf\FieldMask

Required. Indicates which fields in the provided topic to update. Must be specified and non-empty. Note that if update_mask contains "message_storage_policy" but the message_storage_policy is not set in the topic provided above, then the updated value is determined by the policy configured at the project or organization level.

Returns
TypeDescription
Google\Cloud\PubSub\V1\UpdateTopicRequest