Google Cloud Batch V1 Client - Class StatusEvent (0.6.0)

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

Status event

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type string

Type of the event.

↳ description string

Description of the event.

↳ event_time Google\Protobuf\Timestamp

The time this event occurred.

↳ task_execution Google\Cloud\Batch\V1\TaskExecution

Task Execution

↳ task_state int

Task State

getType

Type of the event.

Returns
TypeDescription
string

setType

Type of the event.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Description of the event.

Returns
TypeDescription
string

setDescription

Description of the event.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEventTime

The time this event occurred.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEventTime

clearEventTime

setEventTime

The time this event occurred.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getTaskExecution

Task Execution

Returns
TypeDescription
Google\Cloud\Batch\V1\TaskExecution|null

hasTaskExecution

clearTaskExecution

setTaskExecution

Task Execution

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

getTaskState

Task State

Returns
TypeDescription
int

setTaskState

Task State

Parameter
NameDescription
var int
Returns
TypeDescription
$this