# Google Cloud Dms V1 Client - Class EntityIssue (2.1.3)

2.1.3 (latest) 2.1.2 2.0.6 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Dms V1 Client class EntityIssue.

Issue related to the entity.

Generated from protobuf message `google.cloud.clouddms.v1.EntityIssue`

## Namespace

Google \\ Cloud \\ CloudDms \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` Unique Issue ID. |
| `↳ type` | `int` The type of the issue. |
| `↳ severity` | `int` Severity of the issue |
| `↳ message` | `string` Issue detailed message |
| `↳ code` | `string` Error/Warning code |
| `↳ ddl` | `string` The ddl which caused the issue, if relevant. |
| `↳ position` | `https://docs.cloud.google.com/php/docs/reference/cloud-dms/latest/V1.EntityIssue.Position` The position of the issue found, if relevant. |
| `↳ entity_type` | `int` The entity type (if the DDL is for a sub entity). |

### getId

Unique Issue ID.

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

### setId

Unique Issue ID.

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

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

### getType

The type of the issue.

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

### setType

The type of the issue.

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

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

### getSeverity

Severity of the issue

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

### setSeverity

Severity of the issue

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

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

### getMessage

Issue detailed message

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

### setMessage

Issue detailed message

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

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

### getCode

Error/Warning code

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

### setCode

Error/Warning code

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

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

### getDdl

The ddl which caused the issue, if relevant.

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

### hasDdl

### clearDdl

### setDdl

The ddl which caused the issue, if relevant.

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

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

### getPosition

The position of the issue found, if relevant.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dms/latest/V1.EntityIssue.Position|null` |   |

### hasPosition

### clearPosition

### setPosition

The position of the issue found, if relevant.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dms/latest/V1.EntityIssue.Position` |

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

### getEntityType

The entity type (if the DDL is for a sub entity).

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

### setEntityType

The entity type (if the DDL is for a sub entity).

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

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