Required. The name of the Cloud Pub/Sub topic to which messages will
be published when a job is delivered. The topic name must be in the
same format as required by PubSub's
PublishRequest.name,
for example projects/PROJECT_ID/topics/TOPIC_ID.
The topic must be in the same project as the Cloud Scheduler job.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePubsubTarget\u003c/code\u003e class is designed for delivering jobs by publishing messages to a specified Pub/Sub topic within the Google Cloud Scheduler.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version is 3.5.0, while this document refers to version 3.0.0, highlighting the different historical versions available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePubsubTarget\u003c/code\u003e inherits from \u003ccode\u003eObject\u003c/code\u003e and implements \u003ccode\u003eIMessage<PubsubTarget>\u003c/code\u003e, \u003ccode\u003eIEquatable<PubsubTarget>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<PubsubTarget>\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e, and \u003ccode\u003eIMessage\u003c/code\u003e, and includes properties for message \u003ccode\u003eAttributes\u003c/code\u003e, \u003ccode\u003eData\u003c/code\u003e, \u003ccode\u003eTopicName\u003c/code\u003e, and \u003ccode\u003eTopicNameAsTopicName\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eConstructors are provided for creating a new instance of \u003ccode\u003ePubsubTarget\u003c/code\u003e or duplicating an existing \u003ccode\u003ePubsubTarget\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThe topic name for message delivery must be formatted as \u003ccode\u003eprojects/PROJECT_ID/topics/TOPIC_ID\u003c/code\u003e and reside within the same project as the Cloud Scheduler job, and each pub/sub message should either contain data or contain at least one attribute.\u003c/p\u003e\n"]]],[],null,[]]