0.9.0 (latest) 0.8.0 0.7.2 0.5.0 0.4.0 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle Client class TaskAction.

The task action.

Generated from protobuf message `google.backstory.WindowsScheduledTask.TaskAction`

## Namespace

Google \\ Backstory \\ WindowsScheduledTask

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ action_type` | `int` The action type of the task. |
| `↳ exec_arguments` | `string[]` The arguments of the task. This field is only populated if the task action type is EXEC. |
| `↳ exec_working_directory` | `string` The executable working directory of the task. This field is only populated if the task action type is EXEC. |
| `↳ com_class_id` | `string` The COM class IF the action is COM handler. This field is only populated if the task action type is COM_HANDLER. |
| `↳ com_data` | `string` The data of the task. This field is only populated if the task action type is COM_HANDLER. |

### getActionType

The action type of the task.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ActionType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.WindowsScheduledTask.TaskAction.ActionType.md.txt). |

### setActionType

The action type of the task.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ActionType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.WindowsScheduledTask.TaskAction.ActionType.md.txt). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getExecArguments

The arguments of the task. This field is only populated if the task
action type is EXEC.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setExecArguments

The arguments of the task. This field is only populated if the task
action type is EXEC.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getExecWorkingDirectory

The executable working directory of the task. This field is only
populated if the task action type is EXEC.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setExecWorkingDirectory

The executable working directory of the task. This field is only
populated if the task action type is EXEC.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getComClassId

The COM class IF the action is COM handler. This field is only populated
if the task action type is COM_HANDLER.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setComClassId

The COM class IF the action is COM handler. This field is only populated
if the task action type is COM_HANDLER.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getComData

The data of the task. This field is only populated if the task action
type is COM_HANDLER.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setComData

The data of the task. This field is only populated if the task action
type is COM_HANDLER.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |