Package com.google.cloud.compute.v1
Class AttachedDisk.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AttachedDisk.Builder>
com.google.cloud.compute.v1.AttachedDisk.Builder
- All Implemented Interfaces:
AttachedDiskOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AttachedDisk
public static final class AttachedDisk.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AttachedDisk.Builder>
implements AttachedDiskOrBuilder
An instance-attached disk resource.Protobuf type
google.cloud.compute.v1.AttachedDisk-
Method Summary
Modifier and TypeMethodDescriptionaddAllGuestOsFeatures(Iterable<? extends GuestOsFeature> values) A list of features to enable on the guest operating system.addAllLicenses(Iterable<String> values) Output only.addGuestOsFeatures(int index, GuestOsFeature value) A list of features to enable on the guest operating system.addGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue) A list of features to enable on the guest operating system.addGuestOsFeatures(GuestOsFeature value) A list of features to enable on the guest operating system.addGuestOsFeatures(GuestOsFeature.Builder builderForValue) A list of features to enable on the guest operating system.A list of features to enable on the guest operating system.addGuestOsFeaturesBuilder(int index) A list of features to enable on the guest operating system.addLicenses(String value) Output only.addLicensesBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).Indicates that this is a boot disk.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.Encrypts or decrypts a disk using acustomer-supplied encryption key.The size of the disk in GB.[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance.A list of features to enable on the guest operating system.Output only.[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.Output only.Output only.The mode in which to attach this disk, either READ_WRITE orREAD_ONLY.Output only.Output only.Specifies a valid partial or full URL to an existing Persistent Disk resource.Specifies the type of the disk, either SCRATCH orPERSISTENT.Output only.com.google.protobuf.ByteStringOutput only.booleanSpecifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).booleangetBoot()Indicates that this is a boot disk.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies 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.ByteStringSpecifies 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.Encrypts or decrypts a disk using acustomer-supplied encryption key.Encrypts or decrypts a disk using acustomer-supplied encryption key.Encrypts or decrypts a disk using acustomer-supplied encryption key.longThe size of the disk in GB.boolean[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance.getGuestOsFeatures(int index) A list of features to enable on the guest operating system.getGuestOsFeaturesBuilder(int index) A list of features to enable on the guest operating system.A list of features to enable on the guest operating system.intA list of features to enable on the guest operating system.A list of features to enable on the guest operating system.getGuestOsFeaturesOrBuilder(int index) A list of features to enable on the guest operating system.List<? extends GuestOsFeatureOrBuilder>A list of features to enable on the guest operating system.intgetIndex()Output only.[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.com.google.protobuf.ByteStringSpecifies the disk interface to use for attaching this disk, which is either SCSI or NVME.getKind()Output only.com.google.protobuf.ByteStringOutput only.getLicenses(int index) Output only.com.google.protobuf.ByteStringgetLicensesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.getMode()The mode in which to attach this disk, either READ_WRITE orREAD_ONLY.com.google.protobuf.ByteStringThe mode in which to attach this disk, either READ_WRITE orREAD_ONLY.Output only.com.google.protobuf.ByteStringOutput only.Output only.Output only.Output only.Specifies a valid partial or full URL to an existing Persistent Disk resource.com.google.protobuf.ByteStringSpecifies a valid partial or full URL to an existing Persistent Disk resource.getType()Specifies the type of the disk, either SCRATCH orPERSISTENT.com.google.protobuf.ByteStringSpecifies the type of the disk, either SCRATCH orPERSISTENT.booleanOutput only.booleanSpecifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).booleanhasBoot()Indicates that this is a boot disk.booleanSpecifies 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.booleanEncrypts or decrypts a disk using acustomer-supplied encryption key.booleanThe size of the disk in GB.boolean[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance.booleanhasIndex()Output only.boolean[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.booleanSpecifies the disk interface to use for attaching this disk, which is either SCSI or NVME.booleanhasKind()Output only.booleanhasMode()The mode in which to attach this disk, either READ_WRITE orREAD_ONLY.booleanOutput only.booleanOutput only.booleanSpecifies a valid partial or full URL to an existing Persistent Disk resource.booleanhasType()Specifies the type of the disk, either SCRATCH orPERSISTENT.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanEncrypts or decrypts a disk using acustomer-supplied encryption key.mergeFrom(AttachedDisk other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.Output only.removeGuestOsFeatures(int index) A list of features to enable on the guest operating system.setArchitecture(String value) Output only.setArchitectureBytes(com.google.protobuf.ByteString value) Output only.setAutoDelete(boolean value) Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).setBoot(boolean value) Indicates that this is a boot disk.setDeviceName(String value) 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.setDeviceNameBytes(com.google.protobuf.ByteString value) 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.Encrypts or decrypts a disk using acustomer-supplied encryption key.setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue) Encrypts or decrypts a disk using acustomer-supplied encryption key.setDiskSizeGb(long value) The size of the disk in GB.setForceAttach(boolean value) [Input Only] Whether to force attach the regional disk even if it's currently attached to another instance.setGuestOsFeatures(int index, GuestOsFeature value) A list of features to enable on the guest operating system.setGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue) A list of features to enable on the guest operating system.setIndex(int value) Output only.[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.setInitializeParams(AttachedDiskInitializeParams.Builder builderForValue) [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.setInterface(String value) Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.setInterfaceBytes(com.google.protobuf.ByteString value) Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.setLicenses(int index, String value) Output only.The mode in which to attach this disk, either READ_WRITE orREAD_ONLY.setModeBytes(com.google.protobuf.ByteString value) The mode in which to attach this disk, either READ_WRITE orREAD_ONLY.setSavedState(String value) Output only.setSavedStateBytes(com.google.protobuf.ByteString value) Output only.Output only.setShieldedInstanceInitialState(InitialStateConfig.Builder builderForValue) Output only.Specifies a valid partial or full URL to an existing Persistent Disk resource.setSourceBytes(com.google.protobuf.ByteString value) Specifies a valid partial or full URL to an existing Persistent Disk resource.Specifies the type of the disk, either SCRATCH orPERSISTENT.setTypeBytes(com.google.protobuf.ByteString value) Specifies the type of the disk, either SCRATCH orPERSISTENT.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AttachedDisk.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AttachedDisk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AttachedDisk.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttachedDisk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AttachedDisk.Builder>
-
mergeFrom
public AttachedDisk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttachedDisk.Builder>- Throws:
IOException
-
hasArchitecture
public boolean hasArchitecture()Output only. [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;- Specified by:
hasArchitecturein interfaceAttachedDiskOrBuilder- Returns:
- Whether the architecture field is set.
-
getArchitecture
Output only. [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;- Specified by:
getArchitecturein interfaceAttachedDiskOrBuilder- Returns:
- The architecture.
-
getArchitectureBytes
public com.google.protobuf.ByteString getArchitectureBytes()Output only. [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;- Specified by:
getArchitectureBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for architecture.
-
setArchitecture
Output only. [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;- Parameters:
value- The architecture to set.- Returns:
- This builder for chaining.
-
clearArchitecture
Output only. [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;- Returns:
- This builder for chaining.
-
setArchitectureBytes
Output only. [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;- Parameters:
value- The bytes for architecture to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasAutoDeletein interfaceAttachedDiskOrBuilder- Returns:
- Whether the autoDelete field is set.
-
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;- Specified by:
getAutoDeletein interfaceAttachedDiskOrBuilder- Returns:
- The autoDelete.
-
setAutoDelete
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;- Parameters:
value- The autoDelete to set.- Returns:
- This builder for chaining.
-
clearAutoDelete
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:
- This builder for chaining.
-
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;- Specified by:
hasBootin interfaceAttachedDiskOrBuilder- Returns:
- Whether the boot field is set.
-
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;- Specified by:
getBootin interfaceAttachedDiskOrBuilder- Returns:
- The boot.
-
setBoot
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;- Parameters:
value- The boot to set.- Returns:
- This builder for chaining.
-
clearBoot
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:
- This builder for chaining.
-
hasDeviceName
public 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;- Specified by:
hasDeviceNamein interfaceAttachedDiskOrBuilder- Returns:
- Whether the deviceName field is set.
-
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;- Specified by:
getDeviceNamein interfaceAttachedDiskOrBuilder- Returns:
- The deviceName.
-
getDeviceNameBytes
public 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;- Specified by:
getDeviceNameBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for deviceName.
-
setDeviceName
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;- Parameters:
value- The deviceName to set.- Returns:
- This builder for chaining.
-
clearDeviceName
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;- Returns:
- This builder for chaining.
-
setDeviceNameBytes
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;- Parameters:
value- The bytes for deviceName to set.- Returns:
- This builder for chaining.
-
hasDiskEncryptionKey
public boolean hasDiskEncryptionKey()Encrypts or decrypts a disk using acustomer-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. Note: Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own keys to encrypt disks in amanaged instance group. You cannot create VMs that have disks with customer-supplied keys using the bulk insert method.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;- Specified by:
hasDiskEncryptionKeyin interfaceAttachedDiskOrBuilder- Returns:
- Whether the diskEncryptionKey field is set.
-
getDiskEncryptionKey
Encrypts or decrypts a disk using acustomer-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. Note: Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own keys to encrypt disks in amanaged instance group. You cannot create VMs that have disks with customer-supplied keys using the bulk insert method.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;- Specified by:
getDiskEncryptionKeyin interfaceAttachedDiskOrBuilder- Returns:
- The diskEncryptionKey.
-
setDiskEncryptionKey
Encrypts or decrypts a disk using acustomer-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. Note: Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own keys to encrypt disks in amanaged instance group. You cannot create VMs that have disks with customer-supplied keys using the bulk insert method.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677; -
setDiskEncryptionKey
Encrypts or decrypts a disk using acustomer-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. Note: Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own keys to encrypt disks in amanaged instance group. You cannot create VMs that have disks with customer-supplied keys using the bulk insert method.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677; -
mergeDiskEncryptionKey
Encrypts or decrypts a disk using acustomer-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. Note: Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own keys to encrypt disks in amanaged instance group. You cannot create VMs that have disks with customer-supplied keys using the bulk insert method.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677; -
clearDiskEncryptionKey
Encrypts or decrypts a disk using acustomer-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. Note: Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own keys to encrypt disks in amanaged instance group. You cannot create VMs that have disks with customer-supplied keys using the bulk insert method.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677; -
getDiskEncryptionKeyBuilder
Encrypts or decrypts a disk using acustomer-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. Note: Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own keys to encrypt disks in amanaged instance group. You cannot create VMs that have disks with customer-supplied keys using the bulk insert method.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677; -
getDiskEncryptionKeyOrBuilder
Encrypts or decrypts a disk using acustomer-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. Note: Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own keys to encrypt disks in amanaged instance group. You cannot create VMs that have disks with customer-supplied keys using the bulk insert method.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;- Specified by:
getDiskEncryptionKeyOrBuilderin interfaceAttachedDiskOrBuilder
-
hasDiskSizeGb
public boolean hasDiskSizeGb()The size of the disk in GB.
optional int64 disk_size_gb = 316263735;- Specified by:
hasDiskSizeGbin interfaceAttachedDiskOrBuilder- Returns:
- Whether the diskSizeGb field is set.
-
getDiskSizeGb
public long getDiskSizeGb()The size of the disk in GB.
optional int64 disk_size_gb = 316263735;- Specified by:
getDiskSizeGbin interfaceAttachedDiskOrBuilder- Returns:
- The diskSizeGb.
-
setDiskSizeGb
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;- Parameters:
value- The diskSizeGb to set.- Returns:
- This builder for chaining.
-
clearDiskSizeGb
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;- Returns:
- This builder for chaining.
-
hasForceAttach
public 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;- Specified by:
hasForceAttachin interfaceAttachedDiskOrBuilder- Returns:
- Whether the forceAttach field is set.
-
getForceAttach
public 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;- Specified by:
getForceAttachin interfaceAttachedDiskOrBuilder- Returns:
- The forceAttach.
-
setForceAttach
[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;- Parameters:
value- The forceAttach to set.- Returns:
- This builder for chaining.
-
clearForceAttach
[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;- Returns:
- This builder for chaining.
-
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;- Specified by:
getGuestOsFeaturesListin interfaceAttachedDiskOrBuilder
-
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;- Specified by:
getGuestOsFeaturesCountin interfaceAttachedDiskOrBuilder
-
getGuestOsFeatures
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;- Specified by:
getGuestOsFeaturesin interfaceAttachedDiskOrBuilder
-
setGuestOsFeatures
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; -
setGuestOsFeatures
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; -
addGuestOsFeatures
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; -
addGuestOsFeatures
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; -
addGuestOsFeatures
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; -
addGuestOsFeatures
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; -
addAllGuestOsFeatures
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; -
clearGuestOsFeatures
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; -
removeGuestOsFeatures
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; -
getGuestOsFeaturesBuilder
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
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;- Specified by:
getGuestOsFeaturesOrBuilderin interfaceAttachedDiskOrBuilder
-
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;- Specified by:
getGuestOsFeaturesOrBuilderListin interfaceAttachedDiskOrBuilder
-
addGuestOsFeaturesBuilder
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; -
addGuestOsFeaturesBuilder
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; -
getGuestOsFeaturesBuilderList
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
public boolean hasIndex()Output only. [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;- Specified by:
hasIndexin interfaceAttachedDiskOrBuilder- Returns:
- Whether the index field is set.
-
getIndex
public int getIndex()Output only. [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;- Specified by:
getIndexin interfaceAttachedDiskOrBuilder- Returns:
- The index.
-
setIndex
Output only. [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;- Parameters:
value- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
Output only. [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;- Returns:
- This builder for chaining.
-
hasInitializeParams
public 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;- Specified by:
hasInitializeParamsin interfaceAttachedDiskOrBuilder- Returns:
- Whether the initializeParams field is set.
-
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;- Specified by:
getInitializeParamsin interfaceAttachedDiskOrBuilder- Returns:
- The initializeParams.
-
setInitializeParams
[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; -
setInitializeParams
public AttachedDisk.Builder setInitializeParams(AttachedDiskInitializeParams.Builder builderForValue) [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; -
mergeInitializeParams
[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; -
clearInitializeParams
[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; -
getInitializeParamsBuilder
[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
[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;- Specified by:
getInitializeParamsOrBuilderin interfaceAttachedDiskOrBuilder
-
hasInterface
public 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, seeAbout persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;- Specified by:
hasInterfacein interfaceAttachedDiskOrBuilder- Returns:
- Whether the interface field is set.
-
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, seeAbout persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;- Specified by:
getInterfacein interfaceAttachedDiskOrBuilder- Returns:
- The interface.
-
getInterfaceBytes
public 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, seeAbout persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;- Specified by:
getInterfaceBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for interface.
-
setInterface
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, seeAbout persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;- Parameters:
value- The interface to set.- Returns:
- This builder for chaining.
-
clearInterface
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, seeAbout persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;- Returns:
- This builder for chaining.
-
setInterfaceBytes
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, seeAbout persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;- Parameters:
value- The bytes for interface to set.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Specified by:
hasKindin interfaceAttachedDiskOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Specified by:
getKindin interfaceAttachedDiskOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
getLicensesList
public com.google.protobuf.ProtocolStringList getLicensesList()Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Specified by:
getLicensesListin interfaceAttachedDiskOrBuilder- Returns:
- A list containing the licenses.
-
getLicensesCount
public int getLicensesCount()Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Specified by:
getLicensesCountin interfaceAttachedDiskOrBuilder- Returns:
- The count of licenses.
-
getLicenses
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Specified by:
getLicensesin interfaceAttachedDiskOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The licenses at the given index.
-
getLicensesBytes
public com.google.protobuf.ByteString getLicensesBytes(int index) Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Specified by:
getLicensesBytesin interfaceAttachedDiskOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
setLicenses
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Parameters:
index- The index to set the value at.value- The licenses to set.- Returns:
- This builder for chaining.
-
addLicenses
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Parameters:
value- The licenses to add.- Returns:
- This builder for chaining.
-
addAllLicenses
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Parameters:
values- The licenses to add.- Returns:
- This builder for chaining.
-
clearLicenses
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Returns:
- This builder for chaining.
-
addLicensesBytes
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Parameters:
value- The bytes of the licenses to add.- Returns:
- This builder for chaining.
-
hasMode
public boolean hasMode()The mode in which to attach this disk, either READ_WRITE orREAD_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;- Specified by:
hasModein interfaceAttachedDiskOrBuilder- Returns:
- Whether the mode field is set.
-
getMode
The mode in which to attach this disk, either READ_WRITE orREAD_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;- Specified by:
getModein interfaceAttachedDiskOrBuilder- Returns:
- The mode.
-
getModeBytes
public com.google.protobuf.ByteString getModeBytes()The mode in which to attach this disk, either READ_WRITE orREAD_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;- Specified by:
getModeBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for mode.
-
setMode
The mode in which to attach this disk, either READ_WRITE orREAD_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;- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
The mode in which to attach this disk, either READ_WRITE orREAD_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;- Returns:
- This builder for chaining.
-
setModeBytes
The mode in which to attach this disk, either READ_WRITE orREAD_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;- Parameters:
value- The bytes for mode to set.- Returns:
- This builder for chaining.
-
hasSavedState
public boolean hasSavedState()Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. Check the SavedState enum for the list of possible values.
optional string saved_state = 411587801;- Specified by:
hasSavedStatein interfaceAttachedDiskOrBuilder- Returns:
- Whether the savedState field is set.
-
getSavedState
Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. Check the SavedState enum for the list of possible values.
optional string saved_state = 411587801;- Specified by:
getSavedStatein interfaceAttachedDiskOrBuilder- Returns:
- The savedState.
-
getSavedStateBytes
public com.google.protobuf.ByteString getSavedStateBytes()Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. Check the SavedState enum for the list of possible values.
optional string saved_state = 411587801;- Specified by:
getSavedStateBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for savedState.
-
setSavedState
Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. Check the SavedState enum for the list of possible values.
optional string saved_state = 411587801;- Parameters:
value- The savedState to set.- Returns:
- This builder for chaining.
-
clearSavedState
Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. Check the SavedState enum for the list of possible values.
optional string saved_state = 411587801;- Returns:
- This builder for chaining.
-
setSavedStateBytes
Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. Check the SavedState enum for the list of possible values.
optional string saved_state = 411587801;- Parameters:
value- The bytes for savedState to set.- Returns:
- This builder for chaining.
-
hasShieldedInstanceInitialState
public boolean hasShieldedInstanceInitialState()Output only. [Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;- Specified by:
hasShieldedInstanceInitialStatein interfaceAttachedDiskOrBuilder- Returns:
- Whether the shieldedInstanceInitialState field is set.
-
getShieldedInstanceInitialState
Output only. [Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;- Specified by:
getShieldedInstanceInitialStatein interfaceAttachedDiskOrBuilder- Returns:
- The shieldedInstanceInitialState.
-
setShieldedInstanceInitialState
Output only. [Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867; -
setShieldedInstanceInitialState
public AttachedDisk.Builder setShieldedInstanceInitialState(InitialStateConfig.Builder builderForValue) Output only. [Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867; -
mergeShieldedInstanceInitialState
Output only. [Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867; -
clearShieldedInstanceInitialState
Output only. [Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867; -
getShieldedInstanceInitialStateBuilder
Output only. [Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867; -
getShieldedInstanceInitialStateOrBuilder
Output only. [Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;- Specified by:
getShieldedInstanceInitialStateOrBuilderin interfaceAttachedDiskOrBuilder
-
hasSource
public boolean hasSource()Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. 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;- Specified by:
hasSourcein interfaceAttachedDiskOrBuilder- Returns:
- Whether the source field is set.
-
getSource
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. 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;- Specified by:
getSourcein interfaceAttachedDiskOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. 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;- Specified by:
getSourceBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for source.
-
setSource
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. 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;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. 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;- Returns:
- This builder for chaining.
-
setSourceBytes
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. 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;- Parameters:
value- The bytes for source to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default isPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
hasTypein interfaceAttachedDiskOrBuilder- Returns:
- Whether the type field is set.
-
getType
Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default isPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypein interfaceAttachedDiskOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default isPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceAttachedDiskOrBuilder- Returns:
- The bytes for type.
-
setType
Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default isPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default isPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- This builder for chaining.
-
setTypeBytes
Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default isPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-