Package com.google.cloud.compute.v1
Interface SavedAttachedDiskOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SavedAttachedDisk
,SavedAttachedDisk.Builder
public interface SavedAttachedDiskOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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).boolean
getBoot()
Indicates that this is a boot disk.String
getDeviceName()
Specifies the name of the disk attached to the source instance.com.google.protobuf.ByteString
getDeviceNameBytes()
Specifies the name of the disk attached to the source instance.CustomerEncryptionKey
getDiskEncryptionKey()
The encryption key for the disk.CustomerEncryptionKeyOrBuilder
getDiskEncryptionKeyOrBuilder()
The encryption key for the disk.long
getDiskSizeGb()
The size of the disk in base-2 GB.String
getDiskType()
[Output Only] URL of the disk type resource.com.google.protobuf.ByteString
getDiskTypeBytes()
[Output Only] URL of the disk type resource.GuestOsFeature
getGuestOsFeatures(int index)
A list of features to enable on the guest operating system.int
getGuestOsFeaturesCount()
A list of features to enable on the guest operating system.List<GuestOsFeature>
getGuestOsFeaturesList()
A list of features to enable on the guest operating system.GuestOsFeatureOrBuilder
getGuestOsFeaturesOrBuilder(int index)
A list of features to enable on the guest operating system.List<? extends GuestOsFeatureOrBuilder>
getGuestOsFeaturesOrBuilderList()
A list of features to enable on the guest operating system.int
getIndex()
Specifies zero-based index of the disk that is attached to the source instance.String
getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.com.google.protobuf.ByteString
getInterfaceBytes()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.String
getLicenses(int index)
[Output Only] Any valid publicly visible licenses.com.google.protobuf.ByteString
getLicensesBytes(int index)
[Output Only] Any valid publicly visible licenses.int
getLicensesCount()
[Output Only] Any valid publicly visible licenses.List<String>
getLicensesList()
[Output Only] Any valid publicly visible licenses.String
getMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.com.google.protobuf.ByteString
getModeBytes()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.String
getSource()
Specifies a URL of the disk attached to the source instance.com.google.protobuf.ByteString
getSourceBytes()
Specifies a URL of the disk attached to the source instance.long
getStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.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.com.google.protobuf.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.String
getType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.com.google.protobuf.ByteString
getTypeBytes()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.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).boolean
hasBoot()
Indicates that this is a boot disk.boolean
hasDeviceName()
Specifies the name of the disk attached to the source instance.boolean
hasDiskEncryptionKey()
The encryption key for the disk.boolean
hasDiskSizeGb()
The size of the disk in base-2 GB.boolean
hasDiskType()
[Output Only] URL of the disk type resource.boolean
hasIndex()
Specifies zero-based index of the disk that is attached to the source instance.boolean
hasInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.boolean
hasSource()
Specifies a URL of the disk attached to the source instance.boolean
hasStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.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.boolean
hasType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasAutoDelete
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:
- Whether the autoDelete field is set.
-
getAutoDelete
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:
- The autoDelete.
-
hasBoot
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:
- Whether the boot field is set.
-
getBoot
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:
- The boot.
-
hasDeviceName
boolean hasDeviceName()
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Returns:
- Whether the deviceName field is set.
-
getDeviceName
String getDeviceName()
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Returns:
- The deviceName.
-
getDeviceNameBytes
com.google.protobuf.ByteString getDeviceNameBytes()
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Returns:
- The bytes for deviceName.
-
hasDiskEncryptionKey
boolean hasDiskEncryptionKey()
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
- Returns:
- Whether the diskEncryptionKey field is set.
-
getDiskEncryptionKey
CustomerEncryptionKey getDiskEncryptionKey()
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
- Returns:
- The diskEncryptionKey.
-
getDiskEncryptionKeyOrBuilder
CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
-
hasDiskSizeGb
boolean hasDiskSizeGb()
The size of the disk in base-2 GB.
optional int64 disk_size_gb = 316263735;
- Returns:
- Whether the diskSizeGb field is set.
-
getDiskSizeGb
long getDiskSizeGb()
The size of the disk in base-2 GB.
optional int64 disk_size_gb = 316263735;
- Returns:
- The diskSizeGb.
-
hasDiskType
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:
- Whether the diskType field is set.
-
getDiskType
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:
- The diskType.
-
getDiskTypeBytes
com.google.protobuf.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:
- The bytes for diskType.
-
getGuestOsFeaturesList
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;
-
getGuestOsFeatures
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;
-
getGuestOsFeaturesCount
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;
-
getGuestOsFeaturesOrBuilderList
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;
-
getGuestOsFeaturesOrBuilder
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;
-
hasIndex
boolean hasIndex()
Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;
- Returns:
- Whether the index field is set.
-
getIndex
int getIndex()
Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;
- Returns:
- The index.
-
hasInterface
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:
- Whether the interface field is set.
-
getInterface
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:
- The interface.
-
getInterfaceBytes
com.google.protobuf.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:
- The bytes for interface.
-
hasKind
boolean hasKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Returns:
- Whether the kind field is set.
-
getKind
String getKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Returns:
- The kind.
-
getKindBytes
com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Returns:
- The bytes for kind.
-
getLicensesList
List<String> getLicensesList()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Returns:
- A list containing the licenses.
-
getLicensesCount
int getLicensesCount()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Returns:
- The count of licenses.
-
getLicenses
String getLicenses(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Parameters:
index
- The index of the element to return.- Returns:
- The licenses at the given index.
-
getLicensesBytes
com.google.protobuf.ByteString getLicensesBytes(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
hasMode
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:
- Whether the mode field is set.
-
getMode
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:
- The mode.
-
getModeBytes
com.google.protobuf.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:
- The bytes for mode.
-
hasSource
boolean hasSource()
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Returns:
- Whether the source field is set.
-
getSource
String getSource()
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Returns:
- The source.
-
getSourceBytes
com.google.protobuf.ByteString getSourceBytes()
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Returns:
- The bytes for source.
-
hasStorageBytes
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:
- Whether the storageBytes field is set.
-
getStorageBytes
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:
- The storageBytes.
-
hasStorageBytesStatus
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:
- Whether the storageBytesStatus field is set.
-
getStorageBytesStatus
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:
- The storageBytesStatus.
-
getStorageBytesStatusBytes
com.google.protobuf.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:
- The bytes for storageBytesStatus.
-
hasType
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:
- Whether the type field is set.
-
getType
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:
- The type.
-
getTypeBytes
com.google.protobuf.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:
- The bytes for type.
-
-