# Google Cloud Migration Center V1 Client - Class ImportJob (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class ImportJob.

A resource that represents the background job that imports asset frames.

Generated from protobuf message `google.cloud.migrationcenter.v1.ImportJob`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The full name of the import job. |
| `↳ display_name` | `string` User-friendly display name. Maximum length is 63 characters. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp when the import job was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp when the import job was last updated. |
| `↳ complete_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp when the import job was completed. |
| `↳ state` | `int` Output only. The state of the import job. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Labels as key value pairs. |
| `↳ asset_source` | `string` Required. Reference to a source. |
| `↳ validation_report` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ValidationReport` Output only. The report with the validation results of the import job. |
| `↳ execution_report` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ExecutionReport` Output only. The report with the results of running the import job. |

### getName

Output only. The full name of the import job.

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

### setName

Output only. The full name of the import job.

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

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

### getDisplayName

User-friendly display name. Maximum length is 63 characters.

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

### setDisplayName

User-friendly display name. Maximum length is 63 characters.

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

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

### getCreateTime

Output only. The timestamp when the import job was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The timestamp when the import 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 timestamp when the import job was last updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The timestamp when the import job was last updated.

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

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

### getCompleteTime

Output only. The timestamp when the import job was completed.

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

### hasCompleteTime

### clearCompleteTime

### setCompleteTime

Output only. The timestamp when the import job was completed.

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

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

### getState

Output only. The state of the import job.

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

### setState

Output only. The state of the import job.

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

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

### getLabels

Labels as key value pairs.

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

### setLabels

Labels as key value pairs.

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

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

### getAssetSource

Required. Reference to a source.

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

### setAssetSource

Required. Reference to a source.

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

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

### getValidationReport

Output only. The report with the validation results of the import job.

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

### hasValidationReport

### setValidationReport

Output only. The report with the validation results of the import job.

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

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

### getExecutionReport

Output only. The report with the results of running the import job.

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

### hasExecutionReport

### setExecutionReport

Output only. The report with the results of running the import job.

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

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

### getReport

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