# Interface MachineShapeOrBuilder (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 interface MachineShapeOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCpuCores()

    public abstract double getCpuCores()

Optional. Number of CPU cores per VM.

`double cpu_cores = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### getGpuComputeType()

    public abstract String getGpuComputeType()

Optional. The GPU name recognized by Compute Engine APIs.

`string gpu_compute_type = 10 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The gpuComputeType. |

### getGpuComputeTypeBytes()

    public abstract ByteString getGpuComputeTypeBytes()

Optional. The GPU name recognized by Compute Engine APIs.

`string gpu_compute_type = 10 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for gpuComputeType. |

### getGpuCores()

    public abstract long getGpuCores()

Optional. The number of GPU cores per VM.

`int64 gpu_cores = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### getGpuType()

    public abstract String getGpuType()

Optional. The type of GPU with the VM.

`string gpu_type = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The gpuType. |

### getGpuTypeBytes()

    public abstract ByteString getGpuTypeBytes()

Optional. The type of GPU with the VM.

`string gpu_type = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for gpuType. |

### getLocalSsdGb()

    public abstract double getLocalSsdGb()

Optional. Total amount of local SSD storage.

`double local_ssd_gb = 8 [(.google.api.field_behavior) = OPTIONAL];`

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

### getLocalSsdInterface()

    public abstract String getLocalSsdInterface()

Optional. The local SSD interface used such as nvme or scsi

`string local_ssd_interface = 11 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The localSsdInterface. |

### getLocalSsdInterfaceBytes()

    public abstract ByteString getLocalSsdInterfaceBytes()

Optional. The local SSD interface used such as nvme or scsi

`string local_ssd_interface = 11 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for localSsdInterface. |

### getLocalSsdPartitions()

    public abstract long getLocalSsdPartitions()

Optional. The number of local SSD partitions per VM.

`int64 local_ssd_partitions = 7 [(.google.api.field_behavior) = OPTIONAL];`

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

### getMachineFamily()

    public abstract String getMachineFamily()

Optional. The VM family.

`string machine_family = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The machineFamily. |

### getMachineFamilyBytes()

    public abstract ByteString getMachineFamilyBytes()

Optional. The VM family.

`string machine_family = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for machineFamily. |

### getMachineShape()

    public abstract String getMachineShape()

Optional. The customer visible string representing the type of VM.

`string machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The machineShape. |

### getMachineShapeBytes()

    public abstract ByteString getMachineShapeBytes()

Optional. The customer visible string representing the type of VM.

`string machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for machineShape. |

### getMachineType()

    public abstract String getMachineType()

Optional. The characteristics of the sampled VM expressed as a string.

`string machine_type = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The machineType. |

### getMachineTypeBytes()

    public abstract ByteString getMachineTypeBytes()

Optional. The characteristics of the sampled VM expressed as a string.

`string machine_type = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for machineType. |

### getMemoryGb()

    public abstract double getMemoryGb()

Optional. Total amount of memory with the VM.

`double memory_gb = 9 [(.google.api.field_behavior) = OPTIONAL];`

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

### getMinCpuPlatform()

    public abstract String getMinCpuPlatform()

Optional. The Min-cpu platform used such as icelake

`string min_cpu_platform = 12 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The minCpuPlatform. |

### getMinCpuPlatformBytes()

    public abstract ByteString getMinCpuPlatformBytes()

Optional. The Min-cpu platform used such as icelake

`string min_cpu_platform = 12 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for minCpuPlatform. |