File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -184,8 +184,12 @@ message JobStatus {
184184// Notification configurations.
185185message JobNotification {
186186 // Message details.
187- // Describe the attribute that a message should have.
188- // Without specified message attributes, no message will be sent by default.
187+ // Describe the conditions under which messages will be sent.
188+ // If no attribute is defined, no message will be sent by default.
189+ // One message should specify either the job or the task level attributes,
190+ // but not both. For example,
191+ // job level: JOB_STATE_CHANGED and/or a specified new_job_state;
192+ // task level: TASK_STATE_CHANGED and/or a specified new_task_state.
189193 message Message {
190194 // The message type.
191195 Type type = 1 ;
@@ -210,8 +214,8 @@ message JobNotification {
210214 }
211215
212216 // The Pub/Sub topic where notifications like the job state changes
213- // will be published. This topic exist in the same project as the job
214- // and billings will be charged to this project.
217+ // will be published. The topic must exist in the same project as
218+ // the job and billings will be charged to this project.
215219 // If not specified, no Pub/Sub messages will be sent.
216220 // Topic format: `projects/{project}/topics/{topic}`.
217221 string pubsub_topic = 1 ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ syntax = "proto3";
1616
1717package google.cloud.batch.v1 ;
1818
19+ import "google/api/field_behavior.proto" ;
1920import "google/api/resource.proto" ;
2021import "google/cloud/batch/v1/volume.proto" ;
2122import "google/protobuf/duration.proto" ;
You can’t perform that action at this time.
0 commit comments