# Google Cloud BigQuery Migration V2 Client - Class TranslationReportRecord (1.3.0)

1.3.0 (latest) 1.2.3 1.1.5 1.0.0 0.4.5 0.3.3 0.2.2 0.1.4 Reference documentation and code samples for the Google Cloud BigQuery Migration V2 Client class TranslationReportRecord.

Details about a record.

Generated from protobuf message `google.cloud.bigquery.migration.v2.TranslationReportRecord`

## Namespace

Google \\ Cloud \\ BigQuery \\ Migration \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ severity` | `int` Severity of the translation record. |
| `↳ script_line` | `int` Specifies the row from the source text where the error occurred (0 based). Example: 2 |
| `↳ script_column` | `int` Specifies the column from the source texts where the error occurred. (0 based) example: 6 |
| `↳ category` | `string` Category of the error/warning. Example: SyntaxError |
| `↳ message` | `string` Detailed message of the record. |

### getSeverity

Severity of the translation record.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Severity](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.TranslationReportRecord.Severity). |

### setSeverity

Severity of the translation record.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Severity](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.TranslationReportRecord.Severity). |

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

### getScriptLine

Specifies the row from the source text where the error occurred (0 based).

Example: 2

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setScriptLine

Specifies the row from the source text where the error occurred (0 based).

Example: 2

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

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

### getScriptColumn

Specifies the column from the source texts where the error occurred. (0
based) example: 6

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setScriptColumn

Specifies the column from the source texts where the error occurred. (0
based) example: 6

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

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

### getCategory

Category of the error/warning. Example: SyntaxError

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

### setCategory

Category of the error/warning. Example: SyntaxError

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

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

### getMessage

Detailed message of the record.

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

### setMessage

Detailed message of the record.

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

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