Reference documentation and code samples for the Google Cloud Batch V1 Client class Message.
Message details.
Describe the attribute that a message should have. Without specified message attributes, no message will be sent by default.
Generated from protobuf message google.cloud.batch.v1.JobNotification.Message
Namespace
Google \ Cloud \ Batch \ V1 \ JobNotificationMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
int
The message type. |
↳ new_job_state |
int
The new job state. |
↳ new_task_state |
int
The new task state. |
getType
The message type.
Returns | |
---|---|
Type | Description |
int |
setType
The message type.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getNewJobState
The new job state.
Returns | |
---|---|
Type | Description |
int |
setNewJobState
The new job state.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getNewTaskState
The new task state.
Returns | |
---|---|
Type | Description |
int |
setNewTaskState
The new task state.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |