public sealed class JobNotification : IMessage<JobNotification>, IEquatable<JobNotification>, IDeepCloneable<JobNotification>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1 API class JobNotification.
The Pub/Sub topic where notifications for the job, like state
changes, will be published. If undefined, no Pub/Sub notifications
are sent for this job.
Specify the topic using the following format:
projects/{project}/topics/{topic}.
Notably, if you want to specify a Pub/Sub topic that is in a
different project than the job, your administrator must grant your
project's Batch service agent permission to publish to that topic.
[[["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\u003eThis webpage provides reference documentation for the \u003ccode\u003eJobNotification\u003c/code\u003e class within the Google Cloud Batch v1 API, specifically version 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eJobNotification\u003c/code\u003e class is used for setting up notification configurations for batch jobs, allowing for the use of Pub/Sub topics to receive job state change updates.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists various versions of the \u003ccode\u003eJobNotification\u003c/code\u003e class, with version 2.13.0 being the latest available, and includes all the way back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eJobNotification\u003c/code\u003e implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits properties from \u003ccode\u003eobject\u003c/code\u003e, providing various functionalities.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eJobNotification\u003c/code\u003e class include \u003ccode\u003eMessage\u003c/code\u003e, which defines the requirements for sending messages, and \u003ccode\u003ePubsubTopic\u003c/code\u003e, which specifies the Pub/Sub topic for receiving job notifications.\u003c/p\u003e\n"]]],[],null,[]]