"transferOperationName": thenameof theTransferOperationThePubsubMessage.datacontains aTransferOperationresource
formatted according to the specifiedPayloadFormat.
Generated from protobuf messagegoogle.storagetransfer.v1.NotificationConfig
Namespace
Google \ Cloud \ StorageTransfer \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ pubsub_topic
string
Required. TheTopic.nameof the Pub/Sub topic to which to publish notifications. Must be of the format:projects/{project}/topics/{topic}. Not matching this format results in anINVALID_ARGUMENTerror.
↳ event_types
array
Event types for which a notification is desired. If empty, send notifications for all event types.
↳ payload_format
int
Required. The desired format of the notification message payloads.
getPubsubTopic
Required. TheTopic.nameof the Pub/Sub topic to which to publish
notifications. Must be of the format:projects/{project}/topics/{topic}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Storage Transfer V1 Client - Class NotificationConfig (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-storage-transfer/latest/V1.NotificationConfig)\n- [2.2.0](/php/docs/reference/cloud-storage-transfer/2.2.0/V1.NotificationConfig)\n- [2.1.1](/php/docs/reference/cloud-storage-transfer/2.1.1/V1.NotificationConfig)\n- [2.0.2](/php/docs/reference/cloud-storage-transfer/2.0.2/V1.NotificationConfig)\n- [1.5.0](/php/docs/reference/cloud-storage-transfer/1.5.0/V1.NotificationConfig)\n- [1.4.5](/php/docs/reference/cloud-storage-transfer/1.4.5/V1.NotificationConfig)\n- [1.3.1](/php/docs/reference/cloud-storage-transfer/1.3.1/V1.NotificationConfig)\n- [1.2.0](/php/docs/reference/cloud-storage-transfer/1.2.0/V1.NotificationConfig)\n- [1.1.1](/php/docs/reference/cloud-storage-transfer/1.1.1/V1.NotificationConfig)\n- [1.0.6](/php/docs/reference/cloud-storage-transfer/1.0.6/V1.NotificationConfig) \nReference documentation and code samples for the Google Cloud Storage Transfer V1 Client class NotificationConfig.\n\nSpecification to configure notifications published to Pub/Sub.\n\nNotifications are published to the customer-provided topic using the\nfollowing `PubsubMessage.attributes`:\n\n- `\"eventType\"`: one of the [EventType](/php/docs/reference/cloud-storage-transfer/latest/V1.NotificationConfig.EventType) values\n- `\"payloadFormat\"`: one of the [PayloadFormat](/php/docs/reference/cloud-storage-transfer/latest/V1.NotificationConfig.PayloadFormat) values\n- `\"projectId\"`: the [project_id](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferOperation#_Google_Cloud_StorageTransfer_V1_TransferOperation__getProjectId__) of the `TransferOperation`\n- `\"transferJobName\"`: the [transfer_job_name](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferOperation#_Google_Cloud_StorageTransfer_V1_TransferOperation__getTransferJobName__) of the `TransferOperation`\n- `\"transferOperationName\"`: the [name](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferOperation#_Google_Cloud_StorageTransfer_V1_TransferOperation__getName__) of the `TransferOperation` The `PubsubMessage.data` contains a [TransferOperation](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferOperation) resource formatted according to the specified `PayloadFormat`.\n\nGenerated from protobuf message `google.storagetransfer.v1.NotificationConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ StorageTransfer \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPubsubTopic\n\nRequired. The `Topic.name` of the Pub/Sub topic to which to publish\nnotifications. Must be of the format: `projects/{project}/topics/{topic}`.\n\nNot matching this format results in an\n[INVALID_ARGUMENT](https://cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Code.html#_Google_Rpc_Code__INVALID_ARGUMENT) error.\n\n### setPubsubTopic\n\nRequired. The `Topic.name` of the Pub/Sub topic to which to publish\nnotifications. Must be of the format: `projects/{project}/topics/{topic}`.\n\nNot matching this format results in an\n[INVALID_ARGUMENT](https://cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Code.html#_Google_Rpc_Code__INVALID_ARGUMENT) error.\n\n### getEventTypes\n\nEvent types for which a notification is desired. If empty, send\nnotifications for all event types.\n\n### setEventTypes\n\nEvent types for which a notification is desired. If empty, send\nnotifications for all event types.\n\n### getPayloadFormat\n\nRequired. The desired format of the notification message payloads.\n\n### setPayloadFormat\n\nRequired. The desired format of the notification message payloads."]]