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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AttachedDisk.Builder> implements AttachedDiskOrBuilder
An instance-attached disk resource.
Protobuf typegoogle.cloud.compute.v1.AttachedDisk
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachedDisk.Builder
addAllGuestOsFeatures(Iterable<? extends GuestOsFeature> values)
A list of features to enable on the guest operating system.AttachedDisk.Builder
addAllLicenses(Iterable<String> values)
[Output Only] Any valid publicly visible licenses.AttachedDisk.Builder
addGuestOsFeatures(int index, GuestOsFeature value)
A list of features to enable on the guest operating system.AttachedDisk.Builder
addGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)
A list of features to enable on the guest operating system.AttachedDisk.Builder
addGuestOsFeatures(GuestOsFeature value)
A list of features to enable on the guest operating system.AttachedDisk.Builder
addGuestOsFeatures(GuestOsFeature.Builder builderForValue)
A list of features to enable on the guest operating system.GuestOsFeature.Builder
addGuestOsFeaturesBuilder()
A list of features to enable on the guest operating system.GuestOsFeature.Builder
addGuestOsFeaturesBuilder(int index)
A list of features to enable on the guest operating system.AttachedDisk.Builder
addLicenses(String value)
[Output Only] Any valid publicly visible licenses.AttachedDisk.Builder
addLicensesBytes(com.google.protobuf.ByteString value)
[Output Only] Any valid publicly visible licenses.AttachedDisk.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AttachedDisk
build()
AttachedDisk
buildPartial()
AttachedDisk.Builder
clear()
AttachedDisk.Builder
clearArchitecture()
[Output Only] The architecture of the attached disk.AttachedDisk.Builder
clearAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).AttachedDisk.Builder
clearBoot()
Indicates that this is a boot disk.AttachedDisk.Builder
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.AttachedDisk.Builder
clearDiskEncryptionKey()
Encrypts or decrypts a disk using a customer-supplied encryption key.AttachedDisk.Builder
clearDiskSizeGb()
The size of the disk in GB.AttachedDisk.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AttachedDisk.Builder
clearForceAttach()
[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance.AttachedDisk.Builder
clearGuestOsFeatures()
A list of features to enable on the guest operating system.AttachedDisk.Builder
clearIndex()
[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk.AttachedDisk.Builder
clearInitializeParams()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.AttachedDisk.Builder
clearInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.AttachedDisk.Builder
clearKind()
[Output Only] Type of the resource.AttachedDisk.Builder
clearLicenses()
[Output Only] Any valid publicly visible licenses.AttachedDisk.Builder
clearMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.AttachedDisk.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AttachedDisk.Builder
clearSavedState()
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.AttachedDisk.Builder
clearShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on diskAttachedDisk.Builder
clearSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource.AttachedDisk.Builder
clearType()
Specifies the type of the disk, either SCRATCH or PERSISTENT.AttachedDisk.Builder
clone()
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.AttachedDisk
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.CustomerEncryptionKey.Builder
getDiskEncryptionKeyBuilder()
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.GuestOsFeature.Builder
getGuestOsFeaturesBuilder(int index)
A list of features to enable on the guest operating system.List<GuestOsFeature.Builder>
getGuestOsFeaturesBuilderList()
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.AttachedDiskInitializeParams.Builder
getInitializeParamsBuilder()
[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.String
getSavedState()
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.com.google.protobuf.ByteString
getSavedStateBytes()
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.InitialStateConfig
getShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on diskInitialStateConfig.Builder
getShieldedInstanceInitialStateBuilder()
[Output Only] shielded vm initial state stored on diskInitialStateConfigOrBuilder
getShieldedInstanceInitialStateOrBuilder()
[Output Only] shielded vm initial state stored on diskString
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.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.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
hasSavedState()
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.boolean
hasShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on diskboolean
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()
AttachedDisk.Builder
mergeDiskEncryptionKey(CustomerEncryptionKey value)
Encrypts or decrypts a disk using a customer-supplied encryption key.AttachedDisk.Builder
mergeFrom(AttachedDisk other)
AttachedDisk.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AttachedDisk.Builder
mergeFrom(com.google.protobuf.Message other)
AttachedDisk.Builder
mergeInitializeParams(AttachedDiskInitializeParams value)
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.AttachedDisk.Builder
mergeShieldedInstanceInitialState(InitialStateConfig value)
[Output Only] shielded vm initial state stored on diskAttachedDisk.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AttachedDisk.Builder
removeGuestOsFeatures(int index)
A list of features to enable on the guest operating system.AttachedDisk.Builder
setArchitecture(String value)
[Output Only] The architecture of the attached disk.AttachedDisk.Builder
setArchitectureBytes(com.google.protobuf.ByteString value)
[Output Only] The architecture of the attached disk.AttachedDisk.Builder
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).AttachedDisk.Builder
setBoot(boolean value)
Indicates that this is a boot disk.AttachedDisk.Builder
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.AttachedDisk.Builder
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.AttachedDisk.Builder
setDiskEncryptionKey(CustomerEncryptionKey value)
Encrypts or decrypts a disk using a customer-supplied encryption key.AttachedDisk.Builder
setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
Encrypts or decrypts a disk using a customer-supplied encryption key.AttachedDisk.Builder
setDiskSizeGb(long value)
The size of the disk in GB.AttachedDisk.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AttachedDisk.Builder
setForceAttach(boolean value)
[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance.AttachedDisk.Builder
setGuestOsFeatures(int index, GuestOsFeature value)
A list of features to enable on the guest operating system.AttachedDisk.Builder
setGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)
A list of features to enable on the guest operating system.AttachedDisk.Builder
setIndex(int value)
[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk.AttachedDisk.Builder
setInitializeParams(AttachedDiskInitializeParams value)
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.AttachedDisk.Builder
setInitializeParams(AttachedDiskInitializeParams.Builder builderForValue)
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.AttachedDisk.Builder
setInterface(String value)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.AttachedDisk.Builder
setInterfaceBytes(com.google.protobuf.ByteString value)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.AttachedDisk.Builder
setKind(String value)
[Output Only] Type of the resource.AttachedDisk.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.AttachedDisk.Builder
setLicenses(int index, String value)
[Output Only] Any valid publicly visible licenses.AttachedDisk.Builder
setMode(String value)
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.AttachedDisk.Builder
setModeBytes(com.google.protobuf.ByteString value)
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.AttachedDisk.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AttachedDisk.Builder
setSavedState(String value)
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.AttachedDisk.Builder
setSavedStateBytes(com.google.protobuf.ByteString value)
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.AttachedDisk.Builder
setShieldedInstanceInitialState(InitialStateConfig value)
[Output Only] shielded vm initial state stored on diskAttachedDisk.Builder
setShieldedInstanceInitialState(InitialStateConfig.Builder builderForValue)
[Output Only] shielded vm initial state stored on diskAttachedDisk.Builder
setSource(String value)
Specifies a valid partial or full URL to an existing Persistent Disk resource.AttachedDisk.Builder
setSourceBytes(com.google.protobuf.ByteString value)
Specifies a valid partial or full URL to an existing Persistent Disk resource.AttachedDisk.Builder
setType(String value)
Specifies the type of the disk, either SCRATCH or PERSISTENT.AttachedDisk.Builder
setTypeBytes(com.google.protobuf.ByteString value)
Specifies the type of the disk, either SCRATCH or PERSISTENT.AttachedDisk.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
clear
public AttachedDisk.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
getDefaultInstanceForType
public AttachedDisk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AttachedDisk build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AttachedDisk buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AttachedDisk.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
setField
public AttachedDisk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
clearField
public AttachedDisk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
clearOneof
public AttachedDisk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
setRepeatedField
public AttachedDisk.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
addRepeatedField
public AttachedDisk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
mergeFrom
public AttachedDisk.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AttachedDisk.Builder>
-
mergeFrom
public AttachedDisk.Builder mergeFrom(AttachedDisk other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
mergeFrom
public AttachedDisk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AttachedDisk.Builder>
- Throws:
IOException
-
hasArchitecture
public 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;
- Specified by:
hasArchitecture
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the architecture field is set.
-
getArchitecture
public 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;
- Specified by:
getArchitecture
in interfaceAttachedDiskOrBuilder
- Returns:
- The architecture.
-
getArchitectureBytes
public 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;
- Specified by:
getArchitectureBytes
in interfaceAttachedDiskOrBuilder
- Returns:
- The bytes for architecture.
-
setArchitecture
public AttachedDisk.Builder setArchitecture(String value)
[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
public AttachedDisk.Builder clearArchitecture()
[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
public AttachedDisk.Builder setArchitectureBytes(com.google.protobuf.ByteString value)
[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:
hasAutoDelete
in 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:
getAutoDelete
in interfaceAttachedDiskOrBuilder
- Returns:
- The autoDelete.
-
setAutoDelete
public AttachedDisk.Builder 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).
optional bool auto_delete = 464761403;
- Parameters:
value
- The autoDelete to set.- Returns:
- This builder for chaining.
-
clearAutoDelete
public AttachedDisk.Builder 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:
hasBoot
in 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:
getBoot
in interfaceAttachedDiskOrBuilder
- Returns:
- The boot.
-
setBoot
public AttachedDisk.Builder setBoot(boolean value)
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
public AttachedDisk.Builder 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:
hasDeviceName
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the deviceName field is set.
-
getDeviceName
public 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;
- Specified by:
getDeviceName
in 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:
getDeviceNameBytes
in interfaceAttachedDiskOrBuilder
- Returns:
- The bytes for deviceName.
-
setDeviceName
public AttachedDisk.Builder 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. 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
public AttachedDisk.Builder 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
public AttachedDisk.Builder 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. 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 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;
- Specified by:
hasDiskEncryptionKey
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the diskEncryptionKey field is set.
-
getDiskEncryptionKey
public 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;
- Specified by:
getDiskEncryptionKey
in interfaceAttachedDiskOrBuilder
- Returns:
- The diskEncryptionKey.
-
setDiskEncryptionKey
public AttachedDisk.Builder setDiskEncryptionKey(CustomerEncryptionKey value)
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;
-
setDiskEncryptionKey
public AttachedDisk.Builder setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
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;
-
mergeDiskEncryptionKey
public AttachedDisk.Builder mergeDiskEncryptionKey(CustomerEncryptionKey value)
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;
-
clearDiskEncryptionKey
public AttachedDisk.Builder clearDiskEncryptionKey()
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;
-
getDiskEncryptionKeyBuilder
public CustomerEncryptionKey.Builder getDiskEncryptionKeyBuilder()
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
public 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;
- Specified by:
getDiskEncryptionKeyOrBuilder
in interfaceAttachedDiskOrBuilder
-
hasDiskSizeGb
public boolean hasDiskSizeGb()
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;
- Specified by:
hasDiskSizeGb
in 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:
getDiskSizeGb
in interfaceAttachedDiskOrBuilder
- Returns:
- The diskSizeGb.
-
setDiskSizeGb
public AttachedDisk.Builder setDiskSizeGb(long value)
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
public AttachedDisk.Builder 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:
hasForceAttach
in 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:
getForceAttach
in interfaceAttachedDiskOrBuilder
- Returns:
- The forceAttach.
-
setForceAttach
public AttachedDisk.Builder setForceAttach(boolean value)
[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
public AttachedDisk.Builder 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
public List<GuestOsFeature> getGuestOsFeaturesList()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeaturesList
in 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:
getGuestOsFeaturesCount
in interfaceAttachedDiskOrBuilder
-
getGuestOsFeatures
public GuestOsFeature getGuestOsFeatures(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeatures
in interfaceAttachedDiskOrBuilder
-
setGuestOsFeatures
public AttachedDisk.Builder setGuestOsFeatures(int index, GuestOsFeature value)
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
public AttachedDisk.Builder setGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)
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
public AttachedDisk.Builder addGuestOsFeatures(GuestOsFeature value)
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
public AttachedDisk.Builder addGuestOsFeatures(int index, GuestOsFeature value)
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
public AttachedDisk.Builder addGuestOsFeatures(GuestOsFeature.Builder builderForValue)
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
public AttachedDisk.Builder addGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)
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
public AttachedDisk.Builder addAllGuestOsFeatures(Iterable<? extends GuestOsFeature> values)
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
public AttachedDisk.Builder 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
public AttachedDisk.Builder removeGuestOsFeatures(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;
-
getGuestOsFeaturesBuilder
public GuestOsFeature.Builder getGuestOsFeaturesBuilder(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
public GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeaturesOrBuilder
in interfaceAttachedDiskOrBuilder
-
getGuestOsFeaturesOrBuilderList
public List<? extends GuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeaturesOrBuilderList
in interfaceAttachedDiskOrBuilder
-
addGuestOsFeaturesBuilder
public GuestOsFeature.Builder 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
public GuestOsFeature.Builder addGuestOsFeaturesBuilder(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;
-
getGuestOsFeaturesBuilderList
public List<GuestOsFeature.Builder> 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] 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:
hasIndex
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the index field is set.
-
getIndex
public 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;
- Specified by:
getIndex
in interfaceAttachedDiskOrBuilder
- Returns:
- The index.
-
setIndex
public AttachedDisk.Builder setIndex(int value)
[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
public AttachedDisk.Builder clearIndex()
[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:
hasInitializeParams
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the initializeParams field is set.
-
getInitializeParams
public 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;
- Specified by:
getInitializeParams
in interfaceAttachedDiskOrBuilder
- Returns:
- The initializeParams.
-
setInitializeParams
public AttachedDisk.Builder setInitializeParams(AttachedDiskInitializeParams value)
[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
public AttachedDisk.Builder mergeInitializeParams(AttachedDiskInitializeParams value)
[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
public AttachedDisk.Builder 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
public AttachedDiskInitializeParams.Builder 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
public 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;
- Specified by:
getInitializeParamsOrBuilder
in 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, see About persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Specified by:
hasInterface
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the interface field is set.
-
getInterface
public 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;
- Specified by:
getInterface
in 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, see About persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Specified by:
getInterfaceBytes
in interfaceAttachedDiskOrBuilder
- Returns:
- The bytes for interface.
-
setInterface
public AttachedDisk.Builder setInterface(String value)
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;
- Parameters:
value
- The interface to set.- Returns:
- This builder for chaining.
-
clearInterface
public AttachedDisk.Builder 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, see About persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Returns:
- This builder for chaining.
-
setInterfaceBytes
public AttachedDisk.Builder setInterfaceBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for interface to set.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceAttachedDiskOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceAttachedDiskOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public AttachedDisk.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public AttachedDisk.Builder clearKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public AttachedDisk.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#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] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicensesList
in interfaceAttachedDiskOrBuilder
- Returns:
- A list containing the licenses.
-
getLicensesCount
public int getLicensesCount()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicensesCount
in interfaceAttachedDiskOrBuilder
- Returns:
- The count of licenses.
-
getLicenses
public String getLicenses(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicenses
in 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] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicensesBytes
in interfaceAttachedDiskOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
setLicenses
public AttachedDisk.Builder setLicenses(int index, String value)
[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
public AttachedDisk.Builder addLicenses(String value)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Parameters:
value
- The licenses to add.- Returns:
- This builder for chaining.
-
addAllLicenses
public AttachedDisk.Builder addAllLicenses(Iterable<String> values)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Parameters:
values
- The licenses to add.- Returns:
- This builder for chaining.
-
clearLicenses
public AttachedDisk.Builder clearLicenses()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Returns:
- This builder for chaining.
-
addLicensesBytes
public AttachedDisk.Builder addLicensesBytes(com.google.protobuf.ByteString value)
[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 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;
- Specified by:
hasMode
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the mode field is set.
-
getMode
public 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;
- Specified by:
getMode
in interfaceAttachedDiskOrBuilder
- Returns:
- The mode.
-
getModeBytes
public 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;
- Specified by:
getModeBytes
in interfaceAttachedDiskOrBuilder
- Returns:
- The bytes for mode.
-
setMode
public AttachedDisk.Builder setMode(String value)
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;
- Parameters:
value
- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
public AttachedDisk.Builder clearMode()
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;
- Returns:
- This builder for chaining.
-
setModeBytes
public AttachedDisk.Builder setModeBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for mode to set.- Returns:
- This builder for chaining.
-
hasSavedState
public boolean hasSavedState()
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:
hasSavedState
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the savedState field is set.
-
getSavedState
public String getSavedState()
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:
getSavedState
in interfaceAttachedDiskOrBuilder
- Returns:
- The savedState.
-
getSavedStateBytes
public com.google.protobuf.ByteString getSavedStateBytes()
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:
getSavedStateBytes
in interfaceAttachedDiskOrBuilder
- Returns:
- The bytes for savedState.
-
setSavedState
public AttachedDisk.Builder setSavedState(String value)
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
public AttachedDisk.Builder clearSavedState()
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
public AttachedDisk.Builder setSavedStateBytes(com.google.protobuf.ByteString value)
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] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
- Specified by:
hasShieldedInstanceInitialState
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the shieldedInstanceInitialState field is set.
-
getShieldedInstanceInitialState
public InitialStateConfig getShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
- Specified by:
getShieldedInstanceInitialState
in interfaceAttachedDiskOrBuilder
- Returns:
- The shieldedInstanceInitialState.
-
setShieldedInstanceInitialState
public AttachedDisk.Builder setShieldedInstanceInitialState(InitialStateConfig value)
[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] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
-
mergeShieldedInstanceInitialState
public AttachedDisk.Builder mergeShieldedInstanceInitialState(InitialStateConfig value)
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
-
clearShieldedInstanceInitialState
public AttachedDisk.Builder clearShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
-
getShieldedInstanceInitialStateBuilder
public InitialStateConfig.Builder getShieldedInstanceInitialStateBuilder()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
-
getShieldedInstanceInitialStateOrBuilder
public InitialStateConfigOrBuilder getShieldedInstanceInitialStateOrBuilder()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
- Specified by:
getShieldedInstanceInitialStateOrBuilder
in interfaceAttachedDiskOrBuilder
-
hasSource
public 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;
- Specified by:
hasSource
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the source field is set.
-
getSource
public 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;
- Specified by:
getSource
in 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, 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;
- Specified by:
getSourceBytes
in interfaceAttachedDiskOrBuilder
- Returns:
- The bytes for source.
-
setSource
public AttachedDisk.Builder setSource(String value)
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;
- Parameters:
value
- The source to set.- Returns:
- This builder for chaining.
-
clearSource
public AttachedDisk.Builder clearSource()
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;
- Returns:
- This builder for chaining.
-
setSourceBytes
public AttachedDisk.Builder setSourceBytes(com.google.protobuf.ByteString value)
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;
- 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 or PERSISTENT. If not specified, the default is PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Specified by:
hasType
in interfaceAttachedDiskOrBuilder
- Returns:
- Whether the type field is set.
-
getType
public 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;
- Specified by:
getType
in interfaceAttachedDiskOrBuilder
- Returns:
- The type.
-
getTypeBytes
public 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;
- Specified by:
getTypeBytes
in interfaceAttachedDiskOrBuilder
- Returns:
- The bytes for type.
-
setType
public AttachedDisk.Builder setType(String value)
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;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public AttachedDisk.Builder clearType()
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;
- Returns:
- This builder for chaining.
-
setTypeBytes
public AttachedDisk.Builder setTypeBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AttachedDisk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
mergeUnknownFields
public final AttachedDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>
-
-