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

Compute Engine storage option descriptor.

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

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Disk type backing the storage. |
| `↳ size_gb` | `int` Disk size in GiB. |

### getType

Disk type backing the storage.

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

### setType

Disk type backing the storage.

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

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

### getSizeGb

Disk size in GiB.

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

### setSizeGb

Disk size in GiB.

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

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