# Google Cloud Dataplex V1 Client - Class MetadataJob (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class MetadataJob.

A metadata job resource.

Generated from protobuf message `google.cloud.dataplex.v1.MetadataJob`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Identifier. The name of the resource that the configuration is applied to, in the format `projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. |
| `↳ uid` | `string` Output only. A system-generated, globally unique ID for the metadata job. If the metadata job is deleted and then re-created with the same name, this ID is different. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the metadata job was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the metadata job was updated. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. User-defined labels. |
| `↳ type` | `int` Required. Metadata job type. |
| `↳ import_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ImportJobSpec` Import job specification. |
| `↳ export_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ExportJobSpec` Export job specification. |
| `↳ import_result` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ImportJobResult` Output only. Import job result. |
| `↳ export_result` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ExportJobResult` Output only. Export job result. |
| `↳ status` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.Status` Output only. Metadata job status. |

### getName

Output only. Identifier. The name of the resource that the configuration is
applied to, in the format
`projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`.

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

### setName

Output only. Identifier. The name of the resource that the configuration is
applied to, in the format
`projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`.

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

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

### getUid

Output only. A system-generated, globally unique ID for the metadata job.

If the metadata job is deleted and then re-created with the same name, this
ID is different.

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

### setUid

Output only. A system-generated, globally unique ID for the metadata job.

If the metadata job is deleted and then re-created with the same name, this
ID is different.

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

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

### getCreateTime

Output only. The time when the metadata job was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the metadata job was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The time when the metadata job was updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the metadata job was updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

Optional. User-defined labels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. User-defined labels.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getType

Required. Metadata job type.

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

### setType

Required. Metadata job type.

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

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

### getImportSpec

Import job specification.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ImportJobSpec|null` |   |

### hasImportSpec

### setImportSpec

Import job specification.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ImportJobSpec` |

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

### getExportSpec

Export job specification.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ExportJobSpec|null` |   |

### hasExportSpec

### setExportSpec

Export job specification.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ExportJobSpec` |

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

### getImportResult

Output only. Import job result.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ImportJobResult|null` |   |

### hasImportResult

### setImportResult

Output only. Import job result.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ImportJobResult` |

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

### getExportResult

Output only. Export job result.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ExportJobResult|null` |   |

### hasExportResult

### setExportResult

Output only. Export job result.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.ExportJobResult` |

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

### getStatus

Output only. Metadata job status.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.Status|null` |   |

### hasStatus

### clearStatus

### setStatus

Output only. Metadata job status.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.MetadataJob.Status` |

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

### getSpec

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

### getResult

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