# Google Cloud Migration Center V1 Client - Class ImportDataFile (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 ImportDataFile.

A resource that represents a payload file in an import job.

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

## 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 name of the file. |
| `↳ display_name` | `string` User-friendly display name. Maximum length is 63 characters. |
| `↳ format` | `int` Required. The payload format. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp when the file was created. |
| `↳ state` | `int` Output only. The state of the import data file. |
| `↳ upload_file_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.UploadFileInfo` Information about a file that is uploaded to a storage service. |

### getName

Output only. The name of the file.

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

### setName

Output only. The name of the file.

| **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` |   |

### getFormat

Required. The payload format.

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

### setFormat

Required. The payload format.

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

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

### getCreateTime

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

| **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 data file.

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

### setState

Output only. The state of the import data file.

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

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

### getUploadFileInfo

Information about a file that is uploaded to a storage service.

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

### hasUploadFileInfo

### setUploadFileInfo

Information about a file that is uploaded to a storage service.

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

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

### getFileInfo

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