Class SavedAttachedDisk (1.64.0)

public final class SavedAttachedDisk extends GeneratedMessageV3 implements SavedAttachedDiskOrBuilder

DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource.

Protobuf type google.cloud.compute.v1.SavedAttachedDisk

Static Fields

AUTO_DELETE_FIELD_NUMBER

public static final int AUTO_DELETE_FIELD_NUMBER
Field Value
Type Description
int

BOOT_FIELD_NUMBER

public static final int BOOT_FIELD_NUMBER
Field Value
Type Description
int

DEVICE_NAME_FIELD_NUMBER

public static final int DEVICE_NAME_FIELD_NUMBER
Field Value
Type Description
int

DISK_ENCRYPTION_KEY_FIELD_NUMBER

public static final int DISK_ENCRYPTION_KEY_FIELD_NUMBER
Field Value
Type Description
int

DISK_SIZE_GB_FIELD_NUMBER

public static final int DISK_SIZE_GB_FIELD_NUMBER
Field Value
Type Description
int

DISK_TYPE_FIELD_NUMBER

public static final int DISK_TYPE_FIELD_NUMBER
Field Value
Type Description
int

GUEST_OS_FEATURES_FIELD_NUMBER

public static final int GUEST_OS_FEATURES_FIELD_NUMBER
Field Value
Type Description
int

INDEX_FIELD_NUMBER

public static final int INDEX_FIELD_NUMBER
Field Value
Type Description
int

INTERFACE_FIELD_NUMBER

public static final int INTERFACE_FIELD_NUMBER
Field Value
Type Description
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
Type Description
int

LICENSES_FIELD_NUMBER

public static final int LICENSES_FIELD_NUMBER
Field Value
Type Description
int

MODE_FIELD_NUMBER

public static final int MODE_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_FIELD_NUMBER

public static final int SOURCE_FIELD_NUMBER
Field Value
Type Description
int

STORAGE_BYTES_FIELD_NUMBER

public static final int STORAGE_BYTES_FIELD_NUMBER
Field Value
Type Description
int

STORAGE_BYTES_STATUS_FIELD_NUMBER

public static final int STORAGE_BYTES_STATUS_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SavedAttachedDisk getDefaultInstance()
Returns
Type Description
SavedAttachedDisk

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SavedAttachedDisk.Builder newBuilder()
Returns
Type Description
SavedAttachedDisk.Builder

newBuilder(SavedAttachedDisk prototype)

public static SavedAttachedDisk.Builder newBuilder(SavedAttachedDisk prototype)
Parameter
Name Description
prototype SavedAttachedDisk
Returns
Type Description
SavedAttachedDisk.Builder

parseDelimitedFrom(InputStream input)

public static SavedAttachedDisk parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SavedAttachedDisk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SavedAttachedDisk parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SavedAttachedDisk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SavedAttachedDisk parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SavedAttachedDisk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SavedAttachedDisk parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SavedAttachedDisk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SavedAttachedDisk parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SavedAttachedDisk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SavedAttachedDisk parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SavedAttachedDisk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SavedAttachedDisk
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SavedAttachedDisk> parser()
Returns
Type Description
Parser<SavedAttachedDisk>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAutoDelete()

public 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
Type Description
boolean

The autoDelete.

getBoot()

public 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
Type Description
boolean

The boot.

getDefaultInstanceForType()

public SavedAttachedDisk getDefaultInstanceForType()
Returns
Type Description
SavedAttachedDisk

getDeviceName()

public String getDeviceName()

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

optional string device_name = 67541716;

Returns
Type Description
String

The deviceName.

getDeviceNameBytes()

public ByteString getDeviceNameBytes()

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

optional string device_name = 67541716;

Returns
Type Description
ByteString

The bytes for deviceName.

getDiskEncryptionKey()

public CustomerEncryptionKey getDiskEncryptionKey()

The encryption key for the disk.

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

Returns
Type Description
CustomerEncryptionKey

The diskEncryptionKey.

getDiskEncryptionKeyOrBuilder()

public CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()

The encryption key for the disk.

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

Returns
Type Description
CustomerEncryptionKeyOrBuilder

getDiskSizeGb()

public long getDiskSizeGb()

The size of the disk in base-2 GB.

optional int64 disk_size_gb = 316263735;

Returns
Type Description
long

The diskSizeGb.

getDiskType()

public 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
Type Description
String

The diskType.

getDiskTypeBytes()

public 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
Type Description
ByteString

The bytes for diskType.

getGuestOsFeatures(int index)

public 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
Name Description
index int
Returns
Type Description
GuestOsFeature

getGuestOsFeaturesCount()

public 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
Type Description
int

getGuestOsFeaturesList()

public 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
Type Description
List<GuestOsFeature>

getGuestOsFeaturesOrBuilder(int index)

public 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
Name Description
index int
Returns
Type Description
GuestOsFeatureOrBuilder

getGuestOsFeaturesOrBuilderList()

public 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
Type Description
List<? extends com.google.cloud.compute.v1.GuestOsFeatureOrBuilder>

getIndex()

public int getIndex()

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

optional int32 index = 100346066;

Returns
Type Description
int

The index.

getInterface()

public 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
Type Description
String

The interface.

getInterfaceBytes()

public 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
Type Description
ByteString

The bytes for interface.

getKind()

public String getKind()

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

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

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

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getLicenses(int index)

public String getLicenses(int index)

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The licenses at the given index.

getLicensesBytes(int index)

public ByteString getLicensesBytes(int index)

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the licenses at the given index.

getLicensesCount()

public int getLicensesCount()

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Returns
Type Description
int

The count of licenses.

getLicensesList()

public ProtocolStringList getLicensesList()

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Returns
Type Description
ProtocolStringList

A list containing the licenses.

getMode()

public 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
Type Description
String

The mode.

getModeBytes()

public 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
Type Description
ByteString

The bytes for mode.

getParserForType()

public Parser<SavedAttachedDisk> getParserForType()
Returns
Type Description
Parser<SavedAttachedDisk>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSource()

public String getSource()

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

optional string source = 177235995;

Returns
Type Description
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

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

optional string source = 177235995;

Returns
Type Description
ByteString

The bytes for source.

getStorageBytes()

public 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
Type Description
long

The storageBytes.

getStorageBytesStatus()

public 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
Type Description
String

The storageBytesStatus.

getStorageBytesStatusBytes()

public 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
Type Description
ByteString

The bytes for storageBytesStatus.

getType()

public 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
Type Description
String

The type.

getTypeBytes()

public 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
Type Description
ByteString

The bytes for type.

hasAutoDelete()

public 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
Type Description
boolean

Whether the autoDelete field is set.

hasBoot()

public 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
Type Description
boolean

Whether the boot field is set.

hasDeviceName()

public boolean hasDeviceName()

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

optional string device_name = 67541716;

Returns
Type Description
boolean

Whether the deviceName field is set.

hasDiskEncryptionKey()

public boolean hasDiskEncryptionKey()

The encryption key for the disk.

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

Returns
Type Description
boolean

Whether the diskEncryptionKey field is set.

hasDiskSizeGb()

public boolean hasDiskSizeGb()

The size of the disk in base-2 GB.

optional int64 disk_size_gb = 316263735;

Returns
Type Description
boolean

Whether the diskSizeGb field is set.

hasDiskType()

public 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
Type Description
boolean

Whether the diskType field is set.

hasIndex()

public boolean hasIndex()

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

optional int32 index = 100346066;

Returns
Type Description
boolean

Whether the index field is set.

hasInterface()

public 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
Type Description
boolean

Whether the interface field is set.

hasKind()

public boolean hasKind()

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

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasMode()

public 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
Type Description
boolean

Whether the mode field is set.

hasSource()

public boolean hasSource()

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

optional string source = 177235995;

Returns
Type Description
boolean

Whether the source field is set.

hasStorageBytes()

public 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
Type Description
boolean

Whether the storageBytes field is set.

hasStorageBytesStatus()

public 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
Type Description
boolean

Whether the storageBytesStatus field is set.

hasType()

public 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
Type Description
boolean

Whether the type field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SavedAttachedDisk.Builder newBuilderForType()
Returns
Type Description
SavedAttachedDisk.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SavedAttachedDisk.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SavedAttachedDisk.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SavedAttachedDisk.Builder toBuilder()
Returns
Type Description
SavedAttachedDisk.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException