Interface SavedAttachedDiskOrBuilder (1.30.0)

public interface SavedAttachedDiskOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAutoDelete()

public abstract boolean getAutoDelete()

Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).

optional bool auto_delete = 464761403;

Returns
TypeDescription
boolean

The autoDelete.

getBoot()

public abstract boolean getBoot()

Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.

optional bool boot = 3029746;

Returns
TypeDescription
boolean

The boot.

getDeviceName()

public abstract String getDeviceName()

Specifies the name of the disk attached to the source instance.

optional string device_name = 67541716;

Returns
TypeDescription
String

The deviceName.

getDeviceNameBytes()

public abstract ByteString getDeviceNameBytes()

Specifies the name of the disk attached to the source instance.

optional string device_name = 67541716;

Returns
TypeDescription
ByteString

The bytes for deviceName.

getDiskEncryptionKey()

public abstract CustomerEncryptionKey getDiskEncryptionKey()

The encryption key for the disk.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
CustomerEncryptionKey

The diskEncryptionKey.

getDiskEncryptionKeyOrBuilder()

public abstract CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()

The encryption key for the disk.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
CustomerEncryptionKeyOrBuilder

getDiskSizeGb()

public abstract long getDiskSizeGb()

The size of the disk in base-2 GB.

optional int64 disk_size_gb = 316263735;

Returns
TypeDescription
long

The diskSizeGb.

getDiskType()

public abstract String getDiskType()

[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd

optional string disk_type = 93009052;

Returns
TypeDescription
String

The diskType.

getDiskTypeBytes()

public abstract ByteString getDiskTypeBytes()

[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd

optional string disk_type = 93009052;

Returns
TypeDescription
ByteString

The bytes for diskType.

getGuestOsFeatures(int index)

public abstract GuestOsFeature getGuestOsFeatures(int index)

A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;

Parameter
NameDescription
indexint
Returns
TypeDescription
GuestOsFeature

getGuestOsFeaturesCount()

public abstract int getGuestOsFeaturesCount()

A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;

Returns
TypeDescription
int

getGuestOsFeaturesList()

public abstract List<GuestOsFeature> getGuestOsFeaturesList()

A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;

Returns
TypeDescription
List<GuestOsFeature>

getGuestOsFeaturesOrBuilder(int index)

public abstract GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder(int index)

A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;

Parameter
NameDescription
indexint
Returns
TypeDescription
GuestOsFeatureOrBuilder

getGuestOsFeaturesOrBuilderList()

public abstract List<? extends GuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()

A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.GuestOsFeatureOrBuilder>

getIndex()

public abstract int getIndex()

Specifies zero-based index of the disk that is attached to the source instance.

optional int32 index = 100346066;

Returns
TypeDescription
int

The index.

getInterface()

public abstract String getInterface()

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.

optional string interface = 502623545;

Returns
TypeDescription
String

The interface.

getInterfaceBytes()

public abstract ByteString getInterfaceBytes()

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.

optional string interface = 502623545;

Returns
TypeDescription
ByteString

The bytes for interface.

getKind()

public abstract String getKind()

[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public abstract ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getLicenses(int index)

public abstract String getLicenses(int index)

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The licenses at the given index.

getLicensesBytes(int index)

public abstract ByteString getLicensesBytes(int index)

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the licenses at the given index.

getLicensesCount()

public abstract int getLicensesCount()

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Returns
TypeDescription
int

The count of licenses.

getLicensesList()

public abstract List<String> getLicensesList()

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Returns
TypeDescription
List<String>

A list containing the licenses.

getMode()

public abstract String getMode()

The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.

optional string mode = 3357091;

Returns
TypeDescription
String

The mode.

getModeBytes()

public abstract ByteString getModeBytes()

The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.

optional string mode = 3357091;

Returns
TypeDescription
ByteString

The bytes for mode.

getSource()

public abstract String getSource()

Specifies a URL of the disk attached to the source instance.

optional string source = 177235995;

Returns
TypeDescription
String

The source.

getSourceBytes()

public abstract ByteString getSourceBytes()

Specifies a URL of the disk attached to the source instance.

optional string source = 177235995;

Returns
TypeDescription
ByteString

The bytes for source.

getStorageBytes()

public abstract long getStorageBytes()

[Output Only] A size of the storage used by the disk's snapshot by this machine image.

optional int64 storage_bytes = 424631719;

Returns
TypeDescription
long

The storageBytes.

getStorageBytesStatus()

public abstract String getStorageBytesStatus()

[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.

optional string storage_bytes_status = 490739082;

Returns
TypeDescription
String

The storageBytesStatus.

getStorageBytesStatusBytes()

public abstract ByteString getStorageBytesStatusBytes()

[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.

optional string storage_bytes_status = 490739082;

Returns
TypeDescription
ByteString

The bytes for storageBytesStatus.

getType()

public abstract String getType()

Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
TypeDescription
String

The type.

getTypeBytes()

public abstract ByteString getTypeBytes()

Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
TypeDescription
ByteString

The bytes for type.

hasAutoDelete()

public abstract boolean hasAutoDelete()

Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).

optional bool auto_delete = 464761403;

Returns
TypeDescription
boolean

Whether the autoDelete field is set.

hasBoot()

public abstract boolean hasBoot()

Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.

optional bool boot = 3029746;

Returns
TypeDescription
boolean

Whether the boot field is set.

hasDeviceName()

public abstract boolean hasDeviceName()

Specifies the name of the disk attached to the source instance.

optional string device_name = 67541716;

Returns
TypeDescription
boolean

Whether the deviceName field is set.

hasDiskEncryptionKey()

public abstract boolean hasDiskEncryptionKey()

The encryption key for the disk.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
boolean

Whether the diskEncryptionKey field is set.

hasDiskSizeGb()

public abstract boolean hasDiskSizeGb()

The size of the disk in base-2 GB.

optional int64 disk_size_gb = 316263735;

Returns
TypeDescription
boolean

Whether the diskSizeGb field is set.

hasDiskType()

public abstract boolean hasDiskType()

[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd

optional string disk_type = 93009052;

Returns
TypeDescription
boolean

Whether the diskType field is set.

hasIndex()

public abstract boolean hasIndex()

Specifies zero-based index of the disk that is attached to the source instance.

optional int32 index = 100346066;

Returns
TypeDescription
boolean

Whether the index field is set.

hasInterface()

public abstract boolean hasInterface()

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.

optional string interface = 502623545;

Returns
TypeDescription
boolean

Whether the interface field is set.

hasKind()

public abstract boolean hasKind()

[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasMode()

public abstract boolean hasMode()

The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.

optional string mode = 3357091;

Returns
TypeDescription
boolean

Whether the mode field is set.

hasSource()

public abstract boolean hasSource()

Specifies a URL of the disk attached to the source instance.

optional string source = 177235995;

Returns
TypeDescription
boolean

Whether the source field is set.

hasStorageBytes()

public abstract boolean hasStorageBytes()

[Output Only] A size of the storage used by the disk's snapshot by this machine image.

optional int64 storage_bytes = 424631719;

Returns
TypeDescription
boolean

Whether the storageBytes field is set.

hasStorageBytesStatus()

public abstract boolean hasStorageBytesStatus()

[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.

optional string storage_bytes_status = 490739082;

Returns
TypeDescription
boolean

Whether the storageBytesStatus field is set.

hasType()

public abstract boolean hasType()

Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
TypeDescription
boolean

Whether the type field is set.