1.2.4 (latest) 1.2.3 1.1.1 1.0.4 0.11.5 0.10.2 0.9.0 0.8.1 0.7.0 0.6.1 0.5.1 0.4.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Dataproc Metastore V1alpha Client class MoveTableToDatabaseRequest.

Request message for
[DataprocMetastore.MoveTableToDatabase](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1alpha.Client.DataprocMetastoreClient#_Google_Cloud_Metastore_V1alpha_Client_DataprocMetastoreClient__moveTableToDatabase__).

Generated from protobuf message `google.cloud.metastore.v1alpha.MoveTableToDatabaseRequest`

## Namespace

Google \\ Cloud \\ Metastore \\ V1alpha

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service` | `string` Required. The relative resource name of the metastore service to mutate metadata, in the following format: `projects/{project_id}/locations/{location_id}/services/{service_id}`. |
| `↳ table_name` | `string` Required. The name of the table to be moved. |
| `↳ db_name` | `string` Required. The name of the database where the table resides. |
| `↳ destination_db_name` | `string` Required. The name of the database where the table should be moved. |

### getService

Required. The relative resource name of the metastore service to mutate
metadata, in the following format:
`projects/{project_id}/locations/{location_id}/services/{service_id}`.

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

### setService

Required. The relative resource name of the metastore service to mutate
metadata, in the following format:
`projects/{project_id}/locations/{location_id}/services/{service_id}`.

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

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

### getTableName

Required. The name of the table to be moved.

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

### setTableName

Required. The name of the table to be moved.

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

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

### getDbName

Required. The name of the database where the table resides.

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

### setDbName

Required. The name of the database where the table resides.

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

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

### getDestinationDbName

Required. The name of the database where the table should be moved.

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

### setDestinationDbName

Required. The name of the database where the table should be moved.

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

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