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"]],[["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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eJobNotification\u003c/code\u003e class in the Google.Cloud.Batch.V1 namespace is used for configuring notifications for Batch jobs.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eJobNotification\u003c/code\u003e class is 2.13.0, but multiple previous versions are also available, ranging back to 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, providing features such as message handling, equality checking, deep cloning, and buffered message capabilities.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows setting a Pub/Sub topic (\u003ccode\u003ePubsubTopic\u003c/code\u003e) to receive notifications about job state changes, and a \u003ccode\u003eMessage\u003c/code\u003e object that specifies the message's attributes.\u003c/p\u003e\n"],["\u003cp\u003eIf \u003ccode\u003ePubsubTopic\u003c/code\u003e is undefined no notifications are sent, and if a topic in another project is set, you need to grant the Batch service permission to publish to it.\u003c/p\u003e\n"]]],[],null,[]]