public sealed class JobNotification : IMessage<JobNotification>, IEquatable<JobNotification>, IDeepCloneable<JobNotification>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1alpha 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\u003eThe \u003ccode\u003eJobNotification\u003c/code\u003e class in the Batch v1alpha API is used for configuring notifications related to jobs.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eIt allows defining a Pub/Sub topic where notifications about job state changes will be published.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eJobNotification\u003c/code\u003e contains a \u003ccode\u003eMessage\u003c/code\u003e property to dictate the specific messages that should be sent to the Pub/Sub topic.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, a default constructor, and one that takes another \u003ccode\u003eJobNotification\u003c/code\u003e instance as an argument.\u003c/p\u003e\n"]]],[],null,[]]