public sealed class JobNotification.Types.Message : IMessage<JobNotification.Types.Message>, IEquatable<JobNotification.Types.Message>, IDeepCloneable<JobNotification.Types.Message>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1 API class JobNotification.Types.Message.
Message details.
Describe the conditions under which messages will be sent.
If no attribute is defined, no message will be sent by default.
One message should specify either the job or the task level attributes,
but not both. For example,
job level: JOB_STATE_CHANGED and/or a specified new_job_state;
task level: TASK_STATE_CHANGED and/or a specified new_task_state.
[[["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 document provides reference documentation for the \u003ccode\u003eJobNotification.Types.Message\u003c/code\u003e class within the Google Cloud Batch v1 API, specifically for version 2.4.0 and other versions of the API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eJobNotification.Types.Message\u003c/code\u003e class is used to describe the conditions under which messages will be sent related to jobs or tasks within the Batch API.\u003c/p\u003e\n"],["\u003cp\u003eMessages are only sent if attributes are defined, and they must specify either job-level attributes (like \u003ccode\u003eJOB_STATE_CHANGED\u003c/code\u003e) or task-level attributes (like \u003ccode\u003eTASK_STATE_CHANGED\u003c/code\u003e), but not both.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eJobNotification.Types.Message\u003c/code\u003e class includes properties for \u003ccode\u003eNewJobState\u003c/code\u003e, \u003ccode\u003eNewTaskState\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e, allowing users to define the specific conditions and type of message to receive.\u003c/p\u003e\n"],["\u003cp\u003eThe document lists all available versions of the \u003ccode\u003eJobNotification.Types.Message\u003c/code\u003e class from 1.0.0 to 2.13.0 (latest).\u003c/p\u003e\n"]]],[],null,[]]