# Interface Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDiskOrBuilder (0.16.0)

0.16.0 (latest) 0.14.0 0.11.0 0.10.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.1.0

    public static interface Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDiskOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDiskInterface()

    public abstract Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface getDiskInterface()

Specifies the disk interface to use for attaching this disk, which is
either SCSI or NVME. The default is SCSI.

`
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface disk_interface = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface` | The diskInterface. |

### getDiskInterfaceValue()

    public abstract int getDiskInterfaceValue()

Specifies the disk interface to use for attaching this disk, which is
either SCSI or NVME. The default is SCSI.

`
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk.DiskInterface disk_interface = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for diskInterface. |

### getDiskSizeGb()

    public abstract long getDiskSizeGb()

Specifies the size of the disk in base-2 GB.

`int64 disk_size_gb = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The diskSizeGb. |