Google Cloud Batch V1 Client - Class JobNotification (0.2.2)

Reference documentation and code samples for the Google Cloud Batch V1 Client class JobNotification.

Notification configurations.

Generated from protobuf message google.cloud.batch.v1.JobNotification

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ pubsub_topic string

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}.

↳ message Google\Cloud\Batch\V1\JobNotification\Message

The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.

getPubsubTopic

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}.

Generated from protobuf field string pubsub_topic = 1;

Returns
TypeDescription
string

setPubsubTopic

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}.

Generated from protobuf field string pubsub_topic = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMessage

The attribute requirements of messages to be sent to this Pub/Sub topic.

Without this field, no message will be sent.

Generated from protobuf field .google.cloud.batch.v1.JobNotification.Message message = 2;

Returns
TypeDescription
Google\Cloud\Batch\V1\JobNotification\Message|null

hasMessage

clearMessage

setMessage

The attribute requirements of messages to be sent to this Pub/Sub topic.

Without this field, no message will be sent.

Generated from protobuf field .google.cloud.batch.v1.JobNotification.Message message = 2;

Parameter
NameDescription
var Google\Cloud\Batch\V1\JobNotification\Message
Returns
TypeDescription
$this