# Google Cloud Workload Manager V1 Client - Class Execution (0.2.0)

0.2.0 (latest) 0.1.0 Reference documentation and code samples for the Google Cloud Workload Manager V1 Client class Execution.

Execution that represents a single run of an Evaluation.

Generated from protobuf message `google.cloud.workloadmanager.v1.Execution`

## Namespace

Google \\ Cloud \\ WorkloadManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. \[Output only\] Start time stamp. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. \[Output only\] End time stamp. |
| `↳ inventory_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. \[Output only\] Inventory time stamp. |
| `↳ state` | `int` Output only. \[Output only\] State. |
| `↳ evaluation_id` | `string` Output only. \[Output only\] Evaluation ID. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Labels as key value pairs. |
| `↳ run_type` | `int` Type which represents whether the execution executed directly by user or scheduled according to the `Evaluation.schedule` field. |
| `↳ rule_results` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.RuleExecutionResult>` Output only. Execution result summary per rule. |
| `↳ external_data_sources` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.ExternalDataSources>` Optional. External data sources. |
| `↳ notices` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.Notice>` Output only. Additional information generated by the execution. |
| `↳ engine` | `int` Optional. Engine. |
| `↳ result_summary` | `https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.Summary` Output only. \[Output only\] Result summary for the execution. |

### getName

The name of execution resource. The format is
projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.

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

### setName

The name of execution resource. The format is
projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.

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

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

### getStartTime

Output only. \[Output only\] Start time stamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasStartTime

### clearStartTime

### setStartTime

Output only. \[Output only\] Start time stamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getEndTime

Output only. \[Output only\] End time stamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasEndTime

### clearEndTime

### setEndTime

Output only. \[Output only\] End time stamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getInventoryTime

Output only. \[Output only\] Inventory time stamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasInventoryTime

### clearInventoryTime

### setInventoryTime

Output only. \[Output only\] Inventory time stamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getState

Output only. \[Output only\] State.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.State). |

### setState

Output only. \[Output only\] State.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.State). |

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

### getEvaluationId

Output only. \[Output only\] Evaluation ID.

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

### setEvaluationId

Output only. \[Output only\] Evaluation ID.

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

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

### getLabels

Labels as key value pairs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Labels as key value pairs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getRunType

Type which represents whether the execution executed directly by user or
scheduled according to the `Evaluation.schedule` field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.Type). |

### setRunType

Type which represents whether the execution executed directly by user or
scheduled according to the `Evaluation.schedule` field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.Type). |

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

### getRuleResults

Output only. Execution result summary per rule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.RuleExecutionResult>` |   |

### setRuleResults

Output only. Execution result summary per rule.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.RuleExecutionResult>` |

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

### getExternalDataSources

Optional. External data sources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.ExternalDataSources>` |   |

### setExternalDataSources

Optional. External data sources.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.ExternalDataSources>` |

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

### getNotices

Output only. Additional information generated by the execution.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.Notice>` |   |

### setNotices

Output only. Additional information generated by the execution.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.Notice>` |

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

### getEngine

Optional. Engine.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Engine](https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.Engine). |

### setEngine

Optional. Engine.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Engine](https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.Engine). |

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

### getResultSummary

Output only. \[Output only\] Result summary for the execution.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.Summary|null` |   |

### hasResultSummary

### clearResultSummary

### setResultSummary

Output only. \[Output only\] Result summary for the execution.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest/V1.Execution.Summary` |

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