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

Represents the default source environment values for the translation.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ default_database` | `string` The default database name to fully qualify SQL objects when their database name is missing. |
| `↳ schema_search_path` | `string[]` The schema search path. When SQL objects are missing schema name, translation engine will search through this list to find the value. |
| `↳ metadata_store_dataset` | `string` Optional. Expects a validQ BigQuery dataset ID that exists, e.g., project-123.metadata_store_123. If specified, translation will search and read the required schema information from a metadata store in this dataset. If metadata store doesn't exist, translation will parse the metadata file and upload the schema info to a temp table in the dataset to speed up future translation jobs. |

### getDefaultDatabase

The default database name to fully qualify SQL objects when their database
name is missing.

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

### setDefaultDatabase

The default database name to fully qualify SQL objects when their database
name is missing.

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

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

### getSchemaSearchPath

The schema search path. When SQL objects are missing schema name,
translation engine will search through this list to find the value.

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

### setSchemaSearchPath

The schema search path. When SQL objects are missing schema name,
translation engine will search through this list to find the value.

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

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

### getMetadataStoreDataset

Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
project-123.metadata_store_123. If specified, translation will search and
read the required schema information from a metadata store in this dataset.

If metadata store doesn't exist, translation will parse the metadata file
and upload the schema info to a temp table in the dataset to speed up
future translation jobs.

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

### setMetadataStoreDataset

Optional. Expects a validQ BigQuery dataset ID that exists, e.g.,
project-123.metadata_store_123. If specified, translation will search and
read the required schema information from a metadata store in this dataset.

If metadata store doesn't exist, translation will parse the metadata file
and upload the schema info to a temp table in the dataset to speed up
future translation jobs.

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

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