# Google Cloud BigQuery Migration V2 Client - Class TranslationDetails (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 TranslationDetails.

The translation details to capture the necessary settings for a translation
job.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_target_mapping` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.SourceTargetMapping>` The mapping from source to target SQL. |
| `↳ target_base_uri` | `string` The base URI for all writes to persistent storage. |
| `↳ source_environment` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.SourceEnvironment` The default source environment values for the translation. |
| `↳ target_return_literals` | `string[]` The list of literal targets that will be directly returned to the response. Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage. |
| `↳ target_types` | `string[]` The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types. |
| `↳ suggestion_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.SuggestionConfig` The configuration for the suggestion if requested as a target type. |

### getSourceTargetMapping

The mapping from source to target SQL.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.SourceTargetMapping>` |   |

### setSourceTargetMapping

The mapping from source to target SQL.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.SourceTargetMapping>` |

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

### getTargetBaseUri

The base URI for all writes to persistent storage.

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

### setTargetBaseUri

The base URI for all writes to persistent storage.

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

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

### getSourceEnvironment

The default source environment values for the translation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.SourceEnvironment|null` |   |

### hasSourceEnvironment

### clearSourceEnvironment

### setSourceEnvironment

The default source environment values for the translation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.SourceEnvironment` |

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

### getTargetReturnLiterals

The list of literal targets that will be directly returned to the response.

Each entry consists of the constructed path, EXCLUDING the base path. Not
providing a target_base_uri will prevent writing to persistent storage.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setTargetReturnLiterals

The list of literal targets that will be directly returned to the response.

Each entry consists of the constructed path, EXCLUDING the base path. Not
providing a target_base_uri will prevent writing to persistent storage.

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

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

### getTargetTypes

The types of output to generate, e.g. sql, metadata,
lineage_from_sql_scripts, etc. If not specified, a default set of
targets will be generated. Some additional target types may be slower to
generate. See the documentation for the set of available target types.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setTargetTypes

The types of output to generate, e.g. sql, metadata,
lineage_from_sql_scripts, etc. If not specified, a default set of
targets will be generated. Some additional target types may be slower to
generate. See the documentation for the set of available target types.

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

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

### getSuggestionConfig

The configuration for the suggestion if requested as a target type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.SuggestionConfig|null` |   |

### hasSuggestionConfig

### clearSuggestionConfig

### setSuggestionConfig

The configuration for the suggestion if requested as a target type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.SuggestionConfig` |

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