Interface DiskOrBuilder (0.23.0)

public interface DiskOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getExistingDisk()

public abstract String getExistingDisk()

Optional. An existing persistent disk to attach read-only to all VMs in the managed instance group, in the format projects/{project}/zones/{zone}/disks/{disk}.

string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The existingDisk.

getExistingDiskBytes()

public abstract ByteString getExistingDiskBytes()

Optional. An existing persistent disk to attach read-only to all VMs in the managed instance group, in the format projects/{project}/zones/{zone}/disks/{disk}.

string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for existingDisk.

getImage()

public abstract String getImage()

Optional. Source image for the disk.

string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The image.

getImageBytes()

public abstract ByteString getImageBytes()

Optional. Source image for the disk.

string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for image.

getSizeGb()

public abstract long getSizeGb()

Optional. Size of the disk in GB. This field is required when creating a new disk.

int64 size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The sizeGb.

getSnapshot()

public abstract String getSnapshot()

Optional. Source snapshot for the disk.

string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The snapshot.

getSnapshotBytes()

public abstract ByteString getSnapshotBytes()

Optional. Source snapshot for the disk.

string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for snapshot.

getSourceCase()

public abstract Disk.SourceCase getSourceCase()
Returns
Type Description
Disk.SourceCase

getType()

public abstract String getType()

Optional. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}. This field is required when creating a new disk.

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}. This field is required when creating a new disk.

string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for type.

hasExistingDisk()

public abstract boolean hasExistingDisk()

Optional. An existing persistent disk to attach read-only to all VMs in the managed instance group, in the format projects/{project}/zones/{zone}/disks/{disk}.

string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the existingDisk field is set.

hasImage()

public abstract boolean hasImage()

Optional. Source image for the disk.

string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the image field is set.

hasSnapshot()

public abstract boolean hasSnapshot()

Optional. Source snapshot for the disk.

string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the snapshot field is set.