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 Google Cloud Batch v1alpha API is used for configuring notifications, as it is used to receive updates.\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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eJobNotification\u003c/code\u003e class includes a \u003ccode\u003eMessage\u003c/code\u003e property that defines the message attribute requirements for sending notifications to a Pub/Sub topic.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePubsubTopic\u003c/code\u003e property allows specification of a Pub/Sub topic for job-related notifications, where if it is not specified, no notifications will be sent.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is \u003ccode\u003e1.0.0-alpha31\u003c/code\u003e which can be located in the first link provided, with \u003ccode\u003e1.0.0-alpha30\u003c/code\u003e being a previous version.\u003c/p\u003e\n"]]],[],null,["# Batch v1alpha API - Class JobNotification (1.0.0-alpha31)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-alpha31 (latest)](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.JobNotification)\n- [1.0.0-alpha30](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/1.0.0-alpha30/Google.Cloud.Batch.V1Alpha.JobNotification) \n\n public sealed class JobNotification : IMessage\u003cJobNotification\u003e, IEquatable\u003cJobNotification\u003e, IDeepCloneable\u003cJobNotification\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Batch v1alpha API class JobNotification.\n\nNotification configurations. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e JobNotification \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[JobNotification](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.JobNotification), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[JobNotification](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.JobNotification), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[JobNotification](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.JobNotification), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Batch.V1Alpha](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.Batch.V1Alpha.dll\n\nConstructors\n------------\n\n### JobNotification()\n\n public JobNotification()\n\n### JobNotification(JobNotification)\n\n public JobNotification(JobNotification other)\n\nProperties\n----------\n\n### Message\n\n public JobNotification.Types.Message Message { get; set; }\n\nThe attribute requirements of messages to be sent to this Pub/Sub topic.\nWithout this field, no message will be sent.\n\n### PubsubTopic\n\n public string PubsubTopic { get; set; }\n\nThe Pub/Sub topic where notifications for the job, like state\nchanges, will be published. If undefined, no Pub/Sub notifications\nare sent for this job.\n\nSpecify the topic using the following format:\n`projects/{project}/topics/{topic}`.\nNotably, if you want to specify a Pub/Sub topic that is in a\ndifferent project than the job, your administrator must grant your\nproject's Batch service agent permission to publish to that topic.\n\nFor more information about configuring Pub/Sub notifications for\na job, see\n\u003chttps://cloud.google.com/batch/docs/enable-notifications\u003e."]]