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

Single disk entry.

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

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ capacity_bytes` | `int|string` Disk capacity. |
| `↳ free_bytes` | `int|string` Disk free space. |
| `↳ disk_label` | `string` Disk label. |
| `↳ disk_label_type` | `string` Disk label type (e.g. BIOS/GPT) |
| `↳ interface_type` | `int` Disks interface type. |
| `↳ partitions` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.DiskPartitionList` Partition layout. |
| `↳ hw_address` | `string` Disk hardware address (e.g. 0:1 for SCSI). |
| `↳ vmware` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.VmwareDiskConfig` VMware disk details. |

### getCapacityBytes

Disk capacity.

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

### setCapacityBytes

Disk capacity.

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

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

### getFreeBytes

Disk free space.

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

### setFreeBytes

Disk free space.

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

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

### getDiskLabel

Disk label.

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

### setDiskLabel

Disk label.

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

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

### getDiskLabelType

Disk label type (e.g. BIOS/GPT)

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

### setDiskLabelType

Disk label type (e.g. BIOS/GPT)

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

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

### getInterfaceType

Disks interface type.

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

### setInterfaceType

Disks interface type.

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

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

### getPartitions

Partition layout.

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

### hasPartitions

### clearPartitions

### setPartitions

Partition layout.

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

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

### getHwAddress

Disk hardware address (e.g. 0:1 for SCSI).

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

### setHwAddress

Disk hardware address (e.g. 0:1 for SCSI).

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

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

### getVmware

VMware disk details.

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

### hasVmware

### setVmware

VMware disk details.

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

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

### getPlatformSpecific

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