public interface BootDiskOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getSizeGb()
public abstract long getSizeGb()Optional. The size of the disk in gigabytes (GB), which must be at least 40 GB.
int64 size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The sizeGb. |
getStoragePools(int index)
public abstract String getStoragePools(int index) Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The storagePools at the given index. |
getStoragePoolsBytes(int index)
public abstract ByteString getStoragePoolsBytes(int index) Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the storagePools at the given index. |
getStoragePoolsCount()
public abstract int getStoragePoolsCount() Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
int |
The count of storagePools. |
getStoragePoolsList()
public abstract List<String> getStoragePoolsList() Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the storagePools. |
getType()
public abstract String getType() Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The type. |
getTypeBytes()
public abstract ByteString getTypeBytes() Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |