# Google Cloud Dataplex V1 Client - Class DataScanJob (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 DataScanJob.

A DataScanJob represents an instance of DataScan execution.

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

## 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 relative resource name of the DataScanJob, of the form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`, where `project` refers to a *project_id* or *project_number* and `location_id` refers to a Google Cloud region. |
| `↳ uid` | `string` Output only. System generated globally unique ID for the DataScanJob. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the DataScanJob was created. |
| `↳ partial_failure_message` | `string` Output only. A message indicating partial failure details. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the DataScanJob was started. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the DataScanJob ended. |
| `↳ state` | `int` Output only. Execution state for the DataScanJob. |
| `↳ message` | `string` Output only. Additional information about the current state. |
| `↳ type` | `int` Output only. The type of the parent DataScan. |
| `↳ data_quality_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataQualitySpec` Output only. Settings for a data quality scan. |
| `↳ data_profile_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataProfileSpec` Output only. Settings for a data profile scan. |
| `↳ data_discovery_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataDiscoverySpec` Output only. Settings for a data discovery scan. |
| `↳ data_documentation_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataDocumentationSpec` Output only. Settings for a data documentation scan. |
| `↳ data_quality_result` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataQualityResult` Output only. The result of a data quality scan. |
| `↳ data_profile_result` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataProfileResult` Output only. The result of a data profile scan. |
| `↳ data_discovery_result` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataDiscoveryResult` Output only. The result of a data discovery scan. |
| `↳ data_documentation_result` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataDocumentationResult` Output only. The result of a data documentation scan. |

### getName

Output only. Identifier. The relative resource name of the DataScanJob, of
the form:
`projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`,
where `project` refers to a *project_id* or *project_number* and
`location_id` refers to a Google Cloud region.

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

### setName

Output only. Identifier. The relative resource name of the DataScanJob, of
the form:
`projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`,
where `project` refers to a *project_id* or *project_number* and
`location_id` refers to a Google Cloud region.

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

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

### getUid

Output only. System generated globally unique ID for the DataScanJob.

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

### setUid

Output only. System generated globally unique ID for the DataScanJob.

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

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

### getCreateTime

Output only. The time when the DataScanJob 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 DataScanJob was created.

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

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

### getPartialFailureMessage

Output only. A message indicating partial failure details.

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

### setPartialFailureMessage

Output only. A message indicating partial failure details.

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

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

### getStartTime

Output only. The time when the DataScanJob was started.

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

### hasStartTime

### clearStartTime

### setStartTime

Output only. The time when the DataScanJob was started.

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

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

### getEndTime

Output only. The time when the DataScanJob ended.

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

### hasEndTime

### clearEndTime

### setEndTime

Output only. The time when the DataScanJob ended.

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

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

### getState

Output only. Execution state for the DataScanJob.

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

### setState

Output only. Execution state for the DataScanJob.

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

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

### getMessage

Output only. Additional information about the current state.

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

### setMessage

Output only. Additional information about the current state.

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

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

### getType

Output only. The type of the parent DataScan.

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

### setType

Output only. The type of the parent DataScan.

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

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

### getDataQualitySpec

Output only. Settings for a data quality scan.

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

### hasDataQualitySpec

### setDataQualitySpec

Output only. Settings for a data quality scan.

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

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

### getDataProfileSpec

Output only. Settings for a data profile scan.

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

### hasDataProfileSpec

### setDataProfileSpec

Output only. Settings for a data profile scan.

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

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

### getDataDiscoverySpec

Output only. Settings for a data discovery scan.

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

### hasDataDiscoverySpec

### setDataDiscoverySpec

Output only. Settings for a data discovery scan.

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

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

### getDataDocumentationSpec

Output only. Settings for a data documentation scan.

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

### hasDataDocumentationSpec

### setDataDocumentationSpec

Output only. Settings for a data documentation scan.

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

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

### getDataQualityResult

Output only. The result of a data quality scan.

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

### hasDataQualityResult

### setDataQualityResult

Output only. The result of a data quality scan.

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

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

### getDataProfileResult

Output only. The result of a data profile scan.

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

### hasDataProfileResult

### setDataProfileResult

Output only. The result of a data profile scan.

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

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

### getDataDiscoveryResult

Output only. The result of a data discovery scan.

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

### hasDataDiscoveryResult

### setDataDiscoveryResult

Output only. The result of a data discovery scan.

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

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

### getDataDocumentationResult

Output only. The result of a data documentation scan.

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

### hasDataDocumentationResult

### setDataDocumentationResult

Output only. The result of a data documentation scan.

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

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

### getSpec

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

### getResult

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