Interface DiskOrBuilder (0.51.0)

public interface DiskOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getName()

public abstract String getName()

A user-supplied name for the disk. Used when mounting the disk into actions. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

A user-supplied name for the disk. Used when mounting the disk into actions. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getSizeGb()

public abstract int getSizeGb()

The size, in GB, of the disk to attach. If the size is not specified, a default is chosen to ensure reasonable I/O performance.

If the disk type is specified as local-ssd, multiple local drives are automatically combined to provide the requested size. Note, however, that each physical SSD is 375GB in size, and no more than 8 drives can be attached to a single instance.

int32 size_gb = 2;

Returns
Type Description
int

The sizeGb.

getSourceImage()

public abstract String getSourceImage()

An optional image to put on the disk before attaching it to the VM.

string source_image = 4;

Returns
Type Description
String

The sourceImage.

getSourceImageBytes()

public abstract ByteString getSourceImageBytes()

An optional image to put on the disk before attaching it to the VM.

string source_image = 4;

Returns
Type Description
ByteString

The bytes for sourceImage.

getType()

public abstract String getType()

The Compute Engine disk type. If unspecified, pd-standard is used.

string type = 3;

Returns
Type Description
String

The type.

getTypeBytes()

public abstract ByteString getTypeBytes()

The Compute Engine disk type. If unspecified, pd-standard is used.

string type = 3;

Returns
Type Description
ByteString

The bytes for type.