Reference documentation and code samples for the Google Cloud Design Center V1 Client class DeploymentError.

The error associated with the deployment.

Generated from protobuf message `google.cloud.designcenter.v1.DeploymentError`

## Namespace

Google \\ Cloud \\ DesignCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Output only. The error type based on the deployment error code. |
| `↳ code` | `int` Output only. The deployment error code. Based on Infrastructure Manager error codes. |
| `↳ tf_errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.TerraformError.html>` Output only. The error message associated with the deployment. |
| `↳ detail` | `string` Output only. Human readable string that summarizes the deployment error issue. |
| `↳ deployment_failure_resolution_info` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.DeploymentFailureResolutionInfo>` Output only. The call to actions associated with the deployment issue. |
| `↳ error_message` | `string` Output only. Stores errors generated by Infra Manager, as well as all non-internal errors (such as INVALID_ARGUMENT) that occur before initiating the deployment. |

### getType

Output only. The error type based on the deployment error code.

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

### setType

Output only. The error type based on the deployment error code.

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

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

### getCode

Output only. The deployment error code. Based on Infrastructure Manager
error codes.

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

### setCode

Output only. The deployment error code. Based on Infrastructure Manager
error codes.

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

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

### getTfErrors

Output only. The error message associated with the deployment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.TerraformError.html>` |   |

### setTfErrors

Output only. The error message associated with the deployment.

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

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

### getDetail

Output only. Human readable string that summarizes the deployment error
issue.

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

### setDetail

Output only. Human readable string that summarizes the deployment error
issue.

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

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

### getDeploymentFailureResolutionInfo

Output only. The call to actions associated with the deployment issue.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.DeploymentFailureResolutionInfo>` |   |

### setDeploymentFailureResolutionInfo

Output only. The call to actions associated with the deployment issue.

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

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

### getErrorMessage

Output only. Stores errors generated by Infra Manager, as well as all
non-internal errors (such as INVALID_ARGUMENT) that occur before
initiating the deployment.

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

### setErrorMessage

Output only. Stores errors generated by Infra Manager, as well as all
non-internal errors (such as INVALID_ARGUMENT) that occur before
initiating the deployment.

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

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