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 Reference documentation and code samples for the Google Cloud Dataproc Metastore V1 Client class MetadataImport.

A metastore resource that imports metadata.

Generated from protobuf message `google.cloud.metastore.v1.MetadataImport`

## Namespace

Google \\ Cloud \\ Metastore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ database_dump` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.MetadataImport.DatabaseDump` Immutable. A database dump from a pre-existing metastore's database. |
| `↳ name` | `string` Immutable. The relative resource name of the metadata import, of the form: `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. |
| `↳ description` | `string` The description of the metadata import. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. The time when the metadata import was started. |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. The time when the metadata import was last updated. |
| `↳ end_time` | `Google\Protobuf\Timestamp` Output only. The time when the metadata import finished. |
| `↳ state` | `int` Output only. The current state of the metadata import. |

### getDatabaseDump

Immutable. A database dump from a pre-existing metastore's database.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.MetadataImport.DatabaseDump|null` |   |

### hasDatabaseDump

### setDatabaseDump

Immutable. A database dump from a pre-existing metastore's database.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.MetadataImport.DatabaseDump` |

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

### getName

Immutable. The relative resource name of the metadata import, of the form:
`projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`.

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

### setName

Immutable. The relative resource name of the metadata import, of the form:
`projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`.

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

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

### getDescription

The description of the metadata import.

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

### setDescription

The description of the metadata import.

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

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

### getCreateTime

Output only. The time when the metadata import was started.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the metadata import was started.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getUpdateTime

Output only. The time when the metadata import was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the metadata import was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getEndTime

Output only. The time when the metadata import finished.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasEndTime

### clearEndTime

### setEndTime

Output only. The time when the metadata import finished.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getState

Output only. The current state of the metadata import.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.MetadataImport.State). |

### setState

Output only. The current state of the metadata import.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.MetadataImport.State). |

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

### getMetadata

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