# Google Cloud Vm Migration V1 Client - Class DiskMigrationJobTargetDetails (1.4.0)

1.4.0 (latest) 1.3.0 1.2.1 1.1.0 1.0.5 0.6.5 0.5.2 0.4.2 0.3.2 0.2.3 Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class DiskMigrationJobTargetDetails.

Details of the target disk in Compute Engine.

Generated from protobuf message `google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails`

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ target_disk` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.ComputeEngineDisk` Required. The target disk. |
| `↳ target_project` | `string` Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project} |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. A map of labels to associate with the disk. |
| `↳ encryption` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.Encryption` Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key. |

### getTargetDisk

Required. The target disk.

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

### hasTargetDisk

### setTargetDisk

Required. The target disk.

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

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

### getTargetProject

Required. The name of the resource of type TargetProject which represents
the Compute Engine project in which to create the disk. Should be of the
form: projects/{project}/locations/global/targetProjects/{target-project}

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

### setTargetProject

Required. The name of the resource of type TargetProject which represents
the Compute Engine project in which to create the disk. Should be of the
form: projects/{project}/locations/global/targetProjects/{target-project}

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

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

### getLabels

Optional. A map of labels to associate with the disk.

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

### setLabels

Optional. A map of labels to associate with the disk.

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

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

### getEncryption

Optional. The encryption to apply to the disk.

If the DiskMigrationJob parent Source resource has an encryption, this
field must be set to the same encryption key.

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

### hasEncryption

### clearEncryption

### setEncryption

Optional. The encryption to apply to the disk.

If the DiskMigrationJob parent Source resource has an encryption, this
field must be set to the same encryption key.

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

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

### getTargetStorage

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