public final class AttachedDisk extends com.google.protobuf.GeneratedMessageV3 implements AttachedDiskOrBuilder
An instance-attached disk resource.Protobuf type
google.cloud.compute.v1.AttachedDisk| Modifier and Type | Class and Description |
|---|---|
static class |
AttachedDisk.Architecture
[Output Only] The architecture of the attached disk.
|
static class |
AttachedDisk.Builder
An instance-attached disk resource.
|
static class |
AttachedDisk.Interface
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
static class |
AttachedDisk.Mode
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
static class |
AttachedDisk.Type
Specifies the type of the disk, either SCRATCH or PERSISTENT.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ARCHITECTURE_FIELD_NUMBER |
static int |
AUTO_DELETE_FIELD_NUMBER |
static int |
BOOT_FIELD_NUMBER |
static int |
DEVICE_NAME_FIELD_NUMBER |
static int |
DISK_ENCRYPTION_KEY_FIELD_NUMBER |
static int |
DISK_SIZE_GB_FIELD_NUMBER |
static int |
FORCE_ATTACH_FIELD_NUMBER |
static int |
GUEST_OS_FEATURES_FIELD_NUMBER |
static int |
INDEX_FIELD_NUMBER |
static int |
INITIALIZE_PARAMS_FIELD_NUMBER |
static int |
INTERFACE_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
LICENSES_FIELD_NUMBER |
static int |
MODE_FIELD_NUMBER |
static int |
SHIELDED_INSTANCE_INITIAL_STATE_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getArchitecture()
[Output Only] The architecture of the attached disk.
|
com.google.protobuf.ByteString |
getArchitectureBytes()
[Output Only] The architecture of the attached disk.
|
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.
|
static AttachedDisk |
getDefaultInstance() |
AttachedDisk |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDeviceName()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance.
|
com.google.protobuf.ByteString |
getDeviceNameBytes()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance.
|
CustomerEncryptionKey |
getDiskEncryptionKey()
Encrypts or decrypts a disk using a customer-supplied encryption key.
|
CustomerEncryptionKeyOrBuilder |
getDiskEncryptionKeyOrBuilder()
Encrypts or decrypts a disk using a customer-supplied encryption key.
|
long |
getDiskSizeGb()
The size of the disk in GB.
|
boolean |
getForceAttach()
[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance.
|
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()
[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk.
|
AttachedDiskInitializeParams |
getInitializeParams()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.
|
AttachedDiskInitializeParamsOrBuilder |
getInitializeParamsOrBuilder()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new 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.
|
com.google.protobuf.ProtocolStringList |
getLicensesList()
[Output Only] Any valid publicly visible licenses.
|
String |
getMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
com.google.protobuf.ByteString |
getModeBytes()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
|
com.google.protobuf.Parser<AttachedDisk> |
getParserForType() |
int |
getSerializedSize() |
InitialStateConfig |
getShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
|
InitialStateConfigOrBuilder |
getShieldedInstanceInitialStateOrBuilder()
[Output Only] shielded vm initial state stored on disk
|
String |
getSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
com.google.protobuf.ByteString |
getSourceBytes()
Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
String |
getType()
Specifies the type of the disk, either SCRATCH or PERSISTENT.
|
com.google.protobuf.ByteString |
getTypeBytes()
Specifies the type of the disk, either SCRATCH or PERSISTENT.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasArchitecture()
[Output Only] The architecture of the attached disk.
|
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 a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance.
|
boolean |
hasDiskEncryptionKey()
Encrypts or decrypts a disk using a customer-supplied encryption key.
|
boolean |
hasDiskSizeGb()
The size of the disk in GB.
|
boolean |
hasForceAttach()
[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance.
|
int |
hashCode() |
boolean |
hasIndex()
[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk.
|
boolean |
hasInitializeParams()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new 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 to attach this disk, either READ_WRITE or READ_ONLY.
|
boolean |
hasShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
|
boolean |
hasSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
boolean |
hasType()
Specifies the type of the disk, either SCRATCH or PERSISTENT.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AttachedDisk.Builder |
newBuilder() |
static AttachedDisk.Builder |
newBuilder(AttachedDisk prototype) |
AttachedDisk.Builder |
newBuilderForType() |
protected AttachedDisk.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AttachedDisk |
parseDelimitedFrom(InputStream input) |
static AttachedDisk |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttachedDisk |
parseFrom(byte[] data) |
static AttachedDisk |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttachedDisk |
parseFrom(ByteBuffer data) |
static AttachedDisk |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttachedDisk |
parseFrom(com.google.protobuf.ByteString data) |
static AttachedDisk |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttachedDisk |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttachedDisk |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttachedDisk |
parseFrom(InputStream input) |
static AttachedDisk |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttachedDisk> |
parser() |
AttachedDisk.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ARCHITECTURE_FIELD_NUMBER
public static final int AUTO_DELETE_FIELD_NUMBER
public static final int BOOT_FIELD_NUMBER
public static final int DEVICE_NAME_FIELD_NUMBER
public static final int DISK_ENCRYPTION_KEY_FIELD_NUMBER
public static final int DISK_SIZE_GB_FIELD_NUMBER
public static final int FORCE_ATTACH_FIELD_NUMBER
public static final int GUEST_OS_FEATURES_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
public static final int INITIALIZE_PARAMS_FIELD_NUMBER
public static final int INTERFACE_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int LICENSES_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_INITIAL_STATE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasArchitecture()
[Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;hasArchitecture in interface AttachedDiskOrBuilderpublic String getArchitecture()
[Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;getArchitecture in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getArchitectureBytes()
[Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;getArchitectureBytes in interface AttachedDiskOrBuilderpublic 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;hasAutoDelete in interface AttachedDiskOrBuilderpublic 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;getAutoDelete in interface AttachedDiskOrBuilderpublic 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;hasBoot in interface AttachedDiskOrBuilderpublic 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;getBoot in interface AttachedDiskOrBuilderpublic boolean hasDeviceName()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
optional string device_name = 67541716;hasDeviceName in interface AttachedDiskOrBuilderpublic String getDeviceName()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
optional string device_name = 67541716;getDeviceName in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getDeviceNameBytes()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
optional string device_name = 67541716;getDeviceNameBytes in interface AttachedDiskOrBuilderpublic boolean hasDiskEncryptionKey()
Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
hasDiskEncryptionKey in interface AttachedDiskOrBuilderpublic CustomerEncryptionKey getDiskEncryptionKey()
Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
getDiskEncryptionKey in interface AttachedDiskOrBuilderpublic CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()
Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
getDiskEncryptionKeyOrBuilder in interface AttachedDiskOrBuilderpublic boolean hasDiskSizeGb()
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;hasDiskSizeGb in interface AttachedDiskOrBuilderpublic long getDiskSizeGb()
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;getDiskSizeGb in interface AttachedDiskOrBuilderpublic boolean hasForceAttach()
[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error.
optional bool force_attach = 142758425;hasForceAttach in interface AttachedDiskOrBuilderpublic boolean getForceAttach()
[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error.
optional bool force_attach = 142758425;getForceAttach in interface AttachedDiskOrBuilderpublic 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;getGuestOsFeaturesList in interface AttachedDiskOrBuilderpublic 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;getGuestOsFeaturesOrBuilderList in interface AttachedDiskOrBuilderpublic 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;getGuestOsFeaturesCount in interface AttachedDiskOrBuilderpublic 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;getGuestOsFeatures in interface AttachedDiskOrBuilderpublic 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;getGuestOsFeaturesOrBuilder in interface AttachedDiskOrBuilderpublic boolean hasIndex()
[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
optional int32 index = 100346066;hasIndex in interface AttachedDiskOrBuilderpublic int getIndex()
[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
optional int32 index = 100346066;getIndex in interface AttachedDiskOrBuilderpublic boolean hasInitializeParams()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.AttachedDiskInitializeParams initialize_params = 17697045;
hasInitializeParams in interface AttachedDiskOrBuilderpublic AttachedDiskInitializeParams getInitializeParams()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.AttachedDiskInitializeParams initialize_params = 17697045;
getInitializeParams in interface AttachedDiskOrBuilderpublic AttachedDiskInitializeParamsOrBuilder getInitializeParamsOrBuilder()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.AttachedDiskInitializeParams initialize_params = 17697045;
getInitializeParamsOrBuilder in interface AttachedDiskOrBuilderpublic boolean hasInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;hasInterface in interface AttachedDiskOrBuilderpublic String getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;getInterface in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getInterfaceBytes()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;getInterfaceBytes in interface AttachedDiskOrBuilderpublic boolean hasKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;hasKind in interface AttachedDiskOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;getKind in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;getKindBytes in interface AttachedDiskOrBuilderpublic com.google.protobuf.ProtocolStringList getLicensesList()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;getLicensesList in interface AttachedDiskOrBuilderpublic int getLicensesCount()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;getLicensesCount in interface AttachedDiskOrBuilderpublic String getLicenses(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;getLicenses in interface AttachedDiskOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getLicensesBytes(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;getLicensesBytes in interface AttachedDiskOrBuilderindex - The index of the value to return.public boolean hasMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;hasMode in interface AttachedDiskOrBuilderpublic String getMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;getMode in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getModeBytes()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;getModeBytes in interface AttachedDiskOrBuilderpublic boolean hasShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
hasShieldedInstanceInitialState in interface AttachedDiskOrBuilderpublic InitialStateConfig getShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
getShieldedInstanceInitialState in interface AttachedDiskOrBuilderpublic InitialStateConfigOrBuilder getShieldedInstanceInitialStateOrBuilder()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
getShieldedInstanceInitialStateOrBuilder in interface AttachedDiskOrBuilderpublic boolean hasSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.
optional string source = 177235995;hasSource in interface AttachedDiskOrBuilderpublic String getSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.
optional string source = 177235995;getSource in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getSourceBytes()
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.
optional string source = 177235995;getSourceBytes in interface AttachedDiskOrBuilderpublic boolean hasType()
Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;hasType in interface AttachedDiskOrBuilderpublic String getType()
Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;getType in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;getTypeBytes in interface AttachedDiskOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AttachedDisk parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDisk parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDisk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDisk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDisk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDisk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDisk parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttachedDisk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttachedDisk parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttachedDisk parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttachedDisk parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttachedDisk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttachedDisk.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttachedDisk.Builder newBuilder()
public static AttachedDisk.Builder newBuilder(AttachedDisk prototype)
public AttachedDisk.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttachedDisk.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttachedDisk getDefaultInstance()
public static com.google.protobuf.Parser<AttachedDisk> parser()
public com.google.protobuf.Parser<AttachedDisk> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttachedDisk getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.