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

Represents one path to the location that holds source data.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ base_uri` | `string` The base URI for all files to be read in as sources for translation. |
| `↳ literal` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.Literal` Source literal. |
| `↳ gcs_file_path` | `string` The path to a single source file in Cloud Storage. |
| `↳ encoding` | `string` Optional. The optional field to specify the encoding of the sql bytes. |

### getBaseUri

The base URI for all files to be read in as sources for translation.

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

### hasBaseUri

### setBaseUri

The base URI for all files to be read in as sources for translation.

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

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

### getLiteral

Source literal.

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

### hasLiteral

### setLiteral

Source literal.

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

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

### getGcsFilePath

The path to a single source file in Cloud Storage.

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

### hasGcsFilePath

### setGcsFilePath

The path to a single source file in Cloud Storage.

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

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

### getEncoding

Optional. The optional field to specify the encoding of the sql bytes.

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

### setEncoding

Optional. The optional field to specify the encoding of the sql bytes.

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

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

### getSource

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