# Google Cloud Discovery Engine V1 Client - Class SpannerSource (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class SpannerSource.

The Spanner source for importing data

Generated from protobuf message `google.cloud.discoveryengine.v1.SpannerSource`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ project_id` | `string` The project ID that contains the Spanner source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request. |
| `↳ instance_id` | `string` Required. The instance ID of the source Spanner table. |
| `↳ database_id` | `string` Required. The database ID of the source Spanner table. |
| `↳ table_id` | `string` Required. The table name of the Spanner database that needs to be imported. |
| `↳ enable_data_boost` | `bool` Whether to apply data boost on Spanner export. Enabling this option will incur additional cost. More info can be found [here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas). |

### getProjectId

The project ID that contains the Spanner source. Has a length limit of 128
characters. If not specified, inherits the project ID from the parent
request.

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

### setProjectId

The project ID that contains the Spanner source. Has a length limit of 128
characters. If not specified, inherits the project ID from the parent
request.

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

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

### getInstanceId

Required. The instance ID of the source Spanner table.

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

### setInstanceId

Required. The instance ID of the source Spanner table.

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

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

### getDatabaseId

Required. The database ID of the source Spanner table.

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

### setDatabaseId

Required. The database ID of the source Spanner table.

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

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

### getTableId

Required. The table name of the Spanner database that needs to be imported.

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

### setTableId

Required. The table name of the Spanner database that needs to be imported.

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

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

### getEnableDataBoost

Whether to apply data boost on Spanner export. Enabling this option will
incur additional cost. More info can be found
[here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnableDataBoost

Whether to apply data boost on Spanner export. Enabling this option will
incur additional cost. More info can be found
[here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).

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

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