The Pub/Sub topic where notifications like the job state changes
will be published. This topic exist in the same project as the job
and billings will be charged to this project.
If not specified, no Pub/Sub messages will be sent.
Topic format: projects/{project}/topics/{topic}.
The Pub/Sub topic where notifications like the job state changes
will be published. This topic exist in the same project as the job
and billings will be charged to this project.
If not specified, no Pub/Sub messages will be sent.
Topic format: projects/{project}/topics/{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."],[],[],null,["# Interface JobNotificationOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.batch.v1.JobNotificationOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.batch.v1.JobNotificationOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.batch.v1.JobNotificationOrBuilder) \n\n public interface JobNotificationOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getMessage()\n\n public abstract JobNotification.Message getMessage()\n\nThe attribute requirements of messages to be sent to this Pub/Sub topic.\nWithout this field, no message will be sent.\n\n`.google.events.cloud.batch.v1.JobNotification.Message message = 2;`\n\n### getMessageOrBuilder()\n\n public abstract JobNotification.MessageOrBuilder getMessageOrBuilder()\n\nThe attribute requirements of messages to be sent to this Pub/Sub topic.\nWithout this field, no message will be sent.\n\n`.google.events.cloud.batch.v1.JobNotification.Message message = 2;`\n\n### getPubsubTopic()\n\n public abstract String getPubsubTopic()\n\nThe Pub/Sub topic where notifications like the job state changes\nwill be published. This topic exist in the same project as the job\nand billings will be charged to this project.\nIf not specified, no Pub/Sub messages will be sent.\nTopic format: `projects/{project}/topics/{topic}`.\n\n`string pubsub_topic = 1;`\n\n### getPubsubTopicBytes()\n\n public abstract ByteString getPubsubTopicBytes()\n\nThe Pub/Sub topic where notifications like the job state changes\nwill be published. This topic exist in the same project as the job\nand billings will be charged to this project.\nIf not specified, no Pub/Sub messages will be sent.\nTopic format: `projects/{project}/topics/{topic}`.\n\n`string pubsub_topic = 1;`\n\n### hasMessage()\n\n public abstract boolean hasMessage()\n\nThe attribute requirements of messages to be sent to this Pub/Sub topic.\nWithout this field, no message will be sent.\n\n`.google.events.cloud.batch.v1.JobNotification.Message message = 2;`"]]