public static final class AttachedDisk.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder> implements AttachedDiskOrBuilder
An instance-attached disk resource.Protobuf type
google.cloud.compute.v1.AttachedDisk| Modifier and Type | Method and 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(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(int index,
GuestOsFeature.Builder builderForValue)
A list of features to enable on the guest operating system.
|
AttachedDisk.Builder |
addGuestOsFeatures(int index,
GuestOsFeature value)
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 |
clearShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
|
AttachedDisk.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.
|
InitialStateConfig |
getShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
|
InitialStateConfig.Builder |
getShieldedInstanceInitialStateBuilder()
[Output Only] shielded vm initial state stored on disk
|
InitialStateConfigOrBuilder |
getShieldedInstanceInitialStateOrBuilder()
[Output Only] shielded vm initial state stored on disk
|
String |
getSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
com.google.protobuf.ByteString |
getSourceBytes()
Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
String |
getType()
Specifies the type of the disk, either SCRATCH or PERSISTENT.
|
com.google.protobuf.ByteString |
getTypeBytes()
Specifies the type of the disk, either SCRATCH or PERSISTENT.
|
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 |
hasShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
|
boolean |
hasSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
boolean |
hasType()
Specifies the type of the disk, either SCRATCH or PERSISTENT.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
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 disk
|
AttachedDisk.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.Builder builderForValue)
Encrypts or decrypts a disk using a customer-supplied encryption key.
|
AttachedDisk.Builder |
setDiskEncryptionKey(CustomerEncryptionKey value)
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.Builder builderForValue)
A list of features to enable on the guest operating system.
|
AttachedDisk.Builder |
setGuestOsFeatures(int index,
GuestOsFeature value)
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.Builder builderForValue)
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.
|
AttachedDisk.Builder |
setInitializeParams(AttachedDiskInitializeParams value)
[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 |
setShieldedInstanceInitialState(InitialStateConfig.Builder builderForValue)
[Output Only] shielded vm initial state stored on disk
|
AttachedDisk.Builder |
setShieldedInstanceInitialState(InitialStateConfig value)
[Output Only] shielded vm initial state stored on disk
|
AttachedDisk.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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>public AttachedDisk.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>public AttachedDisk getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttachedDisk build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttachedDisk buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttachedDisk.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>public AttachedDisk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>public AttachedDisk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>public AttachedDisk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>public AttachedDisk.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>public AttachedDisk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>public AttachedDisk.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttachedDisk.Builder>public AttachedDisk.Builder mergeFrom(AttachedDisk other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>public AttachedDisk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttachedDisk.Builder>IOExceptionpublic boolean hasArchitecture()
[Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;hasArchitecture in interface AttachedDiskOrBuilderpublic String getArchitecture()
[Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;getArchitecture in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getArchitectureBytes()
[Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;getArchitectureBytes in interface AttachedDiskOrBuilderpublic 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;value - The architecture to set.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;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;value - The bytes for architecture to set.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;hasAutoDelete in interface AttachedDiskOrBuilderpublic boolean getAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;getAutoDelete in interface AttachedDiskOrBuilderpublic 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;value - The autoDelete to set.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;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;hasBoot in interface AttachedDiskOrBuilderpublic boolean getBoot()
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 3029746;getBoot in interface AttachedDiskOrBuilderpublic 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;value - The boot to set.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;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;hasDeviceName in interface AttachedDiskOrBuilderpublic String getDeviceName()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
optional string device_name = 67541716;getDeviceName in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getDeviceNameBytes()
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
optional string device_name = 67541716;getDeviceNameBytes in interface AttachedDiskOrBuilderpublic 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;value - The deviceName to set.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;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;value - The bytes for deviceName to set.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;
hasDiskEncryptionKey in interface AttachedDiskOrBuilderpublic CustomerEncryptionKey getDiskEncryptionKey()
Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
getDiskEncryptionKey in interface AttachedDiskOrBuilderpublic 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;
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;
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;
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;
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;
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;
getDiskEncryptionKeyOrBuilder in interface AttachedDiskOrBuilderpublic boolean hasDiskSizeGb()
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;hasDiskSizeGb in interface AttachedDiskOrBuilderpublic long getDiskSizeGb()
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;getDiskSizeGb in interface AttachedDiskOrBuilderpublic AttachedDisk.Builder setDiskSizeGb(long value)
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;value - The diskSizeGb to set.public AttachedDisk.Builder clearDiskSizeGb()
The size of the disk in GB.
optional int64 disk_size_gb = 316263735;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;hasForceAttach in interface AttachedDiskOrBuilderpublic boolean getForceAttach()
[Input Only] Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error.
optional bool force_attach = 142758425;getForceAttach in interface AttachedDiskOrBuilderpublic 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;value - The forceAttach to set.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;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;getGuestOsFeaturesList in interface AttachedDiskOrBuilderpublic int getGuestOsFeaturesCount()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;getGuestOsFeaturesCount in interface AttachedDiskOrBuilderpublic GuestOsFeature getGuestOsFeatures(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;getGuestOsFeatures in interface AttachedDiskOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getGuestOsFeaturesOrBuilder in interface AttachedDiskOrBuilderpublic List<? extends GuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;getGuestOsFeaturesOrBuilderList in interface AttachedDiskOrBuilderpublic 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;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;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;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;hasIndex in interface AttachedDiskOrBuilderpublic int getIndex()
[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
optional int32 index = 100346066;getIndex in interface AttachedDiskOrBuilderpublic 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;value - The index to set.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;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;
hasInitializeParams in interface AttachedDiskOrBuilderpublic AttachedDiskInitializeParams getInitializeParams()
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.AttachedDiskInitializeParams initialize_params = 17697045;
getInitializeParams in interface AttachedDiskOrBuilderpublic 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;
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;
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;
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;
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;
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;
getInitializeParamsOrBuilder in interface AttachedDiskOrBuilderpublic boolean hasInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;hasInterface in interface AttachedDiskOrBuilderpublic String getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;getInterface in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getInterfaceBytes()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain configurations, persistent disks can use NVMe. For more information, see About persistent disks. Check the Interface enum for the list of possible values.
optional string interface = 502623545;getInterfaceBytes in interface AttachedDiskOrBuilderpublic 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;value - The interface to set.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;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;value - The bytes for interface to set.public boolean hasKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;hasKind in interface AttachedDiskOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;getKind in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;getKindBytes in interface AttachedDiskOrBuilderpublic AttachedDisk.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;value - The kind to set.public AttachedDisk.Builder clearKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;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;value - The bytes for kind to set.public com.google.protobuf.ProtocolStringList getLicensesList()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;getLicensesList in interface AttachedDiskOrBuilderpublic int getLicensesCount()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;getLicensesCount in interface AttachedDiskOrBuilderpublic String getLicenses(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;getLicenses in interface AttachedDiskOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getLicensesBytes(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;getLicensesBytes in interface AttachedDiskOrBuilderindex - The index of the value to return.public AttachedDisk.Builder setLicenses(int index, String value)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;index - The index to set the value at.value - The licenses to set.public AttachedDisk.Builder addLicenses(String value)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;value - The licenses to add.public AttachedDisk.Builder addAllLicenses(Iterable<String> values)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;values - The licenses to add.public AttachedDisk.Builder clearLicenses()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;public AttachedDisk.Builder addLicensesBytes(com.google.protobuf.ByteString value)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;value - The bytes of the licenses to add.public boolean hasMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;hasMode in interface AttachedDiskOrBuilderpublic String getMode()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;getMode in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getModeBytes()
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;getModeBytes in interface AttachedDiskOrBuilderpublic 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;value - The mode to set.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;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;value - The bytes for mode to set.public boolean hasShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
hasShieldedInstanceInitialState in interface AttachedDiskOrBuilderpublic InitialStateConfig getShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
getShieldedInstanceInitialState in interface AttachedDiskOrBuilderpublic 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;
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;
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;
public AttachedDisk.Builder clearShieldedInstanceInitialState()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
public InitialStateConfig.Builder getShieldedInstanceInitialStateBuilder()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
public InitialStateConfigOrBuilder getShieldedInstanceInitialStateOrBuilder()
[Output Only] shielded vm initial state stored on disk
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
getShieldedInstanceInitialStateOrBuilder in interface AttachedDiskOrBuilderpublic boolean hasSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.
optional string source = 177235995;hasSource in interface AttachedDiskOrBuilderpublic String getSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.
optional string source = 177235995;getSource in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getSourceBytes()
Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk.
optional string source = 177235995;getSourceBytes in interface AttachedDiskOrBuilderpublic 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;value - The source to set.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;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;value - The bytes for source to set.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;hasType in interface AttachedDiskOrBuilderpublic String getType()
Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;getType in interface AttachedDiskOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;getTypeBytes in interface AttachedDiskOrBuilderpublic 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;value - The type to set.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;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;value - The bytes for type to set.public final AttachedDisk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>public final AttachedDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDisk.Builder>Copyright © 2023 Google LLC. All rights reserved.