Reference documentation and code samples for the Google Cloud Batch V1 Client class 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.
Generated from protobuf message google.cloud.batch.v1.JobNotification.Message
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Batch V1 Client - Class Message (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/cloud-batch/latest/V1.JobNotification.Message)\n- [1.2.1](/php/docs/reference/cloud-batch/1.2.1/V1.JobNotification.Message)\n- [1.1.7](/php/docs/reference/cloud-batch/1.1.7/V1.JobNotification.Message)\n- [1.0.3](/php/docs/reference/cloud-batch/1.0.3/V1.JobNotification.Message)\n- [0.17.0](/php/docs/reference/cloud-batch/0.17.0/V1.JobNotification.Message)\n- [0.16.10](/php/docs/reference/cloud-batch/0.16.10/V1.JobNotification.Message)\n- [0.15.0](/php/docs/reference/cloud-batch/0.15.0/V1.JobNotification.Message)\n- [0.14.0](/php/docs/reference/cloud-batch/0.14.0/V1.JobNotification.Message)\n- [0.13.1](/php/docs/reference/cloud-batch/0.13.1/V1.JobNotification.Message)\n- [0.12.1](/php/docs/reference/cloud-batch/0.12.1/V1.JobNotification.Message)\n- [0.11.3](/php/docs/reference/cloud-batch/0.11.3/V1.JobNotification.Message)\n- [0.10.0](/php/docs/reference/cloud-batch/0.10.0/V1.JobNotification.Message)\n- [0.9.0](/php/docs/reference/cloud-batch/0.9.0/V1.JobNotification.Message)\n- [0.8.0](/php/docs/reference/cloud-batch/0.8.0/V1.JobNotification.Message)\n- [0.7.0](/php/docs/reference/cloud-batch/0.7.0/V1.JobNotification.Message)\n- [0.6.0](/php/docs/reference/cloud-batch/0.6.0/V1.JobNotification.Message)\n- [0.5.2](/php/docs/reference/cloud-batch/0.5.2/V1.JobNotification.Message)\n- [0.4.0](/php/docs/reference/cloud-batch/0.4.0/V1.JobNotification.Message)\n- [0.3.0](/php/docs/reference/cloud-batch/0.3.0/V1.JobNotification.Message)\n- [0.2.2](/php/docs/reference/cloud-batch/0.2.2/V1.JobNotification.Message) \nReference documentation and code samples for the Google Cloud Batch V1 Client class Message.\n\nMessage details.\n\nDescribe the conditions under which messages will be sent.\nIf no attribute is defined, no message will be sent by default.\nOne message should specify either the job or the task level attributes,\nbut not both. For example,\njob level: JOB_STATE_CHANGED and/or a specified new_job_state;\ntask level: TASK_STATE_CHANGED and/or a specified new_task_state.\n\nGenerated from protobuf message `google.cloud.batch.v1.JobNotification.Message`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Batch \\\\ V1 \\\\ JobNotification\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getType\n\nThe message type.\n\n### setType\n\nThe message type.\n\n### getNewJobState\n\nThe new job state.\n\n### setNewJobState\n\nThe new job state.\n\n### getNewTaskState\n\nThe new task state.\n\n### setNewTaskState\n\nThe new task state."]]