To receive callback notifications, configure Settings_Notification with a CloudPubsubTopic destination.
Setup Requirements:
To register for notifications, the owner of the Pub/Sub topic must grant the following service account the projects.topics.publish permission:
alerts-api-push-notifications@system.gserviceaccount.com
Fields in Settings_Notification_CloudPubsubTopic:
topic_name (Required): The name of the Cloud Pub/Sub Topic.payload_format (Optional): The format of the payload. If not specified, the format will be JSON. Uses the Settings_Notification_PayloadFormat enum.
notification := &Settings_Notification{
Destination: &Settings_Notification_CloudPubsubTopic_{
CloudPubsubTopic: &Settings_Notification_CloudPubsubTopic{
TopicName: "projects/my-project/topics/my-topic",
PayloadFormat: Settings_Notification_PAYLOAD_FORMAT_UNSPECIFIED,
},
},
}