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\u003eThe \u003ccode\u003eJobNotification\u003c/code\u003e class in the Google.Cloud.Batch.V1 API provides notification configurations for Batch jobs.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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, ensuring various functionalities for working with the class.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a \u003ccode\u003eMessage\u003c/code\u003e property that defines the attribute requirements of messages to be sent to a Pub/Sub topic, with no messages sent if undefined.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePubsubTopic\u003c/code\u003e property allows specifying the Pub/Sub topic where notifications for the job will be published, allowing notification when the job changes state, and uses the format \u003ccode\u003eprojects/{project}/topics/{topic}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available in the documentation is 2.13.0, and the documentation includes a history of versions going back to 1.0.0.\u003c/p\u003e\n"]]],[],null,[]]